e8ac873703ac311ed3fd840de0463ff4ae419d85
[gnulib.git] / ChangeLog
1 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2
3         openat: avoid compilation failure due to lack of <errno.h> inclusion
4         * lib/openat.c: Include <errno.h>.
5
6 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7
8         * modules/getcwd (Depends-on): Add fdopendir.
9         This fixes one of the two problems reported by Kai Habel in
10         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11
12         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
13         stdalign problem reported by Ian Beckwith in
14         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
15         * modules/crypto/gc-arcfour (Depends-on):
16         Depend conditionally on crypto/arcfour.
17         * modules/crypto/gc-arctwo (Depends-on):
18         Depend conditionally on crypto/arctwo.
19         * modules/crypto/gc-des (Depends-on):
20         Depend conditionally on crypto/des.
21         * modules/crypto/gc-hmac-md5 (Depends-on):
22         Depend conditionally on crypto/hmac-md5.
23         * modules/crypto/gc-hmac-sha1 (Depends-on):
24         Depend conditionally on crypto/hmac-sha1.
25         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
26         * modules/crypto/gc-md4 (Depends-on):
27         Depend conditionally on crypto/md4.
28         * modules/crypto/gc-md5 (Depends-on):
29         Depend conditionally on crypto/md5.
30         * modules/crypto/gc-rijndael (Depends-on):
31         Depend conditionally on crypto/rijndael.
32         * modules/crypto/gc-sha1 (Depends-on):
33         Depend conditionally on crypto/sha1.
34         * modules/crypto/gc-arcfour:
35         * modules/crypto/gc-arctwo:
36         * modules/crypto/gc-des:
37         * modules/crypto/gc-hmac-md5:
38         * modules/crypto/gc-hmac-sha1:
39         * modules/crypto/gc-md2:
40         * modules/crypto/gc-md4:
41         * modules/crypto/gc-md5:
42         * modules/crypto/gc-rijndael:
43         * modules/crypto/gc-sha1:
44         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45         now that the conditional dependencies do the work for us.
46
47 2011-11-17  Jim Meyering  <meyering@redhat.com>
48
49         tests: factor st_ctime-comparison out of two headers
50         * tests/test-utimens-common.h (ctime_compare): Define.
51         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
52         * tests/test-lutimens.h (test_lutimens): Likewise.
53         * tests/test-utimens.h (test_utimens): Likewise.
54
55         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
56         Invoke the test program via an init.sh-using wrapper.
57         * tests/test-getcwd.sh: New file.
58         * modules/getcwd-tests (Files): Add it.
59         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
60
61 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
62
63         gitlog-to-changelog: support multi-author commits.
64         The FSF cares about keeping track of all authors of patches to its
65         projects, but Git doesn't provide obvious support for multi-author
66         changesets. Consensus seems to be forming around the use of extra
67         Signed-off-by inspired lines in the log message formatted as
68         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
69         multi-author commits between version control systems.
70         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
71         log message and output in standard ChangeLog multi-author format.
72         Reported by Peter Rosin <peda@lysator.liu.se>
73
74 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
75             Bruno Haible  <bruno@clisp.org>
76
77         Fix some modules' file list.
78         * modules/fstatat (Files): Add m4/lstat.m4.
79         * modules/openat (Files): Likewise.
80         * modules/unlinkat (Files): Likewise.
81
82 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
83
84         maint.mk: fix tight-scope.mk generation in VPATH builds.
85         * top/maint.mk (tight-scope.mk): Make sure to prefix file
86         reference with $(srcdir) so that the file is found correctly even
87         when running `make syntax-check' in a VPATH build.
88
89 2011-11-13  Bruno Haible  <bruno@clisp.org>
90             Jim Meyering  <meyering@redhat.com>
91
92         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
93         * tests/init.sh (compare): Remove "No differences encountered" or
94         synonymous output from the 'diff' program.
95
96 2011-11-13  Bruno Haible  <bruno@clisp.org>
97
98         Makefile: Tweak indentation.
99         * Makefile: Use tab as first character in every line that contains rule
100         commands.
101
102 2011-11-13  Bruno Haible  <bruno@clisp.org>
103
104         Syntax check for copyright statements.
105         * check-copyright: New file.
106         * Makefile (sc_check_copyright): New rule.
107
108 2011-11-13  Simon Josefsson  <simon@josefsson.org>
109
110         * build-aux/git-version-gen: Add --prefix to configure the tag
111         match string.
112
113 2011-11-13  Simon Josefsson  <simon@josefsson.org>
114
115         * build-aux/git-version-gen: Add --help and --version.
116
117 2011-11-12  Jim Meyering  <meyering@redhat.com>
118
119         revamp the other test-exclude?.sh scripts to use init.sh, too
120         * tests/test-exclude1.sh: Use init.sh.
121         * tests/test-exclude2.sh: Likewise.
122         * tests/test-exclude3.sh: Likewise.
123         * tests/test-exclude4.sh: Likewise.
124         * tests/test-exclude5.sh: Likewise.
125         * tests/test-exclude6.sh: Likewise.
126         * tests/test-exclude7.sh: Likewise.
127         * tests/test-exclude8.sh: Likewise.
128         * modules/exclude-tests (Files): List init.sh.
129
130         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
131         These shell scripts ignored failure of the binary test-exclude,
132         so making the latter return 77 didn't cause them to be skipped.
133         * tests/test-exclude5.sh: Exit with test-exclude's error status
134         when that program fails.  Revamp to use init.sh.
135         * tests/test-exclude2.sh: Likewise.
136
137         test-exclude: fix a typo
138         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
139
140 2011-11-11  Bruno Haible  <bruno@clisp.org>
141
142         obstack: Fix compilation error on MSVC 9.
143         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
144
145 2011-11-11  Jim Meyering  <meyering@redhat.com>
146
147         test-exclude: skip tests rather than failing on deficient systems
148         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
149         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
150         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
151         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
152
153 2011-11-10  Bruno Haible  <bruno@clisp.org>
154
155         ptsname_r test: Avoid gcc warning on glibc systems.
156         * tests/test-ptsname_r.c (null_ptr): New function.
157         (test_errors): Use it.
158
159 2011-11-10  Bruno Haible  <bruno@clisp.org>
160
161         ptsname_r: Avoid compilation error on OSF/1 5.1.
162         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
164         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
165         function is not declared or incompatibly declared.
166         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
167         * modules/ptsname_r (Depends-on, configure.ac): Update.
168         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
169
170 2011-11-10  Bruno Haible  <bruno@clisp.org>
171
172         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
173         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
174         When cross-compiling, guess yes on all platforms except AIX.
175         Reported by Ludovic Courtès <ludo@gnu.org>.
176
177 2011-11-09  Bruno Haible  <bruno@clisp.org>
178
179         ptsname_r tests: Fix bugs.
180         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
181         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
182
183 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
184
185         fstatat: work with cross-compilation
186         Problem reported by Ludovic Courtès in
187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
188         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
189         "cross-compiling" and assume the bug is present.  Replace
190         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
191         an inverted sense, to be more conservative about our assumptions.
192         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
193
194 2011-11-09  Bruno Haible  <bruno@clisp.org>
195
196         Improve MODULES.html output.
197         * modules/mkfifoat (Description): Use the word "function".
198         * modules/readlinkat (Description): Likewise.
199         * modules/symlinkat (Description): Likewise.
200
201 2011-11-09  Eric Blake  <eblake@redhat.com>
202
203         ptsname_r-tests: new test module
204         * modules/ptsname_r-tests: New module.
205         * tests/test-ptsname_r.c: New file.
206
207         ptsname_r: new module
208         * modules/ptsname_r: New module.
209         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
210         * lib/ptsname.c (__ptsname_r): Split...
211         * lib/ptsname_r.c: ...into new file.
212         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
213         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
214         * modules/stdlib (Makefile.am): Substitute witnesses.
215         * lib/stdlib.in.h (ptsname_r): Declare it.
216         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
217         * MODULES.html.sh (Misc): Likewise.
218         * modules/ptsname (Depends-on): Alter dependency.
219         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
220
221 2011-11-09  Jim Meyering  <meyering@redhat.com>
222
223         announce-gen: be more concise when there's only one URL+tarball
224         * build-aux/announce-gen (get_tool_versions): When you distribute
225         only one type of tarball, combine the first two "Here are..."
226         sections and make the key-checking grammar independent of
227         how many tarballs there are.
228
229 2011-11-09  Eric Blake  <eblake@redhat.com>
230
231         openpty: provide a stub on mingw
232         * lib/pty.in.h (includes): Provide forward declarations.
233         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
234
235         raise: fix mingw handling of SIGPIPE
236         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
237
238 2011-11-08  Bruno Haible  <bruno@clisp.org>
239
240         More conditional dependencies.
241         * modules/faccessat (Depends-on): Add conditions.
242         * modules/fchmodat (Depends-on): Likewise.
243         * modules/fchownat (Depends-on): Likewise.
244         * modules/fstatat (Depends-on): Likewise.
245         * modules/mkfifoat (Depends-on): Likewise.
246         * modules/readlinkat (Depends-on): Likewise.
247         * modules/symlinkat (Depends-on): Likewise.
248         * modules/unlinkat (Depends-on): Likewise.
249         * modules/utimensat (Depends-on): Likewise.
250         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
251         * modules/linkat (Depends-on): Refine the conditions.
252         * modules/renameat (Depends-on): Likewise.
253
254 2011-11-08  Bruno Haible  <bruno@clisp.org>
255
256         faccessat: Move AC_LIBOBJ invocation to module description.
257         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
258         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
259         invocation from here...
260         * modules/faccessat (configure.ac): ... to here. Invoke
261         gl_PREREQ_FACCESSAT.
262
263 2011-11-08  Bruno Haible  <bruno@clisp.org>
264
265         faccessat: Simplify autoconf macro.
266         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
267         gl_FUNC_EUIDACCESS.
268
269 2011-11-08  Bruno Haible  <bruno@clisp.org>
270
271         renameat: Fix dependencies.
272         * modules/renameat (Depends-on): Add stdbool.
273
274 2011-11-08  Bruno Haible  <bruno@clisp.org>
275
276         mkfifoat: Fix module description.
277         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
278         not gl_UNISTD_MODULE_INDICATOR.
279
280 2011-11-08  Bruno Haible  <bruno@clisp.org>
281
282         fstatat: Remove unused dependency.
283         * modules/fstatat (Depends-on): Remove fstat.
284
285 2011-11-08  Simon Josefsson  <simon@josefsson.org>
286
287         GNUmakefile: behave when Makefile is missing.
288         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
289
290 2011-11-08  Bruno Haible  <bruno@clisp.org>
291
292         openat: Conditionalize dependencies.
293         * lib/openat.c: Reduce the scope of some #includes.
294         * modules/openat (Depends-on): Add conditions.
295
296 2011-11-07  Jim Meyering  <meyering@redhat.com>
297
298         maint.mk: extract GPG key ID without using a temporary file
299         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
300         without using a temporary file.  Based on a suggestion from Werner Koch
301         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
302
303 2011-11-07  Eric Blake  <eblake@redhat.com>
304
305         grantpt: fix typo
306         * lib/stdlib.in.h (grantpt): Check correct function.
307
308         maint.mk: silence new syntax check
309         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
310
311 2011-11-06  Bruno Haible  <bruno@clisp.org>
312
313         Doc about floating-point and math API.
314         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
315         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
316
317 2011-11-06  Bruno Haible  <bruno@clisp.org>
318
319         stdalign tests: Skip the test when compiled by Sun C.
320         * tests/test-stdalign.c (main): Skip the test on Sun C.
321
322 2011-11-06  Bruno Haible  <bruno@clisp.org>
323
324         ansi-c++-opt: Complete the 2011-06-05 change.
325         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
326         does not support namespaces, set the variable to "no", not to ":".
327
328 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
329
330         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
331
332 2011-11-06  Bruno Haible  <bruno@clisp.org>
333
334         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
335         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
336         (minus_zerol) [HP-UX]: New macro.
337         (unary_minus) [HP-UX]: New function.
338         (copysignl) [HP-UX]: Use unary_minus function.
339
340 2011-11-06  Bruno Haible  <bruno@clisp.org>
341
342         ldexp, ldexpf, ldexpl: Enhance tests.
343         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
344         and tests/test-ldexpl.c.
345         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
346         LDEXP, MIN_EXP, MAX_EXP): New macros.
347         Include test-ldexp.h.
348         (main): Just call test_function.
349         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
350         infinity.h, nan.h.
351         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
352         MAX_EXP): New macros.
353         Include test-ldexp.h.
354         (x, y): Remove variables.
355         (main): Just call test_function.
356         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
357         infinity.h, nan.h.
358         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
359         MAX_EXP): New macros.
360         Include test-ldexp.h.
361         (x, y): Remove variables.
362         (main): Just call test_function.
363         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
364         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
365         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
366         (Depends-on): Add isnand-nolibm, signbit, float.
367         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
368         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
369         (Depends-on): Add isnanf-nolibm, signbit, float.
370
371 2011-11-06  Bruno Haible  <bruno@clisp.org>
372
373         math tests: Cosmetics.
374         * tests/test-math-c++.cc: Reorder declarations.
375
376 2011-11-05  Bruno Haible  <bruno@clisp.org>
377
378         fma*: Simplify test.
379         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
380         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
381
382         Tests for module 'fmal'.
383         * modules/fmal-tests: New file.
384         * tests/test-fmal1.c: New file.
385         * tests/test-fmal2.c: New file.
386
387         New module 'fmal'.
388         * lib/math.in.h (fmal): New declaration.
389         * lib/fmal.c: New file.
390         * m4/fmal.m4: New file.
391         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
393         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
394         REPLACE_FMAL.
395         * modules/fmal: New file.
396         * doc/posix-functions/fmal.texi: Mention the new module and the various
397         bugs.
398
399         Tests for module 'fmaf'.
400         * modules/fmaf-tests: New file.
401         * tests/test-fmaf1.c: New file.
402         * tests/test-fmaf2.c: New file.
403
404         New module 'fmaf'.
405         * lib/math.in.h (fmaf): New declaration.
406         * lib/fmaf.c: New file.
407         * m4/fmaf.m4: New file.
408         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
410         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
411         REPLACE_FMAF.
412         * modules/fmaf: New file.
413         * doc/posix-functions/fmaf.texi: Mention the new module and the various
414         bugs.
415
416         Tests for module 'fma'.
417         * modules/fma-tests: New file.
418         * tests/test-fma1.c: New file.
419         * tests/test-fma1.h: New file.
420         * tests/test-fma2.c: New file.
421         * tests/test-fma2.h: New file.
422
423         New module 'fma'.
424         * lib/math.in.h (fma): New declaration.
425         * lib/fma.c: New file.
426         * m4/fma.m4: New file.
427         * m4/fegetround.m4: New file.
428         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
430         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
431         REPLACE_FMA.
432         * modules/fma: New file.
433         * doc/posix-functions/fma.texi: Mention the new module and the various
434         bugs.
435
436         Extend gl_MATHFUNC.
437         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
438         Support 'void' as argument type.
439         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
440
441 2011-11-05  Jim Meyering  <meyering@redhat.com>
442
443         maint.mk: also prohibit inclusion of dirent.h without use
444         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
445
446 2011-11-05  Bruno Haible  <bruno@clisp.org>
447
448         ldexpl tests: Avoid test failure on MSVC 9.
449         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
450         value. Needed in order to enforce the conversion from a value greater
451         than LDBL_MAX to Infinity.
452
453 2011-11-05  Bruno Haible  <bruno@clisp.org>
454
455         New modules 'at-internal', 'openat-h', split off from module 'openat'.
456         * modules/at-internal: New file, extracted from modules/openat.
457         * modules/openat-h: New file.
458         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
459         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
460         * modules/openat (Description): Add reference to POSIX function.
461         (Files): Remove lib/openat.h, lib/openat-proc.c.
462         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
463         intprops, unistd.
464         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
465         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
466         gl_FCNTL_MODULE_INDICATOR.
467         (Include): Remove unistd.h, openat.h.
468         * modules/areadlinkat (Files): Add lib/at-func.c.
469         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
470         openat-die, openat-h, save-cwd.
471         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
472         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
473         openat-die, openat-h, save-cwd, unistd.
474         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
475         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
476         openat-h, save-cwd. Remove fcntl-h, openat.
477         * modules/fchmodat (Files): Remove lib/openat.h.
478         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
479         openat, stdbool, unistd.
480         * modules/fchownat (Files): Remove lib/openat.h.
481         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
482         openat, stdbool, sys_stat.
483         * modules/fdopendir (Files): Remove lib/openat-priv.h,
484         lib/openat-proc.c.
485         (Depends-on): Add at-internal.
486         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
487         * modules/fstatat (Files): Remove lib/openat.h.
488         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
489         stdbool, unistd.
490         * modules/fts (Depends-on): Add openat-h.
491         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
492         openat.
493         * modules/mkdirat (Files): Remove lib/openat.h.
494         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
495         openat, stdbool, sys_stat.
496         * modules/mkfifoat (Files): Add lib/at-func.c.
497         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
498         openat-h, save-cwd. Remove fcntl-h, openat.
499         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
500         * modules/readlinkat (Files): Add lib/at-func.c.
501         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
502         openat-h, save-cwd. Remove fcntl-h, openat.
503         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
504         openat.
505         * modules/selinux-at (Files): Add lib/at-func.c.
506         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
507         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
508         * modules/symlinkat (Files): Add lib/at-func.c.
509         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
510         openat-h, save-cwd. Remove fcntl-h, openat.
511         * modules/unlinkat (Files): Remove lib/openat.h.
512         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
513         stdbool.
514         * modules/utimensat (Files): Add lib/at-func.c.
515         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
516         openat-die, openat-h, save-cwd.
517         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
518         * modules/fdutimensat-tests (Depends-on): Add openat.
519         * modules/fstatat-tests (Depends-on): Add openat-h.
520         * modules/readlinkat-tests (Depends-on): Add openat.
521         * modules/symlinkat-tests (Depends-on): Add openat.
522
523 2011-11-05  Bruno Haible  <bruno@clisp.org>
524
525         openat: Include <stdbool.h>.
526         * lib/openat.c: Include <stdbool.h>.
527
528 2011-11-04  Bruno Haible  <bruno@clisp.org>
529
530         fchownat, renameat, unlinkat: Fix dependencies.
531         * modules/fchownat (Depends-on): Add fstatat.
532         * modules/renameat (Depends-on): Likewise.
533         * modules/unlinkat (Depends-on): Likewise.
534
535 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
536
537         openat: remove direct dependency on dirent
538         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
539         and hasn't been needed ever since fdopendir was split into its own
540         module on 2009-08-31.
541         * modules/openat (Depends-on): Remove dirent.
542
543 2011-11-04  Bruno Haible  <bruno@clisp.org>
544
545         renameat: Optimize code size.
546         * modules/renameat (configure.ac): Don't compile at-func2.c if
547         REPLACE_RENAMEAT is 1.
548
549 2011-11-04  Bruno Haible  <bruno@clisp.org>
550
551         openat tests: Fix file list.
552         * modules/openat-tests (Files): Add tests/test-open.h.
553
554 2011-11-04  Bruno Haible  <bruno@clisp.org>
555
556         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
557         * modules/fchmodat (Depends-on): Add openat-die.
558         * modules/fchownat (Depends-on): Likewise.
559         * modules/linkat (Depends-on): Likewise.
560         * modules/renameat (Depends-on): Likewise.
561         * modules/openat (Depends-on): Add dirent.
562
563 2011-11-04  Jim Meyering  <meyering@redhat.com>
564
565         at-func*.c: fix comments
566         * lib/at-func2.c: Correct/improve first-line comment.
567         * lib/at-func.c: Correct grammar in first-line comment.
568
569 2011-11-04  Bruno Haible  <bruno@clisp.org>
570
571         New module 'mkdirat', split off from module 'openat'.
572         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
573         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
574         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
575         * modules/mkdirat: New file, extracted from modules/openat.
576         * modules/openat (Files): Remove lib/mkdirat.c.
577         (Depends-on): Remove mkdir.
578         (configure.ac): Remove AC_LIBOBJ of mkdirat.
579         (Include): Remove <sys/stat.h>.
580         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
581         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
582         tests/test-mkdir.h.
583         (Depends-on): Remove ignore-value.
584         (Makefile.am): Remove rules for test-mkdirat.
585         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
586         of module 'openat'.
587         * NEWS: Mention the change.
588
589 2011-11-04  Bruno Haible  <bruno@clisp.org>
590
591         closedir: Avoid warning on mingw.
592         * lib/closedir.c: Include <unistd.h>.
593
594 2011-11-04  Bruno Haible  <bruno@clisp.org>
595
596         New module 'fstatat', split off from module 'openat'.
597         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
598         defined.
599         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
600         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
601         gl_FUNC_FSTATAT.
602         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
603         * modules/fstatat: New file, extracted from modules/openat.
604         * modules/openat (Files): Remove lib/fstatat.c.
605         (Depends-on): Remove lstat.
606         (configure.ac): Remove AC_LIBOBJ of fstatat.
607         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
608         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
609         tests/test-lstat.h, tests/test-stat.h.
610         (Depends-on): Remove getcwd-lgpl.
611         (Makefile.am): Remove rules for test-fstatat.
612         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
613         of module 'openat'.
614         * NEWS: Mention the change.
615         * modules/getcwd (Depends-on): Add fstatat.
616         * modules/linkat (Depends-on): Likewise.
617         * modules/mkfifoat-tests (Depends-on): Likewise.
618         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
619
620 2011-11-03  Bruno Haible  <bruno@clisp.org>
621
622         New module 'unlinkat', split off from module 'openat'.
623         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
624         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
625         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
626         * modules/unlinkat: New file, extracted from modules/openat. Correct
627         the dependency conditions.
628         * modules/openat (Files): Remove lib/unlinkat.c.
629         (Depends-on): Remove rmdir, unlink.
630         (configure.ac): Remove AC_LIBOBJ of unlinkat.
631         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
632         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
633         tests/test-rmdir.h, tests/test-unlink.h.
634         (Depends-on): Remove unlinkdir.
635         (Makefile.am): Remove rules for test-unlinkat.
636         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
637         of module 'openat'.
638         * NEWS: Mention the change.
639         * modules/linkat-tests (Depends-on): Add unlinkat.
640         * modules/mkfifoat-tests (Depends-on): Likewise.
641         * modules/readlinkat-tests (Depends-on): Likewise.
642
643 2011-11-02  Bruno Haible  <bruno@clisp.org>
644
645         New module 'fchmodat', split off from module 'openat'.
646         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
647         defined.
648         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
649         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
650         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
651         * modules/fchmodat: New file, extracted from modules/openat.
652         * modules/openat (Files): Remove lib/fchmodat.c.
653         (configure.ac): Remove AC_LIBOBJ of fchmodat.
654         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
655         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
656         (Makefile.am): Remove rules for test-fchmodat.
657         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
658         of module 'openat'.
659         * NEWS: Mention the change.
660
661 2011-11-02  Jim Meyering  <meyering@redhat.com>
662
663         putenv: indent #definition of "environ" to placate cppi
664         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
665
666         gitlog-to-changelog: provide a ChangeLog-repair mechanism
667         Git logs are often treated as immutable, because editing them
668         changes the SHA1 checksums of all descendants.  Thus, errors in
669         git logs tend to stay there forever.  However, when we generate
670         a ChangeLog file -- typically for distribution -- from that git log,
671         we can actually make corrections in the generated file.  The key
672         lies in recording in machine-readable/applicable form the desired
673         corrections.  See --help for description and an example.
674         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
675         (usage): Describe it; alphabetize option descriptions.
676         (main): Honor the new option, carefully.
677
678 2011-11-01  Jim Meyering  <meyering@redhat.com>
679
680         gitlog-to-changelog: avoid an infloop
681         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
682         that ends up being empty.
683
684 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
685
686         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
687         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
688         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
689         contains (possibly-quoted) backslashes.  This should avoid
690         all-too-common shell bugs if COMPLICATED contains backslashes in
691         the "wrong" places.  Reported by David Evans in
692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
693         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
694         because we want ASCII ranges.  Is there some reason we don't use
695         the C locale everywhere in this script?
696         (func_module, top level): Avoid unwanted pathname expansion when
697         $repo_url_prefix or $repo_url_suffix_repl contain shell
698         metacharacters like '?' and '*'.
699
700 2011-11-01  Bruno Haible  <bruno@clisp.org>
701
702         fchownat: Improve description.
703         * modules/fchownat (Description): Add link to function.
704
705 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
706
707         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
708         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
710         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
711
712 2011-11-01  Bruno Haible  <bruno@clisp.org>
713
714         alignof: Avoid collision with stdalign module.
715         * lib/alignof.h (alignof): Remove macro.
716         * NEWS: Mention the change.
717         Reported by Paul Eggert.
718
719 2011-11-01  Bruno Haible  <bruno@clisp.org>
720
721         New module 'fchownat', split off from module 'openat'.
722         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
723         defined.
724         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
725         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
726         invoke gl_FUNC_FCHOWNAT.
727         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
728         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
729         * modules/fchownat: New file, extracted from modules/openat.
730         * modules/openat (Files): Remove lib/fchownat.c.
731         (Depends-on): Remove lchown.
732         (configure.ac): Remove AC_LIBOBJ of fchownat.
733         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
734         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
735         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
736         (Depends-on): Remove mgetgroups, usleep, stat-time.
737         (configure.ac): Remove test for getegid.
738         (Makefile.am): Remove rules for test-fchownat.
739         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
740         of module 'openat'.
741         * NEWS: Mention the change.
742
743 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
744
745         stdalign: port better to MSVC and to Sun C 5.11
746         This fixes some of the problems reported by Bruno Haible in
747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
748         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
749         shortcomings of MSVC and of Sun C 5.11.
750         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
751         around __declspec arg.
752         * modules/stdalign-tests (Files): Add tests/macros.h.
753         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
754         Include macros.h, for ASSERT.
755         (DECLARE_ALIGNED): Remove.
756         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
757         to catch bug), and to 1 if not (simplifies the rest of the code).
758         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
759         (CHECK_AUTO): Remove.
760         (CHECK_ALIGNED): Check only the alignment of the static vars,
761         since auto var alignment isn't supported by Sun C 5.11.
762         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
763         ASSERT failures are easier to diagnose.
764
765 2011-10-31  Bruno Haible  <bruno@clisp.org>
766
767         doc about some IRIX 5.3 problems.
768         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
769         on IRIX 5.3.
770         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
771         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
772         5.3.
773         * doc/posix-functions/grantpt.texi: Likewise.
774         * doc/posix-functions/unlockpt.texi: Likewise.
775         * doc/posix-functions/lgamma.texi: Likewise.
776         * doc/posix-functions/nextafter.texi: Likewise.
777         * doc/posix-functions/remainder.texi: Likewise.
778         * doc/posix-functions/select.texi: Mention misplaced declaration on
779         IRIX 5.3.
780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
781
782 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
783
784         gitlog-to-changelog: fix git-log invocation.
785         git-log mishandles date strings before 1970-01-01 UTC, and there is
786         no use to specify --since=1970-01-01 by default anyway.
787         * build-aux/gitlog-to-changelog: By default, when no --since option
788         was given, do not specify explicit --since option to git-log.
789
790 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
791
792         gitlog-to-changelog: new option --append-dot.
793         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
794         first non-blank line of each commit message terminated with a dot.
795
796 2011-10-30  Bruno Haible  <bruno@clisp.org>
797
798         ffsl, ffsll: Avoid compilation error due to 'restrict'.
799         * lib/ffsl.h: Include <config.h>.
800         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
801
802 2011-10-30  Jim Meyering  <meyering@redhat.com>
803
804         GNUmakefile: reenable "make syntax-check" for most projects
805         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
806         build-aux variable", "syntax-check" would do nothing but succeed with
807         the "No version control files detected..." diagnostic (unless you
808         happened to override _build-aux via cfg.mk).
809         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
810         to precede inclusion of maint.mk.  Otherwise, these variables would
811         be used undefined in any project that does not override the default.
812
813 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
814
815         gitlog-to-changelog: treat a message with only blank lines as empty.
816         * build-aux/gitlog-to-changelog: Move the code that removes leading and
817         trailing blank lines before the code that issues a warning about an
818         empty commit message.
819
820 2011-10-30  Jim Meyering  <meyering@redhat.com>
821
822         test-parse-datetime.c: avoid new DST-related false positive test failure
823         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
824         based on the time/date we'll convert, not the current time.
825         Otherwise, the moment we cross a DST boundary like today's in
826         Europe, (CEST to CET), that offset ends up being one hour off.
827
828 2011-10-27  Bruno Haible  <bruno@clisp.org>
829
830         fstat: Tweak documentation.
831         * modules/fstat (Description): More precise description.
832
833 2011-10-27  Bruno Haible  <bruno@clisp.org>
834
835         Update documentation regarding 'largefile' module.
836         * doc/posix-functions/fstat.texi: Tweak wording.
837         * doc/posix-functions/opendir.texi: Mention that the module fixes the
838         problems with huge directories and/or small ino_t types.
839         * doc/posix-functions/readdir.texi: Likewise.
840         * doc/posix-functions/rewinddir.texi: Likewise.
841
842 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
843
844         maint.mk: don't maintain a second build-aux variable.
845         * maint.mk (build_aux): Removed.  The maintainer-makefile module
846         depends on GNUmakefile, which already maintains a cfg.mk
847         overridable $(_build-aux) for projects with a non-standard
848         build-aux directory location, although without the $(srcdir)
849         prefix.  Use that variable consistently instead of introducing a
850         second one.  Adjust all call sites.
851
852 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
853
854         Add stdalign module and use it in other modules.
855         This is based on a previous proposal by Bruno Haible
856         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
857
858         stdalign: new module
859         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
860         * modules/stdalign: New files.
861         * MODULES.html.sh (c1x_core_properties): Add stdalign.
862         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
863
864         stdalign-tests: new module
865         * modules/stdalign-tests, tests/test-stdalign.c: New files.
866
867         argp: use stdalign
868         * lib/argp-parse.c: Include <stdalign.h>.
869         (alignof): Remove.
870         * modules/argp (Depends-on): Add stdalign.
871
872         crypto libraries: use stdalign
873         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
874         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
875         Do not include <stdlib.h> twice, in md4.c.
876         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
877         because we are accessing a pointer's bit-pattern, not a size.
878         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
879         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
880         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
881         * modules/crypto/sha512: Likewise.
882
883         sys_socket: use stdalign, not alignof
884         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
885         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
886
887 2011-10-27  Bruno Haible  <bruno@clisp.org>
888
889         raise test: Avoid a test failure on Linux/MIPS.
890         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
891         because 99 is a valid signal on Linux/MIPS.
892
893 2011-10-27  Bruno Haible  <bruno@clisp.org>
894
895         nonblocking tests: Fix test failure on Linux/MIPS.
896         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
897         Set to 270000.
898
899 2011-10-27  Bruno Haible  <bruno@clisp.org>
900
901         utimensat: Work around problem on Linux/hppa.
902         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
903         values.
904         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
905
906 2011-10-25  Jim Meyering  <meyering@redhat.com>
907
908         maint.mk: fix a bug in sc_prohibit_stddef_without_use
909         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
910         after symbols like NULL, size_t, etc.
911         Reported by Alfred M. Szmidt.
912
913         maint.mk: exempt ENODATA from a syntax-check rule
914         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
915         from the sc_prohibit_always-defined_macros syntax-check rule.
916         Add a comment.  See this for more details:
917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
918
919 2011-10-23  Jim Meyering  <meyering@redhat.com>
920
921         fts: close parent dir FD before returning from post-traversal fts_read
922         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
923         unlink A, even though an FD open on A remained.  This is suboptimal
924         (holding a file descriptor open longer than needed), but otherwise not
925         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
926         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
927         that represents a real problem: it causes the removal of A to fail
928         with e.g., "rm: cannot remove `A': Device or resource busy"
929
930         fts visits each directory twice and keeps a cache (fts_fd_ring) of
931         directory file descriptors.  After completing the final, FTS_DP,
932         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
933         cache, but then proceeded to add a new FD to it via the subsequent
934         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
935         final file descriptor would be closed only via fts_close's call to
936         fd_ring_clear.  Now, it is usually closed earlier, via the final
937         FTS_DP-returning fts_read call.
938         * lib/fts.c (restore_initial_cwd): New function, converted from
939         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
940         Update callers.
941         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
942         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
943
944 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
945             Bruno Haible  <bruno@clisp.org>
946             Jim Meyering  <jim@meyering.net>
947
948         readme-release: improve safety of release prep instructions.
949         * README-release: Don't git pull all branches when only master
950         is needed for the release process.
951         Run make maintainer-clean before changing trees and merging.
952         Don't try to run ./configure right after git pull in case files
953         that influence the bootstrap process have changed, move the
954         ./configure step to after running ./bootstrap.
955         Don't bootstrap "one last time"... it's the first time!
956
957 2011-10-22  Bruno Haible  <bruno@clisp.org>
958
959         errno, strerror-override: Support for MSVC 10.
960         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
961         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
962         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
963         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
964         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
965         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
966         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
967         Assign values compatible with MSVC 10.
968         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
969         New macros.
970         (GNULIB_defined_EWINSOCK): New macro.
971         * lib/strerror-override.c (strerror_override): Update accordingly.
972         * lib/strerror-override.h: Likewise.
973         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
974         longer equal to the corresponding errno value.
975         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
976
977 2011-10-22  Bruno Haible  <bruno@clisp.org>
978
979         perror: Recognize when test program crashes.
980         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
981         strerror, set gl_cv_func_perror_works to no.
982         Reported by Daniel Richard G. <skunk@iskunk.org>.
983
984         perror: Fix indentation.
985         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
986
987 2011-10-22  Bruno Haible  <bruno@clisp.org>
988
989         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
990         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
991         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
992         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
993         functions, not as a macro.
994         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
995         macros.
996         (isfinite, isinf, isnan, signbit): Check overloaded functions and
997         absence of macro.
998         Suggested by Eric Blake.
999         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1000
1001 2011-10-21  Bruno Haible  <bruno@clisp.org>
1002
1003         relocatable-prog-wrapper: Don't leave object files behind.
1004         * build-aux/install-reloc: Re-synchronize list of .o files to be
1005         removed with list of compilation units.
1006
1007 2011-10-20  Bruno Haible  <bruno@clisp.org>
1008
1009         openpty, posix_openpt: Remove code duplication.
1010         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1011         * lib/openpty.c: Include <stdlib.h>.
1012         (openpty): Use posix_openpt on all platforms except IRIX.
1013         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1014
1015 2011-10-20  Bruno Haible  <bruno@clisp.org>
1016
1017         unlockpt: Detect invalid argument.
1018         * lib/unlockpt.c: Include <fcntl.h>.
1019         (unlockpt): Check whether fd is valid, using fcntl().
1020         * modules/unlockpt (Depends-on): Add fcntl-h.
1021
1022 2011-10-20  Bruno Haible  <bruno@clisp.org>
1023
1024         openpty: Avoid compilation error on AIX 6.1.
1025         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1026
1027 2011-10-20  Bruno Haible  <bruno@clisp.org>
1028
1029         posix_openpt: Support for OpenBSD.
1030         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1031         (posix_openpt) [OpenBSD]: New code.
1032         * lib/grantpt.c: Include <fcntl.h>.
1033         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1034         * modules/grantpt (Depends-on): Add fcntl-h.
1035
1036 2011-10-20  Bruno Haible  <bruno@clisp.org>
1037
1038         posix_openpt test: Coding style.
1039         * tests/test-posix_openpt.c: Use GNU coding style.
1040
1041 2011-10-20  Bruno Haible  <bruno@clisp.org>
1042
1043         grantpt: Support --avoid=pt_chown.
1044         * modules/grantpt (Files): Add lib/pty-private.h.
1045
1046 2011-10-20  Bruno Haible  <bruno@clisp.org>
1047
1048         posix_openpt: Fix autoconf macro.
1049         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1050         unneeded check for _getpty.
1051
1052 2011-10-20  Bruno Haible  <bruno@clisp.org>
1053
1054         openpty: Update comments.
1055         * lib/openpty.c: Add comments about Minix.
1056
1057 2011-10-19  Eric Blake  <eblake@redhat.com>
1058
1059         openpty: relax license
1060         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1061
1062         pt_chown: use configmake to simplify build
1063         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1064
1065         ptsname and others: relax license
1066         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1067         * modules/unlockpt (License): Likewise.
1068         * modules/pt_chown (License): Likewise.
1069         * modules/ptsname (License): Likewise.
1070         * modules/ttyname_r (License): Likewise.
1071
1072 2011-10-19  Jim Meyering  <meyering@redhat.com>
1073
1074         posix_openpt: remove spurious #endif
1075         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1076
1077 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1078
1079         maint.mk: Respect $(build_aux) in web-manual rule.
1080         * top/maint.mk (web-manual): Find gen-announce script in user's
1081         $(build_aux) directory instead of hard-coding 'build-aux'.
1082
1083 2011-10-19  Bruno Haible  <bruno@clisp.org>
1084
1085         posix_openpt: Fix compilation error.
1086         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1087         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1088         Mention the openpty module as an alternative.
1089
1090 2011-10-19  Bruno Haible  <bruno@clisp.org>
1091
1092         Support for old NeXTstep 3.3 frexp().
1093         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1094         execution time of the test to 5 seconds.
1095         Reported by Daniel Richard G. <skunk@iskunk.org>.
1096
1097 2011-10-19  Bruno Haible  <bruno@clisp.org>
1098
1099         Support for old NeXTstep 3.3 sed.
1100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1101         part, use /.../, not \|...|. Escape periods in the header file name.
1102         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1103         Reported by Daniel Richard G. <skunk@iskunk.org>.
1104
1105 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1106
1107         Support for old NeXTstep 3.3 gcc.
1108         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1109         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1110         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1111         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1112         * lib/regex.h (_Restrict_arr_): Likewise.
1113         * lib/regex_internal.h (re_token_t): Likewise.
1114         * lib/regexec.c (check_node_accept_bytes): Likewise.
1115         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1116
1117 2011-10-18  Eric Blake  <eblake@redhat.com>
1118
1119         posix_openpt: new module
1120         * modules/posix_openpt: New module.
1121         * m4/posix_openpt.m4: New file.
1122         * lib/posix_openpt.c: Likewise.
1123         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1124         (gl_STDLIB_H_DEFAULTS): Set defaults.
1125         * modules/stdlib (Makefile.am): Substitute macros.
1126         * lib/stdlib.in.h (posix_openpt): Declare.
1127         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1128         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1129         * modules/posix_openpt-tests: New test module.
1130         * tests/test-posix_openpt.c: New test.
1131
1132 2011-10-15  Bruno Haible  <bruno@clisp.org>
1133
1134         xstrtoll: Fix compilation failure.
1135         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1136         from lib/strtol.c.
1137         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1138         some platforms.
1139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1140
1141 2011-10-15  Bruno Haible  <bruno@clisp.org>
1142
1143         vasnprintf: Optimize bit search operation.
1144         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1146         gl_DOUBLE_EXPONENT_LOCATION.
1147         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1148         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1149         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1150         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1151         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1152         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1153         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1154         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1155         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1156
1157 2011-10-15  Bruno Haible  <bruno@clisp.org>
1158
1159         vasnprintf: Fix comments.
1160         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1161
1162 2011-10-14  Bruno Haible  <bruno@clisp.org>
1163
1164         Tests for module 'integer_length_ll'.
1165         * modules/integer_length_ll-tests: New file.
1166         * tests/test-integer_length_ll.c: New file.
1167
1168         New module 'integer_length_ll'.
1169         * lib/integer_length_ll.c: New file.
1170         * modules/integer_length_ll: New file.
1171
1172 2011-10-14  Bruno Haible  <bruno@clisp.org>
1173
1174         Tests for module 'integer_length_l'.
1175         * modules/integer_length_l-tests: New file.
1176         * tests/test-integer_length_l.c: New file.
1177
1178         New module 'integer_length_l'.
1179         * lib/integer_length_l.c: New file.
1180         * modules/integer_length_l: New file.
1181
1182 2011-10-14  Bruno Haible  <bruno@clisp.org>
1183
1184         Tests for module 'integer_length'.
1185         * modules/integer_length-tests: New file.
1186         * tests/test-integer_length.c: New file.
1187
1188         New module 'integer_length'.
1189         * lib/integer_length.h: New file.
1190         * lib/integer_length.c: New file.
1191         * modules/integer_length: New file.
1192
1193 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1194
1195         popen: Fix dependency conditions.
1196         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1197
1198 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1199
1200         perror: Fix autoconf test.
1201         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1202         <stdlib.h> and <string.h>.
1203
1204 2011-10-14  Bruno Haible  <bruno@clisp.org>
1205
1206         ffsl: Optimize on 64-bit platforms.
1207         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1208         unrolling.
1209
1210 2011-10-13  Bruno Haible  <bruno@clisp.org>
1211
1212         ffsl: Optimize on 32-bit platforms.
1213         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1214         use ffs() without a loop.
1215
1216         ffsl, ffsll: Optimize for GCC.
1217         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1218         * lib/ffsl.c (GCC_BUILTIN): New macro.
1219         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1220
1221 2011-10-13  Bruno Haible  <bruno@clisp.org>
1222
1223         ffs, bcopy, memset: Support symbol renaming via config.h.
1224         * lib/ffs.c: Include <config.h>.
1225         * lib/bcopy.c: Likewise.
1226         * lib/memset.c: Likewise.
1227
1228 2011-10-10  Bruno Haible  <bruno@clisp.org>
1229
1230         atanl: Simplify for platforms where 'long double' == 'double'.
1231         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1232         alternative implementation.
1233         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1234         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1235         * modules/atanl (Depends-on): Add atan. Update conditions.
1236
1237 2011-10-10  Bruno Haible  <bruno@clisp.org>
1238
1239         acosl: Simplify for platforms where 'long double' == 'double'.
1240         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1241         alternative implementation.
1242         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1243         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1244         * modules/acosl (Depends-on): Add acos. Update conditions.
1245
1246 2011-10-10  Bruno Haible  <bruno@clisp.org>
1247
1248         asinl: Simplify for platforms where 'long double' == 'double'.
1249         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1250         alternative implementation.
1251         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1252         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1253         * modules/asinl (Depends-on): Add asin. Update conditions.
1254
1255 2011-10-10  Bruno Haible  <bruno@clisp.org>
1256
1257         tanl: Simplify for platforms where 'long double' == 'double'.
1258         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1259         implementation.
1260         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1261         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1262         * modules/tanl (Depends-on): Add tan. Update conditions.
1263         (configure.ac): Don't compile trigl.c if
1264         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1265
1266 2011-10-10  Bruno Haible  <bruno@clisp.org>
1267
1268         cosl: Simplify for platforms where 'long double' == 'double'.
1269         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1270         implementation.
1271         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1272         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1273         * modules/cosl (Depends-on): Add cos. Update conditions.
1274         (configure.ac): Don't compile sincosl.c and trigl.c if
1275         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1276
1277 2011-10-10  Bruno Haible  <bruno@clisp.org>
1278
1279         sinl: Simplify for platforms where 'long double' == 'double'.
1280         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1281         implementation.
1282         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1283         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1284         * modules/sinl (Depends-on): Add sin. Update conditions.
1285         (configure.ac): Don't compile sincosl.c and trigl.c if
1286         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1287
1288 2011-10-10  Bruno Haible  <bruno@clisp.org>
1289
1290         logl: Simplify for platforms where 'long double' == 'double'.
1291         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1292         implementation.
1293         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1294         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1295         * modules/logl (Depends-on): Add log. Update conditions.
1296
1297 2011-10-10  Bruno Haible  <bruno@clisp.org>
1298
1299         expl: Simplify for platforms where 'long double' == 'double'.
1300         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1301         implementation.
1302         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1303         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1304         * modules/expl (Depends-on): Add exp. Update conditions.
1305
1306 2011-10-10  Bruno Haible  <bruno@clisp.org>
1307
1308         sqrtl: Simplify for platforms where 'long double' == 'double'.
1309         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1310         alternative implementation.
1311         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1312         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1313         * modules/sqrtl (Depends-on): Update conditions.
1314
1315 2011-10-10  Bruno Haible  <bruno@clisp.org>
1316
1317         ldexpl: Simplify for platforms where 'long double' == 'double'.
1318         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1319         alternative implementation.
1320         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1321         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1322         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1323
1324 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1325
1326         ffsll: set correct witness
1327         * modules/ffsll (configure.ac): Fix typo.
1328
1329 2011-10-10  Bruno Haible  <bruno@clisp.org>
1330
1331         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1332         * lib/printf-frexpl.c: Include <config.h>.
1333         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1334         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1335         second time.
1336         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1337         gl_LONG_DOUBLE_VS_DOUBLE.
1338         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1339         conditions.
1340
1341 2011-10-10  Bruno Haible  <bruno@clisp.org>
1342
1343         frexpl: Simplify for platforms where 'long double' == 'double'.
1344         * lib/frexpl.c: Include <config.h>.
1345         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1346         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1347         time.
1348         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1349         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1350         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1351         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1352         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1353         conditions.
1354
1355 2011-10-10  Jim Meyering  <meyering@redhat.com>
1356
1357         test-renameat: don't leave behind a temporary file
1358         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1359           ERROR: files left in build directory after distclean:
1360           ./gltests/test-renameat.too
1361           make[1]: *** [distcleancheck] Error 1
1362         Reported by Tom G. Christensen.
1363
1364 2011-10-09  Bruno Haible  <bruno@clisp.org>
1365
1366         rint: Determine RINT_LIBM correctly on AIX 7.
1367         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1368         directly, not only through a function pointer. Also accept an optional
1369         4th argument with extra code.
1370         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1371         rintf() call by gcc when optimizing.
1372
1373         mathfunc.m4: Refactor.
1374         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1375         m4 variable.
1376
1377 2011-10-09  Bruno Haible  <bruno@clisp.org>
1378
1379         rintl: Simplify for platforms where 'long double' == 'double'.
1380         * lib/rintl.c: Include <config.h>.
1381         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1382         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1383         time.
1384         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1385         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1386         * modules/rintl (Depends-on): Add rint. Update conditions.
1387
1388 2011-10-09  Bruno Haible  <bruno@clisp.org>
1389
1390         roundl: Simplify for platforms where 'long double' == 'double'.
1391         * lib/roundl.c: Include <config.h>.
1392         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1393         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1394         time.
1395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1396         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1397         * modules/roundl (Depends-on): Add round. Update conditions.
1398
1399 2011-10-09  Bruno Haible  <bruno@clisp.org>
1400
1401         truncl: Simplify for platforms where 'long double' == 'double'.
1402         * lib/truncl.c: Include <config.h>.
1403         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1404         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1405         time.
1406         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1407         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1408         * modules/truncl (Depends-on): Add trunc. Update conditions.
1409
1410 2011-10-09  Bruno Haible  <bruno@clisp.org>
1411
1412         ceill: Simplify for platforms where 'long double' == 'double'.
1413         * lib/ceill.c: Include <config.h>.
1414         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1415         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1416         time.
1417         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1418         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1419         * modules/ceill (Depends-on): Add ceil. Update conditions.
1420
1421 2011-10-09  Bruno Haible  <bruno@clisp.org>
1422
1423         floorl: Simplify for platforms where 'long double' == 'double'.
1424         * lib/floorl.c: Include <config.h>.
1425         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1426         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1427         time.
1428         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1429         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1430         * modules/floorl (Depends-on): Add floor. Update conditions.
1431
1432 2011-10-09  Bruno Haible  <bruno@clisp.org>
1433
1434         rint: Fix ordering constraints.
1435         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1436         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1437         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1438
1439 2011-10-09  Bruno Haible  <bruno@clisp.org>
1440
1441         copysignl: Simplify for platforms where 'long double' == 'double'.
1442         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1443         alternative.
1444         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1445         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1446         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1447
1448 2011-10-09  Bruno Haible  <bruno@clisp.org>
1449
1450         Tests for module 'rintl'.
1451         * modules/rintl-tests: New file.
1452         * tests/test-rintl.c: New file.
1453
1454         New module 'rintl'.
1455         * lib/math.in.h (rintl): New declaration.
1456         * lib/rintl.c: New file.
1457         * m4/rintl.m4: New file.
1458         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1460         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1461         * modules/rintl: New file.
1462         * tests/test-math-c++.cc: Check the declaration of rintl.
1463         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1464         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1465         * doc/posix-functions/rintl.texi: Mention the new module.
1466
1467 2011-10-09  Bruno Haible  <bruno@clisp.org>
1468
1469         Tests for module 'rintf'.
1470         * modules/rintf-tests: New file.
1471         * tests/test-rintf.c: New file.
1472
1473         New module 'rintf'.
1474         * lib/math.in.h (rintf): New declaration.
1475         * lib/rintf.c: New file.
1476         * m4/rintf.m4: New file.
1477         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1479         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1480         * modules/rintf: New file.
1481         * tests/test-math-c++.cc: Check the declaration of rintf.
1482         * doc/posix-functions/rintf.texi: Mention the new module.
1483
1484 2011-10-09  Bruno Haible  <bruno@clisp.org>
1485
1486         rint: Support for MSVC.
1487         * lib/math.in.h (rint): New declaration.
1488         * lib/rint.c: New file.
1489         * m4/rint.m4: New file.
1490         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1492         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1493         * modules/rint (Description): Fix.
1494         (Files): Add lib/rint.c, m4/rint.m4.
1495         (Depends-on): Add math.
1496         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1497         gl_MATH_MODULE_INDICATOR.
1498         * tests/test-math-c++.cc: Check the declaration of rint.
1499         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1500         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1501         * doc/posix-functions/rint.texi: Mention the replacement provided by
1502         the module.
1503
1504         rint tests: More tests.
1505         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1506         minus-zero.h, infinity.h, nan.h.
1507         (main): Skip the test if the current rounding mode is not standard. Add
1508         tests for negative numbers, minus zero, infinity, NaN.
1509         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1510         tests/nan.h.
1511         (Depends-on): Add isnand-nolibm.
1512
1513 2011-10-09  Bruno Haible  <bruno@clisp.org>
1514
1515         Tests for module 'copysignl'.
1516         * modules/copysignl-tests: New file.
1517         * tests/test-copysignl.c: New file.
1518
1519         New module 'copysignl'.
1520         * lib/math.in.h (copysignl): New declaration.
1521         * lib/copysignl.c: New file.
1522         * m4/copysignl.m4: New file.
1523         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1525         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1526         HAVE_COPYSIGNL.
1527         * modules/copysignl: New file.
1528         * tests/test-math-c++.cc: Check the declaration of copysignl.
1529         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1530         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1531         * doc/posix-functions/copysignl.texi: Mention the new module.
1532
1533 2011-10-09  Bruno Haible  <bruno@clisp.org>
1534
1535         Tests for module 'copysignf'.
1536         * modules/copysignf-tests: New file.
1537         * tests/test-copysignf.c: New file.
1538
1539         New module 'copysignf'.
1540         * lib/math.in.h (copysignf): New declaration.
1541         * lib/copysignf.c: New file.
1542         * m4/copysignf.m4: New file.
1543         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1545         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1546         HAVE_COPYSIGNF.
1547         * modules/copysignf: New file.
1548         * tests/test-math-c++.cc: Check the declaration of copysignf.
1549         * doc/posix-functions/copysignf.texi: Mention the new module.
1550
1551 2011-10-09  Bruno Haible  <bruno@clisp.org>
1552
1553         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1554         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1555         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1556         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1557         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1558         gl_SIGNAL_H_DEFAULTS.
1559
1560 2011-10-09  Bruno Haible  <bruno@clisp.org>
1561
1562         poll: Make macro safer.
1563         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1564         ac_cv_header_poll_h is not set.
1565
1566 2011-10-09  Bruno Haible  <bruno@clisp.org>
1567
1568         copysign: Provide replacement.
1569         * lib/math.in.h (copysign): New declaration.
1570         * lib/copysign.c: New file.
1571         * m4/copysign.m4: New file.
1572         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1574         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1575         HAVE_COPYSIGN.
1576         * modules/copysign (Description): Clarify.
1577         (Files): Add lib/copysign.c, m4/copysign.m4.
1578         (Depends-on): Add math, signbit.
1579         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1580         gl_MATH_MODULE_INDICATOR.
1581         * tests/test-math-c++.cc: Check the declaration of copysign.
1582         * doc/posix-functions/copysign.texi: Mention the effects of the module
1583         on Minix and MSVC.
1584
1585 2011-10-09  Bruno Haible  <bruno@clisp.org>
1586
1587         isinf: Ensure macro on AIX 5.1.
1588         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1589         macro.
1590         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1591
1592 2011-10-09  Bruno Haible  <bruno@clisp.org>
1593
1594         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1595         * modules/snprintf-posix-tests (configure.ac): Require
1596         gl_LONG_DOUBLE_VS_DOUBLE.
1597         * modules/sprintf-posix-tests (configure.ac): Likewise.
1598         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1599         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1600         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1601         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1602         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1603         tests on platforms where 'long double' is the same as 'double'.
1604         * tests/test-sprintf-posix.h (test_function): Likewise.
1605         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1606         * tests/test-vasprintf-posix.c (test_function): Likewise.
1607
1608         *printf: Fix for platforms where 'long double' == 'double'.
1609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1610         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1611         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1612         * modules/fprintf-posix (Files): Likewise.
1613         * modules/obstack-printf-posix (Files): Likewise.
1614         * modules/snprintf-posix (Files): Likewise.
1615         * modules/sprintf-posix (Files): Likewise.
1616         * modules/vasnprintf (Files): Likewise.
1617         * modules/vasnprintf-posix (Files): Likewise.
1618         * modules/vasprintf-posix (Files): Likewise.
1619         * modules/vdprintf-posix (Files): Likewise.
1620         * modules/vfprintf-posix (Files): Likewise.
1621         * modules/vsnprintf-posix (Files): Likewise.
1622         * modules/vsprintf-posix (Files): Likewise.
1623         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1624         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1625         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1626         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1627         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1628         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1629         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1630
1631         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1632         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1633         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1634         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1635         'long double'.
1636         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1637
1638         isinf: Fix for platforms where 'long double' == 'double'.
1639         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1640         Don't blindly assume 80-bit 'long double'.
1641
1642         isfinite: Fix for platforms where 'long double' == 'double'.
1643         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1644         Don't blindly assume 80-bit 'long double'.
1645
1646         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1647         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1648         * modules/isfinite-tests (configure.ac): Require
1649         gl_LONG_DOUBLE_VS_DOUBLE.
1650         * modules/isinf-tests (configure.ac): Likewise.
1651         * modules/isnan-tests (configure.ac): Likewise.
1652         * modules/isnanl-tests (configure.ac): Likewise.
1653         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1654         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1655         tests on platforms where 'long double' is the same as 'double'.
1656         * tests/test-isinf.c (test_isinfl): Likewise.
1657         * tests/test-isnan.c (test_long_double): Likewise.
1658         * tests/test-isnanl.h (main): Likewise.
1659
1660 2011-10-08  Bruno Haible  <bruno@clisp.org>
1661
1662         Tests for module 'tanhf'.
1663         * modules/tanhf-tests: New file.
1664         * tests/test-tanhf.c: New file.
1665
1666         New module 'tanhf'.
1667         * lib/math.in.h (tanhf): New declaration.
1668         * lib/tanhf.c: New file.
1669         * m4/tanhf.m4: New file.
1670         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1672         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1673         * modules/tanhf: New file.
1674         * tests/test-math-c++.cc: Check the declaration of tanhf.
1675         * doc/posix-functions/tanhf.texi: Mention the new module.
1676
1677         tanh: Use a .m4 file.
1678         * m4/tanh.m4: New file.
1679         * modules/tanh (Files): Add it.
1680         (configure.ac): Just invoke gl_FUNC_TANH.
1681
1682 2011-10-08  Bruno Haible  <bruno@clisp.org>
1683
1684         Tests for module 'coshf'.
1685         * modules/coshf-tests: New file.
1686         * tests/test-coshf.c: New file.
1687
1688         New module 'coshf'.
1689         * lib/math.in.h (coshf): New declaration.
1690         * lib/coshf.c: New file.
1691         * m4/coshf.m4: New file.
1692         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1694         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1695         * modules/coshf: New file.
1696         * tests/test-math-c++.cc: Check the declaration of coshf.
1697         * doc/posix-functions/coshf.texi: Mention the new module.
1698
1699         cosh: Use a .m4 file.
1700         * m4/cosh.m4: New file.
1701         * modules/cosh (Files): Add it.
1702         (configure.ac): Just invoke gl_FUNC_COSH.
1703
1704 2011-10-08  Bruno Haible  <bruno@clisp.org>
1705
1706         Tests for module 'sinhf'.
1707         * modules/sinhf-tests: New file.
1708         * tests/test-sinhf.c: New file.
1709
1710         New module 'sinhf'.
1711         * lib/math.in.h (sinhf): New declaration.
1712         * lib/sinhf.c: New file.
1713         * m4/sinhf.m4: New file.
1714         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1716         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1717         * modules/sinhf: New file.
1718         * tests/test-math-c++.cc: Check the declaration of sinhf.
1719         * doc/posix-functions/sinhf.texi: Mention the new module.
1720
1721         sinh: Use a .m4 file.
1722         * m4/sinh.m4: New file.
1723         * modules/sinh (Files): Add it.
1724         (configure.ac): Just invoke gl_FUNC_SINH.
1725
1726 2011-10-08  Bruno Haible  <bruno@clisp.org>
1727
1728         Tests for module 'atan2f'.
1729         * modules/atan2f-tests: New file.
1730         * tests/test-atan2f.c: New file.
1731
1732         New module 'atan2f'.
1733         * lib/math.in.h (atan2f): New declaration.
1734         * lib/atan2f.c: New file.
1735         * m4/atan2f.m4: New file.
1736         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1738         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1739         * modules/atan2f: New file.
1740         * tests/test-math-c++.cc: Check the declaration of atan2f.
1741         * doc/posix-functions/atan2f.texi: Mention the new module.
1742
1743         atan2: Use a .m4 file.
1744         * m4/atan2.m4: New file.
1745         * modules/atan2 (Files): Add it.
1746         (configure.ac): Just invoke gl_FUNC_ATAN2.
1747
1748 2011-10-08  Bruno Haible  <bruno@clisp.org>
1749
1750         Tests for module 'atanf'.
1751         * modules/atanf-tests: New file.
1752         * tests/test-atanf.c: New file.
1753
1754         New module 'atanf'.
1755         * lib/math.in.h (atanf): New declaration.
1756         * lib/atanf.c: New file.
1757         * m4/atanf.m4: New file.
1758         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1760         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1761         * modules/atanf: New file.
1762         * tests/test-math-c++.cc: Check the declaration of atanf.
1763         * doc/posix-functions/atanf.texi: Mention the new module.
1764
1765         atan: Use a .m4 file.
1766         * m4/atan.m4: New file.
1767         * modules/atan (Files): Add it.
1768         (configure.ac): Just invoke gl_FUNC_ATAN.
1769
1770 2011-10-08  Bruno Haible  <bruno@clisp.org>
1771
1772         Tests for module 'acosf'.
1773         * modules/acosf-tests: New file.
1774         * tests/test-acosf.c: New file.
1775
1776         New module 'acosf'.
1777         * lib/math.in.h (acosf): New declaration.
1778         * lib/acosf.c: New file.
1779         * m4/acosf.m4: New file.
1780         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1782         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1783         * modules/acosf: New file.
1784         * tests/test-math-c++.cc: Check the declaration of acosf.
1785         * doc/posix-functions/acosf.texi: Mention the new module.
1786
1787         acos: Use a .m4 file.
1788         * m4/acos.m4: New file.
1789         * modules/acos (Files): Add it.
1790         (configure.ac): Just invoke gl_FUNC_ACOS.
1791
1792 2011-10-08  Bruno Haible  <bruno@clisp.org>
1793
1794         Tests for module 'asinf'.
1795         * modules/asinf-tests: New file.
1796         * tests/test-asinf.c: New file.
1797
1798         New module 'asinf'.
1799         * lib/math.in.h (asinf): New declaration.
1800         * lib/asinf.c: New file.
1801         * m4/asinf.m4: New file.
1802         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1804         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1805         * modules/asinf: New file.
1806         * tests/test-math-c++.cc: Check the declaration of asinf.
1807         * doc/posix-functions/asinf.texi: Mention the new module.
1808
1809         asin: Use a .m4 file.
1810         * m4/asin.m4: New file.
1811         * modules/asin (Files): Add it.
1812         (configure.ac): Just invoke gl_FUNC_ASIN.
1813
1814 2011-10-08  Bruno Haible  <bruno@clisp.org>
1815
1816         Tests for module 'tanf'.
1817         * modules/tanf-tests: New file.
1818         * tests/test-tanf.c: New file.
1819
1820         New module 'tanf'.
1821         * lib/math.in.h (tanf): New declaration.
1822         * lib/tanf.c: New file.
1823         * m4/tanf.m4: New file.
1824         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1826         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1827         * modules/tanf: New file.
1828         * tests/test-math-c++.cc: Check the declaration of tanf.
1829         * doc/posix-functions/tanf.texi: Mention the new module.
1830
1831         tan: Use a .m4 file.
1832         * m4/tan.m4: New file.
1833         * modules/tan (Files): Add it.
1834         (configure.ac): Just invoke gl_FUNC_TAN.
1835
1836 2011-10-08  Bruno Haible  <bruno@clisp.org>
1837
1838         Tests for module 'cosf'.
1839         * modules/cosf-tests: New file.
1840         * tests/test-cosf.c: New file.
1841
1842         New module 'cosf'.
1843         * lib/math.in.h (cosf): New declaration.
1844         * lib/cosf.c: New file.
1845         * m4/cosf.m4: New file.
1846         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1848         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1849         * modules/cosf: New file.
1850         * tests/test-math-c++.cc: Check the declaration of cosf.
1851         * doc/posix-functions/cosf.texi: Mention the new module.
1852
1853         cos: Use a .m4 file.
1854         * m4/cos.m4: New file.
1855         * modules/cos (Files): Add it.
1856         (configure.ac): Just invoke gl_FUNC_COS.
1857
1858 2011-10-08  Bruno Haible  <bruno@clisp.org>
1859
1860         Tests for module 'sinf'.
1861         * modules/sinf-tests: New file.
1862         * tests/test-sinf.c: New file.
1863
1864         New module 'sinf'.
1865         * lib/math.in.h (sinf): New declaration.
1866         * lib/sinf.c: New file.
1867         * m4/sinf.m4: New file.
1868         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1870         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1871         * modules/sinf: New file.
1872         * tests/test-math-c++.cc: Check the declaration of sinf.
1873         * doc/posix-functions/sinf.texi: Mention the new module.
1874
1875         sin: Use a .m4 file.
1876         * m4/sin.m4: New file.
1877         * modules/sin (Files): Add it.
1878         (configure.ac): Just invoke gl_FUNC_SIN.
1879
1880 2011-10-08  Bruno Haible  <bruno@clisp.org>
1881
1882         Tests for module 'powf'.
1883         * modules/powf-tests: New file.
1884         * tests/test-powf.c: New file.
1885
1886         New module 'powf'.
1887         * lib/math.in.h (powf): New declaration.
1888         * lib/powf.c: New file.
1889         * m4/powf.m4: New file.
1890         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1892         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1893         * modules/powf: New file.
1894         * tests/test-math-c++.cc: Check the declaration of powf.
1895         * doc/posix-functions/powf.texi: Mention the new module.
1896
1897         pow: Use a .m4 file.
1898         * m4/pow.m4: New file.
1899         * modules/pow (Files): Add it.
1900         (configure.ac): Just invoke gl_FUNC_POW.
1901
1902 2011-10-08  Bruno Haible  <bruno@clisp.org>
1903
1904         Tests for module 'log10f'.
1905         * modules/log10f-tests: New file.
1906         * tests/test-log10f.c: New file.
1907
1908         New module 'log10f'.
1909         * lib/math.in.h (log10f): New declaration.
1910         * lib/log10f.c: New file.
1911         * m4/log10f.m4: New file.
1912         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1914         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1915         * modules/log10f: New file.
1916         * tests/test-math-c++.cc: Check the declaration of log10f.
1917         * doc/posix-functions/log10f.texi: Mention the new module.
1918
1919         log10: Use a .m4 file.
1920         * m4/log10.m4: New file.
1921         * modules/log10 (Files): Add it.
1922         (configure.ac): Just invoke gl_FUNC_LOG10.
1923
1924 2011-10-08  Bruno Haible  <bruno@clisp.org>
1925
1926         Tests for module 'logf'.
1927         * modules/logf-tests: New file.
1928         * tests/test-logf.c: New file.
1929
1930         New module 'logf'.
1931         * lib/math.in.h (logf): New declaration.
1932         * lib/logf.c: New file.
1933         * m4/logf.m4: New file.
1934         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1936         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1937         * modules/logf: New file.
1938         * tests/test-math-c++.cc: Check the declaration of logf.
1939         * doc/posix-functions/logf.texi: Mention the new module.
1940
1941         log: Use a .m4 file.
1942         * m4/log.m4: New file.
1943         * modules/log (Files): Add it.
1944         (configure.ac): Just invoke gl_FUNC_LOG.
1945
1946 2011-10-08  Bruno Haible  <bruno@clisp.org>
1947
1948         Tests for module 'expf'.
1949         * modules/expf-tests: New file.
1950         * tests/test-expf.c: New file.
1951
1952         New module 'expf'.
1953         * lib/math.in.h (expf): New declaration.
1954         * lib/expf.c: New file.
1955         * m4/expf.m4: New file.
1956         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1958         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1959         * modules/expf: New file.
1960         * tests/test-math-c++.cc: Check the declaration of expf.
1961         * doc/posix-functions/expf.texi: Mention the new module.
1962
1963         exp: Use a .m4 file.
1964         * m4/exp.m4: New file.
1965         * modules/exp (Files): Add it.
1966         (configure.ac): Just invoke gl_FUNC_EXP.
1967
1968 2011-10-08  Bruno Haible  <bruno@clisp.org>
1969
1970         Tests for module 'sqrtf'.
1971         * modules/sqrtf-tests: New file.
1972         * tests/test-sqrtf.c: New file.
1973
1974         New module 'sqrtf'.
1975         * lib/math.in.h (sqrtf): New declaration.
1976         * lib/sqrtf.c: New file.
1977         * m4/sqrtf.m4: New file.
1978         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1980         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1981         * modules/sqrtf: New file.
1982         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1983         * doc/posix-functions/sqrtf.texi: Mention the new module.
1984
1985 2011-10-08  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests: Avoid link failures w.r.t. libintl.
1988         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1989         $(LIBINTL).
1990         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1991         $(LIBINTL).
1992         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1993         against $(LIBINTL).
1994         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1995         $(LIBINTL).
1996         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1997         $(LIBINTL).
1998         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1999
2000 2011-10-08  Bruno Haible  <bruno@clisp.org>
2001
2002         pow tests: Defeat compiler optimizations.
2003         * tests/test-pow.c (main): Assign arguments to x and y before use.
2004
2005 2011-10-08  Bruno Haible  <bruno@clisp.org>
2006
2007         gnulib-tool: Improve last commit.
2008         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2009         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2010         ignore dependencies that are not among the modules list.
2011
2012 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         gnulib-tool: don't follow dependencies to avoided modules
2015         This fixes a bug that is related to the previous one.
2016         * gnulib-tool (func_modules_transitive_closure)
2017         (func_emit_autoconf_snippets):
2018         Check whether a dependency is acceptable before using it.
2019         (--extract-dependencies): Report an error if --avoid is also used,
2020         since this combination of options is not yet supported.
2021
2022         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2023         Problem reported by Peter Dyballa in
2024         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2025         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2026         when echoing "$condition".
2027
2028 2011-10-07  Bruno Haible  <bruno@clisp.org>
2029
2030         Fix documentation about math functions on MacOS X.
2031         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2032         MacOS X 10.5.
2033         * doc/posix-functions/fdim.texi: Likewise.
2034         * doc/posix-functions/feclearexcept.texi: Likewise.
2035         * doc/posix-functions/fegetenv.texi: Likewise.
2036         * doc/posix-functions/fegetround.texi: Likewise.
2037         * doc/posix-functions/feholdexcept.texi: Likewise.
2038         * doc/posix-functions/feraiseexcept.texi: Likewise.
2039         * doc/posix-functions/fesetenv.texi: Likewise.
2040         * doc/posix-functions/fesetround.texi: Likewise.
2041         * doc/posix-functions/fetestexcept.texi: Likewise.
2042         * doc/posix-functions/feupdateenv.texi: Likewise.
2043         * doc/posix-functions/fmax.texi: Likewise.
2044         * doc/posix-functions/fmin.texi: Likewise.
2045         * doc/posix-functions/log2.texi: Likewise.
2046         * doc/posix-functions/modff.texi: Likewise.
2047         * doc/posix-functions/nan.texi: Likewise.
2048         * doc/posix-functions/nanf.texi: Likewise.
2049         * doc/posix-functions/nextafterf.texi: Likewise.
2050         * doc/posix-functions/remquo.texi: Likewise.
2051
2052 2011-10-07  Bruno Haible  <bruno@clisp.org>
2053
2054         modff: Drop assumption about library that defines modff.
2055         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2056         AC_CHECK_FUNCS.
2057         * modules/modff (Files): Add m4/mathfunc.m4.
2058
2059 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2060
2061         raise tests: Avoid a GCC warning.
2062         * tests/test-raise.c (handler): Use _Noreturn.
2063
2064 2011-10-07  Bruno Haible  <bruno@clisp.org>
2065
2066         Tests for module 'ldexpf'.
2067         * modules/ldexpf-tests: New file.
2068         * tests/test-ldexpf.c: New file.
2069
2070         New module 'ldexpf'.
2071         * lib/math.in.h (ldexpf): New declaration.
2072         * lib/ldexpf.c: New file.
2073         * m4/ldexpf.m4: New file.
2074         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2076         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2077         * modules/ldexpf: New file.
2078         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2079         * doc/posix-functions/ldexpf.texi: Mention the new module.
2080
2081 2011-10-06  Bruno Haible  <bruno@clisp.org>
2082
2083         frexpf: Work around problems on IRIX and mingw.
2084         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2086         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2087         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2088         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2089         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2090         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2091
2092 2011-10-06  Bruno Haible  <bruno@clisp.org>
2093
2094         fabsf: Drop assumption about library that defines fabsf.
2095         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2096         AC_CHECK_FUNCS.
2097         * modules/fabsf (Files): Add m4/mathfunc.m4.
2098
2099 2011-10-06  Bruno Haible  <bruno@clisp.org>
2100
2101         frexpf: Drop assumption about library that defines frexpf.
2102         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2103         'int *', 'float *', 'long double *', 'float', 'long double'.
2104         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2105         AC_CHECK_FUNCS.
2106         * modules/frexpf (Files): Add m4/mathfunc.m4.
2107
2108         Tests for module 'frexpf'.
2109         * modules/frexpf-tests: New file.
2110         * tests/test-frexpf.c: New file.
2111
2112         New module 'frexpf'.
2113         * lib/math.in.h (frexpf): New declaration.
2114         * lib/frexpf.c: New file.
2115         * m4/frexpf.m4: New file.
2116         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2118         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2119         * modules/frexpf: New file.
2120         * tests/test-math-c++.cc: Check the declaration of frexpf.
2121         * doc/posix-functions/frexpf.texi: Mention the new module.
2122
2123 2011-10-06  Bruno Haible  <bruno@clisp.org>
2124
2125         math: Sort function declarations of math.in.h.
2126         * lib/math.in.h (frexp, logb): Move declarations.
2127
2128 2011-10-05  Bruno Haible  <bruno@clisp.org>
2129
2130         Tests for module 'modff'.
2131         * modules/modff-tests: New file.
2132         * tests/test-modff.c: New file.
2133
2134         New module 'modff'.
2135         * lib/math.in.h (modff): New declaration.
2136         * lib/modff.c: New file.
2137         * m4/modff.m4: New file.
2138         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2140         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2141         * modules/modff: New file.
2142         * tests/test-math-c++.cc: Check the declaration of modff.
2143         * doc/posix-functions/modff.texi: Mention the new module.
2144
2145         modf tests: Make test sharper.
2146         * tests/test-modf.c (main): Strengthen upper bound.
2147
2148         modf: Use a .m4 file.
2149         * m4/modf.m4: New file.
2150         * modules/modf (Files): Add it.
2151         (configure.ac): Just invoke gl_FUNC_MODF.
2152
2153 2011-10-05  Bruno Haible  <bruno@clisp.org>
2154
2155         Tests for module 'fmodf'.
2156         * modules/fmodf-tests: New file.
2157         * tests/test-fmodf.c: New file.
2158
2159         New module 'fmodf'.
2160         * lib/math.in.h (fmodf): New declaration.
2161         * lib/fmodf.c: New file.
2162         * m4/fmodf.m4: New file.
2163         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2165         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2166         * modules/fmodf: New file.
2167         * tests/test-math-c++.cc: Check the declaration of fmodf.
2168         * doc/posix-functions/fmodf.texi: Mention the new module.
2169
2170         fmod: Use a .m4 file.
2171         * m4/fmod.m4: New file.
2172         * modules/fmod (Files): Add it.
2173         (configure.ac): Just invoke gl_FUNC_FMOD.
2174
2175 2011-10-05  Bruno Haible  <bruno@clisp.org>
2176
2177         Tests for module 'fabsf'.
2178         * modules/fabsf-tests: New file.
2179         * tests/test-fabsf.c: New file.
2180
2181         New module 'fabsf'.
2182         * lib/math.in.h (fabsf): New declaration.
2183         * lib/fabsf.c: New file.
2184         * m4/fabsf.m4: New file.
2185         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2187         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2188         * modules/fabsf: New file.
2189         * tests/test-math-c++.cc: Check the declaration of fabsf.
2190         * doc/posix-functions/fabsf.texi: Mention the new module.
2191
2192         fabs: Use a .m4 file.
2193         * m4/fabs.m4: New file.
2194         * modules/fabs (Files): Add it.
2195         (configure.ac): Just invoke gl_FUNC_FABS.
2196
2197 2011-10-05  Jim Meyering  <meyering@redhat.com>
2198
2199         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2200         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2201         ls -lL regression introduced in coreutils-8.12, it does so at the
2202         cost of an additional stat call in the common case.  Besides, now
2203         that the kernel change that prompted commit 95f7c57f has been reverted
2204         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2205         we have no use for commit 95f7c57f, "file-has-acl: use
2206         acl_extended_file_nofollow if available".
2207
2208 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2209
2210         file-has-acl: revert unintended change in behavior of ls -L
2211         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2212         derived from...
2213         (file_has_acl): ...code here.  Call it.
2214         This problem was introduced with 2011-07-22 commit 95f7c57f,
2215         "file-has-acl: use acl_extended_file_nofollow if available".
2216         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2217
2218 2011-10-03  Bruno Haible  <bruno@clisp.org>
2219
2220         poll: Avoid link errors on MSVC.
2221         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2222         * modules/poll (Depends-on): Add sockets.
2223         (Link): New section.
2224         * NEWS: Mention the change.
2225         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2226         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2227         $(LIB_POLL) instead of $(LIBSOCKET).
2228
2229 2011-10-03  Bruno Haible  <bruno@clisp.org>
2230
2231         sys_select tests: Fix link error on MSVC 9.
2232         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2233         with $(LIB_SELECT) instead of $(LIBSOCKET).
2234
2235 2011-10-03  Bruno Haible  <bruno@clisp.org>
2236
2237         sys_select: Fix compilation error on mingw.
2238         * lib/sys_select.in.h: On native Windows, include <io.h>.
2239
2240 2011-10-03  Bruno Haible  <bruno@clisp.org>
2241
2242         wmemset: Support for MSVC.
2243         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2244         whether wmemset() exists.
2245
2246 2011-10-03  Bruno Haible  <bruno@clisp.org>
2247
2248         wmemmove: Support for MSVC.
2249         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2250         whether wmemmove() exists.
2251
2252 2011-10-03  Bruno Haible  <bruno@clisp.org>
2253
2254         wmemcpy: Support for MSVC.
2255         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2256         whether wmemcpy() exists.
2257
2258 2011-10-03  Bruno Haible  <bruno@clisp.org>
2259
2260         wmemcmp: Support for MSVC.
2261         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2262         whether wmemcmp() exists.
2263
2264 2011-10-03  Bruno Haible  <bruno@clisp.org>
2265
2266         wmemchr: Support for MSVC.
2267         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2268         whether wmemchr() exists.
2269
2270 2011-10-03  Bruno Haible  <bruno@clisp.org>
2271
2272         glthread/*, strsignal: Support for MSVC.
2273         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2274         including <winsock.h> on MSVC 9.
2275         * lib/glthread/lock.h: Likewise.
2276         * lib/glthread/thread.h: Likewise.
2277         * lib/glthread/tls.h: Likewise.
2278         * lib/glthread/yield.h: Likewise.
2279         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2280         if HAVE_UNISTD_H is false.
2281         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2282
2283 2011-10-03  Bruno Haible  <bruno@clisp.org>
2284
2285         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2286         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2287         Set to 100000.
2288
2289 2011-10-03  Bruno Haible  <bruno@clisp.org>
2290
2291         acl: Fix specification.
2292         * lib/file-has-acl.c (file_has_acl): Fix specification.
2293
2294 2011-10-03  Bruno Haible  <bruno@clisp.org>
2295
2296         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2297         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2298         (compute_curr_prefix, shared_library_fullname,
2299         find_shared_library_fullname, get_shared_library_fullname, relocate):
2300         Use it together with PIC && INSTALLDIR.
2301         Reported by <jojelino@gmail.com>
2302         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2303
2304 2011-10-01  Jim Meyering  <meyering@redhat.com>
2305
2306         maint.mk: adjust a release-related rule not to require use of gzip
2307         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2308         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2309         projects that build only .tar.xz files.  Also fix an erroneous test.
2310
2311         test-linkat: don't leave behind a temporary file
2312         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2313         Otherwise, coreutils' "make distcheck" would fail with this:
2314           Only in /c/cu/tests/torture/coreutils/test/\
2315             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2316           make[2]: *** [my-distcheck] Error 1
2317
2318         float, math: add omitted file
2319         * lib/itold.c: Add file, required for yesterday's float change.
2320
2321 2011-10-01  Bruno Haible  <bruno@clisp.org>
2322
2323         isinf: Fix for OpenBSD/x86.
2324         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2325         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2326         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2327
2328 2011-10-01  Bruno Haible  <bruno@clisp.org>
2329
2330         isfinite: Fix syntax error in configure test.
2331         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2332
2333         isfinite: Fix typo.
2334         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2335         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2336
2337 2011-10-01  Bruno Haible  <bruno@clisp.org>
2338
2339         nonblocking tests: Fix test failure on Linux/IA-64.
2340         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2341         Set to 270000.
2342
2343 2011-10-01  Bruno Haible  <bruno@clisp.org>
2344
2345         mkfifoat tests: Fix a test failure on mingw.
2346         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2347         with error ENOSYS.
2348
2349 2011-09-30  Bruno Haible  <bruno@clisp.org>
2350
2351         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2352         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2353         'long double'. Set REPLACE_ITOLD.
2354         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2355         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2356         * lib/itold.c: New file.
2357         * modules/float (Files): Add lib/itold.c.
2358         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2359         (Makefile.am): Substitute REPLACE_ITOLD.
2360         * modules/math (Depends-on): Add float.
2361         (Makefile.am): Substitute REPLACE_ITOLD.
2362         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2363         * doc/posix-headers/math.texi: Likewise.
2364         * doc/posix-functions/logl.texi: Likewise.
2365
2366 2011-09-30  Bruno Haible  <bruno@clisp.org>
2367
2368         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2369         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2370         Set to 140000.
2371
2372 2011-09-30  Bruno Haible  <bruno@clisp.org>
2373
2374         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2375         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2376         invocation, say "right after AC_PROG_CC_STDC", not "right after
2377         AC_PROG_CC".
2378         Reported by Gary V. Vaughan <gary@gnu.org>.
2379
2380 2011-09-30  Bruno Haible  <bruno@clisp.org>
2381
2382         Centralize C99 requirement.
2383         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2384         * modules/stdarg (configure.ac-early): Invoke it instead of
2385         AC_PROG_CC_STDC.
2386         Reported by Gary V. Vaughan and Paul Eggert.
2387
2388 2011-09-29  Bruno Haible  <bruno@clisp.org>
2389
2390         float: Fix LDBL_MAX value on Linux/PowerPC.
2391         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2392         on Linux/PowerPC.
2393         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2394         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2395         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2396         platform.
2397         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2398
2399 2011-09-29  Bruno Haible  <bruno@clisp.org>
2400
2401         doc: Improve doc about gl_EARLY.
2402         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2403         AC_PROG_CC_STDC invocation.
2404         Reported by Gary V. Vaughan <gary@gnu.org>.
2405
2406 2011-09-28  Bruno Haible  <bruno@clisp.org>
2407
2408         fgetc, fputc, fread, fwrite tests: Fix link error.
2409         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2410         on non-MSVC platforms.
2411         * tests/test-fputc.c (main): Likewise.
2412         * tests/test-fread.c (main): Likewise.
2413         * tests/test-fwrite.c (main): Likewise.
2414         Reported by Jim Meyering.
2415
2416 2011-09-27  Bruno Haible  <bruno@clisp.org>
2417
2418         fputc, fwrite tests: Avoid test failure on MSVC.
2419         * tests/test-fgetc.c: Include msvc-inval.h.
2420         (main): Invoke gl_msvc_inval_ensure_handler.
2421         * tests/test-fputc.c: Include msvc-inval.h.
2422         (main): Invoke gl_msvc_inval_ensure_handler.
2423         * tests/test-fread.c: Include msvc-inval.h.
2424         (main): Invoke gl_msvc_inval_ensure_handler.
2425         * tests/test-fwrite.c: Include msvc-inval.h.
2426         (main): Invoke gl_msvc_inval_ensure_handler.
2427         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2428         * modules/fputc-tests (Depends-on): Likewise.
2429         * modules/fread-tests (Depends-on): Likewise.
2430         * modules/fwrite-tests (Depends-on): Likewise.
2431
2432 2011-09-27  Bruno Haible  <bruno@clisp.org>
2433
2434         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2435         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2436         (raise): Remove older, duplicated declaration.
2437         (_gl_raise_SIGPIPE): New declaration.
2438         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2439         (rpl_raise): Remove function.
2440         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2441         a gnulib-defined SIGPIPE here.
2442         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2443         'sigprocmask' has detected missing signal-blocking and the module
2444         'sigpipe' is enabled.
2445         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2446
2447 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2448
2449         base64-tests: avoid memory leak
2450         * tests/test-base64.c (main): Plug memory leak.
2451
2452         base32: new module
2453         * modules/base32: New module.
2454         * lib/base32.c: New file.
2455         * lib/base32.h: Likewise.
2456         * m4/base32.m4: Likewise.
2457         * modules/base32-tests: New test.
2458         * tests/test-base32.c: Likewise.
2459         * MODULES.html.sh (Misc): Mention it.
2460
2461 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2462
2463         gnulib: use more-standard license notice wording
2464         * gnulib-tool (func_emit_copyright_notice): When emitting a
2465         license notice into a file, use the standard wording as suggested
2466         by the current information for GNU maintainers, except say "file"
2467         rather than "program".  The new wording gives a license version
2468         number, which addresses an issue raised by Glenn Morris in
2469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2470         * m4/onceonly.m4: Use that same wording here, too.
2471
2472         dup2: minor simplification
2473         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2474         as lib/dup2.c no longer uses 'inline'.
2475
2476 2011-09-25  Bruno Haible  <bruno@clisp.org>
2477
2478         strings: Fix compilation error on MSVC.
2479         * lib/strings.in.h: Include <stddef.h> for size_t.
2480
2481 2011-09-25  Bruno Haible  <bruno@clisp.org>
2482
2483         fflush et al.: Document limitation on MSVC.
2484         * doc/posix-functions/fflush.texi: Document possible crash in handling
2485         mode other than DEFAULT_HANDLING.
2486         * doc/posix-functions/fgetc.texi: Likewise.
2487         * doc/posix-functions/fputc.texi: Likewise.
2488         * doc/posix-functions/fread.texi: Likewise.
2489         * doc/posix-functions/fwrite.texi: Likewise.
2490
2491 2011-09-25  Bruno Haible  <bruno@clisp.org>
2492
2493         msvc-inval: Allow three invalid parameter handling modes.
2494         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2495         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2496         macros.
2497         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2498         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2499         SANE_LIBRARY_HANDLING as a no-op.
2500         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2501         <stdlib.h>.
2502         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2503
2504 2011-09-25  Bruno Haible  <bruno@clisp.org>
2505
2506         msvc-inval: Make handler multithread-safe.
2507         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2508         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2509         declarations.
2510         (gl_msvc_inval_current): New declaration.
2511         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2512         Operate on the structure returned by gl_msvc_inval_current().
2513         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2514         Remove varaiables.
2515         (tls_index, tls_initialized): New variables.
2516         (not_per_thread): New variable.
2517         (gl_msvc_inval_current): New function.
2518         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2519         returned by gl_msvc_inval_current().
2520
2521 2011-09-25  Bruno Haible  <bruno@clisp.org>
2522
2523         msvc-inval: Install handler globally.
2524         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2525         !_MSC_VER.
2526         (gl_msvc_invalid_parameter_handler): Remove declaration.
2527         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2528         declarations.
2529         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2530         Install the handler globally, don't uninstall it.
2531         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2532         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2533         currently valid, call RaiseException instead.
2534         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2535         for !_MSC_VER.
2536
2537 2011-09-25  Bruno Haible  <bruno@clisp.org>
2538
2539         strerror_r-posix: Fix for MSVC 9.
2540         * lib/strerror_r.c (local_snprintf): New function.
2541         (snprintf): Define to local_snprintf, not to _snprintf.
2542
2543 2011-09-25  Bruno Haible  <bruno@clisp.org>
2544
2545         ftruncate: Support for MSVC 9.
2546         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2547         (chsize_nothrow): New function.
2548         (chsize): Redefine as a macro.
2549         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2550         * modules/ftruncate (Depends-on): Add msvc-inval.
2551
2552 2011-09-25  Bruno Haible  <bruno@clisp.org>
2553
2554         New module 'fstat'.
2555         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2556         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2557         * lib/fchdir.c (rpl_fstat): Remove function.
2558         * m4/fstat.m4: New file.
2559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2561         declared.
2562         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2563         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2564         * modules/fstat: New file.
2565         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2566         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2567         is set.
2568         * doc/posix-functions/fstat.texi: Mention the new module and the
2569         problem on MSVC.
2570         * NEWS: Mention the change.
2571         * modules/acl (Depends-on): Add fstat.
2572         * modules/chdir-safer (Depends-on): Likewise.
2573         * modules/chown (Depends-on): Likewise.
2574         * modules/copy-file (Depends-on): Likewise.
2575         * modules/fchdir (Depends-on): Likewise.
2576         * modules/fdopendir (Depends-on): Likewise.
2577         * modules/fopen (Depends-on): Likewise.
2578         * modules/fts (Depends-on): Likewise.
2579         * modules/getcwd (Depends-on): Likewise.
2580         * modules/isapipe (Depends-on): Likewise.
2581         * modules/linkat (Depends-on): Likewise.
2582         * modules/lseek (Depends-on): Likewise.
2583         * modules/mkdir-p (Depends-on): Likewise.
2584         * modules/open (Depends-on): Likewise.
2585         * modules/openat (Depends-on): Likewise.
2586         * modules/read-file (Depends-on): Likewise.
2587         * modules/renameat (Depends-on): Likewise.
2588         * modules/utimens (Depends-on): Likewise.
2589
2590 2011-09-25  Bruno Haible  <bruno@clisp.org>
2591
2592         linkat: Fix compilation on MSVC 9.
2593         * lib/linkat.c: Don't include <stdint.h>.
2594
2595 2011-09-25  Bruno Haible  <bruno@clisp.org>
2596
2597         fclose: Support for MSVC 9.
2598         * lib/fclose.c: Include msvc-inval.h.
2599         (fclose_nothrow): New function.
2600         (rpl_fclose): Use it.
2601         * modules/fclose (Depends-on): Add msvc-inval.
2602         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2603
2604 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2605
2606         dup2: minor simplifications
2607         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2608         that it's a performance win.
2609         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2610         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2611
2612 2011-09-24  Jim Meyering  <meyering@redhat.com>
2613
2614         test-futimens: avoid a warning from gcc -Wshadow
2615         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2616         to avoid a shadowing warning.
2617
2618 2011-09-24  Bruno Haible  <bruno@clisp.org>
2619
2620         fdopen: Support for MSVC 9.
2621         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2622         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2623         * lib/fdopen.c: Include msvc-inval.h.
2624         (fdopen_nothrow): New function.
2625         (rpl_fdopen): Use it.
2626         * modules/fdopen (Depends-on): Add msvc-inval.
2627         * modules/fclose-tests (Depends-on): Add fdopen.
2628         * modules/fflush-tests (Depends-on): Likewise.
2629         * modules/fgetc-tests (Depends-on): Likewise.
2630         * modules/fputc-tests (Depends-on): Likewise.
2631         * modules/fread-tests (Depends-on): Likewise.
2632         * modules/freopen-tests (Depends-on): Likewise.
2633         * modules/fseeko-tests (Depends-on): Likewise.
2634         * modules/ftello-tests (Depends-on): Likewise.
2635         * modules/fwrite-tests  (Depends-on): Likewise.
2636         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2637
2638 2011-09-24  Bruno Haible  <bruno@clisp.org>
2639
2640         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2641         * modules/fgetc-tests (Depends-on): Add unistd.
2642         * modules/fputc-tests (Depends-on): Likewise.
2643         * modules/fread-tests (Depends-on): Likewise.
2644         * modules/fwrite-tests (Depends-on): Likewise.
2645
2646 2011-09-24  Bruno Haible  <bruno@clisp.org>
2647
2648         dup: Simplify autoconf test.
2649         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2650         on gl_MSVC_INVAL's result.
2651
2652 2011-09-24  Bruno Haible  <bruno@clisp.org>
2653
2654         Tests for function fwrite().
2655         * modules/fwrite-tests: New file.
2656         * tests/test-fwrite.c: New file.
2657         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2658
2659         Tests for function fread().
2660         * modules/fread-tests: New file.
2661         * tests/test-fread.c: New file.
2662         * modules/stdio-tests (Depends-on): Add fread-tests.
2663
2664         Activate fputc tests.
2665         * modules/stdio-tests (Depends-on): Add fputc-tests.
2666
2667         Enhance fgetc, fputc tests.
2668         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2669         * tests/test-fputc.c (main): Likewise.
2670
2671 2011-09-24  Bruno Haible  <bruno@clisp.org>
2672
2673         write: Support for MSVC 9.
2674         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2675         is not 1.
2676         * lib/write.c (write_nothrow): New function.
2677         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2678         not 1. Use write_nothrow.
2679         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2680         invalid parameter handler.
2681         (gl_PREREQ_WRITE): New macro.
2682         * modules/write (Depends-on): Add msvc-inval.
2683         (configure.ac): Invoke gl_PREREQ_WRITE.
2684         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2685
2686 2011-09-24  Bruno Haible  <bruno@clisp.org>
2687
2688         read: Fix last commit.
2689         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2690
2691 2011-09-24  Bruno Haible  <bruno@clisp.org>
2692
2693         dup2: Fix last commit.
2694         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2695         (rpl_dup2): Disable fcntl workaround on native Windows.
2696
2697         sigprocmask: Make code safer.
2698         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2699         section that changes macro definitions for this compilation unit.
2700
2701 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2702
2703         dup2: clarify by coalescing Windows-specific material
2704         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2705         "msvc-nothrow.h"' to the Windows-specific section, so that the
2706         Emacs source need not contain these include files.
2707         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2708         Windows-specific fixes into this function rather than just the
2709         nothrow fix, as this shortens and clarifies the code.  Always
2710         define as a function, as that's a bit cleaner than having it be
2711         sometimes a function and sometimes a macro.
2712         (rpl_dup2): Move the Windows-specific stuff out of here and into
2713         ms_windows_dup2.  Don't protect the Haiku-related fix with
2714         "#if !defined __linux__", as the same code also works around
2715         a Linux kernel bug, and it doesn't add any system calls on any
2716         platform.  Add comment about FreeBSD 6.1.
2717
2718         sigprocmask: move #include directive
2719         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2720         Windows-specific section, so that the Emacs source need not
2721         contain msvc-inval.h.
2722
2723 2011-09-23  Bruno Haible  <bruno@clisp.org>
2724
2725         read: Support for MSVC 9.
2726         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2727         is not 1.
2728         * lib/read.c (read_nothrow): New function.
2729         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2730         read_nothrow.
2731         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2732         invalid parameter handler.
2733         (gl_PREREQ_READ): New macro.
2734         * modules/read (Depends-on): Add msvc-inval.
2735         (configure.ac): Invoke gl_PREREQ_READ.
2736         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2737
2738 2011-09-23  Bruno Haible  <bruno@clisp.org>
2739
2740         close: Support for MSVC 9.
2741         * lib/close.c: Include <errno.h>, msvc-inval.h.
2742         (close_nothrow): New function.
2743         (rpl_close): Use it.
2744         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2745         invalid parameter handler.
2746         * modules/close (Depends-on): Add msvc-inval.
2747         * modules/dup2-tests (Depends-on): Add close.
2748         * modules/dup3-tests (Depends-on): Likewise.
2749         * modules/fcntl-tests (Depends-on): Likewise.
2750         * modules/spawn-pipe-tests (Depends-on): Likewise.
2751         * modules/unistd-safer-tests (Depends-on): Likewise.
2752         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2753
2754 2011-09-23  Bruno Haible  <bruno@clisp.org>
2755
2756         New module 'dup'.
2757         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2758         Allow replacement.
2759         * lib/dup.c: New file.
2760         * lib/fchdir.c (rpl_dup): Remove function.
2761         * m4/dup.m4: New file.
2762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2763         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2764         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2765         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2766         * modules/dup: New file.
2767         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2768         'dup' module is in use.
2769         * modules/fdopendir (Depends-on): Add dup.
2770         * modules/fdutimensat-tests (Depends-on): Likewise.
2771         * modules/fts (Depends-on): Likewise.
2772         * modules/futimens-tests (Depends-on): Likewise.
2773         * modules/posix_spawnp-tests (Depends-on): Likewise.
2774         * modules/unistd-safer-tests (Depends-on): Likewise.
2775         * modules/utimens-tests (Depends-on): Likewise.
2776         * doc/posix-functions/dup.texi: Mention the new module and the problem
2777         on MSVC.
2778
2779 2011-09-23  Bruno Haible  <bruno@clisp.org>
2780
2781         getdtablesize: Support for MSVC 9.
2782         * lib/getdtablesize.c: Include msvc-inval.h.
2783         (_setmaxstdio_nothrow): New function.
2784         (_setmaxstdio): Redefine it.
2785         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2786         * modules/getdtablesize (Depends-on): Add msvc-inval.
2787         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2788
2789 2011-09-23  Bruno Haible  <bruno@clisp.org>
2790
2791         signal-h: Rename from signal.
2792         * modules/signal-h: Renamed from modules/signal.
2793         * modules/pthread_sigmask (Depends-on): Update.
2794         * modules/raise (Depends-on): Likewise.
2795         * modules/sigaction (Depends-on): Likewise.
2796         * modules/sigpipe (Depends-on): Likewise.
2797         * modules/sigprocmask (Depends-on): Likewise.
2798         * modules/sys_select (Depends-on): Likewise.
2799         * modules/signal-h-tests: Renamed from modules/signal-tests.
2800         (Files, Depends-on, Makefile.am): Update.
2801         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2802         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2803         (Files, Makefile.am): Update.
2804         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2805         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2806         * modules/signal: New placeholder file.
2807         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2808         * doc/posix-headers/signal.texi: Update.
2809         * NEWS: Mention the change.
2810
2811 2011-09-23  Bruno Haible  <bruno@clisp.org>
2812
2813         sigprocmask: Avoid crashes through signal() on MSVC 9.
2814         * lib/sigprocmask.c: Include msvc-inval.h.
2815         (signal_nothrow): New function.
2816         (signal): Redefine it.
2817         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2818         * modules/sigprocmask (Depends-on): Add msvc-inval.
2819         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2820
2821 2011-09-23  Bruno Haible  <bruno@clisp.org>
2822
2823         Tests for module 'raise'.
2824         * modules/raise-tests: New file.
2825         * tests/test-raise.c: New file.
2826
2827         raise: Support for MSVC.
2828         * lib/signal.in.h (raise): New declaration.
2829         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2830         for native Windows platforms.
2831         * m4/raise.m4: New file.
2832         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2833         HAVE_RAISE, REPLACE_RAISE.
2834         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2835         REPLACE_RAISE.
2836         * modules/raise (Status, Notice): Remove fields.
2837         (Files): Add m4/raise.m4.
2838         (Depends-on): Add signal, msvc-inval.
2839         (configure.ac): Use the common idioms.
2840         (Maintainer): Add me.
2841         * tests/test-signal-c++.cc: Check the signature of raise.
2842         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2843
2844 2011-09-23  Bruno Haible  <bruno@clisp.org>
2845
2846         pipe2: Fix compilation on pre-C99 compilers.
2847         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2848
2849 2011-09-23  Bruno Haible  <bruno@clisp.org>
2850
2851         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2852         * lib/msvc-nothrow.h: New file.
2853         * lib/msvc-nothrow.c: New file.
2854         * m4/msvc-nothrow.m4: New file.
2855         * modules/msvc-nothrow: New file.
2856         * lib/dup2.c: Include msvc-nothrow.h.
2857         (rpl_dup2): No need to protect _get_osfhandle call here.
2858         * lib/accept4.c: Include msvc-nothrow.h.
2859         * lib/error.c: Likewise.
2860         * lib/fcntl.c: Likewise.
2861         * lib/lseek.c: Likewise.
2862         * lib/nonblocking.c: Likewise.
2863         * lib/poll.c: Likewise.
2864         * lib/read.c: Likewise.
2865         * lib/select.c: Likewise.
2866         * lib/sockets.h: Likewise.
2867         * lib/sockets.c: Likewise.
2868         * lib/stdio-read.c: Likewise.
2869         * lib/stdio-write.c: Likewise.
2870         * lib/write.c: Likewise.
2871         * lib/w32sock.h: Likewise.
2872         * lib/w32spawn.h: Likewise.
2873         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2874         * lib/fsync.c: Likewise.
2875         * lib/isapipe.c: Likewise.
2876         * modules/dup2 (Depends-on): Add msvc-nothrow.
2877         * modules/accept4 (Depends-on): Likewise.
2878         * modules/error (Depends-on): Likewise.
2879         * modules/fcntl (Depends-on): Likewise.
2880         * modules/lseek (Depends-on): Likewise.
2881         * modules/nonblocking (Depends-on): Likewise.
2882         * modules/poll (Depends-on): Likewise.
2883         * modules/read (Depends-on): Likewise.
2884         * modules/select (Depends-on): Likewise.
2885         * modules/sockets (Depends-on): Likewise.
2886         * modules/sigpipe (Depends-on): Likewise.
2887         * modules/write (Depends-on): Likewise.
2888         * modules/accept (Depends-on): Likewise.
2889         * modules/bind (Depends-on): Likewise.
2890         * modules/connect (Depends-on): Likewise.
2891         * modules/gethostname (Depends-on): Likewise.
2892         * modules/getpeername (Depends-on): Likewise.
2893         * modules/getsockname (Depends-on): Likewise.
2894         * modules/getsockopt (Depends-on): Likewise.
2895         * modules/ioctl (Depends-on): Likewise.
2896         * modules/listen (Depends-on): Likewise.
2897         * modules/recv (Depends-on): Likewise.
2898         * modules/recvfrom (Depends-on): Likewise.
2899         * modules/send (Depends-on): Likewise.
2900         * modules/sendto (Depends-on): Likewise.
2901         * modules/setsockopt (Depends-on): Likewise.
2902         * modules/shutdown (Depends-on): Likewise.
2903         * modules/socket (Depends-on): Likewise.
2904         * modules/execute (Depends-on): Likewise.
2905         * modules/spawn-pipe (Depends-on): Likewise.
2906         * modules/flock (Depends-on): Likewise.
2907         * modules/fsync (Depends-on): Likewise.
2908         * modules/isapipe (Depends-on): Likewise.
2909         * tests/test-cloexec.c: Include msvc-nothrow.h.
2910         * tests/test-dup-safer.c: Likewise.
2911         * tests/test-dup2.c: Likewise.
2912         * tests/test-dup3.c: Likewise.
2913         * tests/test-fcntl.c: Likewise.
2914         * tests/test-pipe.c: Likewise.
2915         * tests/test-pipe2.c: Likewise.
2916         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2917         * modules/unistd-safer-tests (Depends-on): Likewise.
2918         * modules/dup2-tests (Depends-on): Likewise.
2919         * modules/dup3-tests (Depends-on): Likewise.
2920         * modules/fcntl-tests (Depends-on): Likewise.
2921         * modules/pipe-posix-tests (Depends-on): Likewise.
2922         * modules/pipe2-tests (Depends-on): Likewise.
2923
2924 2011-09-23  Bruno Haible  <bruno@clisp.org>
2925
2926         dup2: Make code more maintainable.
2927         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2928         (rpl_dup2): Use it.
2929         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2930         * modules/dup2 (configure.ac): Invoke it.
2931         Reported by Paul Eggert.
2932
2933 2011-09-23  Bruno Haible  <bruno@clisp.org>
2934
2935         msvc-inval: Fix compilation error.
2936         * lib/msvc-inval.h: Include <excpt.h>.
2937
2938 2011-09-23  Bruno Haible  <bruno@clisp.org>
2939
2940         mkdir: Tweak for MSVC 9.
2941         * lib/sys_stat.in.h: Update comments.
2942         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2943
2944         Tests for module 'chdir'.
2945         * modules/chdir-tests: New file.
2946         * tests/test-chdir.c: New file.
2947
2948         New module 'chdir'.
2949         * modules/chdir: New file.
2950         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2951         (chdir): New declaration.
2952         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2953         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2954         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2955         * tests/test-unistd-c++.cc: Check signature of chdir.
2956         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2957         * modules/chdir-long (Depends-on): Add chdir.
2958         * modules/fchdir (Depends-on): Likewise.
2959         * modules/rename (Depends-on): Likewise.
2960         * modules/savewd (Depends-on): Likewise.
2961
2962         rmdir: Support for mingw, MSVC 9.
2963         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2964         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2965
2966         getcwd: Tweak for MSVC 9.
2967         * lib/unistd.in.h: Update comments.
2968         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2969
2970 2011-09-22  Bruno Haible  <bruno@clisp.org>
2971
2972         strerror_r-posix: Avoid a link error on MSVC.
2973         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2974         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2975
2976 2011-09-22  Bruno Haible  <bruno@clisp.org>
2977
2978         select: Avoid link errors on MSVC.
2979         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2980         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2981         * modules/pselect (Link): Likewise.
2982         * NEWS: Mention the change.
2983         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2984         test-select-stdin against $(LIB_SELECT).
2985         * modules/pselect-tests (Makefile.am): Link test-pselect against
2986         $(LIB_SELECT).
2987
2988 2011-09-22  Bruno Haible  <bruno@clisp.org>
2989
2990         select: Avoid compilation error on MSVC.
2991         * lib/select.c: Don't include <stdbool.h>.
2992
2993 2011-09-21  Bruno Haible  <bruno@clisp.org>
2994
2995         Consolidate all uses of PATH_MAX in *.m4 files.
2996         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2997         macros.
2998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2999         and gl_PATHMAX_SNIPPET.
3000         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3001         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3002         * modules/chdir-long (Files): Add m4/pathmax.m4.
3003         * modules/getcwd (Files): Likewise.
3004
3005 2011-09-21  Bruno Haible  <bruno@clisp.org>
3006
3007         ftruncate: Un-deprecate, concentrate on Win32 support.
3008         * modules/ftruncate (Status, Notice): Remove sections.
3009         (Depends-on): Add largefile.
3010         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3011         non-mingw platforms.
3012         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3013         include <io.h>.
3014         * modules/perror-tests (Depends-on): Add ftruncate.
3015         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3016         'ftruncate' module.
3017
3018 2011-09-21  Bruno Haible  <bruno@clisp.org>
3019
3020         Add dependencies to new dirent related modules.
3021         * modules/opendir (Depends-on): Add closedir.
3022         * modules/getcwd (Depends-on): Add opendir, closedir.
3023         * modules/dirent-safer-tests (Depends-on): Likewise.
3024         * modules/fdopendir-tests (Depends-on): Likewise.
3025         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3026         * modules/renameat-tests (Depends-on): Likewise.
3027
3028 2011-09-21  Bruno Haible  <bruno@clisp.org>
3029
3030         opendir: Avoid compilation error on mingw.
3031         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3032         * modules/opendir (Depends-on): Add unistd.
3033
3034 2011-09-21  Bruno Haible  <bruno@clisp.org>
3035
3036         ftruncate tests: Avoid a test failure on mingw.
3037         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3038
3039 2011-09-21  Bruno Haible  <bruno@clisp.org>
3040
3041         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3042         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3043         native Windows.
3044
3045 2011-09-21  Bruno Haible  <bruno@clisp.org>
3046
3047         New module 'fdopen'.
3048         * lib/stdio.in.h (fdopen): New declaration.
3049         * lib/fdopen.c: New file.
3050         * m4/fdopen.m4: New file.
3051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3052         REPLACE_FDOPEN.
3053         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3054         REPLACE_FDOPEN.
3055         * modules/fdopen: New file.
3056         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3057         * tests/test-stdio-c++.cc: Check signature of fdopen.
3058         * doc/posix-functions/fdopen.texi: Mention the new module.
3059
3060 2011-09-21  Bruno Haible  <bruno@clisp.org>
3061
3062         unlockpt tests: Avoid test failure on NetBSD 5.1.
3063         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3064         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3065
3066 2011-09-21  Bruno Haible  <bruno@clisp.org>
3067
3068         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3069         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3070         * tests/test-getlogin_r.c (main): Likewise.
3071
3072 2011-09-20  Bruno Haible  <bruno@clisp.org>
3073
3074         time tests: Don't require pid_t.
3075         * doc/posix-headers/time.texi: Revert last change.
3076         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3077         * tests/test-time.c: Comment out the check for pid_t.
3078
3079 2011-09-20  Bruno Haible  <bruno@clisp.org>
3080
3081         fsync tests: Avoid a test failure on mingw.
3082         * tests/test-fsync.c (main): Allow a failure with EIO.
3083
3084 2011-09-20  Bruno Haible  <bruno@clisp.org>
3085
3086         euidaccess: Update comments.
3087         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3088
3089 2011-09-20  Bruno Haible  <bruno@clisp.org>
3090
3091         Ensure EBADF returns for socket functions on mingw.
3092         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3093         descriptor is invalid.
3094         * lib/bind.c (rpl_bind): Likewise.
3095         * lib/connect.c (rpl_connect): Likewise.
3096         * lib/getpeername.c (rpl_getpeername): Likewise.
3097         * lib/getsockname.c (rpl_getsockname): Likewise.
3098         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3099         * lib/listen.c (rpl_listen): Likewise.
3100         * lib/recv.c (rpl_recv): Likewise.
3101         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3102         * lib/send.c (rpl_send): Likewise.
3103         * lib/sendto.c (rpl_sendto): Likewise.
3104         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3105         * lib/shutdown.c (rpl_shutdown): Likewise.
3106
3107 2011-09-20  Bruno Haible  <bruno@clisp.org>
3108
3109         select tests: EBADF tests.
3110         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3111         test_bad_fd): New functions.
3112         (test_function): Invoke also test_bad_fd.
3113
3114 2011-09-20  Bruno Haible  <bruno@clisp.org>
3115
3116         Tests for module 'posix_spawn_file_actions_addopen.
3117         * modules/posix_spawn_file_actions_addopen-tests: New file.
3118         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3119
3120         Tests for module 'posix_spawn_file_actions_adddup2'.
3121         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3122         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3123
3124         Tests for module 'posix_spawn_file_actions_addclose'.
3125         * modules/posix_spawn_file_actions_addclose-tests: New file.
3126         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3127
3128 2011-09-20  Bruno Haible  <bruno@clisp.org>
3129
3130         Tests for module 'unlockpt'.
3131         * modules/unlockpt-tests: New file.
3132         * tests/test-unlockpt.c: New file.
3133         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3134
3135         Tests for module 'grantpt'.
3136         * modules/grantpt-tests: New file.
3137         * tests/test-grantpt.c: New file.
3138         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3139
3140 2011-09-20  Bruno Haible  <bruno@clisp.org>
3141
3142         freopen tests: EBADF tests.
3143         * tests/test-freopen.c: Include errno.h, unistd.h.
3144         (main): Add tests for EBADF, commented out for the moment.
3145
3146         fclose tests: EBADF tests.
3147         * tests/test-fclose.c (main): Add tests for EBADF.
3148
3149         fflush tests: EBADF tests.
3150         * tests/test-fflush.c: Include errno.h, macros.h.
3151         (main): Add tests for EBADF.
3152
3153         ftello tests: EBADF tests.
3154         * tests/test-ftello4.sh: New file.
3155         * tests/test-ftello4.c: New file.
3156         * modules/ftello-tests (Files): Add them.
3157         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3158
3159         fseeko tests: EBADF tests.
3160         * tests/test-fseeko4.sh: New file.
3161         * tests/test-fseeko4.c: New file.
3162         * modules/fseeko-tests (Files): Add them.
3163         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3164
3165         Tests for function fputc().
3166         * modules/fputc-tests: New file.
3167         * tests/test-fputc.c: New file.
3168         * modules/stdio-tests (Depends-on): Add fputc-tests.
3169
3170         Tests for function fgetc().
3171         * modules/fgetc-tests: New file.
3172         * tests/test-fgetc.c: New file.
3173         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3174
3175         Tests for function fdopen().
3176         * modules/fdopen-tests: New file.
3177         * tests/test-fdopen.c: New file.
3178         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3179
3180         Tests for module 'vdprintf'.
3181         * modules/vdprintf-tests: New file.
3182         * tests/test-vdprintf.c: New file.
3183
3184         Tests for module 'dprintf'.
3185         * modules/dprintf-tests: New file.
3186         * tests/test-dprintf.c: New file.
3187
3188 2011-09-20  Bruno Haible  <bruno@clisp.org>
3189
3190         Tests for module 'ioctl'.
3191         * modules/ioctl-tests: New file.
3192         * tests/test-ioctl.c: New file.
3193
3194 2011-09-20  Bruno Haible  <bruno@clisp.org>
3195
3196         fcntl tests: EBADF tests.
3197         * tests/test-fcntl.c (main): Add more tests for EBADF.
3198
3199 2011-09-20  Bruno Haible  <bruno@clisp.org>
3200
3201         utimensat tests: EBADF tests.
3202         * tests/test-utimensat.c (main): Add tests for EBADF.
3203
3204         renameat tests: EBADF tests.
3205         * tests/test-renameat.c (main): Add tests for EBADF.
3206
3207         mkfifoat tests: EBADF tests.
3208         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3209
3210         readlinkat tests: EBADF tests.
3211         * tests/test-readlinkat.c (main): Add tests for EBADF.
3212
3213         symlinkat tests: EBADF tests.
3214         * tests/test-symlinkat.c (main): Add tests for EBADF.
3215
3216         linkat tests: EBADF tests.
3217         * tests/test-linkat.c (main): Add tests for EBADF.
3218
3219         Tests for module 'faccessat'.
3220         * modules/faccessat-tests: New file.
3221         * tests/test-faccessat.c: New file.
3222
3223         fdopendir tests: EBADF tests.
3224         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3225
3226         openat tests: EBADF tests.
3227         * tests/test-fchownat.c (main): Add tests for EBADF.
3228         * tests/test-fstatat.c (main): Likewise.
3229         * tests/test-mkdirat.c (main): Likewise.
3230         * tests/test-openat.c (main): Likewise.
3231         * tests/test-unlinkat.c (main): Likewise.
3232         * tests/test-fchmodat.c: New file.
3233         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3234         (Makefile.am): Also run 'test-fchmodat'.
3235
3236 2011-09-20  Bruno Haible  <bruno@clisp.org>
3237
3238         utimens, futimens, fdutimensat tests: EBADF tests.
3239         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3240
3241         Tests for function fstat().
3242         * modules/fstat-tests: New file.
3243         * tests/test-fstat.c: New file.
3244         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3245
3246 2011-09-20  Bruno Haible  <bruno@clisp.org>
3247
3248         test-ttyname_r tests: EBADF tests.
3249         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3250
3251         Tests for module 'isatty'.
3252         * modules/isatty-tests: New file.
3253         * tests/test-isatty.c: New file.
3254
3255         Tests for module 'write'.
3256         * modules/write-tests: New file.
3257         * tests/test-write.c: New file.
3258
3259         Tests for module 'read'.
3260         * modules/read-tests: New file.
3261         * tests/test-read.c: New file.
3262
3263         pwrite tests: EBADF tests.
3264         * tests/test-pwrite.c (main): Add tests for EBADF.
3265
3266         pread tests: EBADF tests.
3267         * tests/test-pread.c (main): Add tests for EBADF.
3268
3269         lseek tests: EBADF tests.
3270         * tests/test-lseek.c (main): Add more tests for EBADF.
3271
3272         Tests for module 'ftruncate'.
3273         * modules/ftruncate-tests: New file.
3274         * tests/test-ftruncate.sh: New file.
3275         * tests/test-ftruncate.c: New file.
3276
3277         fsync tests: EBADF tests.
3278         * tests/test-fsync.c (main): Add more tests for EBADF.
3279
3280         fdatasync tests: EBADF tests.
3281         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3282
3283         Tests for module 'fchown'.
3284         * modules/fchown-tests: New file.
3285         * tests/test-fchown.c: New file.
3286
3287         Tests for module 'fchmod'.
3288         * modules/fchmod-tests: New file.
3289         * tests/test-fchmod.c: New file.
3290
3291         fchdir tests: EBADF tests.
3292         * tests/test-fchdir.c (main): Add more tests for EBADF.
3293
3294         dup2 tests: EBADF tests.
3295         * tests/test-dup2.c (main): Add more tests for EBADF.
3296
3297         Tests for module 'dup'.
3298         * modules/dup-tests: New file.
3299         * tests/test-dup.c: New file.
3300
3301         Tests for module 'close'.
3302         * modules/close-tests: New file.
3303         * tests/test-close.c: New file.
3304
3305 2011-09-20  Bruno Haible  <bruno@clisp.org>
3306
3307         Tests for module 'shutdown'.
3308         * modules/shutdown-tests: New file.
3309         * tests/test-shutdown.c: New file.
3310
3311         Tests for module 'setsockopt'.
3312         * modules/setsockopt-tests: New file.
3313         * tests/test-setsockopt.c: New file.
3314
3315         Tests for module 'sendto'.
3316         * modules/sendto-tests: New file.
3317         * tests/test-sendto.c: New file.
3318
3319         Tests for module 'send'.
3320         * modules/send-tests: New file.
3321         * tests/test-send.c: New file.
3322
3323         Tests for module 'recvfrom'.
3324         * modules/recvfrom-tests: New file.
3325         * tests/test-recvfrom.c: New file.
3326
3327         Tests for module 'recv'.
3328         * modules/recv-tests: New file.
3329         * tests/test-recv.c: New file.
3330
3331         Tests for module 'listen'.
3332         * modules/listen-tests: New file.
3333         * tests/test-listen.c: New file.
3334
3335         Tests for module 'getsockopt'.
3336         * modules/getsockopt-tests: New file.
3337         * tests/test-getsockopt.c: New file.
3338
3339         Tests for module 'getsockname'.
3340         * modules/getsockname-tests: New file.
3341         * tests/test-getsockname.c: New file.
3342
3343         Tests for module 'getpeername'.
3344         * modules/getpeername-tests: New file.
3345         * tests/test-getpeername.c: New file.
3346
3347         Tests for module 'connect'.
3348         * modules/connect-tests: New file.
3349         * tests/test-connect.c: New file.
3350
3351         Tests for module 'bind'.
3352         * modules/bind-tests: New file.
3353         * tests/test-bind.c: New file.
3354
3355         accept4 tests: Fix for native Windows.
3356         * tests/test-accept4.c: Include sockets.h.
3357         (main): Invoke gl_sockets_startup.
3358         * modules/accept4-tests (Depends-on): Add sockets.
3359
3360         accept tests: Fix for native Windows.
3361         * tests/test-accept.c: Include sockets.h.
3362         (main): Invoke gl_sockets_startup.
3363         * modules/accept-tests (Depends-on): Add sockets.
3364
3365 2011-09-19  Bruno Haible  <bruno@clisp.org>
3366
3367         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3368         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3369         do...while(0).
3370         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3371         Suggested by Paul Eggert.
3372
3373 2011-09-19  Bruno Haible  <bruno@clisp.org>
3374
3375         sched: Ensure pid_t is defined.
3376         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3377         not define pid_t.
3378         * lib/sched.in.h: Include <sys/types.h>.
3379         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3381
3382 2011-09-19  Bruno Haible  <bruno@clisp.org>
3383
3384         msvc-inval: Ensure the entire expansion is a single statement.
3385         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3386         of braces.
3387
3388 2011-09-19  Jim Meyering  <meyering@redhat.com>
3389
3390         tests: use printf, not echo in init.sh's warn_ function
3391         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3392         misbehave when given strings containing a backslash or starting
3393         with e.g., -n.  James Youngman suggested setting IFS.
3394
3395 2011-09-19  Eric Blake  <eblake@redhat.com>
3396
3397         futimens: enhance test
3398         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3399         closed non-negative fd.
3400
3401         date: accept 'hence' as opposite of 'ago'
3402         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3403         * tests/test-parse-datetime.c (main): Enhance test.
3404         Suggested by Jesse Wilson.
3405
3406 2011-09-19  Jim Meyering  <meyering@redhat.com>
3407
3408         getcwd: don't fail in a deep directory on a system without openat
3409         Before this change, getcwd would fail when called from a directory
3410         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3411         the non-openat implementation used "..", "../..", "../../..", etc.
3412         to access ancestor directories.  With too many, that string would
3413         be longer than PATH_MAX.
3414         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3415         using gnulib's openat replacement.
3416         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3417         we're using the replacement function.
3418
3419 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3420
3421         maint.mk: avoid warnings from perl about missing files
3422         * top/maint.mk (def_sym_regex): Ignore files listed in
3423         $(gl_other_headers_) that do not exist, say because a project
3424         does not use a corresponding module.
3425
3426 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3427
3428         stat: use pathmax.h only if needed
3429         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3430         This is better for Emacs, which does not have a mingw port and
3431         therefore can avoid the pathmax module.
3432
3433         utimens: remove dependency on dup2
3434         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3435         to work around the Linux kernel bug.
3436         * modules/utimens (Depends-on): Remove dup2.
3437
3438 2011-09-18  Bruno Haible  <bruno@clisp.org>
3439
3440         inet_ntop, inet_pton: Look for it also in libresolv.
3441         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3442         libnsl, search for it in libresolv.
3443         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3444         Needed on Solaris 7.
3445
3446 2011-09-18  Bruno Haible  <bruno@clisp.org>
3447
3448         accept, accept4 tests: Avoid link error on Solaris.
3449         * modules/accept-tests (Makefile.am): Link test-accept against
3450         $(LIBSOCKET).
3451         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3452         $(LIBSOCKET).
3453
3454         accept4: Avoid link error on Solaris.
3455         * modules/accept4 (Link): New section.
3456
3457         socket functions: Avoid link errors on Solaris.
3458         * modules/accept (Depends-on): Add socketlib.
3459         (Link): New section.
3460         * modules/bind (Depends-on): Add socketlib.
3461         (Link): New section.
3462         * modules/connect (Depends-on): Add socketlib.
3463         (Link): New section.
3464         * modules/getpeername (Depends-on): Add socketlib.
3465         (Link): New section.
3466         * modules/getsockname (Depends-on): Add socketlib.
3467         (Link): New section.
3468         * modules/getsockopt (Depends-on): Add socketlib.
3469         (Link): New section.
3470         * modules/listen (Depends-on): Add socketlib.
3471         (Link): New section.
3472         * modules/recv (Depends-on): Add socketlib.
3473         (Link): New section.
3474         * modules/recvfrom (Depends-on): Add socketlib.
3475         (Link): New section.
3476         * modules/send (Depends-on): Add socketlib.
3477         (Link): New section.
3478         * modules/sendto (Depends-on): Add socketlib.
3479         (Link): New section.
3480         * modules/setsockopt (Depends-on): Add socketlib.
3481         (Link): New section.
3482         * modules/shutdown (Depends-on): Add socketlib.
3483         (Link): New section.
3484         * modules/socket (Depends-on): Add socketlib.
3485         (Link): New section.
3486
3487 2011-09-18  Bruno Haible  <bruno@clisp.org>
3488
3489         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3490         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3491         than 5 seconds.
3492         * modules/ptsname-tests (configure.ac): Test for alarm.
3493
3494 2011-09-18  Bruno Haible  <bruno@clisp.org>
3495
3496         posix_spawn_file_actions_add*: Fix module dependencies.
3497         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3498         posix_spawn_file_actions_init.
3499         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3500         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3501
3502 2011-09-18  Bruno Haible  <bruno@clisp.org>
3503
3504         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3505         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3506         * tests/test-renameat.c (main): Likewise.
3507
3508 2011-09-18  Bruno Haible  <bruno@clisp.org>
3509
3510         Tests for module 'accept4'.
3511         * modules/accept4-tests: New file.
3512         * tests/test-accept4.c: New file.
3513
3514 2011-09-18  Bruno Haible  <bruno@clisp.org>
3515
3516         Tests for module 'accept'.
3517         * modules/accept-tests: New file.
3518         * tests/test-accept.c: New file.
3519
3520 2011-09-18  Bruno Haible  <bruno@clisp.org>
3521
3522         dup2: Support for MSVC.
3523         * lib/dup2.c: Include msvc-inval.h.
3524         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3525         _get_osfhandle calls.
3526         * modules/dup2 (Depends-on): Add msvc-inval.
3527         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3528
3529         New module 'msvc-inval'.
3530         * lib/msvc-inval.h: New file.
3531         * lib/msvc-inval.c: New file.
3532         * m4/msvc-inval.m4: New file.
3533         * modules/msvc-inval: New file.
3534
3535 2011-09-17  Bruno Haible  <bruno@clisp.org>
3536
3537         Tests for module 'pclose'.
3538         * modules/pclose-tests: New file.
3539
3540         New module 'pclose'.
3541         * lib/stdio.in.h (pclose): New declaration.
3542         * lib/pclose.c: New file.
3543         * m4/pclose.m4: New file.
3544         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3545         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3546         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3547         * modules/pclose: New file.
3548         * modules/popen-tests (Depends-on): Add pclose.
3549         * modules/popen-safer-tests (Depends-on): Likewise.
3550         * doc/posix-functions/pclose.texi: Mention the new module.
3551
3552 2011-09-17  Bruno Haible  <bruno@clisp.org>
3553
3554         popen: Support for MSVC.
3555         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3556         * lib/popen.c (popen): Provide alternate definition for native Windows.
3557         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3559         * modules/popen (Depends-on, configure.ac): Update condition.
3560         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3561         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3562         fixed.
3563
3564 2011-09-17  Bruno Haible  <bruno@clisp.org>
3565
3566         isnanl, isnand, isnanf: Work around MSVC bug.
3567         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3568
3569 2011-09-17  Bruno Haible  <bruno@clisp.org>
3570
3571         sys_socket tests: Fix recent mistake.
3572         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3573
3574 2011-09-17  Bruno Haible  <bruno@clisp.org>
3575
3576         putenv: Support for MSVC.
3577         * modules/putenv (Depends-on): Add environ.
3578         * lib/putenv.c (environ): Disable declaration.
3579         * lib/unistd.in.h: Update comment.
3580
3581 2011-09-17  Bruno Haible  <bruno@clisp.org>
3582
3583         math: Avoid macro redefinition warnings on MSVC.
3584         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3585         Undefine before redefining.
3586
3587 2011-09-17  Bruno Haible  <bruno@clisp.org>
3588
3589         doc: Mention functions which are declared as macros.
3590         * doc/posix-functions/*[fl].texi: Mention that some functions are
3591         defined as macros with arguments only.
3592
3593 2011-09-17  Bruno Haible  <bruno@clisp.org>
3594
3595         Add dependencies to new dirent related modules.
3596         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3597         * modules/fts (Depends-on): Likewise.
3598         * modules/glob (Depends-on): Likewise.
3599         * modules/savedir (Depends-on): Likewise.
3600         * modules/scandir (Depends-on): Likewise.
3601         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3602         * modules/fdopendir (Depends-on): Add opendir.
3603
3604 2011-09-17  Bruno Haible  <bruno@clisp.org>
3605
3606         inet_pton: Support for MSVC on Windows Vista or newer.
3607         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3608         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3609         HAVE_DECL_INET_PTON is defined.
3610         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3611         On platforms with <winsock2.h>, test whether inet_pton is declared in
3612         <ws2tcpip.h>. If so, arrange to replace it.
3613         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3614         REPLACE_INET_PTON.
3615         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3616         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3617         (Depends-on, configure.ac): Update condition.
3618         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3619
3620 2011-09-17  Bruno Haible  <bruno@clisp.org>
3621
3622         inet_ntop: Support for MSVC on Windows Vista or newer.
3623         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3624         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3625         HAVE_DECL_INET_NTOP is defined.
3626         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3627         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3628         <ws2tcpip.h>. If so, arrange to replace it.
3629         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3630         REPLACE_INET_NTOP.
3631         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3632         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3633         (Depends-on, configure.ac): Update condition.
3634         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3635
3636 2011-09-16  Eric Blake  <eblake@redhat.com>
3637
3638         test-fsync: yet another enhancement
3639         * tests/test-fsync.c (main): Also test behavior on read-only text
3640         file.
3641
3642 2011-09-16  Bruno Haible  <bruno@clisp.org>
3643
3644         Enhance fsync, fdatasync tests.
3645         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3646         * tests/test-fdatasync.c (main): Likewise.
3647
3648 2011-09-16  Bruno Haible  <bruno@clisp.org>
3649
3650         Support for MSVC compiler: Ensure mode_t gets defined.
3651         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3652         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3654         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3655         * tests/test-fcntl-h.c: Check that mode_t is defined.
3656         * tests/test-sys_stat.c: Likewise.
3657         * tests/test-sys_types.c: Likewise.
3658         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3659         * doc/posix-headers/sys_stat.texi: Likewise.
3660         * doc/posix-headers/sys_types.texi: Likewise.
3661
3662 2011-09-16  Bruno Haible  <bruno@clisp.org>
3663
3664         sys_stat: Support for MSVC.
3665         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3666         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3667         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3668         MSVC.
3669
3670 2011-09-16  Bruno Haible  <bruno@clisp.org>
3671
3672         Support for MSVC compiler: Ensure off_t gets defined.
3673         * lib/unistd.in.h: Include <sys/types.h>.
3674         * tests/test-fcntl-h.c: Check that off_t is defined.
3675         * tests/test-sys_stat.c: Likewise.
3676         * tests/test-sys_types.c: Likewise.
3677
3678 2011-09-16  Eric Blake  <eblake@redhat.com>
3679
3680         fdatasync: port to Solaris
3681         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3682         * modules/fdatasync (Link): Document it.
3683         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3684
3685         fdatasync: port to MacOS X 10.7
3686         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3687         declared.
3688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3689         * modules/unistd (Makefile.am): Substitute it.
3690         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3691         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3692
3693         fdatasync: minor improvements
3694         * modules/fdatasync (Depends-on): Add condition for fsync.
3695         * lib/fdatasync.c (fdatasync): Add comment.
3696         * tests/test-unistd-c++.cc: Test fdatasync.
3697
3698         unistd: update refs to newer POSIX
3699         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3700         Suggested by Bruno Haible.
3701
3702         fdatasync: new module
3703         * modules/fsync (Description): Document difference to fdatasync.
3704         * modules/fdatasync: New module.
3705         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3706         * lib/fdatasync.c (fdatasync): Likewise.
3707         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3708         defaults.
3709         * modules/unistd (Makefile.am): Set witnesses.
3710         * lib/unistd.in.h (fdatasync): Declare.
3711         * MODULES.html.sh: Document it.
3712         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3713         * modules/fdatasync-tests: New test.
3714         * tests/test-fdatasync.c: Likewise.
3715
3716 2011-09-16  Eric Blake  <eblake@redhat.com>
3717
3718         test-fsync: enhance tests
3719         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3720         * tests/test-fsync.c (main): Enhance test.
3721
3722 2011-09-15  Bruno Haible  <bruno@clisp.org>
3723
3724         Support for MSVC compiler: Ensure ssize_t gets defined.
3725         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3726         * doc/posix-headers/stdio.texi: Likewise.
3727         * modules/stdio (Depends-on): Add ssize_t.
3728         * modules/sys_socket (Depends-on): Likewise.
3729         * modules/sys_types (Depends-on): Likewise.
3730         * modules/sys_uio (Depends-on): Likewise.
3731         * modules/unistd (Depends-on): Likewise.
3732         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3733         * tests/test-sys_types.c: Check that ssize_t is defined.
3734
3735 2011-09-14  Bruno Haible  <bruno@clisp.org>
3736
3737         Avoid using #, the m4 comment starter character, near brackets.
3738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3739         delimiter character in sed expressions.
3740         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3741         Suggested by Eric Blake.
3742
3743         Properly quote AC_CHECK_DECLS' 4th argument.
3744         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3745         argument.
3746         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3747         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3749         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3750         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3751         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3753         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3754         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3755         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3756         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3757         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3758         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3759         * m4/isinf.m4 (gl_ISINF): Likewise.
3760         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3761         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3762         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3763         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3765         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3766         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3767         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3768         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3769         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3770         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3771         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3773         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3775         Reported by Eric Blake.
3776
3777         Properly quote AC_CHECK_DECL's 4th argument.
3778         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3779         argument.
3780         * m4/argp.m4 (gl_ARGP): Likewise.
3781         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3782         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3783         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3784         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3785         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3786         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3788         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3790         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3791         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3792         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3793         Reported by Eric Blake.
3794
3795 2011-09-14  Eric Blake  <eblake@redhat.com>
3796
3797         opendir: avoid compile warning
3798         * lib/opendir.c (includes): Always include errno.h.
3799         Reported by Tatsuro MATSUOKA.
3800
3801 2011-09-14  Jim Meyering  <meyering@redhat.com>
3802
3803         maint.mk: sc_tight_scope: propagate failure from sub-make
3804         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3805         Reported by Martin von Gagern.
3806
3807 2011-09-13  Bruno Haible  <bruno@clisp.org>
3808
3809         tempname: Support for MSVC.
3810         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3811         MSVC.
3812         * modules/tempname (Depends-on): Add fcntl-h.
3813
3814 2011-09-13  Bruno Haible  <bruno@clisp.org>
3815
3816         sys_time: Support for MSVC.
3817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3818         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3819         include <winsock2.h>.
3820         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3821         function declarations that collide with POSIX.
3822         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3823         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3824
3825 2011-09-13  Bruno Haible  <bruno@clisp.org>
3826
3827         stat: Support for MSVC.
3828         * lib/stat.c: Include pathmax.h.
3829         * modules/stat (Depends-on): Add pathmax.
3830
3831         pathmax: Support for native Windows.
3832         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3833
3834 2011-09-12  Bruno Haible  <bruno@clisp.org>
3835
3836         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3837         * lib/dirent.in.h (struct dirent): New type.
3838         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3839         DT_WHT): New macros.
3840         (DIR): New type.
3841         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3842         (readdir, rewinddir): New declarations.
3843         * lib/dirent-private.h: New file.
3844         * lib/opendir.c: New file.
3845         * lib/readdir.c: New file.
3846         * lib/rewinddir.c: New file.
3847         * lib/closedir.c: New file.
3848         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3849         * m4/opendir.m4: New file.
3850         * m4/readdir.m4: New file.
3851         * m4/rewinddir.m4: New file.
3852         * m4/closedir.m4: New file.
3853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3854         REPLACE_CLOSEDIR here.
3855         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3856         readdir, rewinddir are declared.
3857         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3858         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3859         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3860         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3861         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3862         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3863         * modules/opendir: New file.
3864         * modules/readdir: New file.
3865         * modules/rewinddir: New file.
3866         * modules/closedir: New file.
3867         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3868         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3869         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3870         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3871         * NEWS: Mention the 'fchdir' change.
3872
3873 2011-09-11  Bruno Haible  <bruno@clisp.org>
3874
3875         asm-underscore.m4: Support for MSVC.
3876         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3877         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3878
3879 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3880
3881         Doc about crypt functions.
3882         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3883         needing for _GNU_SOURCE to get crypt.
3884         * doc/posix-functions/encrypt.texi: Likewise.
3885         * doc/posix-functions/setkey.texi: Likewise.
3886
3887 2011-09-11  Bruno Haible  <bruno@clisp.org>
3888
3889         doc: Update regarding MSVC 9.
3890         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3891         tested".
3892         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3893         * doc/posix-headers/*.texi: Likewise.
3894         * doc/pastposix-functions/*.texi: Likewise.
3895         * doc/glibc-functions/*.texi: Likewise.
3896         * doc/glibc-headers/*.texi: Likewise.
3897
3898 2011-09-11  Bruno Haible  <bruno@clisp.org>
3899
3900         unistd et al.: Don't assume <unistd.h> exists.
3901         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3902         does not exist.
3903         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3904         exist. But include <stdlib.h>.
3905         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3906         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3907         symlink() does not exist.
3908         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3909         include <io.h> instead.
3910         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3911         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3912         include <direct.h> instead.
3913         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3915         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3916         <io.h> instead.
3917         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3918         correctly if the system does not have hard links.
3919         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3920         <direct.h> instead.
3921         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3922         it when looking for function declarations.
3923         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3924         <direct.h> and <io.h> instead.
3925         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3926
3927 2011-09-11  Bruno Haible  <bruno@clisp.org>
3928
3929         strcase: Support for MSVC.
3930         * modules/strcase (Status, Notice): Remove obsoletion mark.
3931         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3932         * doc/posix-functions/strncasecmp.texi: Likewise.
3933
3934         strings: Don't assume <strings.h> exists.
3935         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3936         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3937         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3938         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3939
3940 2011-09-11  Bruno Haible  <bruno@clisp.org>
3941
3942         dirent: Don't assume <dirent.h> exists.
3943         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3944         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3945         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3946         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3947
3948 2011-09-11  Bruno Haible  <bruno@clisp.org>
3949
3950         Fix wint_t on MSVC.
3951         * lib/wchar.in.h (wint_t): On MSVC, override it.
3952         * lib/wctype.in.h (wint_t): Likewise.
3953         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3954         MSVC.
3955         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3956         * doc/posix-headers/wctype.texi: Likewise.
3957
3958 2011-09-11  Bruno Haible  <bruno@clisp.org>
3959
3960         sys_types: Fix typo.
3961         * lib/sys_types.in.h: Fix typo in comment.
3962         Reported by Paul Eggert.
3963
3964         Support for MSVC compiler: Ensure size_t gets defined.
3965         * modules/strings (Depends-on): Add 'sys_types'.
3966         * modules/sys_uio (Depends-on): Likewise.
3967         * lib/sys_uio.in.h: Update comment.
3968
3969         C++ tests for module 'sys_types'.
3970         * modules/sys_types-c++-tests: New file.
3971         * tests/test-sys_types-c++.cc: New file.
3972
3973         Tests for module 'sys_types'.
3974         * modules/sys_types-tests: New file.
3975         * tests/test-sys_types.c: New file.
3976
3977         New module 'sys_types'.
3978         * lib/sys_types.in.h: New file.
3979         * m4/sys_types_h.m4: New file.
3980         * modules/sys_types: New file.
3981         * doc/posix-headers/sys_types.texi: Mention the new module and the
3982         size_t problem on MSVC 9.
3983
3984 2011-09-11  Bruno Haible  <bruno@clisp.org>
3985
3986         Support for MSVC compiler: Avoid division by a literal 0.
3987         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3988         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3989         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3990         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3991         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3992         * tests/infinity.h: New file.
3993         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3994         on MSVC.
3995         * tests/test-ceilf1.c: Include infinity.h.
3996         (main): Use Infinityf.
3997         * tests/test-ceil1.c: Include infinity.h.
3998         (main): Use Infinityd.
3999         * tests/test-ceill.c: Include infinity.h.
4000         (main): Use Infinityl.
4001         * tests/test-dprintf-posix.c: Include infinity.h.
4002         (test_function): Use Infinityd.
4003         * tests/test-floorf1.c: Include infinity.h.
4004         (main): Use Infinityf.
4005         * tests/test-floor1.c: Include infinity.h.
4006         (main): Use Infinityd.
4007         * tests/test-floorl.c: Include infinity.h.
4008         (main): Use Infinityl.
4009         * tests/test-fprintf-posix.c: Include infinity.h.
4010         (test_function): Use Infinityd.
4011         * tests/test-frexp.c: Include infinity.h.
4012         (main): Use Infinityd.
4013         * tests/test-frexpl.c: Include infinity.h.
4014         (main): Use Infinityl.
4015         * tests/test-isfinite.c: Include infinity.h.
4016         (test_isfinitef): Use Infinityf.
4017         (test_isfinited): Use Infinityd.
4018         (test_isfinitel): Use Infinityl.
4019         * tests/test-isinf.c: Include infinity.h.
4020         (test_isinff): Use Infinityf.
4021         (test_isinfd): Use Infinityd.
4022         (test_isinfl): Use Infinityl.
4023         * tests/test-isnan.c: Include infinity.h.
4024         (test_float): Use Infinityf.
4025         (test_double): Use Infinityd.
4026         (test_long_double): Use Infinityl.
4027         * tests/test-isnanf.h: Include infinity.h.
4028         (main): Use Infinityf.
4029         * tests/test-isnand.h: Include infinity.h.
4030         (main): Use Infinityd.
4031         * tests/test-isnanl.h: Include infinity.h.
4032         (main): Use Infinityl.
4033         * tests/test-ldexpl.c: Include infinity.h.
4034         (main): Use Infinityl.
4035         * tests/test-printf-posix.h: Include infinity.h.
4036         (test_function): Use Infinityd.
4037         * tests/test-roundf1.c: Include infinity.h.
4038         (main): Use Infinityf.
4039         * tests/test-round1.c: Include infinity.h.
4040         (main): Use Infinityd.
4041         * tests/test-roundl.c: Include infinity.h.
4042         (main): Use Infinityl.
4043         * tests/test-signbit.c: Include infinity.h.
4044         (test_signbitf): Use Infinityf.
4045         (test_signbitd): Use Infinityd.
4046         (test_signbitl): Use Infinityl.
4047         * tests/test-snprintf-posix.h: Include infinity.h.
4048         (test_function): Use Infinityd, Infinityl.
4049         * tests/test-sprintf-posix.h: Include infinity.h.
4050         (test_function): Use Infinityd, Infinityl.
4051         * tests/test-truncf1.c: Include infinity.h.
4052         (main): Use Infinityf.
4053         * tests/test-trunc1.c: Include infinity.h.
4054         (main): Use Infinityd.
4055         * tests/test-truncl.c: Include infinity.h.
4056         (main): Use Infinityl.
4057         * tests/test-vasnprintf-posix.c: Include infinity.h.
4058         (test_function): Use Infinityd, Infinityl.
4059         * tests/test-vasprintf-posix.c: Include infinity.h.
4060         (test_function): Use Infinityd, Infinityl.
4061         * modules/ceilf-tests (Files): Add tests/infinity.h.
4062         * modules/ceil-tests (Files): Likewise.
4063         * modules/ceill-tests (Files): Likewise.
4064         * modules/dprintf-posix-tests (Files): Likewise.
4065         * modules/floorf-tests (Files): Likewise.
4066         * modules/floor-tests (Files): Likewise.
4067         * modules/floorl-tests (Files): Likewise.
4068         * modules/fprintf-posix-tests (Files): Likewise.
4069         * modules/frexp-tests (Files): Likewise.
4070         * modules/frexp-nolibm-tests (Files): Likewise.
4071         * modules/frexpl-tests (Files): Likewise.
4072         * modules/frexpl-nolibm-tests (Files): Likewise.
4073         * modules/isfinite-tests (Files): Likewise.
4074         * modules/isinf-tests (Files): Likewise.
4075         * modules/isnan-tests (Files): Likewise.
4076         * modules/isnanf-tests (Files): Likewise.
4077         * modules/isnanf-nolibm-tests (Files): Likewise.
4078         * modules/isnand-tests (Files): Likewise.
4079         * modules/isnand-nolibm-tests (Files): Likewise.
4080         * modules/isnanl-tests (Files): Likewise.
4081         * modules/isnanl-nolibm-tests (Files): Likewise.
4082         * modules/ldexpl-tests (Files): Likewise.
4083         * modules/printf-posix-tests (Files): Likewise.
4084         * modules/roundf-tests (Files): Likewise.
4085         * modules/round-tests (Files): Likewise.
4086         * modules/roundl-tests (Files): Likewise.
4087         * modules/signbit-tests (Files): Likewise.
4088         * modules/snprintf-posix-tests (Files): Likewise.
4089         * modules/sprintf-posix-tests (Files): Likewise.
4090         * modules/truncf-tests (Files): Likewise.
4091         * modules/trunc-tests (Files): Likewise.
4092         * modules/truncl-tests (Files): Likewise.
4093         * modules/vasnprintf-posix-tests (Files): Likewise.
4094         * modules/vasprintf-posix-tests (Files): Likewise.
4095         * modules/vdprintf-posix-tests (Files): Likewise.
4096         * modules/vfprintf-posix-tests (Files): Likewise.
4097         * modules/vprintf-posix-tests (Files): Likewise.
4098         * modules/vsnprintf-posix-tests (Files): Likewise.
4099         * modules/vsprintf-posix-tests (Files): Likewise.
4100         * modules/xprintf-posix-tests (Files): Likewise.
4101
4102 2011-09-11  Bruno Haible  <bruno@clisp.org>
4103
4104         Ensure pid_t gets defined.
4105         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4106         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4107         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4108         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4109         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4110         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4111         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4112         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4113         * tests/test-fcntl-h.c: Check that pid_t is defined.
4114         * tests/test-sched.c: Likewise.
4115         * tests/test-termios.c: Likewise.
4116         * tests/test-time.c: Likewise.
4117         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4118         * doc/posix-headers/signal.texi: Likewise.
4119         * doc/posix-headers/sys_types.texi: Likewise.
4120         * doc/posix-headers/time.texi: Likewise.
4121
4122 2011-09-11  Bruno Haible  <bruno@clisp.org>
4123
4124         acl: Fix compilation on Solaris 10 (older version).
4125         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4126         of ACE_EVERYONE.
4127         * lib/set-mode-acl.c (qset_acl): Likewise.
4128         Reported by Christian Jullien <eligis@orange.fr>.
4129
4130 2011-09-10  Bruno Haible  <bruno@clisp.org>
4131
4132         iconv, unsetenv: Add support for MSVC compiler.
4133         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4134         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4135
4136 2011-09-10  Bruno Haible  <bruno@clisp.org>
4137
4138         *printf: Add support for MSVC compiler.
4139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4140         handles the exception caused by the %n directive. When cross-compiling,
4141         guess no on native Windows.
4142         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4143         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4144         emulate it through vsnprintf.
4145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4146         * doc/posix-functions/dprintf.texi: Update documentation regarding
4147         MSVC 9.
4148         * doc/posix-functions/fprintf.texi: Likewise.
4149         * doc/posix-functions/printf.texi: Likewise.
4150         * doc/posix-functions/snprintf.texi: Likewise.
4151         * doc/posix-functions/sprintf.texi: Likewise.
4152         * doc/posix-functions/swprintf.texi: Likewise.
4153         * doc/posix-functions/vdprintf.texi: Likewise.
4154         * doc/posix-functions/vfprintf.texi: Likewise.
4155         * doc/posix-functions/vprintf.texi: Likewise.
4156         * doc/posix-functions/vsnprintf.texi: Likewise.
4157         * doc/posix-functions/vsprintf.texi: Likewise.
4158         * doc/glibc-functions/asprintf.texi: Likewise.
4159         * doc/glibc-functions/obstack_printf.texi: Likewise.
4160         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4161         * doc/glibc-functions/vasprintf.texi: Likewise.
4162
4163 2011-09-10  Bruno Haible  <bruno@clisp.org>
4164
4165         nocrash: Add support for native Windows.
4166         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4167
4168 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4169             Bruno Haible  <bruno@clisp.org>
4170
4171         absolute-header, include-next: Add support for MSVC compiler.
4172         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4173         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4174         directory separator in #line directives.
4175         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4176         recognize also backslash as directory separator in #line directives.
4177
4178 2011-09-08  Jim Meyering  <meyering@redhat.com>
4179
4180         maint.mk: mark the post-release commit log with "maint: " prefix
4181         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4182         one-line commit-log summary.
4183
4184 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4185             Bruno Haible  <bruno@clisp.org>
4186
4187         Doc about crypt functions.
4188         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4189         systems.
4190         * doc/posix-functions/encrypt.texi: Likewise.
4191         * doc/posix-functions/setkey.texi: Likewise.
4192
4193 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4194
4195         * lib/gc.h: Fix copyright header.
4196
4197 2011-09-07  Bruno Haible  <bruno@clisp.org>
4198
4199         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4201         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4202
4203 2011-09-07  Bruno Haible  <bruno@clisp.org>
4204
4205         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4206         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4207         * lib/freopen.c: Likewise.
4208         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4209         * lib/lstat.c: Likewise.
4210         * lib/stat.c: Likewise.
4211         * lib/open.c: Use different syntax for include of <fcntl.h>.
4212         * lib/openat.c: Include fcntl.h again, explicitly.
4213
4214 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4215
4216         parse-datetime: document the newly accepted format
4217         * doc/parse-datetime.texi (Combined date and time of day items):
4218         New section.
4219
4220 2011-09-06  Bruno Haible  <bruno@clisp.org>
4221
4222         acl: Fix a test failure on newer Solaris 10 with ZFS.
4223         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4224         ENOSYS as no ACL.
4225         Reported by Jim Meyering.
4226
4227 2011-09-06  Bruno Haible  <bruno@clisp.org>
4228
4229         acl: Update for AIX >= 5.3 with NFS.
4230         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4231         ENOSYS as no ACL.
4232
4233         acl: Fix a test failure on AIX >= 5.3 with NFS.
4234         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4235         as no ACL.
4236
4237 2011-09-06  Bruno Haible  <bruno@clisp.org>
4238
4239         acl: Fix a test failure on IRIX 6.5 with NFS.
4240         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4241         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4242         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4243         * lib/copy-acl.c (qcopy_acl): Likewise.
4244
4245 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4246
4247         openat: port to AIX 7.1 with large files
4248         AIX 7.1 does a "#define openat open64at" if large files are in use,
4249         so we can't simply #undef openat.  Use the orig_openat trick (similar
4250         to orig_open in lib/open.c) to work around the problem.  Problem
4251         reported by Kevin Brott for GNU tar, in the thread containing
4252         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4253         * lib/openat.c (__need_system_fcntl_h): Define first.
4254         Include <fcntl.h> and <sys/types.h> before undefining.
4255         (orig_openat) [HAVE_OPENAT]: New inline function.
4256         (openat) [HAVE_OPENAT]: Do not undef.
4257         (rpl_openat): Use orig_openat, not openat.
4258
4259 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4260             Bruno Haible  <bruno@clisp.org>
4261
4262         acl: Avoid errors on NonStop Kernel.
4263         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4264         ENOTSUP errors.
4265
4266 2011-09-05  Bruno Haible  <bruno@clisp.org>
4267
4268         acl: Clean up Solaris code.
4269         * lib/acl-internal.h: Remove no-op #if.
4270         * lib/file-has-acl.c: Likewise.
4271         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4272         * lib/copy-acl.c (qcopy_acl): Likewise.
4273
4274 2011-09-05  Bruno Haible  <bruno@clisp.org>
4275
4276         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4277         binaries built on the original Solaris 10.
4278         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4279         trivial.
4280
4281 2011-09-05  Bruno Haible  <bruno@clisp.org>
4282
4283         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4284         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4285         10.
4286         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4287         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4288         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4289         instead of acl_get, facl_get, acl_set, facl_set.
4290
4291 2011-09-05  Bruno Haible  <bruno@clisp.org>
4292
4293         copy-file: Try unit tests on more file systems.
4294         * tests/test-copy-file-1.sh: New file.
4295         * tests/test-copy-file-2.sh: New file.
4296         * modules/copy-file-tests (Files): Add them.
4297         (Makefile.am): Add them to TESTS.
4298
4299         acl: Try unit tests on more file systems.
4300         * tests/test-file-has-acl-1.sh: New file.
4301         * tests/test-file-has-acl-2.sh: New file.
4302         * tests/test-set-mode-acl-1.sh: New file.
4303         * tests/test-set-mode-acl-2.sh: New file.
4304         * tests/test-copy-acl-1.sh: New file.
4305         * tests/test-copy-acl-2.sh: New file.
4306         * modules/acl-tests (Files): Add them.
4307         (Makefile.am): Add them to TESTS.
4308
4309 2011-09-04  Bruno Haible  <bruno@clisp.org>
4310
4311         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4312         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4313         10.
4314         (OLD_ALLOW, OLD_DENY): New macros.
4315         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4316         ACE_ACCESS_ALLOWED_ACE_TYPE.
4317         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4318         ACE_ACCESS_DENIED_ACE_TYPE.
4319         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4320         (NEW_ACE_EXECUTE): Fix value.
4321         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4322         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4323         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4324         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4325         NEW_ACE_SYNCHRONIZE): New macros.
4326         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4327         instead of acl_fromtext, acl_set, facl_set.
4328         Fixes a coreutils/tests/cp/perm failure.
4329
4330 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4331
4332         openat: test for fstatat (..., 0) bug
4333         Further testing with tar suggests that fstatat (..., 0)
4334         does not work in general, on AIX 7.1; see
4335         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4336         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4337         replacement fstatat (which is what older AIX releases were using
4338         anyway).
4339         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4340         use is now changed to orig_fstatat.  This was probably the right
4341         thing to do anyway.
4342         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4343         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4344         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4345         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4346         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4347         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4348         if the bug is found.
4349
4350         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4351         This tests for another fstatat bug on AIX 7.1:
4352         fstatat (AT_FDCWD, ..., 0) does not work.  See
4353         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4354         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4355         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4356         (rpl_fstatat): Adjust so that it works around either (or both)
4357         bugs if present.
4358         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4359
4360 2011-09-03  Karl Berry  <karl@gnu.org>
4361
4362         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4363         in index entries.
4364
4365 2011-09-02  Bruno Haible  <bruno@clisp.org>
4366
4367         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4368         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4369         values of AR, ARFLAGS, RANLIB.
4370         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4371
4372 2011-09-02  Bruno Haible  <bruno@clisp.org>
4373
4374         Find 'ar' program that fits with --host argument.
4375         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4376
4377 2011-09-02  Bruno Haible  <bruno@clisp.org>
4378
4379         tests: init.sh: Support any non-GNU diff.
4380         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4381         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4382         Solaris 8.
4383
4384 2011-09-02  Bruno Haible  <bruno@clisp.org>
4385
4386         tests: init.sh: work also with any non-GNU diff that supports -u
4387         * tests/init.sh: Relax check for diff -u support.
4388         Rather than checking for GNU diff via --version, simply check
4389         for support for -u itself.  Useful at least on OpenBSD 4.9,
4390         AIX 7.1, IRIX 6.5, and Solaris 10.
4391
4392 2011-09-01  Bruno Haible  <bruno@clisp.org>
4393
4394         strtoimax, strtoumax: Document problem on HP-UX 11.
4395         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4396         * doc/posix-functions/strtoumax.texi: Likewise.
4397
4398 2011-09-01  Bruno Haible  <bruno@clisp.org>
4399
4400         strtoumax: Avoid link error on OSF/1 with DTK cc.
4401         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4402         defined as a function.
4403         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4404         strtoumax is defined, not whether it is declared.
4405
4406 2011-09-01  Bruno Haible  <bruno@clisp.org>
4407
4408         strtoimax: Avoid link error on OSF/1 with DTK cc.
4409         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4410         defined as a function.
4411         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4412         strtoimax is defined, not whether it is declared.
4413
4414 2011-09-01  Bruno Haible  <bruno@clisp.org>
4415
4416         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4417         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4418         as a function.
4419         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4420         whether it is declared.
4421
4422 2011-09-01  Bruno Haible  <bruno@clisp.org>
4423
4424         imaxabs: Avoid link error on OSF/1 with DTK cc.
4425         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4426         as a function.
4427         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4428         whether it is declared.
4429
4430 2011-09-01  Bruno Haible  <bruno@clisp.org>
4431
4432         Tests for module 'strtoumax'.
4433         * modules/strtoumax-tests: New file.
4434         * tests/test-strtoumax.c: New file.
4435
4436         Tests for module 'strtoimax'.
4437         * modules/strtoimax-tests: New file.
4438         * tests/test-strtoimax.c: New file.
4439
4440         Tests for module 'imaxdiv'.
4441         * modules/imaxdiv-tests: New file.
4442         * tests/test-imaxdiv.c: New file.
4443
4444         Tests for module 'imaxabs'.
4445         * modules/imaxabs-tests: New file.
4446         * tests/test-imaxabs.c: New file.
4447
4448 2011-09-01  Bruno Haible  <bruno@clisp.org>
4449
4450         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4451         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4452         pthread_create.
4453
4454 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4455
4456         openat: work around AIX 7.1 fstatat issue
4457         This should fix the problem that was not properly fixed
4458         in the previous change, dated 2011-08-30.
4459         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4460         __need_system_stat_h defined.
4461         (orig_fstatat) [HAVE_FSTATAT]: New function.
4462         (rpl_fstatat): Go back to the old way of doing things,
4463         except call orig_fstatat instead of fstatat.
4464         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4465         Remove unnecessary check whether fstatat fills in st_size etc.
4466
4467 2011-09-01  Bruno Haible  <bruno@clisp.org>
4468
4469         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4470         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4471         just include the system's header.
4472
4473 2011-08-31  Jim Meyering  <meyering@redhat.com>
4474
4475         tests: avoid spurious assertion failure in test-float.c on ppc64
4476         * tests/test-float.c (test_long_double): Comment out an assertion,
4477         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4478         with gcc-4.4.4.
4479
4480         maint: indent with spaces, not TABs
4481         I need to get in the habit of running gnulib's "make check".
4482         Both of these would have been caught.
4483         * m4/largefile.m4: Indent with spaces, not TABs.
4484         * lib/parse-datetime.y (iso_8601_time): Likewise.
4485         Spotted by Pádraig Brady.
4486
4487         test-parse-datetime.c: accommodate a relatively strict gcc warning
4488         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4489         to avoid a warning from gcc's -Werror=missing-declarations.
4490         Insert a few spaces-before-funcall-parenthesis.
4491
4492 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4493
4494         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4495         The parser now accepts ISO 8601 date-time strings with "T" as the
4496         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4497         with a space between the date and time strings.  Now it also parses
4498         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4499         variants like "2004-02-29T16:21:42.333-07:00"
4500         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4501         of day representation using the 'T' separator character.
4502         * doc/parse-datetime.texi (General date syntax): replace use of
4503         deprecated --iso-8601 option with --rfc-3339 in example of date
4504         command output formats that can be parsed.
4505         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4506         lib/parse-datetime.y.
4507         (gmt_offset): New function.
4508         (main): Add additional test cases to validate ISO8601 extended
4509         date and time of day parsing.
4510
4511 2011-08-31  Bruno Haible  <bruno@clisp.org>
4512
4513         freopen: Documentation.
4514         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4515         name.
4516         Reported by Claudio Bley <claudio.bley@gmail.com>.
4517
4518 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4519
4520         freopen: Don't crash if the filename argument is NULL.
4521         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4522         NULL.
4523
4524 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4525
4526         openat: work around AIX 7.1 fstatat bug
4527         Problem reported by Kevin Brott for GNU tar, in the thread containing
4528         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4529         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4530         FSTATAT_ST_SIZE_ETC_BROKEN.
4531         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4532         rpl_fstatat.
4533         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4534         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4535         AC_CHECK_FUNCS_ONCE for fstatat.
4536         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4537         fchmodat, mkdirat, openat and unlinkat.
4538
4539 2011-08-30  Bruno Haible  <bruno@clisp.org>
4540
4541         Avoid endless recursions if config.h includes some header files.
4542         * lib/fopen.c (__need_FILE): Define already before including config.h.
4543         * lib/freopen.c (__need_FILE): Likewise.
4544         * lib/open.c (__need_system_fcntl_h): Likewise.
4545         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4546         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4547         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4548
4549 2011-08-25  Karl Berry  <karl@gnu.org>
4550
4551         * config/srclist.txt (ylwrap): new try.
4552         * build-aux/ylwrap: new file.
4553
4554 2011-08-23  Bruno Haible  <bruno@clisp.org>
4555
4556         tmpdir: Use a good default directory on native Windows.
4557         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4558         (P_tmpdir): Default to _P_tmpdir on native Windows.
4559         (path_search): On native Windows, try the value returned by GetTempPath
4560         before trying P_tmpdir.
4561         * modules/tmpdir (Depends-on): Add pathmax.
4562         Suggested by John Darrington <john@darrington.wattle.id.au>.
4563
4564 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4565
4566         doc: fix typo in README-release
4567         * top/README-release: Capitalize first word of a sentence.
4568
4569 2011-08-19  Jim Meyering  <meyering@redhat.com>
4570
4571         fts: do not exhaust memory when processing million-entry directories
4572         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4573         directory would require about 256*N bytes of memory.  Thus, it was
4574         easy to construct a directory too large to be processed by any of
4575         those tools.  With this change, fts' maximum memory utilization is
4576         now limited to around 30MB.
4577         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4578         (fts_read): When we've processed the final entry (i.e., when
4579         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4580         using the parent entry to read any remaining entries.  Dispatch
4581         depending on what fts_build returns:
4582         - NULL+stop, aka failure: stop
4583         - NULL otherwise: move up in the dir hierarchy
4584         - non-NULL: handle this new entry
4585         (fts_build): Declare and use new local, continue_readdir.
4586         Prepare to be called from fts_read, when the entries
4587         from a partially-read directory have just been exhausted.
4588         In that case, we'll skip the opendir and instead use the parent's
4589         fts_dirp and derive dir_fd from that.
4590         Finally, in the readdir loop, if we read max_entries entries,
4591         exit the loop ensuring *not* to call closedir.  This is required
4592         so that fts_dirp can be reused on a subsequent call.
4593         Prompted by Ben England's report of memory exhaustion in find
4594         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4595
4596         maint: fts: move decl of `dp' down into while loop; split a long line
4597         * lib/fts.c (fts_build): No semantic change.
4598
4599         fts: add/use new struct member, fts_dirp
4600         We are about to use this to manage any directory with
4601         too many entries to read all of them into memory at once.
4602         To do that, we'll need to save the DIR* pointer in each
4603         affected FTSENT struct.
4604         * lib/fts_.h: Include <dirent.h>.
4605         (struct FTSENT) [fts_dirp]: New member.
4606         * lib/fts.c (closedir_and_clear): Define.
4607         Use it in place of closedir so that we are sure to
4608         clear the new fts_dirp member when done with it.
4609         (fts_alloc): Initialize the new member.
4610         (fts_lfree): Free, if needed.
4611
4612         maint: fts: give __opendir2 a new parameter and rename
4613         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4614         than surreptitiously using sole caller's "dir_fd".
4615         (fts_opendir): Rename from __opendir2.
4616
4617         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4618         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4619
4620         maint: fts.c: correct off-by-one indentation
4621         * lib/fts.c (fts_build): Correct indentation, change style
4622         of a couple of block comments, and bracing style.
4623
4624         maint: fts.c: move __opendir2 #define "up" out of function body
4625         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4626
4627         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4628         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4629         out for a long time and besides was useful only on BSD systems.
4630
4631 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4632
4633         regex: port to Stratus OpenVOS
4634         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4635         define to empty, rather than attempting nonportable optimizations.
4636         Problem reported by Paul Green in:
4637         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4638         and fix suggested by Eric Blake in:
4639         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4640
4641 2011-08-17  Eric Blake  <eblake@redhat.com>
4642
4643         getcwd: fix test failures on mingw
4644         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4645         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4646         test if long directory cannot be created, and allow mingw errno.
4647
4648         getcwd-lgpl: fix m4 to match relaxed test for BSD
4649         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4650         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4651         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4652         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4653         signature problem.
4654
4655         getcwd: fix compilation on mingw64
4656         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4657         getcwd.
4658         Reported by Marc-André Lureau.
4659
4660         pipe2: silence compiler warning
4661         * lib/pipe2.c (pipe2): Hide label if it is not used.
4662
4663 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4664
4665         relocatable-prog: fix link error
4666         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4667         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4668         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4669         into modules/relocatable-lib without noticing that
4670         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4671         also needs to build relocatable.c.
4672
4673 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4674
4675         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4677         shell code: it contained a 'break' that was not in a loop.
4678         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4679         via a shell-language loop; this may have been true in old Autoconf
4680         versions, but it's not true in Autoconf 2.68.  I found this bug
4681         when testing coreutils git on Solaris 8, whose shell complains
4682         about the syntax error.
4683
4684 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4685
4686         * lib/base64.c: Fix comment to reference RFC 4648.
4687         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4688         <gvtulder@gmail.com>.
4689
4690 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4691
4692         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4693
4694         po/Makefile.in.in: fix make -q problem
4695         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4696         rule, since there's no file named 'check-macro-version' and its
4697         use as a file breaks make -q.
4698         (all): Don't depend on check-macro-version.
4699         (CHECK_MACRO_VERSION): New macro.
4700         (stamp-po): Use it.
4701
4702         configmake: fix make -q problem
4703         * modules/configmake (configmake.h): Update configmake.h's time stamp
4704         even if the file does not change.  Otherwise, 'make -q' fails.
4705         Problem reported by Simon Josefsson in
4706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4707
4708 2011-08-11  Jim Meyering  <meyering@redhat.com>
4709
4710         git-version-gen: correct the advice in a comment
4711         * build-aux/git-version-gen: Correct comment.
4712         Don't recommend to list .tarball-version in .gitignore.
4713
4714 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         base64: fix off-by-one buffer size bug
4717         Problem and (trivial) fix reported by Gijs van Tulder in
4718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4719         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4720         * tests/test-base64.c (main): Catch the bug.
4721
4722 2011-08-10  Eric Blake  <eblake@redhat.com>
4723
4724         closein: correct comments
4725         * lib/closein.c (close_stdin): Improve comments.
4726
4727 2011-08-09  Bruno Haible  <bruno@clisp.org>
4728
4729         More tests for 'fseeko'.
4730         * tests/test-fseeko3.c: New file, from Eric Blake.
4731         * tests/test-fseeko3.sh: New file.
4732         * modules/fseeko-tests (Files): Add them.
4733         (TESTS): Add test-fseeko3.sh.
4734         (check_PROGRAMS): Add test-fseeko3.
4735
4736 2011-08-09  Eric Blake  <eblake@redhat.com>
4737
4738         fseeko: remove unneeded hack
4739         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4740
4741         fseeko: fix bug on glibc
4742         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4743         Reported by John W. Eaton.
4744
4745 2011-08-08  Bruno Haible  <bruno@clisp.org>
4746
4747         unictype/base: Fix interoperability with preinstalled libunistring.
4748         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4749         Reported by Simon Josefsson.
4750
4751 2011-08-08  Bruno Haible  <bruno@clisp.org>
4752
4753         iswblank: Detect declaration correctly.
4754         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4755         AC_CHECK_DECLS invocation.
4756
4757 2011-08-08  Bruno Haible  <bruno@clisp.org>
4758
4759         tcgetsid: Detect declaration correctly.
4760         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4761         AC_CHECK_DECLS invocation.
4762         Reported by Simon Josefsson.
4763
4764 2011-08-08  Eric Blake  <eblake@redhat.com>
4765
4766         largefile: fix typo that regressed large file support
4767         * modules/largefile (configure.ac-early): Fix section name.
4768
4769 2011-08-06  Karl Berry  <karl@gnu.org>
4770
4771         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4772         a separate module.
4773
4774 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4775
4776         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4777         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4778         get prototype for free.
4779
4780 2011-08-04  Bruno Haible  <bruno@clisp.org>
4781
4782         Tests for module 'pathmax'.
4783         * modules/pathmax-tests: New file.
4784         * tests/test-pathmax.c: New file.
4785
4786         canonicalize-lgpl: Support larger filenames on the Hurd.
4787         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4788         Reported by Paul Eggert.
4789
4790         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4791         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4792         * lib/chdir-long.h: Include pathmax.h.
4793         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4794         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4795         (PATH_MAX): Remove code that is done by pathmax.h.
4796         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4797         * lib/tmpfile.c: Add a comment.
4798         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4799         * modules/chdir-long (Depends-on): Add pathmax.
4800         * modules/getcwd (Depends-on): Add pathmax.
4801         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4802         is not defined.
4803         * doc/posix-headers/limits.texi: Mention the pathmax module.
4804         * NEWS: Mention the change.
4805
4806 2011-08-02  Bruno Haible  <bruno@clisp.org>
4807
4808         pthread_sigmask: Actually use results of gl_THREADLIB.
4809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4810         gl_THREADLIB, not gl_[]THREADLIB.
4811         Reported by Eric Blake.
4812
4813 2011-08-02  Jim Meyering  <meyering@redhat.com>
4814
4815         maint.mk: relax the default _gl_TS_function_match regexp
4816         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4817         space between function name and "(" in an "extern" declaration.
4818         That would fail to match a decl with no space there: extern void foo();
4819
4820 2011-07-31  Iain Nicol  <iain@thenicols.net>
4821
4822         git-version-gen: document that EXTRA_DIST must include .version
4823         * build-aux/git-version-gen: In the how-to-use comment, document
4824         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4825         will fail when run from an unpacked distribution tarball.
4826
4827 2011-08-01  Bruno Haible  <bruno@clisp.org>
4828
4829         wctype-h: Fix last change.
4830         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4831         REPLACE_TOWLOWER to 0.
4832         Reported by Sam Steingold <sds@gnu.org>.
4833
4834 2011-07-31  Bruno Haible  <bruno@clisp.org>
4835
4836         frexpl: Update autoconf test.
4837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4838         according to changes of 2011-06-20.
4839
4840 2011-07-31  Bruno Haible  <bruno@clisp.org>
4841
4842         sys_utsname: Add support for Minix.
4843         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4844         <sys/utsname.h>.
4845         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4846         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4847
4848 2011-07-31  Bruno Haible  <bruno@clisp.org>
4849
4850         strings: Add support for Minix.
4851         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4852         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4853         * doc/posix-headers/strings.texi: Document the Minix problem.
4854
4855 2011-07-31  Bruno Haible  <bruno@clisp.org>
4856
4857         wctype-h: Add support for Minix.
4858         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4859         REPLACE_TOWLOWER.
4860         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4861         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4862         REPLACE_ISWCNTRL.
4863
4864 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4867         This is a performance improvement for 64-bit hosts: it causes the
4868         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4869
4870 2011-07-31  Bruno Haible  <bruno@clisp.org>
4871
4872         stdioext: Add support for Minix.
4873         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4874         * lib/fpurge.c (fpurge): Likewise.
4875         * lib/freadahead.c (freadahead): Likewise.
4876         * lib/freadable.c (freadable): Likewise.
4877         * lib/freading.c (freading): Likewise.
4878         * lib/freadptr.c (freadptr): Likewise.
4879         * lib/freadseek.c (freadptrinc): Likewise.
4880         * lib/fseeko.c (rpl_fseeko): Likewise.
4881         * lib/fseterr.c (fseterr): Likewise.
4882         * lib/fwritable.c (fwritable): Likewise.
4883         * lib/fwriting.c (fwriting): Likewise.
4884         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4885         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4886
4887 2011-07-31  Bruno Haible  <bruno@clisp.org>
4888
4889         errno: Port to Minix.
4890         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4891         ECONNABORTED are defined.
4892         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4893         GNULIB_defined_ECONNABORTED): New macros.
4894         * lib/strerror-override.h (strerror_override): Test also
4895         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4896         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4897         ECONNABORTED.
4898         * doc/posix-headers/errno.texi: Mention the Minix problem.
4899
4900 2011-07-31  Bruno Haible  <bruno@clisp.org>
4901
4902         Work around declaration collisions on Minix.
4903         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4904         defined, set REPLACE_MBSINIT.
4905         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4906         defined, set REPLACE_MBRTOWC.
4907         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4908         set REPLACE_MBRLEN.
4909         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4910         defined, set REPLACE_MBSRTOWCS.
4911         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4912         defined, set REPLACE_WCRTOMB.
4913         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4914         defined, set REPLACE_WCSRTOMBS.
4915
4916 2011-07-31  Bruno Haible  <bruno@clisp.org>
4917
4918         Add support for Minix with ACK compiler.
4919         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4920         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4921         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4922
4923 2011-07-31  Bruno Haible  <bruno@clisp.org>
4924
4925         Documentation about Minix.
4926         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4927         * doc/glibc-headers/*.texi: Likewise.
4928         * doc/posix-functions/*.texi: Likewise.
4929         * doc/glibc-functions/*.texi: Likewise.
4930
4931 2011-07-31  Bruno Haible  <bruno@clisp.org>
4932
4933         snippet/warn-on-use: Fix indentation.
4934         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4935
4936 2011-07-25  Jim Meyering  <meyering@redhat.com>
4937
4938         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4939         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4940         commands.
4941
4942 2011-07-27  Jim Meyering  <meyering@redhat.com>
4943
4944         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4945         * top/maint.mk (gl_extract_significant_defines_): Now that
4946         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4947         gnulib/lib/signal.in.h, and now that we recommend to
4948         define-if-undefined those two symbols in application code,
4949         we must filter them out of the "significant" list.
4950         This avoids a "make syntax-check" failure in coreutils.
4951
4952 2011-07-26  Eric Blake  <eblake@redhat.com>
4953
4954         warnings: add comments about previous patch
4955         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4956         * m4/include_next.m4: Likewise.
4957         * m4/warn-on-use.m4: Likewise.
4958         * m4/warnings.m4: Likewise, and simplify use.
4959         Suggested by Stefano Lattarini.
4960
4961         include-next, warnings: support older autoconf
4962         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4963         AS_VAR_PUSHDEF in a way that works with older autoconf.
4964         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4965         Reported by Daniel P. Berrange.
4966
4967 2011-07-25  Bruno Haible  <bruno@clisp.org>
4968
4969         fseek, ftell: Fix doc.
4970         * doc/posix-functions/fseek.texi: Reword statement about
4971         AC_SYS_LARGEFILE.
4972         * doc/posix-functions/ftell.texi: Likewise.
4973
4974 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4975             Bruno Haible  <bruno@clisp.org>
4976
4977         Add dependencies to the 'largefile' module.
4978         * modules/fopen (Depends-on): Add 'largefile'.
4979         * modules/freopen (Depends-on): Likewise.
4980         * modules/fseeko (Depends-on): Likewise.
4981         * modules/ftello (Depends-on): Likewise.
4982         * modules/glob (Depends-on): Likewise.
4983         * modules/lseek (Depends-on): Likewise.
4984         * modules/lstat (Depends-on): Likewise.
4985         * modules/mkostemp (Depends-on): Likewise.
4986         * modules/mkostemps (Depends-on): Likewise.
4987         * modules/mkstemp (Depends-on): Likewise.
4988         * modules/mkstemps (Depends-on): Likewise.
4989         * modules/open (Depends-on): Likewise.
4990         * modules/openat (Depends-on): Likewise.
4991         * modules/pread (Depends-on): Likewise.
4992         * modules/pwrite (Depends-on): Likewise.
4993         * modules/scandir (Depends-on): Likewise.
4994         * modules/stat (Depends-on): Likewise.
4995         * modules/tmpfile (Depends-on): Likewise.
4996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4997         since the containing module now depends on the largefile module.
4998         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4999         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5000         off_t is fixed by gnulib.
5001         * doc/posix-functions/freopen.texi: Likewise.
5002         * doc/posix-functions/fseeko.texi: Likewise.
5003         * doc/posix-functions/fstatat.texi: Likewise.
5004         * doc/posix-functions/ftello.texi: Likewise.
5005         * doc/posix-functions/glob.texi: Likewise.
5006         * doc/posix-functions/lseek.texi: Likewise.
5007         * doc/posix-functions/lstat.texi: Likewise.
5008         * doc/posix-functions/mkstemp.texi: Likewise.
5009         * doc/posix-functions/open.texi: Likewise.
5010         * doc/posix-functions/openat.texi: Likewise.
5011         * doc/posix-functions/pread.texi: Likewise.
5012         * doc/posix-functions/pwrite.texi: Likewise.
5013         * doc/posix-functions/scandir.texi: Likewise.
5014         * doc/posix-functions/stat.texi: Likewise.
5015         * doc/posix-functions/tmpfile.texi: Likewise.
5016         * doc/glibc-functions/mkostemp.texi: Likewise.
5017         * doc/glibc-functions/mkostemps.texi: Likewise.
5018         * doc/glibc-functions/mkstemps.texi: Likewise.
5019
5020 2011-07-25  Bruno Haible  <bruno@clisp.org>
5021
5022         fcntl: Move AC_LIBOBJ invocation to module description.
5023         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5024         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5025
5026         fcntl: Remove call-in from fchdir.m4.
5027         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5029
5030         dup3: Remove potential call-in from fchdir.m4.
5031         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5033
5034         dup2: Move AC_LIBOBJ invocation to module description.
5035         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5036         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5037         Don't invoke AC_LIBOBJ.
5038         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5039
5040         dup2: Remove call-in from fchdir.m4.
5041         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5043
5044         fclose: Move AC_LIBOBJ invocation to module description.
5045         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5046         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5047         to 1.
5048         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5049
5050         fclose: Remove call-in from close.m4.
5051         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5052         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5053
5054         close: Move AC_LIBOBJ invocation to module description.
5055         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5056         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5057         1.
5058         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5059
5060         close: Remove call-in from fchdir.m4.
5061         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5063
5064         open: Move AC_LIBOBJ invocation to module description.
5065         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5066         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5067         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5068
5069         open: Remove call-in from fchdir.m4.
5070         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5071         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5072
5073         fchdir: Start to remove gl_REPLACE_* idiom.
5074         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5075         (gl_FUNC_FCHDIR): Invoke it.
5076
5077 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5078
5079         * lib/ftell.c (ftell): Comment out cast.
5080
5081         close: use gl_REPLACE_FCLOSE only if defined
5082         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5083         is defined.  The close module doesn't depend on the fclose module
5084         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5086         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5087
5088 2011-07-24  Jim Meyering  <meyering@redhat.com>
5089
5090         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5091         * tests/test-select.h (test_function): Declare as "static".
5092
5093 2011-07-24  Bruno Haible  <bruno@clisp.org>
5094
5095         doc: Mention the effects of AC_SYS_LARGEFILE.
5096         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5097         on this function.
5098         * doc/posix-functions/aio_error.texi: Likewise.
5099         * doc/posix-functions/aio_fsync.texi: Likewise.
5100         * doc/posix-functions/aio_read.texi: Likewise.
5101         * doc/posix-functions/aio_return.texi: Likewise.
5102         * doc/posix-functions/aio_suspend.texi: Likewise.
5103         * doc/posix-functions/aio_write.texi: Likewise.
5104         * doc/posix-functions/fgetpos.texi: Likewise.
5105         * doc/posix-functions/fopen.texi: Likewise.
5106         * doc/posix-functions/freopen.texi: Likewise.
5107         * doc/posix-functions/fsetpos.texi: Likewise.
5108         * doc/posix-functions/fstatvfs.texi: Likewise.
5109         * doc/posix-functions/ftruncate.texi: Likewise.
5110         * doc/posix-functions/ftw.texi: Likewise.
5111         * doc/posix-functions/getrlimit.texi: Likewise.
5112         * doc/posix-functions/glob.texi: Likewise.
5113         * doc/posix-functions/lio_listio.texi: Likewise.
5114         * doc/posix-functions/lockf.texi: Likewise.
5115         * doc/posix-functions/mkstemp.texi: Likewise.
5116         * doc/posix-functions/mmap.texi: Likewise.
5117         * doc/posix-functions/nftw.texi: Likewise.
5118         * doc/posix-functions/openat.texi: Likewise.
5119         * doc/posix-functions/opendir.texi: Likewise.
5120         * doc/posix-functions/posix_fadvise.texi: Likewise.
5121         * doc/posix-functions/posix_fallocate.texi: Likewise.
5122         * doc/posix-functions/pread.texi: Likewise.
5123         * doc/posix-functions/pwrite.texi: Likewise.
5124         * doc/posix-functions/readdir.texi: Likewise.
5125         * doc/posix-functions/readdir_r.texi: Likewise.
5126         * doc/posix-functions/rewinddir.texi: Likewise.
5127         * doc/posix-functions/scandir.texi: Likewise.
5128         * doc/posix-functions/seekdir.texi: Likewise.
5129         * doc/posix-functions/setrlimit.texi: Likewise.
5130         * doc/posix-functions/statvfs.texi: Likewise.
5131         * doc/posix-functions/telldir.texi: Likewise.
5132         * doc/posix-functions/tmpfile.texi: Likewise.
5133         * doc/posix-functions/truncate.texi: Likewise.
5134         * doc/glibc-functions/fallocate.texi: Likewise.
5135         * doc/glibc-functions/fstatfs.texi: Likewise.
5136         * doc/glibc-functions/fts_children.texi: Likewise.
5137         * doc/glibc-functions/fts_read.texi: Likewise.
5138         * doc/glibc-functions/getdirentries.texi: Likewise.
5139         * doc/glibc-functions/mkostemp.texi: Likewise.
5140         * doc/glibc-functions/mkostemps.texi: Likewise.
5141         * doc/glibc-functions/mkstemps.texi: Likewise.
5142         * doc/glibc-functions/preadv.texi: Likewise.
5143         * doc/glibc-functions/pwritev.texi: Likewise.
5144         * doc/glibc-functions/sendfile.texi: Likewise.
5145         * doc/glibc-functions/statfs.texi: Likewise.
5146
5147 2011-07-24  Bruno Haible  <bruno@clisp.org>
5148
5149         doc: Fix typo.
5150         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5151
5152 2011-07-24  Bruno Haible  <bruno@clisp.org>
5153
5154         doc: Mention fsusage.
5155         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5156
5157 2011-07-24  Bruno Haible  <bruno@clisp.org>
5158
5159         doc: Mention new glibc headers and functions.
5160         * doc/glibc-headers/gshadow.texi: New file.
5161         * doc/glibc-functions/endsgent.texi: New file.
5162         * doc/glibc-functions/fgetsgent.texi: New file.
5163         * doc/glibc-functions/fgetsgent_r.texi: New file.
5164         * doc/glibc-functions/getsgent.texi: New file.
5165         * doc/glibc-functions/getsgent_r.texi: New file.
5166         * doc/glibc-functions/getsgnam.texi: New file.
5167         * doc/glibc-functions/getsgnam_r.texi: New file.
5168         * doc/glibc-functions/putsgent.texi: New file.
5169         * doc/glibc-functions/setsgent.texi: New file.
5170         * doc/glibc-functions/sgetsgent.texi: New file.
5171         * doc/glibc-functions/sgetsgent_r.texi: New file.
5172         * doc/glibc-functions/malloc_info.texi: New file.
5173         * doc/glibc-functions/preadv.texi: New file.
5174         * doc/glibc-functions/pwritev.texi: New file.
5175         * doc/glibc-functions/register_printf_modifier.texi: New file.
5176         * doc/glibc-functions/register_printf_specifier.texi: New file.
5177         * doc/glibc-functions/register_printf_type.texi: New file.
5178         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5179         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5180         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5181         * doc/glibc-functions/pthread_getname_np.texi: New file.
5182         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5183         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5184         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5185         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5186         * doc/glibc-functions/pthread_setname_np.texi: New file.
5187         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5188         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5189         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5190         * doc/glibc-functions/qsort_r.texi: New file.
5191         * doc/glibc-functions/quick_exit.texi: New file.
5192         * doc/glibc-functions/syncfs.texi: New file.
5193         * doc/gnulib.texi: Include them.
5194         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5195         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5196         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5197         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5198         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5199         * doc/glibc-functions/execvpe.texi: Likewise.
5200
5201 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5202
5203         ftell: don't include <unistd.h>
5204         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5205         guaranteed to define off_t, and the ftell module depends on the
5206         stdio module.
5207
5208         ftell: do not assume wraparound signed arithmetic
5209         * lib/ftell.c: Include <limits.h>.
5210         (ftell): Don't assume wraparound signed arithmetic.
5211
5212 2011-07-24  Bruno Haible  <bruno@clisp.org>
5213
5214         close: No longer depend on module 'fclose'.
5215         * modules/close (Depends-on): Remove fclose.
5216         * NEWS: Mention the change.
5217         Suggested by Sam Steingold <sds@gnu.org>.
5218
5219 2011-07-24  Bruno Haible  <bruno@clisp.org>
5220
5221         fsusage: Enable large volume support on AIX >= 5.2.
5222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5223         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5224         instead of STAT_STATVFS.
5225         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5226
5227         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5229         f_blocks field only on MacOS X.
5230
5231         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5233         * modules/fsusage (Depends-on): Add largefile.
5234
5235 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5236
5237         * README: Modernize discussion of signed integers.
5238         Assuming overflow wraparound is no longer safe.
5239         Mention ones' complement and signed magnitude.
5240
5241 2011-07-22  Bruno Haible  <bruno@clisp.org>
5242
5243         select tests, pselect tests: Refactor.
5244         * tests/test-select.h: New file, extracted from tests/test-select.c.
5245         (select_fn): New type.
5246         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5247         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5248         test_pipe): Add my_select argument.
5249         (test_function): Renamed from main. Add my_select argument.
5250         * tests/test-select.c: Move most code to tests/test-select.h. Include
5251         test-select.h.
5252         * modules/select-tests (Files): Add tests/test-select.h.
5253         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5254         (my_select, main): New functions.
5255         * modules/pselect-tests (Files): Add tests/test-select.h,
5256         tests/macros.h, tests/signature.h.
5257         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5258         (configure.ac): Check for <sys/wait.h>.
5259
5260 2011-07-22  Bruno Haible  <bruno@clisp.org>
5261
5262         sys_select tests: Check the signature of FD_*.
5263         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5264         signature tests from here...
5265         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5266         here.
5267         * modules/sys_select-tests (Files): Add tests/signature.h.
5268
5269 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5270
5271         largefile: new module, replacing large-inode
5272         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5273         * MODULES.html.sh: Add largefile, remove large-inode.
5274         * modules/largefile, m4/largefile.m4: New files.
5275         * modules/large-inode, m4/large-inode.m4: Remove.
5276
5277         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5278         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5279         implementations that use only 32 bits to count blocks.
5280         On typical hosts with 1024-byte blocks, this fails with file
5281         systems as small as 4 TiB.  Problem reported by Herb Wartens
5282         <http://debbugs.gnu.org/9140> and this should also fix a similar
5283         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5284
5285         large-inode: New module
5286         * MODULES.html.sh: Add it.
5287         * modules/large-inode, m4/large-inode.m4: New files.
5288
5289         extensions: Enable extensions on MacOS X 10.5 and later.
5290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5291
5292 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5293
5294         file-has-acl: use acl_extended_file_nofollow if available
5295         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5296         (acl_extended_file): New macro.
5297         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5298         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5299
5300 2011-07-21  Bruno Haible  <bruno@clisp.org>
5301
5302         Declare system functions in a way that works with C++.
5303         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5304         declare fdopendir as extern "C".
5305         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5306         declare frexpl as extern "C".
5307         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5308         declare gai_strerror as extern "C".
5309         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5310         programs, declare gai_strerror as extern "C".
5311         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5312         declare getlogin_r as extern "C".
5313         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5314         as extern "C".
5315         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5316         declare ldexpl as extern "C".
5317         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5318         as extern "C".
5319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5320         program, declare getmntinfo as extern "C".
5321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5322         stpncpy as extern "C".
5323         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5324         program, declare __xpg_strerror_r as extern "C".
5325         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5326         strndup as extern "C".
5327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5328         declare memset and bzero as extern "C".
5329         Reported by Sam Steingold <sds@gnu.org>.
5330
5331 2011-07-12  Jim Meyering  <meyering@redhat.com>
5332
5333         maint.mk: prohibit inclusion of "verify.h" without use
5334         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5335
5336 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5337
5338         timer-time: A new module to check for timer_settime()
5339         * m4/timer_time.m4: Check for the posix function.
5340         * modules/timer-time: Add the new module.
5341         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5342         Mention it.
5343
5344 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5345             Bruno Haible  <bruno@clisp.org>
5346
5347         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5349         not defined, assume POSIX threads and look for pthread_sigmask in
5350         $LIBS, without changing $CPPFLAGS.
5351
5352 2011-07-19  Bruno Haible  <bruno@clisp.org>
5353
5354         strstr: Update cross-compilation guess.
5355         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5356         CPUs, guess no, in view of glibc
5357         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5358         Suggested by Eric Blake. Reported by Reuben Thomas.
5359
5360 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5361
5362         getopt-gnu: suppress core dumps from detection code
5363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5364         to suppress core dumps that may well occur on glibc systems.
5365         * modules/getopt-gnu: Depend on nocrash.
5366
5367 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5368
5369         pthread_sigmask: ensure usleep is declared
5370         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5371         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5372
5373 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5374
5375         doc: Document NonStop portability issues.
5376         * doc/posix-functions/sigaction.texi (sigaction):
5377         * doc/posix-headers/signal.texi (signal.h):
5378         Document NonStop.  See Joachim Schmitz in
5379         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5380
5381 2011-07-15  Bruno Haible  <bruno@clisp.org>
5382
5383         ffsl, ffsll: Avoid unportable behaviour.
5384         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5385
5386 2011-07-15  Bruno Haible  <bruno@clisp.org>
5387
5388         ffs: More tests.
5389         * tests/test-ffs.c (NBITS): New macro.
5390         (main): Add more tests.
5391         * tests/test-ffsl.c (NBITS): New macro.
5392         (main): Add more tests.
5393         * tests/test-ffsll.c (NBITS): New macro.
5394         (main): Add more tests.
5395
5396 2011-07-15  Eric Blake  <eblake@redhat.com>
5397
5398         ffsl, ffsll: new modules
5399         * modules/ffsl: New file.
5400         * modules/ffsll: Likewise.
5401         * m4/ffsl.m4: Likewise.
5402         * m4/ffsll.m4: Likewise.
5403         * lib/ffsl.c: Likewise.
5404         * lib/ffsl.h: Likewise.
5405         * lib/ffsll.c: Likewise.
5406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5407         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5408         * modules/string (Makefile.am): Substitute witnesses.
5409         * lib/strings.in.h (ffsl, ffsll): Declare.
5410         * modules/ffsl-tests: New test file.
5411         * modules/ffsll-tests: Likewise.
5412         * tests/test-ffsl.c: Likewise.
5413         * tests/test-ffsll.c: Likewise.
5414         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5415         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5416         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5417
5418         ffs: fix m4 prerequisite
5419         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5420
5421         ffs: avoid undefined behavior
5422         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5423         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5424         Reported by Bruno Haible.
5425
5426 2011-07-12  Bruno Haible  <bruno@clisp.org>
5427
5428         pthread_sigmask: Rely on module 'threadlib'.
5429         * modules/pthread_sigmask (Depends-on): Add threadlib.
5430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5431         is defined.
5432
5433 2011-07-12  Bruno Haible  <bruno@clisp.org>
5434
5435         regex: Depend on module 'strcase'.
5436         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5437
5438 2011-07-12  Jim Meyering  <meyering@redhat.com>
5439
5440         warn-on-use: fix typo in file name
5441         * modules/snippet/warn-on-use (Files): Correct file name:
5442         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5443
5444 2011-07-12  Bruno Haible  <bruno@clisp.org>
5445
5446         strings: Document module.
5447         * doc/posix-headers/strings.texi: Mention module 'strings'.
5448
5449 2011-07-12  Bruno Haible  <bruno@clisp.org>
5450
5451         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5452         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5453         (Files, Makefile.am): Update.
5454         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5455         * modules/stdlib (Depends-on): Update.
5456
5457 2011-07-12  Bruno Haible  <bruno@clisp.org>
5458
5459         * NEWS: Mention the changes.
5460
5461         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5462         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5463         (Files, Makefile.am): Update.
5464         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5465         * modules/arpa_inet (Depends-on): Update.
5466         * modules/ctype (Depends-on): Update.
5467         * modules/dirent (Depends-on): Update.
5468         * modules/fcntl-h (Depends-on): Update.
5469         * modules/glob (Depends-on): Update.
5470         * modules/iconv-h (Depends-on): Update.
5471         * modules/inttypes-incomplete (Depends-on): Update.
5472         * modules/langinfo (Depends-on): Update.
5473         * modules/locale (Depends-on): Update.
5474         * modules/math (Depends-on): Update.
5475         * modules/netdb (Depends-on): Update.
5476         * modules/poll-h (Depends-on): Update.
5477         * modules/pty (Depends-on): Update.
5478         * modules/search (Depends-on): Update.
5479         * modules/signal (Depends-on): Update.
5480         * modules/spawn (Depends-on): Update.
5481         * modules/stdio (Depends-on): Update.
5482         * modules/stdlib (Depends-on): Update.
5483         * modules/string (Depends-on): Update.
5484         * modules/strings (Depends-on): Update.
5485         * modules/sys_file (Depends-on): Update.
5486         * modules/sys_ioctl (Depends-on): Update.
5487         * modules/sys_select (Depends-on): Update.
5488         * modules/sys_socket (Depends-on): Update.
5489         * modules/sys_stat (Depends-on): Update.
5490         * modules/sys_time (Depends-on): Update.
5491         * modules/sys_times (Depends-on): Update.
5492         * modules/sys_utsname (Depends-on): Update.
5493         * modules/sys_wait (Depends-on): Update.
5494         * modules/termios (Depends-on): Update.
5495         * modules/time (Depends-on): Update.
5496         * modules/unistd (Depends-on): Update.
5497         * modules/wchar (Depends-on): Update.
5498         * modules/wctype-h (Depends-on): Update.
5499         * MODULES.html.sh (Support for building libraries and executables):
5500         Update.
5501
5502         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5503         * modules/snippet/unused-parameter: Renamed from
5504         modules/unused-parameter.
5505         (Files, Makefile.am): Update.
5506         * build-aux/snippet/unused-parameter.h: Renamed from
5507         build-aux/unused-parameter.h.
5508         * modules/selinux-h (Depends-on): Update.
5509         * modules/unistr/base (Depends-on): Update.
5510         * MODULES.html.sh (Core language properties): Update.
5511
5512         Rename module 'link-warning' to 'snippet/link-warning'.
5513         * modules/snippet/link-warning: Renamed from modules/link-warning.
5514         (Files, Makefile.am): Update.
5515         * build-aux/snippet/link-warning.h: Renamed from
5516         build-aux/link-warning.h.
5517         * MODULES.html.sh (Support for building libraries and executables):
5518         Update.
5519
5520         Rename module 'c++defs' to 'snippet/c++defs'.
5521         * modules/snippet/c++defs: Renamed from modules/c++defs.
5522         (Files, Makefile.am): Update.
5523         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5524         * modules/arpa_inet (Depends-on): Update.
5525         * modules/ctype (Depends-on): Update.
5526         * modules/dirent (Depends-on): Update.
5527         * modules/fcntl-h (Depends-on): Update.
5528         * modules/glob (Depends-on): Update.
5529         * modules/iconv-h (Depends-on): Update.
5530         * modules/langinfo (Depends-on): Update.
5531         * modules/locale (Depends-on): Update.
5532         * modules/math (Depends-on): Update.
5533         * modules/netdb (Depends-on): Update.
5534         * modules/poll-h (Depends-on): Update.
5535         * modules/pty (Depends-on): Update.
5536         * modules/search (Depends-on): Update.
5537         * modules/signal (Depends-on): Update.
5538         * modules/spawn (Depends-on): Update.
5539         * modules/stdio (Depends-on): Update.
5540         * modules/stdlib (Depends-on): Update.
5541         * modules/string (Depends-on): Update.
5542         * modules/strings (Depends-on): Update.
5543         * modules/sys_ioctl (Depends-on): Update.
5544         * modules/sys_select (Depends-on): Update.
5545         * modules/sys_socket (Depends-on): Update.
5546         * modules/sys_stat (Depends-on): Update.
5547         * modules/sys_time (Depends-on): Update.
5548         * modules/sys_wait (Depends-on): Update.
5549         * modules/termios (Depends-on): Update.
5550         * modules/time (Depends-on): Update.
5551         * modules/unistd (Depends-on): Update.
5552         * modules/wchar (Depends-on): Update.
5553         * modules/wctype-h (Depends-on): Update.
5554
5555         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5556         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5557         (Files, Makefile.am): Update.
5558         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5559         * modules/argv-iter (Depends-on): Update.
5560         * modules/arpa_inet (Depends-on): Update.
5561         * modules/dirent (Depends-on): Update.
5562         * modules/fcntl-h (Depends-on): Update.
5563         * modules/fnmatch (Depends-on): Update.
5564         * modules/getopt-posix (Depends-on): Update.
5565         * modules/glob (Depends-on): Update.
5566         * modules/iconv-h (Depends-on): Update.
5567         * modules/inttypes-incomplete (Depends-on): Update.
5568         * modules/locale (Depends-on): Update.
5569         * modules/math (Depends-on): Update.
5570         * modules/netdb (Depends-on): Update.
5571         * modules/search (Depends-on): Update.
5572         * modules/signal (Depends-on): Update.
5573         * modules/spawn (Depends-on): Update.
5574         * modules/stdio (Depends-on): Update.
5575         * modules/stdlib (Depends-on): Update.
5576         * modules/string (Depends-on): Update.
5577         * modules/strings (Depends-on): Update.
5578         * modules/sys_socket (Depends-on): Update.
5579         * modules/sys_stat (Depends-on): Update.
5580         * modules/sys_time (Depends-on): Update.
5581         * modules/sys_times (Depends-on): Update.
5582         * modules/sys_utsname (Depends-on): Update.
5583         * modules/time (Depends-on): Update.
5584         * modules/unistd (Depends-on): Update.
5585         * modules/wchar (Depends-on): Update.
5586         * MODULES.html.sh (Support for building libraries and executables):
5587         Update.
5588
5589 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5590
5591         Improvements on _Noreturn and related modules.
5592
5593         modules/_Exit-tests: test _Noreturn too
5594         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5595         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5596         (main): Use them.
5597
5598         stdnoreturn, stdnoreturn-tests: remove modules
5599         They're not needed here and a bit premature for use elsewhere.  See
5600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5601         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5602         * tests/test-stdnoreturn.c: Remove files.
5603         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5604         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5605         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5606         and using noreturn.
5607         * modules/openat, modules/sigpipe-die, modules/xalloc:
5608         * modules/xmemdup0, modules/xstrtol:
5609         Remove dependency on stdnoreturn.
5610
5611         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5612         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5613         Reparenthesize to avoid GCC warning.
5614         Support Microsoft's syntax.
5615         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5616
5617         _Noreturn-tests: remove module
5618         * modules/_Noreturn-tests: Remove.
5619         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5620         * tests/test-_Noreturn.c: Remove.
5621         * tests/test-stdnoreturn.c: Merge from the old
5622         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5623
5624 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5625
5626         _Noreturn, stdnoreturn, and related modules.
5627
5628         * top/maint.mk: Adjust to new noreturn support.
5629         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5630         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5631
5632         xalloc: use stdnoreturn.h
5633         * lib/xalloc.h: Include <stdnoreturn.h>.
5634         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5635         * modules/xalloc (Depends-on): Add stdnoreturn.
5636
5637         xstrtol: use stdnoreturn.h
5638         * lib/xstrtol.h: Include <stdnoreturn.h>.
5639         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5640         * modules/xstrtol (Depends-on): Add stdnoreturn.
5641
5642         xmemdup0: use stdnoreturn.h
5643         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5644         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5645         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5646
5647         sigpipe-die: use stdnoreturn.h
5648         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5649         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5650         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5651
5652         openat: use stdnoreturn.h
5653         * lib/openat.h: Include <stdnoreturn.h>.
5654         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5655         * modules/openat (Depends-on): Add stdnoreturn.
5656
5657         * lib/openat-die.c (openat_save_fail): Modernize comment.
5658
5659         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5660
5661         * lib/glthread/thread.h: Modernize comment.
5662
5663         obstack: use _Noreturn
5664         * lib/obstack.c (__attribute__): Remove macro.
5665         (print_and_abort): Use _Noreturn.
5666
5667         c-stack: use _Noreturn
5668         * lib/c-stack.c (die, overflow_handler, segv_handler):
5669         Use _Noreturn rather than __attribute__((noreturn)).
5670
5671         argmatch-tests, exclude_tests: use _Noreturn
5672         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5673         Remove.
5674         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5675
5676         stdlib: use _Noreturn
5677         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5678         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5679         * modules/stdlib (Depends-on): Add _Noreturn.
5680         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5681
5682         stdnoreturn-tests: new module
5683         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5684
5685         stdnoreturn: new module
5686         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5687         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5688
5689         _Noreturn-tests: new module
5690         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5691
5692         _Noreturn: new module
5693         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5694         New section, mentioning it.
5695         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5696
5697         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5698
5699 2011-07-11  Eric Blake  <eblake@redhat.com>
5700
5701         ffs: new module
5702         * modules/ffs: New file.
5703         * m4/ffs.m4: Likewise.
5704         * lib/ffs.c: Likewise.
5705         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5706         * modules/strings (Makefile.am): Substitute witness.
5707         (Depends-on): Add c++defs.
5708         * lib/strings.in.h (ffs): Declare.
5709         * modules/ffs-tests: New test file.
5710         * tests/test-ffs.c: Test new module.
5711         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5712         * doc/posix-functions/ffs.texi (ffs): Likewise.
5713
5714         regex: avoid compiler warning
5715         * lib/regex.c (includes): Include <strings.h>, for use of
5716         strcasecmp in regcomp.c.
5717         Reported by Joachim Schmitz.
5718
5719 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5720
5721         stdint: respect system's intmax_t if INTMAX_MAX
5722         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5723         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5724         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5725         long but int64_t is long long, and where we will clash with the
5726         system intmax_t if we override it.  See
5727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5728         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5729         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5730         similarly for UINTMAX_C.
5731
5732 2011-07-08  Bruno Haible  <bruno@clisp.org>
5733
5734         pthread_sigmask tests: Avoid a compiler warning.
5735         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5736         non-zero.
5737
5738         sigprocmask tests: A better way to avoid a compiler warning.
5739         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5740         (main): Complain if system() returns non-zero.
5741         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5742
5743 2011-07-08  Bruno Haible  <bruno@clisp.org>
5744
5745         pthread_sigmask: Work around IRIX bug.
5746         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5747         bug.
5748         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5749         there may be unblocked pending signals.
5750         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5751
5752 2011-07-08  Bruno Haible  <bruno@clisp.org>
5753
5754         pthread_sigmask: Work around Cygwin bug.
5755         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5756         bug.
5757         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5758         the system's pthread_sigmask function.
5759         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5760
5761 2011-07-08  Bruno Haible  <bruno@clisp.org>
5762
5763         pthread_sigmask: Work around bug in single-threaded implementation.
5764         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5765         FreeBSD, HP-UX, Solaris bug.
5766         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5767         * lib/pthread_sigmask.c: Include <stddef.h>.
5768         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5769         the system's pthread_sigmask function.
5770         * modules/pthread_sigmask (configure.ac): Invoke
5771         gl_PREREQ_PTHREAD_SIGMASK.
5772         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5773         HP-UX, Solaris.
5774
5775 2011-07-08  Eric Blake  <eblake@redhat.com>
5776
5777         test-sigprocmask: avoid compiler warning
5778         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5779         * tests/test-sigprocmask.c (main): Use it to silence warning.
5780         Reported by Jim Meyering.
5781
5782         test-snprintf: avoid compiler warning
5783         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5784         * tests/test-vsnprintf.c (main): Likewise.
5785         Reported by Jim Meyering.
5786
5787 2011-07-08  Bruno Haible  <bruno@clisp.org>
5788
5789         Tests for module 'pthread_sigmask'.
5790         * modules/pthread_sigmask-tests: New file.
5791         * tests/test-pthread_sigmask1.c: New file, based on
5792         tests/test-sigprocmask.c.
5793         * tests/test-pthread_sigmask2.c: New file.
5794
5795 2011-07-08  Jim Meyering  <meyering@redhat.com>
5796
5797         test-getopt.h: avoid warning about an unused variable
5798         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5799
5800 2011-07-07  Jim Meyering  <meyering@redhat.com>
5801
5802         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5803         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5804         now that it no longer contains leading TABs.
5805         Remove unused "url=FIXME" statement.
5806
5807 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5808
5809         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5810         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5811         When gl_THREADLIB is not in use, assume that the POSIX sematics
5812         are desired.  This is better for Emacs, which uses POSIX semantics
5813         on GNUish and/or POSIXish platforms, and does not use threads at
5814         all otherwise.
5815
5816         pthread_sigmask: fix typo when testing for libraries
5817         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5818         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5819
5820 2011-07-08  Eric Blake  <eblake@redhat.com>
5821
5822         fts: introduce FTS_NOATIME
5823         * lib/fts_.h (FTS_NOATIME): New bit flag.
5824         (FTS_OPTIONMASK): Adjust.
5825         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5826         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5827
5828 2011-07-08  Bruno Haible  <bruno@clisp.org>
5829
5830         Tests for module 'thread'.
5831         * modules/thread-tests: New file.
5832         * tests/test-thread_self.c: New file.
5833         * tests/test-thread_create.cc: New file.
5834
5835 2011-07-08  Bruno Haible  <bruno@clisp.org>
5836
5837         thread: Avoid gcc warnings when using gl_thread_self().
5838         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5839         'void *'.
5840         (gl_thread_self_pointer): Update.
5841
5842 2011-07-07  Bruno Haible  <bruno@clisp.org>
5843
5844         signal-c++-tests: Check declaration of pthread_sigmask.
5845         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5846         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5847         $(LIB_PTHREAD_SIGMASK).
5848
5849 2011-07-07  Bruno Haible  <bruno@clisp.org>
5850
5851         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5852         * lib/signal.in.h (pthread_sigmask): Override if
5853         REPLACE_PTHREAD_SIGMASK is 1.
5854         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5855         REPLACE_PTHREAD_SIGMASK.
5856         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5857         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5858         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5859         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5860         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5861
5862 2011-07-07  Bruno Haible  <bruno@clisp.org>
5863
5864         pthread_sigmask: Ensure declaration in <signal.h>.
5865         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5866         include <pthread.h>.
5867         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5868         problem.
5869
5870 2011-07-07  Bruno Haible  <bruno@clisp.org>
5871
5872         pthread_sigmask: Document the module.
5873         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5874
5875 2011-07-07  Bruno Haible  <bruno@clisp.org>
5876
5877         pthread_sigmask: Follow gnulib conventions.
5878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5879         gl_PTHREAD_SIGMASK.
5880         * modules/pthread_sigmask (configure.ac): Update.
5881
5882 2011-07-07  Bruno Haible  <bruno@clisp.org>
5883
5884         pthread_sigmask: Make declaration C++ safe.
5885         * lib/signal.in.h: In two special conditions, just do an #include_next.
5886         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5887         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5888         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5889         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5890         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5891         not REPLACE_PTHREAD_MASK.
5892         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5893         not REPLACE_PTHREAD_MASK.
5894         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5895
5896 2011-07-07  Bruno Haible  <bruno@clisp.org>
5897
5898         pthread_sigmask: Fix return value.
5899         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5900         * lib/pthread_sigmask.c: New file.
5901         * modules/pthread_sigmask (Files): Add it.
5902         (configure.ac): Invoke AC_LIBOBJ.
5903
5904 2011-07-07  Eric Blake  <eblake@redhat.com>
5905
5906         getopt: more portable argv creation
5907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5908         const, use char arrays rather than strings.
5909         Suggested by Paul Eggert.
5910
5911 2011-07-07  Bruno Haible  <bruno@clisp.org>
5912
5913         Tests for module 'sigprocmask'.
5914         * modules/sigprocmask-tests: New file.
5915         * tests/test-sigprocmask.c: New file.
5916
5917 2011-07-07  Bruno Haible  <bruno@clisp.org>
5918
5919         float tests: Tweak.
5920         * tests/test-float.c (main): Tweak skip message.
5921
5922 2011-07-07  Eric Blake  <eblake@redhat.com>
5923
5924         getopt: avoid compiler warning during configure
5925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5926         assigning string literals to non-const pointer.
5927
5928         getopt-gnu: avoid crash in glibc getopt
5929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5930         * tests/test-getopt.h (test_getopt): Enhance test.
5931         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5932         * doc/posix-functions/getopt.texi (getopt): Document it.
5933         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5934         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5935         Likewise.
5936
5937 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5938
5939         getopt: handle W; without long options in getopt [BZ #12922]
5940         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5941         but no long options are defined, just return 'W'.
5942
5943 2011-07-07  Bruno Haible  <bruno@clisp.org>
5944
5945         Avoid literal tabs.
5946         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5947         variable containing a tab instead of a literal tab.
5948         Reported by Jim Meyering.
5949
5950 2011-07-07  Bruno Haible  <bruno@clisp.org>
5951
5952         Comments.
5953         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5954
5955 2011-07-06  Bruno Haible  <bruno@clisp.org>
5956
5957         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5958         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5959         <winsock2.h>.
5960         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5961         lib/sys_socket.in.h.
5962         (close, gethostname): Hide declarations from <winsock2.h>.
5963         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5964         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5965         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5966         (select): Don't override if gnulib's <sys/select.h> was already
5967         included.
5968         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5969         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5970         setsockopt, shutdown, select): Tweak indentation.
5971
5972 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5973
5974         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5975         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5976         in an application that does not use the sys_select module.
5977
5978 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5979
5980         poll: do not return 0 on timeout=-1
5981         * lib/poll.c: Loop with yield if no events occured
5982
5983 2011-07-06  Eric Blake  <eblake@redhat.com>
5984
5985         pthread_sigmask: always replace when not using pthread
5986         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5987         replacement when using some threading other than pthread.  Fix
5988         logic bug.
5989
5990 2011-07-06  Bruno Haible  <bruno@clisp.org>
5991
5992         Comments.
5993         * m4/printf.m4: Update comments about mingw.
5994
5995 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5996
5997         sys_select: define sigset_t more portably
5998         * lib/sys_select.in.h: Always include <sys/types.h>, since
5999         we now need sigset_t and mingw defines it there.
6000         Include <signal.h> before split inclusion guard, to avoid
6001         mishaps on Solaris, whose <signal.h> eventually includes us.
6002         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6003         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6004         which come from ...
6005         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6006         gl_CHECK_TYPE_SIGSET_T.
6007         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6008         does the real work.
6009         * modules/sys_select (Depends-on): Add 'signal'.
6010
6011         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6012         Suggested by Bruno Haible.
6013
6014         pselect: Use pthread_sigmask, not sigprocmask.
6015         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6016         multithreaded apps better than sigprocmask does.
6017         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6018         sigprocmask directly.
6019
6020 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6023         Don't #undef,  since we don't need any underlying pselect.
6024         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6025         (Depends-on): Add select.
6026         (Link): Add $(LIBSOCKET).
6027         These changes suggested by Bruno Haible.
6028
6029         pselect: document better
6030         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6031         * doc/posix-functions/pselect.texi (pselect): Document new module.
6032
6033         pthread_sigmask: new module
6034         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6035         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6036         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6037         This is done only as a macro; I don't know how well that'll
6038         work for C++.  Move <sys/types.h> include before the include_next,
6039         to avoid mishap on Solaris.
6040         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6041         * modules/signal (Makefile.am): Substitute the check's results.
6042         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6043
6044         test-pselect: new module
6045         * modules/pselect-tests, tests/test-pselect.c: New files.
6046         * tests/test-select.c, tests/test-sys_select-c++.cc:
6047         If TEST_PSELECT is defined, test pselect instead of testing select.
6048
6049         * tests/test-sys_select.c (sigset_t): Test for it, too.
6050         Suggested by Bruno Haible.
6051
6052 2011-07-05  Eric Blake  <eblake@redhat.com>
6053
6054         snprintf: guarantee %1$d, for libintl
6055         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6056         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6057         * doc/posix-functions/snprintf.texi (snprintf): Update.
6058         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6059         * tests/test-snprintf.c (main): Enhance test.
6060         * tests/test-vsnprintf.c (main): Likewise.
6061
6062 2011-07-05  Jim Meyering  <meyering@redhat.com>
6063
6064         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6065         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6066         per Bruno's request, to accommodate this idiom (no space after "#")
6067         even when the function is inside an #if block:
6068         char *
6069         gets (char *s)
6070         #undef gets
6071         {
6072           ...
6073         }
6074
6075 2011-07-04  Jim Meyering  <meyering@redhat.com>
6076
6077         maint: indent with spaces, not TABs, and add a rule to check this
6078         * tests/test-userspec.c: Indent with spaces, not TABs.
6079         * tests/test-argp.c: Likewise.
6080         * tests/test-c-stack2.sh: Likewise.
6081         * tests/test-parse-duration.sh: Likewise
6082         * m4/strtod.m4: Likewise.
6083         * m4/alloca.m4: Likewise.
6084         * m4/pselect.m4: Likewise.
6085         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6086
6087 2011-07-03  Jim Meyering  <meyering@redhat.com>
6088
6089         maint.mk: correct omissions in prohibit_argmatch_without_use check
6090         This rule would mistakenly report that argmatch.h is included without
6091         use even when both the argmatch and invalid_arg macro were used.
6092         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6093         of argmatch and invalid_arg.
6094
6095 2011-07-03  Bruno Haible  <bruno@clisp.org>
6096
6097         Comments about EINTR.
6098         * lib/safe-read.h: Explain the purpose of this module.
6099         * lib/safe-write.h: Likewise.
6100         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6101         module.
6102         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6103         module.
6104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6105
6106 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6107
6108         xnanosleep: Rewrite to use new dtotimespec module.
6109         It has the conversion code that used to be in xnanosleep.
6110         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6111         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6112         (TIME_T_MAX): Remove.
6113         (xnanosleep): Rewrite in terms of dtotimespec.
6114         * modules/xnanosleep (Depends-on): Add dtotimespec.
6115         Remove intprops, stdbool.
6116
6117         timespec-add, timespec-sub: new modules
6118         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6119         * lib/timespec-add.c, lib/timespec-sub.c:
6120         * modules/timespec-add, modules/timespec-sub: New files.
6121
6122         dtotimespec: new module
6123         * lib/timespec.h (dtotimespec): New decl.
6124         * lib/dtotimespec.c, modules/dtotimespec: New files.
6125
6126         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6127
6128         pselect: new module
6129         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6130         (pselect): New decls.
6131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6132         since the standard pselect decl uses 'restrict'.
6133         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6134         HAVE_PSELECT, REPLACE_PSELECT.
6135         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6136         HAVE_PSELECT, REPLACE_PSELECT.
6137         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6138
6139         sys_select: don't depend on sys_socket
6140         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6142         This fix works on GNU and GNU-like platforms, but has not been tested
6143         on native Windows.
6144         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6146         gl_HEADER_SYS_SOCKET.
6147         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6148         gl_PREREQ_SYS_H_WINSOCK2.
6149
6150 2011-06-29  Eric Blake  <eblake@redhat.com>
6151
6152         pipe2: fix C89 compile problem
6153         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6154         Reported by Bruno Haible.
6155
6156         pipe, pipe2: don't corrupt fd on error
6157         * lib/pipe.c (pipe): Leave fd unchanged on error.
6158         * lib/pipe2.c (pipe2): Likewise.
6159         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6160         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6161
6162 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6163
6164         mmap-anon: do not use regular expressions inadvertently
6165         * m4/mmap-anon.m4: Remove trailing period from strings sought
6166         in the output.
6167
6168 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6169
6170         nanosleep: fix integer overflow problem
6171         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6172         arithmetic wraps around on overflow.
6173
6174         nanosleep: simplify carrying
6175         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6176         first call to the underyling nanosleep, not for the last one.
6177         This doesn't fix any bugs, but it simplifies the computation of
6178         the remaining delay.  Found while auditing integer overflow issues.
6179
6180         dup2: remove test for existence of fcntl
6181         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6182         "#if HAVE_FCNTL", in the configure-time test program.
6183         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6184         and therefore speeds up "configure" a bit.  Found while
6185         adding the dup2 module to Emacs.
6186
6187 2011-06-24  Eric Blake  <eblake@redhat.com>
6188
6189         maint.mk: enhance useless header checks
6190         * top/maint.mk (_sc_header_without_use): Check both include
6191         styles.
6192         (sc_prohibit_assert_without_use)
6193         (sc_prohibit_close_stream_without_use)
6194         (sc_prohibit_getopt_without_use)
6195         (sc_prohibit_quotearg_without_use)
6196         (sc_prohibit_quote_without_use)
6197         (sc_prohibit_long_options_without_use)
6198         (sc_prohibit_inttostr_without_use)
6199         (sc_prohibit_ignore_value_without_use)
6200         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6201         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6202         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6203         (sc_prohibit_hash_pjw_without_use)
6204         (sc_prohibit_safe_read_without_use)
6205         (sc_prohibit_argmatch_without_use)
6206         (sc_prohibit_canonicalize_without_use)
6207         (sc_prohibit_root_dev_ino_without_use)
6208         (sc_prohibit_openat_without_use)
6209         (sc_prohibit_c_ctype_without_use)
6210         (sc_prohibit_signal_without_use)
6211         (sc_prohibit_stdio--_without_use)
6212         (sc_prohibit_stdio-safer_without_use)
6213         (sc_prohibit_strings_without_use)
6214         (sc_prohibit_intprops_without_use)
6215         (sc_prohibit_stddef_without_use)
6216         (sc_prohibit_xfreopen_without_use): Update clients.
6217
6218 2011-06-24  Jim Meyering  <meyering@redhat.com>
6219
6220         syntax-check: keep one maint.mk rule in sync with its header
6221         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6222         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6223         I prefer to avoid temporary files here, so use <(...), but that
6224         is not supported by /bin/sh, so...
6225         (SHELL): Define to /bin/bash.
6226
6227 2011-06-24  Eric Blake  <eblake@redhat.com>
6228
6229         maint.mk: update sc_prohibit_intprops_without_use
6230         * top/maint.mk (_intprops_names): Match recent changes.
6231
6232 2011-06-24  Bruno Haible  <bruno@clisp.org>
6233
6234         strerror-override: No-op tweak.
6235         * lib/strerror-override.h (strerror_override): Reorder conditions,
6236         for consistency with lib/strerror-override.c.
6237
6238 2011-06-23  Eric Blake  <eblake@redhat.com>
6239
6240         maint.mk: test further PATH_MAX issues
6241         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6242         (sc_prohibit_path_max_allocation): ...and also test alloca.
6243         Suggested by Jim Meyering.
6244
6245 2011-06-22  Eric Blake  <eblake@redhat.com>
6246
6247         maint.mk: add syntax-check to avoid char[PATH_MAX]
6248         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6249
6250         stat: be robust to PATH_MAX definition
6251         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6252         * modules/stat (Depends-on): Add verify.
6253
6254         link: work around IRIX bug
6255         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6256         * lib/link.c (rpl_link): Work around it.
6257         * tests/test-link.h (test_link): Enhance test.
6258         * doc/posix-functions/link.texi (link): Document the bug.
6259
6260         getopt: silence clang warning
6261         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6262         dereference.
6263         Reported by Gustavo Martin Domato.
6264
6265 2011-06-22  Jim Meyering  <meyering@redhat.com>
6266
6267         bootstrap: do not insert a blank line into each .gitignore file
6268         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6269
6270 2011-06-21  Eric Blake  <eblake@redhat.com>
6271
6272         perror: test for output mismatch
6273         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6274         perror on IRIX.
6275
6276         strerror_r: fix OpenBSD behavior on out-of-range
6277         * lib/strerror_r.c (strerror_r): Always use maximal string.
6278         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6279
6280         strerror_r: fix OpenBSD behavior on 0
6281         * lib/strerror-override.c (strerror_override): Also override 0
6282         when needed.
6283         * lib/strerror-override.h (strerror_override): Likewise.
6284         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6285         earlier.
6286         * lib/strerror_r.c (strerror_r): Likewise.
6287         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6288         behavior...
6289         (gl_FUNC_STRERROR_0): ...into new macro.
6290         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6291         is overridden.
6292         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6293         * modules/strerror-override (Files): Add strerror.m4.
6294         (configure.ac): Also provide override for 0 when needed.
6295         * doc/posix-functions/strerror.texi (strerror): Document this.
6296         * doc/posix-functions/perror.texi (perror): Likewise.
6297
6298         perror: adjust array size
6299         * modules/perror (Depends-on): Add strerror-override.
6300         * lib/perror.c (perror): Use it to avoid magic number.
6301
6302         strerror-override: reduce size
6303         * lib/strerror-override.c (strerror_override): Use fewer lines.
6304
6305 2011-06-20  Bruno Haible  <bruno@clisp.org>
6306
6307         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6308         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6309
6310 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6311
6312         alloca: port to compilers that can optimize like GCC 4.6.0
6313         * lib/alloca.c (find_stack_direction): New signature, taken from
6314         Autoconf git.  This works with GCC 4.6.0.  This code should never
6315         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6316         be used with other compilers that optimize as well as GCC 4.6.0 does.
6317         (alloca): Adjust to new signature.
6318         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6319         New macro, which patches Autoconf in a similar way.
6320
6321         c-stack: stop worrying about stack direction
6322         * lib/c-stack.c (find_stack_direction): Remove.
6323         (segv_handler): Don't worry about stack direction growth, as it's
6324         too much of a pain to configure this correctly, given how compilers
6325         are optimizing-away our stack-growth detection code.  Instead, assume
6326         that any access to just before or just after the stack is OK.
6327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6328         Don't require AC_FUNC_ALLOCA; no longer needed.
6329
6330 2011-06-20  Eric Blake  <eblake@redhat.com>
6331
6332         test-stat: don't allocate PATH_MAX bytes
6333         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6334         PATH_MAX-sized buffer.
6335         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6336         * modules/stat-tests (Depends-on): Likewise.
6337         * tests/test-fstatat.c (includes): Drop pathmax.h.
6338         * tests/test-stat.c (includes): Likewise.
6339         Reported by Bruno Haible.
6340
6341 2011-06-20  Bruno Haible  <bruno@clisp.org>
6342
6343         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6344         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6345         * lib/float.c: New file.
6346         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6347         REPLACE_FLOAT_LDBL.
6348         * modules/float (Files): Add lib/float.c.
6349         (configure.ac): Invoke AC_LIBOBJ.
6350         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6351
6352 2011-06-20  Bruno Haible  <bruno@clisp.org>
6353
6354         Tests for module 'float'.
6355         * modules/float-tests: New file.
6356         * tests/test-float.c: New file.
6357
6358 2011-06-19  Bruno Haible  <bruno@clisp.org>
6359
6360         isinf: Coding style.
6361         * lib/isinf.c: Use GNU coding style.
6362
6363 2011-06-19  Bruno Haible  <bruno@clisp.org>
6364
6365         linkat test: Avoid test failure on AIX 7.1.
6366         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6367         * tests/test-link.h (test_link): Likewise.
6368
6369 2011-06-19  Bruno Haible  <bruno@clisp.org>
6370
6371         pread test: Avoid test failure on OpenBSD 4.9.
6372         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6373
6374 2011-06-19  Bruno Haible  <bruno@clisp.org>
6375
6376         sprintf-posix: Fix test failure on AIX 7.1.
6377         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6378         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6379         on AIX.
6380         * doc/posix-functions/fprintf.texi: Likewise.
6381         * doc/posix-functions/printf.texi: Likewise.
6382         * doc/posix-functions/snprintf.texi: Likewise.
6383         * doc/posix-functions/sprintf.texi: Likewise.
6384         * doc/posix-functions/vdprintf.texi: Likewise.
6385         * doc/posix-functions/vfprintf.texi: Likewise.
6386         * doc/posix-functions/vprintf.texi: Likewise.
6387         * doc/posix-functions/vsnprintf.texi: Likewise.
6388         * doc/posix-functions/vsprintf.texi: Likewise.
6389
6390 2011-06-19  Bruno Haible  <bruno@clisp.org>
6391
6392         roundl-ieee: Fix test failure on AIX 7.1.
6393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6394         * doc/posix-functions/roundl.texi: Mention problem with negative
6395         arguments.
6396
6397 2011-06-19  Bruno Haible  <bruno@clisp.org>
6398
6399         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6400         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6401         * doc/posix-functions/round.texi: Mention problem with negative
6402         arguments.
6403         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6404
6405 2011-06-19  Bruno Haible  <bruno@clisp.org>
6406
6407         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6409         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6410         * doc/posix-functions/roundf.texi: Mention problem with negative
6411         arguments.
6412         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6413
6414 2011-06-19  Bruno Haible  <bruno@clisp.org>
6415
6416         ceilf-ieee: Work around bug on MacOS X 10.5.
6417         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6418
6419         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6420         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6421         IEEE compliant, avoid compiler optimizations.
6422         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6423         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6424         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6425         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6426         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6427         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6428         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6430         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6431         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6432
6433 2011-06-19  Bruno Haible  <bruno@clisp.org>
6434
6435         ceilf-ieee: Work around bug on AIX 7.1.
6436         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6437         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6438
6439 2011-06-19  Bruno Haible  <bruno@clisp.org>
6440
6441         ceil-ieee: Work around bug on AIX 7.1.
6442         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6443         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6444
6445 2011-06-18  Bruno Haible  <bruno@clisp.org>
6446
6447         fsync test: Avoid test failure on MacOS X and AIX.
6448         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6449         EINVAL.
6450
6451 2011-06-18  Bruno Haible  <bruno@clisp.org>
6452
6453         openat, fdopendir tests: Fix link errors.
6454         * modules/openat-tests (Depends-on): Add progname.
6455         * modules/fdopendir-tests (Depends-on): Likewise.
6456         * tests/test-fchownat.c: Include progname.h.
6457         (main): Call set_program_name.
6458         * tests/test-fstatat.c: Include progname.h.
6459         (main): Call set_program_name.
6460         * tests/test-mkdirat.c: Include progname.h.
6461         (main): Call set_program_name.
6462         * tests/test-openat.c: Include progname.h.
6463         (main): Call set_program_name.
6464         * tests/test-unlinkat.c: Include progname.h.
6465         (main): Call set_program_name.
6466         * tests/test-fdopendir.c: Include progname.h.
6467         (main): Call set_program_name.
6468
6469 2011-06-18  Bruno Haible  <bruno@clisp.org>
6470
6471         Doc update.
6472         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6473         HP-UX.
6474         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6475
6476 2011-06-18  Bruno Haible  <bruno@clisp.org>
6477
6478         getcwd tests: Avoid compilation error on HP-UX 11.31.
6479         * modules/getcwd-tests (Depends-on): Add pathmax.
6480         * tests/test-getcwd.c: Include pathmax.h.
6481
6482 2011-06-18  Bruno Haible  <bruno@clisp.org>
6483
6484         isfinite, isinf: Fix link error on AIX 6 and 7.
6485         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6486         needed, also test the macro with a 'float' argument.
6487         * m4/isinf.m4 (gl_ISINF): Likewise.
6488
6489 2011-06-18  Bruno Haible  <bruno@clisp.org>
6490
6491         getloadavg: Don't clobber LIBS. Regression from previous commit.
6492         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6493         AC_CHECK_LIB from here...
6494         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6495         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6496         gl_func_getloadavg_done.
6497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6498
6499 2011-06-18  Bruno Haible  <bruno@clisp.org>
6500
6501         clean-temp: Improve documentation.
6502         * lib/clean-temp.h: Explain better how to use this module.
6503         Reported by John Darrington <john@darrington.wattle.id.au>.
6504
6505 2011-06-17  Bruno Haible  <bruno@clisp.org>
6506
6507         pread, pwrite: Avoid cc warning on AIX.
6508         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6509         (pwrite): Likewise.
6510
6511 2011-06-17  Bruno Haible  <bruno@clisp.org>
6512
6513         spawn-pipe tests: Fix link error.
6514         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6516
6517 2011-06-17  Bruno Haible  <bruno@clisp.org>
6518
6519         Tests: Remove unnecessary dependency.
6520         * modules/canonicalize-tests (Depends-on): Remove progname.
6521         * modules/chown-tests (Depends-on): Likewise.
6522         * modules/dirname-tests (Depends-on): Likewise.
6523         * modules/fdopendir-tests (Depends-on): Likewise.
6524         * modules/fdutimensat-tests (Depends-on): Likewise.
6525         * modules/hash-tests (Depends-on): Likewise.
6526         * modules/lchown-tests (Depends-on): Likewise.
6527         * modules/linkat-tests (Depends-on): Likewise.
6528         * modules/renameat-tests (Depends-on): Likewise.
6529         * modules/spawn-pipe-tests (Depends-on): Likewise.
6530         * modules/utimensat-tests (Depends-on): Likewise.
6531
6532 2011-06-17  Bruno Haible  <bruno@clisp.org>
6533
6534         spawn-pipe tests: Fix link error.
6535         * tests/test-spawn-pipe-child.c: Undefine fflush.
6536
6537 2011-06-17  Bruno Haible  <bruno@clisp.org>
6538
6539         Fix tests link errors.
6540         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6541         * modules/chown-tests (Makefile.am): Don't link test-chown with
6542         LIBINTL.
6543         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6544         LIBINTL.
6545         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6546         LIBINTL.
6547         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6548         LIBINTL.
6549
6550 2011-06-16  Bruno Haible  <bruno@clisp.org>
6551
6552         crypto/gc-sha1: Fix recent regression.
6553         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6554         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6555
6556         crypto/gc-md5: Fix recent regression.
6557         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6558
6559         crypto/gc-md4: Fix recent regression.
6560         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6561         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6562
6563         crypto/gc-arctwo: Fix recent regression.
6564         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6565         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6566
6567         crypto/gc-rijndael: Fix recent regression.
6568         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6569         (configure.ac): Invoke AC_LIBOBJ here.
6570         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6572
6573         crypto/gc-hmac-sha1: Fix recent regression.
6574         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6575         (configure.ac): Invoke AC_LIBOBJ here.
6576         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6578
6579         crypto/gc-hmac-md5: Fix recent regression.
6580         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6581         (configure.ac): Invoke AC_LIBOBJ here.
6582         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6584
6585         crypto/gc-des: Fix recent regression.
6586         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6587         (configure.ac): Invoke AC_LIBOBJ here.
6588         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6590
6591         crypto/gc-arcfour: Fix recent regression.
6592         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6593         (configure.ac): Invoke AC_LIBOBJ here.
6594         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6596
6597 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6598
6599         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6600         After the 2011-05-21 change, this macro requires
6601         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6603
6604 2011-06-16  Bruno Haible  <bruno@clisp.org>
6605
6606         fprintftime: Move AC_LIBOBJ invocations to module description.
6607         * m4/fprintftime.m4: Remove file.
6608         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6609         (configure.ac): Remove gl_FPRINTFTIME call.
6610         (Makefile.am): Augment lib_SOURCES.
6611         Reported by Jim Meyering.
6612
6613 2011-06-16  Bruno Haible  <bruno@clisp.org>
6614
6615         tmpfile-safer: Finish 2011-05-23 commit.
6616         * m4/stdio-safer.m4: Really remove file.
6617         Reported by Jim Meyering.
6618
6619 2011-06-16  Bruno Haible  <bruno@clisp.org>
6620
6621         syntax-check: Fix typo.
6622         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6623         printf-posix.m4.
6624         Reported by Jim Meyering.
6625
6626 2011-06-13  Jim Meyering  <meyering@redhat.com>
6627
6628         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6629         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6630
6631 2011-05-23  Bruno Haible  <bruno@clisp.org>
6632
6633         yesno: Move AC_LIBOBJ invocations to module description.
6634         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6635         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6636
6637 2011-05-23  Bruno Haible  <bruno@clisp.org>
6638
6639         xstrtol: Move AC_LIBOBJ invocations to module description.
6640         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6641         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6642
6643 2011-05-23  Bruno Haible  <bruno@clisp.org>
6644
6645         xstrtold: Move AC_LIBOBJ invocations to module description.
6646         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6647         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6648
6649 2011-05-23  Bruno Haible  <bruno@clisp.org>
6650
6651         xstrtod: Move AC_LIBOBJ invocations to module description.
6652         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6653         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6654
6655 2011-05-23  Bruno Haible  <bruno@clisp.org>
6656
6657         xnanosleep: Move AC_LIBOBJ invocations to module description.
6658         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6659         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6660
6661 2011-05-23  Bruno Haible  <bruno@clisp.org>
6662
6663         xgetcwd: Move AC_LIBOBJ invocations to module description.
6664         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6665         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6666
6667 2011-05-23  Bruno Haible  <bruno@clisp.org>
6668
6669         xalloc: Move AC_LIBOBJ invocations to module description.
6670         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6671         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6672
6673 2011-05-23  Bruno Haible  <bruno@clisp.org>
6674
6675         write-any-file: Move AC_LIBOBJ invocations to module description.
6676         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6677         invocation.
6678         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6679
6680 2011-05-23  Bruno Haible  <bruno@clisp.org>
6681
6682         utimens: Move AC_LIBOBJ invocations to module description.
6683         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6684         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6685
6686 2011-05-23  Bruno Haible  <bruno@clisp.org>
6687
6688         utimecmp: Move AC_LIBOBJ invocations to module description.
6689         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6690         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6691
6692 2011-05-23  Bruno Haible  <bruno@clisp.org>
6693
6694         userspec: Move AC_LIBOBJ invocations to module description.
6695         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6696         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6697
6698 2011-05-23  Bruno Haible  <bruno@clisp.org>
6699
6700         unlinkdir: Move AC_LIBOBJ invocations to module description.
6701         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6702         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6703
6704 2011-05-23  Bruno Haible  <bruno@clisp.org>
6705
6706         unistd-safer: Move AC_LIBOBJ invocations to module description.
6707         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6708         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6709
6710 2011-05-23  Bruno Haible  <bruno@clisp.org>
6711
6712         tempname: Move AC_LIBOBJ invocations to module description.
6713         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6714         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6715
6716 2011-05-23  Bruno Haible  <bruno@clisp.org>
6717
6718         strftime: Move AC_LIBOBJ invocations to module description.
6719         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6720         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6721
6722 2011-05-23  Bruno Haible  <bruno@clisp.org>
6723
6724         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6725         * m4/stdlib-safer.m4: Remove file.
6726         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6727         (configure.ac): Remove gl_STDLIB_SAFER call.
6728         (Makefile.am): Augment lib_SOURCES.
6729
6730 2011-05-23  Bruno Haible  <bruno@clisp.org>
6731
6732         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6733         * m4/stdio-safer.m4: Remove file.
6734         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6735         (configure.ac): Remove gl_TMPFILE_SAFER call.
6736         (Makefile.am): Augment lib_SOURCES.
6737
6738 2011-05-23  Bruno Haible  <bruno@clisp.org>
6739
6740         popen-safer: Move AC_LIBOBJ invocations to module description.
6741         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6742         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6743         (configure.ac): Remove gl_POPEN_SAFER call.
6744         (Makefile.am): Augment lib_SOURCES.
6745
6746 2011-05-23  Bruno Haible  <bruno@clisp.org>
6747
6748         freopen-safer: Move AC_LIBOBJ invocations to module description.
6749         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6750         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6751         (configure.ac): Remove gl_FREOPEN_SAFER call.
6752         (Makefile.am): Augment lib_SOURCES.
6753
6754 2011-05-23  Bruno Haible  <bruno@clisp.org>
6755
6756         fopen-safer: Move AC_LIBOBJ invocations to module description.
6757         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6758         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6759         (configure.ac): Remove gl_FOPEN_SAFER call.
6760         (Makefile.am): Augment lib_SOURCES.
6761
6762 2011-05-23  Bruno Haible  <bruno@clisp.org>
6763
6764         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6765         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6766         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6767
6768 2011-05-23  Bruno Haible  <bruno@clisp.org>
6769
6770         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6771         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6772         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6773
6774 2011-05-23  Bruno Haible  <bruno@clisp.org>
6775
6776         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6777         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6778         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6779
6780 2011-05-23  Bruno Haible  <bruno@clisp.org>
6781
6782         settime: Move AC_LIBOBJ invocations to module description.
6783         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6784         * modules/settime (Makefile.am): Augment lib_SOURCES.
6785
6786 2011-05-23  Bruno Haible  <bruno@clisp.org>
6787
6788         savedir: Move AC_LIBOBJ invocations to module description.
6789         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6790         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6791
6792 2011-05-23  Bruno Haible  <bruno@clisp.org>
6793
6794         save-cwd: Move AC_LIBOBJ invocations to module description.
6795         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6796         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6797
6798 2011-05-23  Bruno Haible  <bruno@clisp.org>
6799
6800         same: Move AC_LIBOBJ invocations to module description.
6801         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6802         * modules/same (Makefile.am): Augment lib_SOURCES.
6803
6804 2011-05-23  Bruno Haible  <bruno@clisp.org>
6805
6806         safe-write: Move AC_LIBOBJ invocations to module description.
6807         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6808         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6809         instead of gl_SAFE_WRITE.
6810         (Makefile.am): Augment lib_SOURCES.
6811
6812 2011-05-23  Bruno Haible  <bruno@clisp.org>
6813
6814         safe-read: Move AC_LIBOBJ invocations to module description.
6815         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6816         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6817         of gl_SAFE_READ.
6818         (Makefile.am): Augment lib_SOURCES.
6819
6820 2011-05-23  Bruno Haible  <bruno@clisp.org>
6821
6822         safe-alloc: Move AC_LIBOBJ invocations to module description.
6823         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6824         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6825
6826 2011-05-23  Bruno Haible  <bruno@clisp.org>
6827
6828         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6829         * m4/rijndael.m4: Remove file.
6830         * modules/crypto/rijndael (Files): Remove it.
6831         (configure.ac): Remove gl_RIJNDAEL call.
6832         (Makefile.am): Augment lib_SOURCES.
6833
6834 2011-05-23  Bruno Haible  <bruno@clisp.org>
6835
6836         readtokens: Move AC_LIBOBJ invocations to module description.
6837         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6838         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6839
6840 2011-05-23  Bruno Haible  <bruno@clisp.org>
6841
6842         read-file: Move AC_LIBOBJ invocations to module description.
6843         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6844         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6845         of gl_FUNC_READ_FILE.
6846         (Makefile.am): Augment lib_SOURCES.
6847
6848 2011-05-23  Bruno Haible  <bruno@clisp.org>
6849
6850         quotearg: Move AC_LIBOBJ invocations to module description.
6851         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6852         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6853
6854 2011-05-23  Bruno Haible  <bruno@clisp.org>
6855
6856         quote: Move AC_LIBOBJ invocations to module description.
6857         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6858         * modules/quote (Makefile.am): Augment lib_SOURCES.
6859
6860 2011-05-23  Bruno Haible  <bruno@clisp.org>
6861
6862         posixver: Move AC_LIBOBJ invocations to module description.
6863         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6864         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6865
6866 2011-05-23  Bruno Haible  <bruno@clisp.org>
6867
6868         posixtm: Move AC_LIBOBJ invocations to module description.
6869         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6870         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6871
6872 2011-05-23  Bruno Haible  <bruno@clisp.org>
6873
6874         physmem: Move AC_LIBOBJ invocations to module description.
6875         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6876         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6877
6878 2011-05-23  Bruno Haible  <bruno@clisp.org>
6879
6880         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6881         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6882         invocation.
6883         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6884
6885 2011-05-23  Bruno Haible  <bruno@clisp.org>
6886
6887         mpsort: Move AC_LIBOBJ invocations to module description.
6888         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6889         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6890
6891 2011-05-23  Bruno Haible  <bruno@clisp.org>
6892
6893         modechange: Move AC_LIBOBJ invocations to module description.
6894         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6895         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6896
6897 2011-05-23  Bruno Haible  <bruno@clisp.org>
6898
6899         mkdir-p: Move AC_LIBOBJ invocations to module description.
6900         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6901         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6902
6903 2011-05-23  Bruno Haible  <bruno@clisp.org>
6904
6905         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6906         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6907         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6908
6909 2011-05-23  Bruno Haible  <bruno@clisp.org>
6910
6911         mgetgroups: Move AC_LIBOBJ invocations to module description.
6912         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6913         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6914
6915 2011-05-23  Bruno Haible  <bruno@clisp.org>
6916
6917         memxor: Move AC_LIBOBJ invocations to module description.
6918         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6919         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6920
6921 2011-05-23  Bruno Haible  <bruno@clisp.org>
6922
6923         memcoll: Move AC_LIBOBJ invocations to module description.
6924         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6925         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6926
6927 2011-05-23  Bruno Haible  <bruno@clisp.org>
6928
6929         memcasecmp: Move AC_LIBOBJ invocations to module description.
6930         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6931         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6932
6933 2011-05-23  Bruno Haible  <bruno@clisp.org>
6934
6935         crypto/md5: Move AC_LIBOBJ invocations to module description.
6936         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6937         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6938
6939 2011-05-23  Bruno Haible  <bruno@clisp.org>
6940
6941         crypto/md4: Move AC_LIBOBJ invocations to module description.
6942         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6943         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6944
6945 2011-05-23  Bruno Haible  <bruno@clisp.org>
6946
6947         crypto/md2: Move AC_LIBOBJ invocations to module description.
6948         * m4/md2.m4: Remove file.
6949         * modules/crypto/md2 (Files): Remove it.
6950         (configure.ac): Remove gl_MD2 call.
6951         (Makefile.am): Augment lib_SOURCES.
6952
6953 2011-05-23  Bruno Haible  <bruno@clisp.org>
6954
6955         long-options: Move AC_LIBOBJ invocations to module description.
6956         * m4/long-options.m4: Remove file.
6957         * modules/long-options (Files): Remove it.
6958         (configure.ac): Remove gl_LONG_OPTIONS call.
6959         (Makefile.am): Augment lib_SOURCES.
6960
6961 2011-05-23  Bruno Haible  <bruno@clisp.org>
6962
6963         i-ring: Move AC_LIBOBJ invocations to module description.
6964         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6965         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6966
6967 2011-05-23  Bruno Haible  <bruno@clisp.org>
6968
6969         idcache: Move AC_LIBOBJ invocations to module description.
6970         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6971         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6972
6973 2011-05-23  Bruno Haible  <bruno@clisp.org>
6974
6975         human: Move AC_LIBOBJ invocations to module description.
6976         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6977         * modules/human (Makefile.am): Augment lib_SOURCES.
6978
6979 2011-05-23  Bruno Haible  <bruno@clisp.org>
6980
6981         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6982         * m4/hmac-sha1.m4: Remove file.
6983         * modules/crypto/hmac-sha1 (Files): Remove it.
6984         (configure.ac): Remove gl_HMAC_SHA1 call.
6985         (Makefile.am): Augment lib_SOURCES.
6986
6987 2011-05-23  Bruno Haible  <bruno@clisp.org>
6988
6989         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6990         * m4/hmac-md5.m4: Remove file.
6991         * modules/crypto/hmac-md5 (Files): Remove it.
6992         (configure.ac): Remove gl_HMAC_MD5 call.
6993         (Makefile.am): Augment lib_SOURCES.
6994
6995 2011-05-23  Bruno Haible  <bruno@clisp.org>
6996
6997         hash: Move AC_LIBOBJ invocations to module description.
6998         * m4/hash.m4: Remove file.
6999         * modules/hash (Files): Remove it.
7000         (configure.ac): Remove gl_HASH call.
7001         (Makefile.am): Augment lib_SOURCES.
7002
7003 2011-05-23  Bruno Haible  <bruno@clisp.org>
7004
7005         hard-locale: Move AC_LIBOBJ invocations to module description.
7006         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7007         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7008
7009 2011-05-23  Bruno Haible  <bruno@clisp.org>
7010
7011         getugroups: Move AC_LIBOBJ invocations to module description.
7012         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7013         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7014
7015 2011-05-23  Bruno Haible  <bruno@clisp.org>
7016
7017         gettime: Move AC_LIBOBJ invocations to module description.
7018         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7019         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7020
7021 2011-05-23  Bruno Haible  <bruno@clisp.org>
7022
7023         getndelim2: Move AC_LIBOBJ invocations to module description.
7024         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7025         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7026
7027 2011-05-23  Bruno Haible  <bruno@clisp.org>
7028
7029         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7030         * m4/gc-pbkdf2-sha1.m4: Remove file.
7031         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7032         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7033         (Makefile.am): Augment lib_SOURCES.
7034
7035 2011-05-23  Bruno Haible  <bruno@clisp.org>
7036
7037         fts: Move AC_LIBOBJ invocations to module description.
7038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7039         * modules/fts (configure.ac): ... to here.
7040
7041 2011-05-23  Bruno Haible  <bruno@clisp.org>
7042
7043         file-type: Move AC_LIBOBJ invocations to module description.
7044         * m4/file-type.m4: Remove file.
7045         * modules/file-type (Files): Remove it.
7046         (configure.ac): Remove gl_FILE_TYPE call.
7047         (Makefile.am): Augment lib_SOURCES.
7048
7049 2011-05-23  Bruno Haible  <bruno@clisp.org>
7050
7051         filenamecat*: Respect rules for use of AC_LIBOBJ.
7052         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7053         Remove AC_LIBOBJ invocation.
7054         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7055         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7056
7057 2011-05-23  Bruno Haible  <bruno@clisp.org>
7058
7059         filemode: Move AC_LIBOBJ invocations to module description.
7060         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7061         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7062
7063 2011-05-23  Bruno Haible  <bruno@clisp.org>
7064
7065         openat-safer: Move AC_LIBOBJ invocations to module description.
7066         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7067         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7068
7069 2011-05-23  Bruno Haible  <bruno@clisp.org>
7070
7071         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7072         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7073         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7074
7075 2011-05-23  Bruno Haible  <bruno@clisp.org>
7076
7077         exclude: Move AC_LIBOBJ invocations to module description.
7078         * m4/exclude.m4: Remove file.
7079         * modules/exclude (Files): Remove it.
7080         (configure.ac): Remove gl_EXCLUDE call.
7081         (Makefile.am): Augment lib_SOURCES.
7082
7083 2011-05-23  Bruno Haible  <bruno@clisp.org>
7084
7085         dirname*: Respect rules for use of AC_LIBOBJ.
7086         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7087         invocations.
7088         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7089         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7090
7091 2011-05-23  Bruno Haible  <bruno@clisp.org>
7092
7093         dirent-safer: Move AC_LIBOBJ invocations to module description.
7094         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7095         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7096
7097 2011-05-23  Bruno Haible  <bruno@clisp.org>
7098
7099         crypto/des: Move AC_LIBOBJ invocations to module description.
7100         * m4/des.m4: Remove file.
7101         * modules/crypto/des (Files): Remove it.
7102         (configure.ac): Remove gl_DES call.
7103         (Makefile.am): Augment lib_SOURCES.
7104
7105 2011-05-23  Bruno Haible  <bruno@clisp.org>
7106
7107         cycle-check: Move AC_LIBOBJ invocations to module description.
7108         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7109         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7110
7111 2011-05-23  Bruno Haible  <bruno@clisp.org>
7112
7113         c-strtold: Move AC_LIBOBJ invocations to module description.
7114         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7115         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7116
7117 2011-05-23  Bruno Haible  <bruno@clisp.org>
7118
7119         c-strtod: Move AC_LIBOBJ invocations to module description.
7120         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7121         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7122
7123 2011-05-23  Bruno Haible  <bruno@clisp.org>
7124
7125         crc: Move AC_LIBOBJ invocations to module description.
7126         * m4/crc.m4: Remove file.
7127         * modules/crc (Files): Remove it.
7128         (configure.ac): Remove gl_CRC call.
7129         (Makefile.am): Augment lib_SOURCES.
7130
7131 2011-05-23  Bruno Haible  <bruno@clisp.org>
7132
7133         close-stream: Move AC_LIBOBJ invocations to module description.
7134         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7135         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7136
7137 2011-05-23  Bruno Haible  <bruno@clisp.org>
7138
7139         closeout: Move AC_LIBOBJ invocations to module description.
7140         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7141         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7142
7143 2011-05-23  Bruno Haible  <bruno@clisp.org>
7144
7145         closein: Move AC_LIBOBJ invocations to module description.
7146         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7147         * modules/closein (Makefile.am): Augment lib_SOURCES.
7148
7149 2011-05-23  Bruno Haible  <bruno@clisp.org>
7150
7151         cloexec: Move AC_LIBOBJ invocations to module description.
7152         * m4/cloexec.m4: Remove file.
7153         * modules/cloexec (Files): Remove it.
7154         (configure.ac): Remove gl_CLOEXEC call.
7155         (Makefile.am): Augment lib_SOURCES.
7156
7157 2011-05-23  Bruno Haible  <bruno@clisp.org>
7158
7159         check-version: Move AC_LIBOBJ invocations to module description.
7160         * m4/check-version.m4: Remove file.
7161         * modules/check-version (Files): Remove it.
7162         (configure.ac): Remove gl_CHECK_VERSION call.
7163         (Makefile.am): Augment lib_SOURCES.
7164
7165 2011-05-23  Bruno Haible  <bruno@clisp.org>
7166
7167         chdir-safer: Move AC_LIBOBJ invocations to module description.
7168         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7169         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7170
7171 2011-05-23  Bruno Haible  <bruno@clisp.org>
7172
7173         canonicalize: Move AC_LIBOBJ invocations to module description.
7174         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7175         AC_LIBOBJ invocation.
7176         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7177
7178 2011-05-23  Bruno Haible  <bruno@clisp.org>
7179
7180         canon-host: Move AC_LIBOBJ invocations to module description.
7181         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7182         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7183         instead of gl_CANON_HOST.
7184         (Makefile.am): Augment lib_SOURCES.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         backupfile: Move AC_LIBOBJ invocations to module description.
7189         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7190         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7191
7192 2011-05-23  Bruno Haible  <bruno@clisp.org>
7193
7194         argmatch: Move AC_LIBOBJ invocations to module description.
7195         * m4/argmatch.m4: Remove file.
7196         * modules/argmatch (Files): Remove it.
7197         (configure.ac): Remove gl_ARGMATCH call.
7198         (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7203         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7204         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7205
7206 2011-05-23  Bruno Haible  <bruno@clisp.org>
7207
7208         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7209         * m4/arcfour.m4: Remove file.
7210         * modules/crypto/arcfour (Files): Remove it.
7211         (configure.ac): Remove gl_ARCFOUR call.
7212         (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-22  Bruno Haible  <bruno@clisp.org>
7215
7216         write: Move AC_LIBOBJ invocations to module description.
7217         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7218         * modules/write (configure.ac): ... to here.
7219
7220 2011-05-22  Bruno Haible  <bruno@clisp.org>
7221
7222         wmemset: Move AC_LIBOBJ invocations to module description.
7223         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7224         here...
7225         * modules/wmemset (configure.ac): ... to here.
7226
7227 2011-05-22  Bruno Haible  <bruno@clisp.org>
7228
7229         wmemmove: Move AC_LIBOBJ invocations to module description.
7230         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7231         here...
7232         * modules/wmemmove (configure.ac): ... to here.
7233
7234 2011-05-22  Bruno Haible  <bruno@clisp.org>
7235
7236         wmemcpy: Move AC_LIBOBJ invocations to module description.
7237         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7238         here...
7239         * modules/wmemcpy (configure.ac): ... to here.
7240
7241 2011-05-22  Bruno Haible  <bruno@clisp.org>
7242
7243         wmemcmp: Move AC_LIBOBJ invocations to module description.
7244         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7245         here...
7246         * modules/wmemcmp (configure.ac): ... to here.
7247
7248 2011-05-22  Bruno Haible  <bruno@clisp.org>
7249
7250         wmemchr: Move AC_LIBOBJ invocations to module description.
7251         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7252         here...
7253         * modules/wmemchr (configure.ac): ... to here.
7254
7255 2011-05-22  Bruno Haible  <bruno@clisp.org>
7256
7257         wcswidth: Move AC_LIBOBJ invocations to module description.
7258         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7259         here...
7260         * modules/wcswidth (configure.ac): ... to here.
7261
7262 2011-05-22  Bruno Haible  <bruno@clisp.org>
7263
7264         wcwidth: Respect rules for use of AC_LIBOBJ.
7265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7266         invocation from here...
7267         * modules/wcwidth (configure.ac): ... to here.
7268         (Depends-on): Update conditions.
7269
7270 2011-05-22  Bruno Haible  <bruno@clisp.org>
7271
7272         wctype: Move AC_LIBOBJ invocations to module description.
7273         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7274         invocation from here...
7275         * modules/wctype (configure.ac): ... to here.
7276         (Depends-on): Update conditions.
7277
7278 2011-05-22  Bruno Haible  <bruno@clisp.org>
7279
7280         wctrans: Move AC_LIBOBJ invocations to module description.
7281         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7282         invocation from here...
7283         * modules/wctrans (configure.ac): ... to here.
7284
7285 2011-05-22  Bruno Haible  <bruno@clisp.org>
7286
7287         wctomb: Move AC_LIBOBJ invocations to module description.
7288         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7289         invocations from here...
7290         * modules/wctomb (configure.ac): ... to here.
7291
7292 2011-05-22  Bruno Haible  <bruno@clisp.org>
7293
7294         wctob: Move AC_LIBOBJ invocations to module description.
7295         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7296         gl_PREREQ_WCTOB invocations from here...
7297         * modules/wctob (configure.ac): ... to here.
7298         (Depends-on): Update conditions.
7299
7300 2011-05-22  Bruno Haible  <bruno@clisp.org>
7301
7302         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7303         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7304         here...
7305         * modules/wcsxfrm (configure.ac): ... to here.
7306
7307 2011-05-22  Bruno Haible  <bruno@clisp.org>
7308
7309         wcstok: Move AC_LIBOBJ invocations to module description.
7310         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7311         * modules/wcstok (configure.ac): ... to here.
7312
7313 2011-05-22  Bruno Haible  <bruno@clisp.org>
7314
7315         wcsstr: Move AC_LIBOBJ invocations to module description.
7316         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7317         * modules/wcsstr (configure.ac): ... to here.
7318
7319 2011-05-22  Bruno Haible  <bruno@clisp.org>
7320
7321         wcsspn: Move AC_LIBOBJ invocations to module description.
7322         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7323         * modules/wcsspn (configure.ac): ... to here.
7324
7325 2011-05-22  Bruno Haible  <bruno@clisp.org>
7326
7327         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7328         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7329         gl_PREREQ_WCSRTOMBS invocations from here...
7330         * modules/wcsrtombs (configure.ac): ... to here.
7331
7332 2011-05-22  Bruno Haible  <bruno@clisp.org>
7333
7334         wcsrchr: Move AC_LIBOBJ invocations to module description.
7335         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7336         here...
7337         * modules/wcsrchr (configure.ac): ... to here.
7338
7339 2011-05-22  Bruno Haible  <bruno@clisp.org>
7340
7341         wcspbrk: Move AC_LIBOBJ invocations to module description.
7342         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7343         here...
7344         * modules/wcspbrk (configure.ac): ... to here.
7345
7346 2011-05-22  Bruno Haible  <bruno@clisp.org>
7347
7348         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7349         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7350         gl_PREREQ_WCSNRTOMBS invocations from here...
7351         * modules/wcsnrtombs (configure.ac): ... to here.
7352
7353 2011-05-22  Bruno Haible  <bruno@clisp.org>
7354
7355         wcsnlen: Move AC_LIBOBJ invocations to module description.
7356         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7357         here...
7358         * modules/wcsnlen (configure.ac): ... to here.
7359
7360 2011-05-22  Bruno Haible  <bruno@clisp.org>
7361
7362         wcsncpy: Move AC_LIBOBJ invocations to module description.
7363         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7364         here...
7365         * modules/wcsncpy (configure.ac): ... to here.
7366
7367 2011-05-22  Bruno Haible  <bruno@clisp.org>
7368
7369         wcsncmp: Move AC_LIBOBJ invocations to module description.
7370         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7371         here...
7372         * modules/wcsncmp (configure.ac): ... to here.
7373
7374 2011-05-22  Bruno Haible  <bruno@clisp.org>
7375
7376         wcsncat: Move AC_LIBOBJ invocations to module description.
7377         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7378         here...
7379         * modules/wcsncat (configure.ac): ... to here.
7380
7381 2011-05-22  Bruno Haible  <bruno@clisp.org>
7382
7383         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7384         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7385         from here...
7386         * modules/wcsncasecmp (configure.ac): ... to here.
7387
7388 2011-05-22  Bruno Haible  <bruno@clisp.org>
7389
7390         wcslen: Move AC_LIBOBJ invocations to module description.
7391         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7392         * modules/wcslen (configure.ac): ... to here.
7393
7394 2011-05-22  Bruno Haible  <bruno@clisp.org>
7395
7396         wcsdup: Move AC_LIBOBJ invocations to module description.
7397         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7398         * modules/wcsdup (configure.ac): ... to here.
7399
7400 2011-05-22  Bruno Haible  <bruno@clisp.org>
7401
7402         wcscspn: Move AC_LIBOBJ invocations to module description.
7403         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7404         here...
7405         * modules/wcscspn (configure.ac): ... to here.
7406
7407 2011-05-22  Bruno Haible  <bruno@clisp.org>
7408
7409         wcscpy: Move AC_LIBOBJ invocations to module description.
7410         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7411         * modules/wcscpy (configure.ac): ... to here.
7412
7413 2011-05-22  Bruno Haible  <bruno@clisp.org>
7414
7415         wcscoll: Move AC_LIBOBJ invocations to module description.
7416         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7417         here...
7418         * modules/wcscoll (configure.ac): ... to here.
7419
7420 2011-05-22  Bruno Haible  <bruno@clisp.org>
7421
7422         wcscmp: Move AC_LIBOBJ invocations to module description.
7423         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7424         * modules/wcscmp (configure.ac): ... to here.
7425
7426 2011-05-22  Bruno Haible  <bruno@clisp.org>
7427
7428         wcschr: Move AC_LIBOBJ invocations to module description.
7429         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7430         * modules/wcschr (configure.ac): ... to here.
7431
7432 2011-05-22  Bruno Haible  <bruno@clisp.org>
7433
7434         wcscat: Move AC_LIBOBJ invocations to module description.
7435         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7436         * modules/wcscat (configure.ac): ... to here.
7437
7438 2011-05-22  Bruno Haible  <bruno@clisp.org>
7439
7440         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7441         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7442         here...
7443         * modules/wcscasecmp (configure.ac): ... to here.
7444
7445 2011-05-22  Bruno Haible  <bruno@clisp.org>
7446
7447         wcrtomb: Move AC_LIBOBJ invocations to module description.
7448         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7449         invocations from here...
7450         * modules/wcrtomb (configure.ac): ... to here.
7451
7452 2011-05-22  Bruno Haible  <bruno@clisp.org>
7453
7454         wcpncpy: Move AC_LIBOBJ invocations to module description.
7455         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7456         here...
7457         * modules/wcpncpy (configure.ac): ... to here.
7458
7459 2011-05-22  Bruno Haible  <bruno@clisp.org>
7460
7461         wcpcpy: Move AC_LIBOBJ invocations to module description.
7462         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7463         * modules/wcpcpy (configure.ac): ... to here.
7464
7465 2011-05-22  Bruno Haible  <bruno@clisp.org>
7466
7467         waitpid: Move AC_LIBOBJ invocations to module description.
7468         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7469         invocation from here...
7470         * modules/waitpid (configure.ac): ... to here.
7471
7472 2011-05-22  Bruno Haible  <bruno@clisp.org>
7473
7474         utimensat: Move AC_LIBOBJ invocations to module description.
7475         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7476         here...
7477         * modules/utimensat (configure.ac): ... to here.
7478
7479 2011-05-22  Bruno Haible  <bruno@clisp.org>
7480
7481         usleep: Move AC_LIBOBJ invocations to module description.
7482         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7483         here...
7484         * modules/usleep (configure.ac): ... to here.
7485
7486 2011-05-22  Bruno Haible  <bruno@clisp.org>
7487
7488         unlockpt: Move AC_LIBOBJ invocations to module description.
7489         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7490         gl_PREREQ_UNLOCKPT invocations from here...
7491         * modules/unlockpt (configure.ac): ... to here.
7492
7493 2011-05-22  Bruno Haible  <bruno@clisp.org>
7494
7495         unlink: Respect rules for use of AC_LIBOBJ.
7496         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7497         * modules/unlink (configure.ac): ... to here.
7498
7499 2011-05-22  Bruno Haible  <bruno@clisp.org>
7500
7501         uname: Move AC_LIBOBJ invocations to module description.
7502         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7503         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7504         here...
7505         * modules/uname (configure.ac): ... to here.
7506
7507 2011-05-22  Bruno Haible  <bruno@clisp.org>
7508
7509         ttyname_r: Move AC_LIBOBJ invocations to module description.
7510         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7511         gl_PREREQ_TTYNAME_R invocations from here...
7512         * modules/ttyname_r (configure.ac): ... to here.
7513
7514 2011-05-22  Bruno Haible  <bruno@clisp.org>
7515
7516         tsearch: Move AC_LIBOBJ invocations to module description.
7517         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7518         invocations from here...
7519         * modules/tsearch (configure.ac): ... to here.
7520
7521 2011-05-22  Bruno Haible  <bruno@clisp.org>
7522
7523         towctrans: Move AC_LIBOBJ invocations to module description.
7524         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7525         AC_LIBOBJ invocation from here...
7526         * modules/towctrans (configure.ac): ... to here.
7527
7528 2011-05-22  Bruno Haible  <bruno@clisp.org>
7529
7530         tmpfile: Move AC_LIBOBJ invocations to module description.
7531         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7532         invocations from here...
7533         * modules/tmpfile (configure.ac): ... to here.
7534
7535 2011-05-22  Bruno Haible  <bruno@clisp.org>
7536
7537         times: Move AC_LIBOBJ invocations to module description.
7538         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7539         * modules/times (configure.ac): ... to here.
7540
7541 2011-05-22  Bruno Haible  <bruno@clisp.org>
7542
7543         time_r: Move AC_LIBOBJ invocations to module description.
7544         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7545         invocations from here...
7546         * modules/time_r (configure.ac): ... to here.
7547
7548 2011-05-22  Bruno Haible  <bruno@clisp.org>
7549
7550         timegm: Move AC_LIBOBJ invocations to module description.
7551         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7552         invocations from here...
7553         * modules/timegm (configure.ac): ... to here.
7554
7555 2011-05-22  Bruno Haible  <bruno@clisp.org>
7556
7557         tcgetsid: Move AC_LIBOBJ invocations to module description.
7558         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7559         and gl_PREREQ_TCGETSID invocations from here...
7560         * modules/tcgetsid (configure.ac): ... to here.
7561         (Depends-on): Update conditions.
7562
7563 2011-05-22  Bruno Haible  <bruno@clisp.org>
7564
7565         symlinkat: Move AC_LIBOBJ invocations to module description.
7566         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7567         here...
7568         * modules/symlinkat (configure.ac): ... to here.
7569
7570 2011-05-22  Bruno Haible  <bruno@clisp.org>
7571
7572         symlink: Move AC_LIBOBJ invocations to module description.
7573         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7574         here...
7575         * modules/symlink (configure.ac): ... to here.
7576
7577 2011-05-22  Bruno Haible  <bruno@clisp.org>
7578
7579         strverscmp: Move AC_LIBOBJ invocations to module description.
7580         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7581         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7582         from here...
7583         * modules/strverscmp (configure.ac): ... to here.
7584
7585 2011-05-22  Bruno Haible  <bruno@clisp.org>
7586
7587         strtok_r: Move AC_LIBOBJ invocations to module description.
7588         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7589         and gl_PREREQ_STRTOK_R invocations from here...
7590         * modules/strtok_r (configure.ac): ... to here.
7591         (Depends-on): Update conditions.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         strtoumax: Move AC_LIBOBJ invocations to module description.
7596         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7598         from here...
7599         * modules/strtoumax (configure.ac): ... to here.
7600
7601 2011-05-22  Bruno Haible  <bruno@clisp.org>
7602
7603         strtoimax: Move AC_LIBOBJ invocations to module description.
7604         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7606         from here...
7607         * modules/strtoimax (configure.ac): ... to here.
7608
7609 2011-05-22  Bruno Haible  <bruno@clisp.org>
7610
7611         strtoull: Move AC_LIBOBJ invocations to module description.
7612         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7613         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7614         from here...
7615         * modules/strtoull (configure.ac): ... to here.
7616
7617 2011-05-22  Bruno Haible  <bruno@clisp.org>
7618
7619         strtoll: Move AC_LIBOBJ invocations to module description.
7620         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7622         here...
7623         * modules/strtoll (configure.ac): ... to here.
7624
7625 2011-05-22  Bruno Haible  <bruno@clisp.org>
7626
7627         strtoul: Move AC_LIBOBJ invocations to module description.
7628         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7629         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7630         * modules/strtoul (configure.ac): ... to here.
7631
7632 2011-05-22  Bruno Haible  <bruno@clisp.org>
7633
7634         strtol: Move AC_LIBOBJ invocations to module description.
7635         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7636         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7637         * modules/strtol (configure.ac): ... to here.
7638
7639 2011-05-22  Bruno Haible  <bruno@clisp.org>
7640
7641         strtod: Move AC_LIBOBJ invocations to module description.
7642         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7643         invocations from here...
7644         * modules/strtod (configure.ac): ... to here.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         strstr*: Move AC_LIBOBJ invocations to module description.
7649         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7650         invocations from here...
7651         * modules/strstr-simple (configure.ac): ... to here.
7652         * modules/strstr (configure.ac): ... and here.
7653
7654 2011-05-22  Bruno Haible  <bruno@clisp.org>
7655
7656         strsignal: Move AC_LIBOBJ invocations to module description.
7657         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7658         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7659         * modules/strsignal (configure.ac): ... to here.
7660         (Depends-on): Update conditions.
7661
7662 2011-05-22  Bruno Haible  <bruno@clisp.org>
7663
7664         strsep: Move AC_LIBOBJ invocations to module description.
7665         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7667         here...
7668         * modules/strsep (configure.ac): ... to here.
7669
7670 2011-05-22  Bruno Haible  <bruno@clisp.org>
7671
7672         strptime: Move AC_LIBOBJ invocations to module description.
7673         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7674         gl_PREREQ_STRPTIME invocations from here...
7675         * modules/strptime (configure.ac): ... to here.
7676
7677 2011-05-22  Bruno Haible  <bruno@clisp.org>
7678
7679         strpbrk: Move AC_LIBOBJ invocations to module description.
7680         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7682         here...
7683         * modules/strpbrk (configure.ac): ... to here.
7684
7685 2011-05-22  Bruno Haible  <bruno@clisp.org>
7686
7687         strnlen: Move AC_LIBOBJ invocations to module description.
7688         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7689         invocations from here...
7690         * modules/strnlen (configure.ac): ... to here.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         strndup: Move AC_LIBOBJ invocations to module description.
7695         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7696         invocations from here...
7697         * modules/strndup (configure.ac): ... to here.
7698         (Depends-on): Update conditions.
7699
7700 2011-05-22  Bruno Haible  <bruno@clisp.org>
7701
7702         strncat: Move AC_LIBOBJ invocations to module description.
7703         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7704         invocations from here...
7705         * modules/strncat (configure.ac): ... to here.
7706
7707 2011-05-22  Bruno Haible  <bruno@clisp.org>
7708
7709         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7710         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7711         invocations from here...
7712         * modules/strdup (configure.ac): ... to here.
7713         * modules/strdup-posix (configure.ac): ... and here.
7714
7715 2011-05-22  Bruno Haible  <bruno@clisp.org>
7716
7717         strcspn: Move AC_LIBOBJ invocations to module description.
7718         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7720         here...
7721         * modules/strcspn (configure.ac): ... to here.
7722
7723 2011-05-22  Bruno Haible  <bruno@clisp.org>
7724
7725         strchrnul: Move AC_LIBOBJ invocations to module description.
7726         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7727         gl_PREREQ_STRCHRNUL invocations from here...
7728         * modules/strchrnul (configure.ac): ... to here.
7729
7730 2011-05-22  Bruno Haible  <bruno@clisp.org>
7731
7732         strcasestr*: Move AC_LIBOBJ invocations to module description.
7733         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7734         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7735         * modules/strcasestr-simple (configure.ac): ... to here.
7736         * modules/strcasestr (configure.ac): ... and here.
7737
7738 2011-05-22  Bruno Haible  <bruno@clisp.org>
7739
7740         strcase: Move AC_LIBOBJ invocations to module description.
7741         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7742         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7743         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7744         gl_PREREQ_STRNCASECMP invocations from here...
7745         * modules/strcase (configure.ac): ... to here.
7746
7747 2011-05-22  Bruno Haible  <bruno@clisp.org>
7748
7749         stpncpy: Move AC_LIBOBJ invocations to module description.
7750         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7751         here...
7752         * modules/stpncpy (configure.ac): ... to here.
7753
7754 2011-05-22  Bruno Haible  <bruno@clisp.org>
7755
7756         stpcpy: Move AC_LIBOBJ invocations to module description.
7757         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7758         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7759         here...
7760         * modules/stpcpy (configure.ac): ... to here.
7761
7762 2011-05-21  Bruno Haible  <bruno@clisp.org>
7763
7764         stat: Move AC_LIBOBJ invocations to module description.
7765         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7766         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7767         here...
7768         * modules/stat (configure.ac): ... to here.
7769
7770 2011-05-21  Bruno Haible  <bruno@clisp.org>
7771
7772         sleep: Move AC_LIBOBJ invocations to module description.
7773         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7774         * modules/sleep (configure.ac): ... to here.
7775
7776 2011-05-21  Bruno Haible  <bruno@clisp.org>
7777
7778         signbit: Move AC_LIBOBJ invocations to module description.
7779         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7780         * modules/signbit (configure.ac): ... to here.
7781
7782 2011-05-21  Bruno Haible  <bruno@clisp.org>
7783
7784         sigprocmask: Move AC_LIBOBJ invocations to module description.
7785         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7786         gl_PREREQ_SIGPROMASK invocations from here...
7787         * modules/sigprocmask (configure.ac): ... to here.
7788
7789 2011-05-21  Bruno Haible  <bruno@clisp.org>
7790
7791         sigaction: Move AC_LIBOBJ invocations to module description.
7792         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7793         gl_PREREQ_SIGACTION invocations from here...
7794         * modules/sigaction (configure.ac): ... to here.
7795
7796 2011-05-21  Bruno Haible  <bruno@clisp.org>
7797
7798         sig2str: Move AC_LIBOBJ invocations to module description.
7799         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7801         here...
7802         * modules/sig2str (configure.ac): ... to here.
7803
7804 2011-05-21  Bruno Haible  <bruno@clisp.org>
7805
7806         setlocale: Move AC_LIBOBJ invocations to module description.
7807         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7808         gl_PREREQ_SETLOCALE invocations from here...
7809         * modules/setlocale (configure.ac): ... to here.
7810
7811 2011-05-21  Bruno Haible  <bruno@clisp.org>
7812
7813         unsetenv: Move AC_LIBOBJ invocations to module description.
7814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7815         and gl_PREREQ_UNSETENV invocations from here...
7816         * modules/unsetenv (configure.ac): ... to here.
7817         (Depends-on): Update.
7818
7819 2011-05-21  Bruno Haible  <bruno@clisp.org>
7820
7821         setenv: Move AC_LIBOBJ invocations to module description.
7822         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7823         here...
7824         * modules/setenv (configure.ac): ... to here.
7825
7826 2011-05-21  Bruno Haible  <bruno@clisp.org>
7827
7828         selinux-h: Move AC_LIBOBJ invocations to module description.
7829         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7830         AC_LIBOBJ invocation from here...
7831         * modules/selinux-h (configure.ac): ... to here.
7832
7833 2011-05-21  Bruno Haible  <bruno@clisp.org>
7834
7835         select: Respect rules for use of AC_LIBOBJ.
7836         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7837         here...
7838         * modules/select (configure.ac): ... to here.
7839
7840 2011-05-21  Bruno Haible  <bruno@clisp.org>
7841
7842         scandir: Move AC_LIBOBJ invocations to module description.
7843         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7844         invocations from here...
7845         * modules/scandir (configure.ac): ... to here.
7846
7847 2011-05-21  Bruno Haible  <bruno@clisp.org>
7848
7849         rpmatch: Move AC_LIBOBJ invocations to module description.
7850         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7852         here...
7853         * modules/rpmatch (configure.ac): ... to here.
7854
7855 2011-05-21  Bruno Haible  <bruno@clisp.org>
7856
7857         rmdir: Respect rules for use of AC_LIBOBJ.
7858         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7859         * modules/rmdir (configure.ac): ... to here.
7860
7861 2011-05-21  Bruno Haible  <bruno@clisp.org>
7862
7863         renameat: Move AC_LIBOBJ invocations to module description.
7864         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7865         here...
7866         * modules/renameat (configure.ac): ... to here.
7867
7868 2011-05-21  Bruno Haible  <bruno@clisp.org>
7869
7870         rename: Respect rules for use of AC_LIBOBJ.
7871         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7872         here...
7873         * modules/rename (configure.ac): ... to here.
7874
7875 2011-05-21  Bruno Haible  <bruno@clisp.org>
7876
7877         remove: Move AC_LIBOBJ invocations to module description.
7878         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7879         here...
7880         * modules/remove (configure.ac): ... to here.
7881
7882 2011-05-21  Bruno Haible  <bruno@clisp.org>
7883
7884         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7885         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7886         macro.
7887         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7888         * modules/relocatable-lib (configure.ac): ... to here.
7889         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7890         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7891
7892 2011-05-21  Bruno Haible  <bruno@clisp.org>
7893
7894         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7895         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7896         here...
7897         * modules/relocatable-prog (configure.ac): ... to here.
7898
7899 2011-05-21  Bruno Haible  <bruno@clisp.org>
7900
7901         regex: Move AC_LIBOBJ invocations to module description.
7902         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7903         invocations from here...
7904         * modules/regex (configure.ac): ... to here.
7905
7906 2011-05-21  Bruno Haible  <bruno@clisp.org>
7907
7908         realloc-*: Move AC_LIBOBJ invocations to module description.
7909         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7910         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7911         AC_LIBOBJ invocations from here...
7912         * modules/realloc-gnu (configure.ac): ... to here.
7913         * modules/realloc-posix (configure.ac): ... and here.
7914
7915 2011-05-21  Bruno Haible  <bruno@clisp.org>
7916
7917         readutmp: Move AC_LIBOBJ invocations to module description.
7918         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7919         * modules/readutmp (configure.ac): ... to here.
7920
7921 2011-05-21  Bruno Haible  <bruno@clisp.org>
7922
7923         readlinkat: Move AC_LIBOBJ invocations to module description.
7924         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7925         here...
7926         * modules/readlinkat (configure.ac): ... to here.
7927
7928 2011-05-21  Bruno Haible  <bruno@clisp.org>
7929
7930         readlink: Move AC_LIBOBJ invocations to module description.
7931         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7932         gl_PREREQ_READLINK invocations from here...
7933         * modules/readlink (configure.ac): ... to here.
7934
7935 2011-05-21  Bruno Haible  <bruno@clisp.org>
7936
7937         readline: Move AC_LIBOBJ invocations to module description.
7938         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7939         gl_PREREQ_READLINE invocations from here...
7940         * modules/readline (configure.ac): ... to here.
7941
7942 2011-05-21  Bruno Haible  <bruno@clisp.org>
7943
7944         read: Move AC_LIBOBJ invocations to module description.
7945         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7946         * modules/read (configure.ac): ... to here.
7947
7948 2011-05-21  Bruno Haible  <bruno@clisp.org>
7949
7950         rawmemchr: Move AC_LIBOBJ invocations to module description.
7951         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7953         from here...
7954         * modules/rawmemchr (configure.ac): ... to here.
7955
7956 2011-05-21  Bruno Haible  <bruno@clisp.org>
7957
7958         random_r: Move AC_LIBOBJ invocations to module description.
7959         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7960         gl_PREREQ_RANDOM_R invocations from here...
7961         * modules/random_r (configure.ac): ... to here.
7962
7963 2011-05-21  Bruno Haible  <bruno@clisp.org>
7964
7965         pwrite: Move AC_LIBOBJ invocations to module description.
7966         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7967         * modules/pwrite (configure.ac): ... to here.
7968
7969 2011-05-21  Bruno Haible  <bruno@clisp.org>
7970
7971         putenv: Move AC_LIBOBJ invocations to module description.
7972         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7973         * modules/putenv (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         login_tty: Move AC_LIBOBJ invocations to module description.
7978         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7979         * modules/login_tty (configure.ac): ... to here.
7980
7981 2011-05-21  Bruno Haible  <bruno@clisp.org>
7982
7983         openpty: Move AC_LIBOBJ invocations to module description.
7984         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7985         * modules/openpty (configure.ac): ... to here.
7986
7987 2011-05-21  Bruno Haible  <bruno@clisp.org>
7988
7989         forkpty: Move AC_LIBOBJ invocations to module description.
7990         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7991         * modules/forkpty (configure.ac): ... to here.
7992
7993 2011-05-21  Bruno Haible  <bruno@clisp.org>
7994
7995         ptsname: Move AC_LIBOBJ invocations to module description.
7996         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7997         invocations from here...
7998         * modules/ptsname (configure.ac): ... to here.
7999
8000 2011-05-21  Bruno Haible  <bruno@clisp.org>
8001
8002         pread: Move AC_LIBOBJ invocations to module description.
8003         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8004         * modules/pread (configure.ac): ... to here.
8005
8006 2011-05-21  Bruno Haible  <bruno@clisp.org>
8007
8008         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8009         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8010         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8011         * modules/posix_spawn (configure.ac): ... to here.
8012         * modules/posix_spawnp (configure.ac): ... and here.
8013
8014 2011-05-21  Bruno Haible  <bruno@clisp.org>
8015
8016         popen: Move AC_LIBOBJ invocations to module description.
8017         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8018         invocations from here...
8019         * modules/popen (configure.ac): ... to here.
8020
8021 2011-05-21  Bruno Haible  <bruno@clisp.org>
8022
8023         poll: Move AC_LIBOBJ invocations to module description.
8024         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8025         invocations from here...
8026         * modules/poll (configure.ac): ... to here.
8027
8028 2011-05-21  Bruno Haible  <bruno@clisp.org>
8029
8030         pipe-posix: Move AC_LIBOBJ invocations to module description.
8031         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8032         * modules/pipe-posix (configure.ac): ... to here.
8033
8034 2011-05-21  Bruno Haible  <bruno@clisp.org>
8035
8036         openat: Respect rules for use of AC_LIBOBJ.
8037         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8038         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8039         * modules/openat (configure.ac): ... to here.
8040
8041 2011-05-21  Bruno Haible  <bruno@clisp.org>
8042
8043         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8044         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8045         invocation from here...
8046         * modules/obstack-printf (configure.ac): ... to here.
8047         * modules/obstack-printf-posix (configure.ac): ... and here.
8048
8049 2011-05-21  Bruno Haible  <bruno@clisp.org>
8050
8051         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8052         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8053         from here...
8054         * modules/nl_langinfo (configure.ac): ... to here.
8055
8056 2011-05-21  Bruno Haible  <bruno@clisp.org>
8057
8058         nanosleep: Move AC_LIBOBJ invocations to module description.
8059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8060         gl_PREREQ_NANOSLEEP invocations from here...
8061         * modules/nanosleep (configure.ac): ... to here.
8062
8063 2011-05-21  Bruno Haible  <bruno@clisp.org>
8064
8065         mountlist: Move AC_LIBOBJ invocations to module description.
8066         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8067         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8068         * modules/mountlist (configure.ac): ... to here.
8069
8070 2011-05-21  Bruno Haible  <bruno@clisp.org>
8071
8072         mktime: Respect rules for use of AC_LIBOBJ.
8073         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8074         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8075         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8076         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8077         * modules/mktime (configure.ac): ... to here.
8078         * modules/mktime-internal (configure.ac): ... and here.
8079         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         mkstemps: Move AC_LIBOBJ invocations to module description.
8084         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8085         here...
8086         * modules/mkstemps (configure.ac): ... to here.
8087
8088 2011-05-21  Bruno Haible  <bruno@clisp.org>
8089
8090         mkstemp: Move AC_LIBOBJ invocations to module description.
8091         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8092         gl_PREREQ_MKSTEMP invocations from here...
8093         * modules/mkstemp (configure.ac): ... to here.
8094
8095 2011-05-21  Bruno Haible  <bruno@clisp.org>
8096
8097         mkostemps: Move AC_LIBOBJ invocations to module description.
8098         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8099         here...
8100         * modules/mkostemps (configure.ac): ... to here.
8101
8102 2011-05-21  Bruno Haible  <bruno@clisp.org>
8103
8104         mkostemp: Move AC_LIBOBJ invocations to module description.
8105         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8106         gl_PREREQ_MKOSTEMP invocations from here...
8107         * modules/mkostemp (configure.ac): ... to here.
8108
8109 2011-05-21  Bruno Haible  <bruno@clisp.org>
8110
8111         mknod: Move AC_LIBOBJ invocations to module description.
8112         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8113         * modules/mknod (configure.ac): ... to here.
8114
8115 2011-05-21  Bruno Haible  <bruno@clisp.org>
8116
8117         mkfifoat: Move AC_LIBOBJ invocations to module description.
8118         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8119         here...
8120         * modules/mkfifoat (configure.ac): ... to here.
8121
8122 2011-05-21  Bruno Haible  <bruno@clisp.org>
8123
8124         mkfifo: Respect rules for use of AC_LIBOBJ.
8125         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8126         here...
8127         * modules/mkfifo (configure.ac): ... to here.
8128
8129 2011-05-21  Bruno Haible  <bruno@clisp.org>
8130
8131         mkdtemp: Move AC_LIBOBJ invocations to module description.
8132         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8133         invocations from here...
8134         * modules/mkdtemp (configure.ac): ... to here.
8135
8136 2011-05-21  Bruno Haible  <bruno@clisp.org>
8137
8138         mkdir: Move AC_LIBOBJ invocations to module description.
8139         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8140         * modules/mkdir (configure.ac): ... to here.
8141
8142 2011-05-21  Bruno Haible  <bruno@clisp.org>
8143
8144         memset: Move AC_LIBOBJ invocations to module description.
8145         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8147         here...
8148         * modules/memset (configure.ac): ... to here.
8149
8150 2011-05-21  Bruno Haible  <bruno@clisp.org>
8151
8152         memrchr: Move AC_LIBOBJ invocations to module description.
8153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8155         here...
8156         * modules/memrchr (configure.ac): ... to here.
8157
8158 2011-05-21  Bruno Haible  <bruno@clisp.org>
8159
8160         mempcpy: Move AC_LIBOBJ invocations to module description.
8161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8162         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8163         here...
8164         * modules/mempcpy (configure.ac): ... to here.
8165
8166 2011-05-21  Bruno Haible  <bruno@clisp.org>
8167
8168         memmove: Move AC_LIBOBJ invocations to module description.
8169         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8171         here...
8172         * modules/memmove (configure.ac): ... to here.
8173
8174 2011-05-21  Bruno Haible  <bruno@clisp.org>
8175
8176         memmem*: Move AC_LIBOBJ invocations to module description.
8177         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8178         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8179         here...
8180         (gl_FUNC_MEMMEM): ... and here...
8181         * modules/memmem-simple (configure.ac): ... to here.
8182         * modules/memmem (configure.ac): ... and here.
8183
8184 2011-05-21  Bruno Haible  <bruno@clisp.org>
8185
8186         memcpy: Move AC_LIBOBJ invocations to module description.
8187         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8188         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8189         here...
8190         * modules/memcpy (configure.ac): ... to here.
8191
8192 2011-05-21  Bruno Haible  <bruno@clisp.org>
8193
8194         memcmp: Simplify autoconf macro.
8195         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8196         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8197         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8198
8199 2011-05-21  Bruno Haible  <bruno@clisp.org>
8200
8201         memcmp: Move AC_LIBOBJ invocations to module description.
8202         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8203         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8204         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8205         * modules/memcmp (configure.ac): ... to here.
8206         (Depends-on): Update conditions.
8207
8208 2011-05-21  Bruno Haible  <bruno@clisp.org>
8209
8210         memchr: Respect rules for use of AC_LIBOBJ.
8211         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8212         invocations from here...
8213         * modules/memchr (configure.ac): ... to here.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         mbtowc: Move AC_LIBOBJ invocations to module description.
8218         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8219         invocations from here...
8220         * modules/mbtowc (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8225         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8226         gl_PREREQ_MBSRTOWCS invocations from here...
8227         * modules/mbsrtowcs (configure.ac): ... to here.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8232         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8233         gl_PREREQ_MBSNRTOWCS invocations from here...
8234         * modules/mbsnrtowcs (configure.ac): ... to here.
8235
8236 2011-05-21  Bruno Haible  <bruno@clisp.org>
8237
8238         mbsinit: Move AC_LIBOBJ invocations to module description.
8239         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8240         invocations from here...
8241         * modules/mbsinit (configure.ac): ... to here.
8242
8243 2011-05-21  Bruno Haible  <bruno@clisp.org>
8244
8245         mbrlen: Move AC_LIBOBJ invocations to module description.
8246         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8247         invocations from here...
8248         * modules/mbrlen (configure.ac): ... to here.
8249
8250 2011-05-21  Bruno Haible  <bruno@clisp.org>
8251
8252         mbrtowc: Respect rules for use of AC_LIBOBJ.
8253         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8254         invocations from here...
8255         * modules/mbrtowc (configure.ac): ... to here.
8256
8257 2011-05-21  Bruno Haible  <bruno@clisp.org>
8258
8259         malloc-*: Move AC_LIBOBJ invocations to module description.
8260         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8261         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8262         AC_LIBOBJ invocations from here...
8263         * modules/malloc-gnu (configure.ac): ... to here.
8264         * modules/malloc-posix (configure.ac): ... and here.
8265
8266 2011-05-21  Bruno Haible  <bruno@clisp.org>
8267
8268         lstat, openat: Respect rules for use of AC_LIBOBJ.
8269         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8270         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8271         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8272         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8273         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8274         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8275         here.
8276         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8277
8278 2011-05-21  Bruno Haible  <bruno@clisp.org>
8279
8280         lseek: Move AC_LIBOBJ invocations to module description.
8281         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8282         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8283         * modules/lseek (configure.ac): ... to here.
8284
8285 2011-05-21  Bruno Haible  <bruno@clisp.org>
8286
8287         linkat: Move AC_LIBOBJ invocations to module description.
8288         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8289         here...
8290         * modules/linkat (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         link: Respect rules for use of AC_LIBOBJ.
8295         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8296         * modules/link (configure.ac): ... to here.
8297
8298 2011-05-21  Bruno Haible  <bruno@clisp.org>
8299
8300         lchown: Move AC_LIBOBJ invocations to module description.
8301         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8302         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8303         * modules/lchown (configure.ac): ... to here.
8304
8305 2011-05-21  Bruno Haible  <bruno@clisp.org>
8306
8307         iswctype: Move AC_LIBOBJ invocations to module description.
8308         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8309         here...
8310         * modules/iswctype (configure.ac): ... to here.
8311
8312 2011-05-21  Bruno Haible  <bruno@clisp.org>
8313
8314         iswblank: Move AC_LIBOBJ invocations to module description.
8315         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8316         here...
8317         * modules/iswblank (configure.ac): ... to here.
8318
8319 2011-05-21  Bruno Haible  <bruno@clisp.org>
8320
8321         atanl: Move AC_LIBOBJ invocations to module description.
8322         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8323         * modules/atanl (configure.ac): ... to here.
8324
8325 2011-05-21  Bruno Haible  <bruno@clisp.org>
8326
8327         acosl: Move AC_LIBOBJ invocations to module description.
8328         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8329         * modules/acosl (configure.ac): ... to here.
8330
8331 2011-05-21  Bruno Haible  <bruno@clisp.org>
8332
8333         asinl: Respect rules for use of AC_LIBOBJ.
8334         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8335         * modules/asinl (configure.ac): ... to here.
8336
8337 2011-05-21  Bruno Haible  <bruno@clisp.org>
8338
8339         tanl: Move AC_LIBOBJ invocations to module description.
8340         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8341         * modules/tanl (configure.ac): ... to here.
8342
8343 2011-05-21  Bruno Haible  <bruno@clisp.org>
8344
8345         cosl: Move AC_LIBOBJ invocations to module description.
8346         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8347         * modules/cosl (configure.ac): ... to here.
8348
8349 2011-05-21  Bruno Haible  <bruno@clisp.org>
8350
8351         sinl: Move AC_LIBOBJ invocations to module description.
8352         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8353         * modules/sinl (configure.ac): ... to here.
8354
8355 2011-05-21  Bruno Haible  <bruno@clisp.org>
8356
8357         logl: Move AC_LIBOBJ invocations to module description.
8358         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8359         * modules/logl (configure.ac): ... to here.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         expl: Move AC_LIBOBJ invocations to module description.
8364         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8365         * modules/expl (configure.ac): ... to here.
8366
8367 2011-05-21  Bruno Haible  <bruno@clisp.org>
8368
8369         roundl: Move AC_LIBOBJ invocations to module description.
8370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8371         * modules/roundl (configure.ac): ... to here.
8372
8373 2011-05-21  Bruno Haible  <bruno@clisp.org>
8374
8375         round: Move AC_LIBOBJ invocations to module description.
8376         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8377         * modules/round (configure.ac): ... to here.
8378
8379 2011-05-21  Bruno Haible  <bruno@clisp.org>
8380
8381         roundf: Move AC_LIBOBJ invocations to module description.
8382         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8383         * modules/roundf (configure.ac): ... to here.
8384
8385 2011-05-21  Bruno Haible  <bruno@clisp.org>
8386
8387         truncl: Move AC_LIBOBJ invocations to module description.
8388         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8389         * modules/truncl (configure.ac): ... to here.
8390
8391 2011-05-21  Bruno Haible  <bruno@clisp.org>
8392
8393         trunc: Move AC_LIBOBJ invocations to module description.
8394         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8395         * modules/trunc (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         truncf: Move AC_LIBOBJ invocations to module description.
8400         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8401         * modules/truncf (configure.ac): ... to here.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         ceill: Move AC_LIBOBJ invocations to module description.
8406         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8407         * modules/ceill (configure.ac): ... to here.
8408
8409 2011-05-21  Bruno Haible  <bruno@clisp.org>
8410
8411         ceil: Move AC_LIBOBJ invocations to module description.
8412         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8413         * modules/ceil (configure.ac): ... to here.
8414
8415 2011-05-21  Bruno Haible  <bruno@clisp.org>
8416
8417         ceilf: Move AC_LIBOBJ invocations to module description.
8418         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8419         * modules/ceilf (configure.ac): ... to here.
8420
8421 2011-05-21  Bruno Haible  <bruno@clisp.org>
8422
8423         floorl: Respect rules for use of AC_LIBOBJ.
8424         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8425         * modules/floorl (configure.ac): ... to here.
8426
8427 2011-05-21  Bruno Haible  <bruno@clisp.org>
8428
8429         floor: Respect rules for use of AC_LIBOBJ.
8430         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8431         * modules/floor (configure.ac): ... to here.
8432
8433 2011-05-21  Bruno Haible  <bruno@clisp.org>
8434
8435         floorf: Move AC_LIBOBJ invocations to module description.
8436         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8437         * modules/floorf (configure.ac): ... to here.
8438
8439 2011-05-20  Bruno Haible  <bruno@clisp.org>
8440
8441         sqrtl: Respect rules for use of AC_LIBOBJ.
8442         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8443         * modules/sqrtl (configure.ac): ... to here.
8444
8445 2011-05-20  Bruno Haible  <bruno@clisp.org>
8446
8447         ldexpl: Respect rules for use of AC_LIBOBJ.
8448         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8449         * modules/ldexpl (configure.ac): ... to here.
8450
8451 2011-05-20  Bruno Haible  <bruno@clisp.org>
8452
8453         frexpl*: Respect rules for use of AC_LIBOBJ.
8454         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8455         invocation from here...
8456         * modules/frexpl (configure.ac): ... to here.
8457         * modules/frexpl-nolibm (configure.ac): ... and here.
8458
8459 2011-05-20  Bruno Haible  <bruno@clisp.org>
8460
8461         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8462         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8463         invocation from here...
8464         * modules/frexp (configure.ac): ... to here.
8465         * modules/frexp-nolibm (configure.ac): ... and here.
8466
8467 2011-05-20  Bruno Haible  <bruno@clisp.org>
8468
8469         isnan: Respect rules for use of AC_LIBOBJ.
8470         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8471         invocations here.
8472         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8473         REPLACE_ISNAN.
8474         * modules/isnand (configure.ac): Likewise.
8475         * modules/isnanl (configure.ac): Likewise.
8476
8477 2011-05-20  Bruno Haible  <bruno@clisp.org>
8478
8479         isnanl*: Respect rules for use of AC_LIBOBJ.
8480         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8481         invocation from here...
8482         * modules/isnanl (configure.ac): ... to here.
8483         * modules/isnanl-nolibm (configure.ac): ... and here.
8484
8485 2011-05-20  Bruno Haible  <bruno@clisp.org>
8486
8487         isnand*: Move AC_LIBOBJ invocations to module description.
8488         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8489         invocation from here...
8490         * modules/isnand (configure.ac): ... to here.
8491         * modules/isnand-nolibm (configure.ac): ... and here.
8492
8493 2011-05-20  Bruno Haible  <bruno@clisp.org>
8494
8495         isnanf*: Move AC_LIBOBJ invocations to module description.
8496         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8497         invocation from here...
8498         * modules/isnanf (configure.ac): ... to here.
8499         * modules/isnanf-nolibm (configure.ac): ... and here.
8500
8501 2011-05-20  Bruno Haible  <bruno@clisp.org>
8502
8503         isnan*: Separate the AC_LIBOBJ invocations.
8504         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8505         AC_LIBOBJ invocation.
8506         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8507         here.
8508         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8509         AC_LIBOBJ invocation.
8510         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8511         here.
8512         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8513         AC_LIBOBJ invocation.
8514         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8515         here.
8516         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8517
8518 2011-05-08  Bruno Haible  <bruno@clisp.org>
8519
8520         isinf: Move AC_LIBOBJ invocations to module description.
8521         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8522         * modules/isinf (configure.ac): ... to here.
8523
8524 2011-05-08  Bruno Haible  <bruno@clisp.org>
8525
8526         isfinite: Move AC_LIBOBJ invocations to module description.
8527         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8528         * modules/isfinite (configure.ac): ... to here.
8529
8530 2011-05-08  Bruno Haible  <bruno@clisp.org>
8531
8532         isblank: Move AC_LIBOBJ invocations to module description.
8533         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8534         here...
8535         * modules/isblank (configure.ac): ... to here.
8536
8537 2011-05-08  Bruno Haible  <bruno@clisp.org>
8538
8539         isapipe: Move AC_LIBOBJ invocations to module description.
8540         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8541         gl_PREREQ_ISAPIPE invocations from here...
8542         * modules/isapipe (configure.ac): ... to here.
8543         (Depends-on): Update condition.
8544
8545 2011-05-08  Bruno Haible  <bruno@clisp.org>
8546
8547         ioctl: Move AC_LIBOBJ invocations to module description.
8548         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8549         invocations from here...
8550         * modules/ioctl (configure.ac): ... to here.
8551         (Depends-on): Update condition.
8552
8553 2011-05-08  Bruno Haible  <bruno@clisp.org>
8554
8555         imaxdiv: Move AC_LIBOBJ invocations to module description.
8556         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8557         invocations from here...
8558         * modules/imaxdiv (configure.ac): ... to here.
8559
8560 2011-05-08  Bruno Haible  <bruno@clisp.org>
8561
8562         imaxabs: Move AC_LIBOBJ invocations to module description.
8563         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8564         invocations from here...
8565         * modules/imaxabs (configure.ac): ... to here.
8566
8567 2011-05-08  Bruno Haible  <bruno@clisp.org>
8568
8569         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8571         AC_LIBOBJ invocations from here...
8572         * modules/getaddrinfo (configure.ac): ... to here.
8573         (Depends-on): Add conditions.
8574
8575 2011-05-08  Bruno Haible  <bruno@clisp.org>
8576
8577         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8578         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8579         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8580         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8581         (gl_PREREQ_INET_PTON): ... from here.
8582         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8583         gl_PREREQ_INET_PTON here.
8584         (Depends-on): Update condition.
8585
8586 2011-05-08  Bruno Haible  <bruno@clisp.org>
8587
8588         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8589         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8590         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8591         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8592         (gl_PREREQ_INET_NTOP): ... from here.
8593         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8594         gl_PREREQ_INET_NTOP here.
8595         (Depends-on): Update condition.
8596
8597 2011-05-08  Bruno Haible  <bruno@clisp.org>
8598
8599         iconv_open: Move AC_LIBOBJ invocations to module description.
8600         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8601         AC_LIBOBJ invocations from here...
8602         * modules/iconv_open (configure.ac): ... to here.
8603
8604 2011-05-08  Bruno Haible  <bruno@clisp.org>
8605
8606         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8607         If module 'iconv_open' is among the main modules and module
8608         'iconv_open-utf' is among the tests dependencies, then
8609         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8610         return the special iconv_t values. Therefore iconv() and iconv_close()
8611         must support these special iconv_t values, already in lib, not only in
8612         tests.
8613         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8614         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8615         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8616         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8617         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8618         (Depends-on): Add the dependencies of iconv_open-utf.
8619         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8620         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8621         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8622
8623 2011-05-08  Bruno Haible  <bruno@clisp.org>
8624
8625         group-member: Move AC_LIBOBJ invocations to module description.
8626         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8627         gl_PREREQ_GROUP_MEMBER invocations from here...
8628         * modules/group-member (configure.ac): ... to here.
8629
8630 2011-05-08  Bruno Haible  <bruno@clisp.org>
8631
8632         grantpt: Move AC_LIBOBJ invocations to module description.
8633         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8634         invocations from here...
8635         * modules/grantpt (configure.ac): ... to here.
8636
8637 2011-05-08  Bruno Haible  <bruno@clisp.org>
8638
8639         glob: Move AC_LIBOBJ invocations to module description.
8640         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8641         from here...
8642         * modules/glob (configure.ac): ... to here.
8643
8644 2011-05-08  Bruno Haible  <bruno@clisp.org>
8645
8646         getusershell: Move AC_LIBOBJ invocations to module description.
8647         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8648         Move AC_LIBOBJ invocation from here...
8649         * modules/getusershell (configure.ac): ... to here.
8650         (Depends-on): Update condition.
8651
8652 2011-05-08  Bruno Haible  <bruno@clisp.org>
8653
8654         gettimeofday: Move AC_LIBOBJ invocations to module description.
8655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8656         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8657         gl_PREREQ_GETTIMEOFDAY invocations from here...
8658         * modules/gettimeofday (configure.ac): ... to here.
8659
8660 2011-05-08  Bruno Haible  <bruno@clisp.org>
8661
8662         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8663         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8664         just gl_FUNC_TZSET.
8665         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8666         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8667         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8668         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8669
8670 2011-05-08  Bruno Haible  <bruno@clisp.org>
8671
8672         getsubopt: Move AC_LIBOBJ invocations to module description.
8673         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8674         gl_PREREQ_GETSUBOPT invocations from here...
8675         * modules/getsubopt (configure.ac): ... to here.
8676
8677 2011-05-08  Bruno Haible  <bruno@clisp.org>
8678
8679         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8680         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8681         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8682         * modules/getpass-gnu (configure.ac): ... to here.
8683
8684 2011-05-08  Bruno Haible  <bruno@clisp.org>
8685
8686         getpass: Move AC_LIBOBJ invocations to module description.
8687         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8688         gl_PREREQ_GETPASS invocations from here...
8689         * modules/getpass (configure.ac): ... to here.
8690
8691 2011-05-08  Bruno Haible  <bruno@clisp.org>
8692
8693         getpagesize: Move AC_LIBOBJ invocations to module description.
8694         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8695         from here...
8696         * modules/getpagesize (configure.ac): ... to here.
8697
8698 2011-05-08  Bruno Haible  <bruno@clisp.org>
8699
8700         getopt: Move AC_LIBOBJ invocations to module description.
8701         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8702         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8703         invocations from here...
8704         * modules/getopt-gnu (configure.ac): ... to here.
8705         * modules/getopt-posix (configure.ac): ... and here.
8706         (Depends-on): Update condition.
8707
8708 2011-05-08  Bruno Haible  <bruno@clisp.org>
8709
8710         getopt, argp: Respect rules for use of AC_LIBOBJ.
8711         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8712         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8713         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8714         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8715
8716 2011-05-08  Bruno Haible  <bruno@clisp.org>
8717
8718         getlogin_r: Move AC_LIBOBJ invocations to module description.
8719         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8720         gl_PREREQ_GETLOGIN_R invocations from here...
8721         * modules/getlogin_r (configure.ac): ... to here.
8722
8723 2011-05-08  Bruno Haible  <bruno@clisp.org>
8724
8725         getlogin: Move AC_LIBOBJ invocations to module description.
8726         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8727         here...
8728         * modules/getlogin (configure.ac): ... to here.
8729
8730 2011-05-08  Bruno Haible  <bruno@clisp.org>
8731
8732         getloadavg: Move AC_LIBOBJ invocations to module description.
8733         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8734         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8735         * modules/getloadavg (configure.ac): ... to here.
8736
8737 2011-05-08  Bruno Haible  <bruno@clisp.org>
8738
8739         gethrxtime: Move AC_LIBOBJ invocations to module description.
8740         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8741         LIB_GETHRXTIME from here...
8742         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8743         invocations from here...
8744         * modules/gethrxtime (configure.ac): ... to here.
8745
8746 2011-05-08  Bruno Haible  <bruno@clisp.org>
8747
8748         gethostname: Move AC_LIBOBJ invocations to module description.
8749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8750         gl_PREREQ_GETHOSTNAME invocations from here...
8751         * modules/gethostname (configure.ac): ... to here.
8752
8753 2011-05-08  Bruno Haible  <bruno@clisp.org>
8754
8755         getgroups: Move AC_LIBOBJ invocations to module description.
8756         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8757         here...
8758         * modules/getgroups (configure.ac): ... to here.
8759
8760 2011-05-08  Bruno Haible  <bruno@clisp.org>
8761
8762         getdtablesize: Move AC_LIBOBJ invocations to module description.
8763         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8764         invocation from here...
8765         * modules/getdtablesize (configure.ac): ... to here.
8766
8767 2011-05-08  Bruno Haible  <bruno@clisp.org>
8768
8769         getdomainname: Move AC_LIBOBJ invocations to module description.
8770         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8771         gl_PREREQ_GETDOMAINNAME invocations from here...
8772         * modules/getdomainname (configure.ac): ... to here.
8773
8774 2011-05-08  Bruno Haible  <bruno@clisp.org>
8775
8776         getline: Move AC_LIBOBJ invocations to module description.
8777         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8778         invocations from here...
8779         * modules/getline (configure.ac): ... to here.
8780
8781 2011-05-08  Bruno Haible  <bruno@clisp.org>
8782
8783         getline: Simplify.
8784         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8785         It's already handled through the module dependency.
8786
8787 2011-05-08  Bruno Haible  <bruno@clisp.org>
8788
8789         getdelim: Move AC_LIBOBJ invocations to module description.
8790         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8791         and gl_PREREQ_GETDELIM invocations from here...
8792         * modules/getdelim (configure.ac): ... to here.
8793         (Depends-on): Fix condition.
8794
8795 2011-05-08  Bruno Haible  <bruno@clisp.org>
8796
8797         getcwd: Move AC_LIBOBJ invocations to module description.
8798         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8799         invocations from here...
8800         * modules/getcwd (configure.ac): ... to here.
8801
8802 2011-05-08  Bruno Haible  <bruno@clisp.org>
8803
8804         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8805         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8806         here...
8807         * modules/getcwd-lgpl (configure.ac): ... to here.
8808
8809 2011-05-07  Bruno Haible  <bruno@clisp.org>
8810
8811         crypto/gc: Move AC_LIBOBJ invocations to module description.
8812         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8813         * modules/crypto/gc (configure.ac): ... to here.
8814
8815 2011-05-07  Bruno Haible  <bruno@clisp.org>
8816
8817         fwriting: Move AC_LIBOBJ invocations to module description.
8818         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8819         here...
8820         * modules/fwriting (configure.ac): ... to here.
8821
8822 2011-05-07  Bruno Haible  <bruno@clisp.org>
8823
8824         fwritable: Move AC_LIBOBJ invocations to module description.
8825         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8826         here...
8827         * modules/fwritable (configure.ac): ... to here.
8828
8829 2011-05-07  Bruno Haible  <bruno@clisp.org>
8830
8831         futimens: Move AC_LIBOBJ invocations to module description.
8832         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8833         here...
8834         * modules/futimens (configure.ac): ... to here.
8835
8836 2011-05-07  Bruno Haible  <bruno@clisp.org>
8837
8838         ftruncate: Move AC_LIBOBJ invocations to module description.
8839         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8840         gl_PREREQ_FTRUNCATE invocations from here...
8841         * modules/ftruncate (configure.ac): ... to here.
8842
8843 2011-05-07  Bruno Haible  <bruno@clisp.org>
8844
8845         fsync: Move AC_LIBOBJ invocations to module description.
8846         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8847         invocations from here...
8848         * modules/fsync (configure.ac): ... to here.
8849
8850 2011-05-07  Bruno Haible  <bruno@clisp.org>
8851
8852         fsusage: Move AC_LIBOBJ invocations to module description.
8853         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8854         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8855         * modules/fsusage (configure.ac): ... to here.
8856
8857 2011-05-07  Bruno Haible  <bruno@clisp.org>
8858
8859         freopen: Move AC_LIBOBJ invocations to module description.
8860         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8861         invocations from here...
8862         * modules/freopen (configure.ac): ... to here.
8863
8864 2011-05-07  Bruno Haible  <bruno@clisp.org>
8865
8866         free: Move AC_LIBOBJ invocations to module description.
8867         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8868         invocations from here...
8869         * modules/free (configure.ac): ... to here.
8870
8871 2011-05-07  Bruno Haible  <bruno@clisp.org>
8872
8873         freadable: Move AC_LIBOBJ invocations to module description.
8874         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8875         here...
8876         * modules/freadable (configure.ac): ... to here.
8877
8878 2011-05-07  Bruno Haible  <bruno@clisp.org>
8879
8880         fpurge: Move AC_LIBOBJ invocations to module description.
8881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8882         invocations from here...
8883         * modules/fpurge (configure.ac): ... to here.
8884
8885 2011-05-07  Bruno Haible  <bruno@clisp.org>
8886
8887         fpending: Move AC_LIBOBJ invocations to module description.
8888         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8889         gl_FUNC_FPENDING.
8890         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8891         invocations from here...
8892         * modules/fpending (configure.ac): ... to here.
8893
8894 2011-05-07  Bruno Haible  <bruno@clisp.org>
8895
8896         fopen: Move AC_LIBOBJ invocations to module description.
8897         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8898         invocations from here...
8899         * modules/fopen (configure.ac): ... to here.
8900
8901 2011-05-07  Bruno Haible  <bruno@clisp.org>
8902
8903         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8904         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8905         gl_FUNC_FNMATCH_POSIX.
8906         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8907         invocations from here...
8908         * modules/fnmatch (configure.ac): ... to here.
8909         * modules/fnmatch-gnu (configure.ac): ... and here.
8910
8911 2011-05-07  Bruno Haible  <bruno@clisp.org>
8912
8913         flock: Move AC_LIBOBJ invocations to module description.
8914         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8915         invocations from here...
8916         * modules/flock (configure.ac): ... to here.
8917
8918 2011-05-07  Bruno Haible  <bruno@clisp.org>
8919
8920         fileblocks: Move AC_LIBOBJ invocations to module description.
8921         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8922         gl_PREREQ_FILEBLOCKS invocations from here...
8923         * modules/fileblocks (configure.ac): ... to here.
8924
8925 2011-05-06  Bruno Haible  <bruno@clisp.org>
8926
8927         fflush: Move AC_LIBOBJ invocations to module description.
8928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8929         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8930         invocations from here...
8931         * modules/fflush (configure.ac): ... to here.
8932
8933 2011-05-06  Bruno Haible  <bruno@clisp.org>
8934
8935         fdopendir: Move AC_LIBOBJ invocations to module description.
8936         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8937         here...
8938         * modules/fdopendir (configure.ac): ... to here.
8939         (Depends-on): Improve conditions.
8940
8941 2011-05-06  Bruno Haible  <bruno@clisp.org>
8942
8943         _Exit: Move AC_LIBOBJ invocations to module description.
8944         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8945         invocations from here...
8946         * modules/_Exit (configure.ac): ... to here.
8947
8948 2011-05-21  Bruno Haible  <bruno@clisp.org>
8949
8950         euidaccess: Respect rules for use of AC_LIBOBJ.
8951         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8953         from here...
8954         * modules/euidaccess (configure.ac): ... to here.
8955
8956 2011-05-06  Bruno Haible  <bruno@clisp.org>
8957
8958         error: Move AC_LIBOBJ invocations to module description.
8959         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8960         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8961         invocations from here...
8962         * modules/error (configure.ac): ... to here.
8963
8964 2011-05-06  Bruno Haible  <bruno@clisp.org>
8965
8966         duplocale: Move AC_LIBOBJ invocations to module description.
8967         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8968         gl_PREREQ_DUPLOCALE invocations from here...
8969         * modules/duplocale (configure.ac): ... to here.
8970
8971 2011-05-05  Bruno Haible  <bruno@clisp.org>
8972
8973         dirfd: Move AC_LIBOBJ invocations to module description.
8974         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8975         gl_FUNC_DIRFD.
8976         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8977         here...
8978         * modules/dirfd (configure.ac): ... to here.
8979         (Depends-on): Fix condition.
8980
8981 2011-05-05  Bruno Haible  <bruno@clisp.org>
8982
8983         chown: Respect rules for use of AC_LIBOBJ.
8984         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8985         * modules/chown (configure.ac): ... to here.
8986
8987 2011-05-05  Bruno Haible  <bruno@clisp.org>
8988
8989         chdir-long: Move AC_LIBOBJ invocations to module description.
8990         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8991         gl_PREREQ_CHDIR_LONG invocations from here...
8992         * modules/chdir-long (configure.ac): ... to here.
8993
8994 2011-05-05  Bruno Haible  <bruno@clisp.org>
8995
8996         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8997         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8998         from here...
8999         * modules/canonicalize-lgpl (configure.ac): ... to here.
9000
9001 2011-05-05  Bruno Haible  <bruno@clisp.org>
9002
9003         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9004         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9005         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9006         REPLACE_CALLOC.
9007         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9008         * modules/calloc-gnu (configure.ac): Likewise.
9009
9010 2011-05-05  Bruno Haible  <bruno@clisp.org>
9011
9012         btowc: Move AC_LIBOBJ invocations to module description.
9013         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9014         invocations from here...
9015         * modules/btowc (configure.ac): ... to here.
9016
9017 2011-05-21  Bruno Haible  <bruno@clisp.org>
9018
9019         atexit: Move AC_LIBOBJ invocations to module description.
9020         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9022         here...
9023         * modules/atexit (configure.ac): ... to here.
9024
9025 2011-05-05  Bruno Haible  <bruno@clisp.org>
9026
9027         atoll: Move AC_LIBOBJ invocations to module description.
9028         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9029         invocations from here...
9030         * modules/atoll (configure.ac): ... to here.
9031
9032 2011-05-05  Bruno Haible  <bruno@clisp.org>
9033
9034         argz: Move AC_LIBOBJ invocations to module description.
9035         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9036         * modules/argz (configure.ac): ... to here.
9037
9038 2011-05-05  Bruno Haible  <bruno@clisp.org>
9039
9040         alphasort: Move AC_LIBOBJ invocations to module description.
9041         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9042         gl_PREREQ_ALPHASORT invocations from here...
9043         * modules/alphasort (configure.ac): ... to here.
9044
9045 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9046
9047         verify: new macro verify_expr; verify_true deprecated
9048         * NEWS: Mention this.
9049         * doc/verify.texi (Compile-time Assertions): Document this.
9050         * lib/verify.h (verify_true): Deprecate.
9051         (verify_expr): New macro.
9052         * tests/test-verify.c (function): Test verify_expr.
9053
9054 2011-06-14  Jim Meyering  <meyering@redhat.com>
9055
9056         init.sh: give more portable redirection-related advice in a comment
9057         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9058         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9059         for lots of discussion.  Stefano Lattarini suggested the solution
9060         of putting "9>&2" after the command.  Reported by Bruno Haible.
9061
9062 2011-06-13  Bruno Haible  <bruno@clisp.org>
9063
9064         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9065         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9066         'none'.
9067
9068 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9069
9070         ftoastr: use strtof only if HAVE_STRTOF
9071         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9073         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9074         * modules/ftoastr (configure.ac): Check for strtof.
9075
9076 2011-06-13  Bruno Haible  <bruno@clisp.org>
9077
9078         gnulib-tool: Addendum to 2011-06-08 commit.
9079         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9080         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9081
9082 2011-06-13  Bruno Haible  <bruno@clisp.org>
9083
9084         fseeko: Provide a non-inline replacement of fseek().
9085         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9086         * modules/fseeko (Depends-on): Add fseek.
9087         * modules/fseek (License): Change to LGPLv2+.
9088
9089 2011-06-13  Bruno Haible  <bruno@clisp.org>
9090
9091         ftello: Provide a non-inline replacement of ftell().
9092         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9093         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9094         not have ftello() (such as on mingw).
9095         * modules/ftello (Depends-on): Add ftell.
9096         * modules/ftell (License): Change to LGPLv2+.
9097
9098 2011-05-07  Bruno Haible  <bruno@clisp.org>
9099
9100         ftell: Move AC_LIBOBJ invocations to module description.
9101         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9102         * modules/ftell (configure.ac): ... to here.
9103
9104 2011-05-07  Bruno Haible  <bruno@clisp.org>
9105
9106         ftello: Respect rules for use of AC_LIBOBJ.
9107         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9108         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9109         here...
9110         * modules/ftello (configure.ac): ... to here.
9111
9112 2011-05-07  Bruno Haible  <bruno@clisp.org>
9113
9114         fseeko: Simplify.
9115         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9116         (gl_FUNC_FSEEKO): Inline it here.
9117
9118 2011-05-07  Bruno Haible  <bruno@clisp.org>
9119
9120         fseek: Move AC_LIBOBJ invocations to module description.
9121         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9122         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9123         * modules/fseek (configure.ac): ... to here.
9124
9125 2011-05-07  Bruno Haible  <bruno@clisp.org>
9126
9127         fseek: Respect rules for use of AC_LIBOBJ.
9128         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9129         here...
9130         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9131
9132 2011-05-07  Bruno Haible  <bruno@clisp.org>
9133
9134         fseeko: Respect rules for use of AC_LIBOBJ.
9135         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9136         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9137         here...
9138         * modules/fseeko (configure.ac): ... to here.
9139
9140 2011-06-13  Bruno Haible  <bruno@clisp.org>
9141
9142         gnulib-tool: Allow comments in the 'Depends-on' section.
9143         * doc/gnulib.texi (Module description): Mention comment syntax in the
9144         Depends-on section.
9145         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9146
9147 2011-06-13  Bruno Haible  <bruno@clisp.org>
9148
9149         file-set.h: guard __attibute__ use, now that it's not always defined
9150         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9151         versions that support it.  This fixes a coreutils build failure with
9152         the vendor cc on HP-UX 11.31.
9153
9154 2011-06-12  Bruno Haible  <bruno@clisp.org>
9155
9156         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9157         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9158         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9159         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9160         (acl, aclsort): New declarations.
9161         (aclv_nontrivial): New declaration.
9162         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9163         (file_has_acl): Read also the second kind of HP-UX ACLs.
9164         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9165         kind of HP-UX ACLs if the first kind fails.
9166         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9167         second kind of HP-UX ACLs.
9168         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9169         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9170         agree.
9171         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9172         hpuxjfs.
9173         Handle hpuxjfs.
9174         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9175         hpuxjfs.
9176         Handle hpuxjfs.
9177         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9178         (func_test_same_acls): Use both lsacl and getacl.
9179         Handle hpuxjfs.
9180         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9181         (func_test_same_acls): Use both lsacl and getacl.
9182         Handle hpuxjfs.
9183
9184 2011-06-12  Bruno Haible  <bruno@clisp.org>
9185
9186         acl: Complete the 2010-08-10 fix.
9187         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9188         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9189         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9190         explicitly.
9191         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9192         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9193
9194 2011-06-12  Bruno Haible  <bruno@clisp.org>
9195
9196         spawn-pipe tests: Comments.
9197         * tests/test-spawn-pipe-child.c (main): Update comment.
9198         Reported by James Youngman <jay@gnu.org>.
9199
9200 2011-06-11  James Youngman  <jay@gnu.org>
9201
9202         New module 'stat-size'.
9203         * modules/stat-size: New module.  Provides macros for accessing
9204         file size information in instances of struct stat.  Depends on the
9205         fileblocks module because it calls st_blocks.
9206         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9207         * doc/gnulib.texi: Include stat-size.texi.
9208         * doc/stat-size.texi: Documentation for this module.
9209         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9210         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9211         AC_STRUCT_ST_BLOCKS.
9212
9213 2011-06-09  Bruno Haible  <bruno@clisp.org>
9214
9215         thread: Support pthreads-win32.
9216         * lib/glthread/thread.h (gl_thread_self): Define differently on
9217         pthreads-win32.
9218         (gl_null_thread): New declaration.
9219         (gl_thread_self_pointer): New macro.
9220         * lib/glthread/thread.c (gl_null_thread): New constant.
9221         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9222         gl_thread_self.
9223         * tests/test-tls.c: Likewise.
9224         Suggested by Paul Eggert. Reported by Eric Blake.
9225
9226 2011-06-09  Bruno Haible  <bruno@clisp.org>
9227
9228         thread: Fix confusion between NULL and 0.
9229         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9230         Reported by Paul Eggert.
9231
9232 2011-06-09  Bruno Haible  <bruno@clisp.org>
9233
9234         spawn-pipe tests: Avoid test failure on HP-UX 11.
9235         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9236         is closed.
9237
9238 2011-06-09  Bruno Haible  <bruno@clisp.org>
9239
9240         acl tests: Fix compilation error on HP-UX 11.
9241         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9242
9243 2011-06-09  Bruno Haible  <bruno@clisp.org>
9244
9245         rmdir: Avoid test failure on HP-UX 10.20.
9246         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9247         EEXIST.
9248
9249 2011-06-08  Eric Blake  <eblake@redhat.com>
9250
9251         perror: fix test on mingw
9252         * modules/perror-tests (Depends-on): Add dup2.
9253
9254         strerror_r-posix: fix on MacOS
9255         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9257         logic bug.
9258         * lib/strerror_r.c (strerror_r): Fix the bug.
9259         * lib/strerror.c (strerror): Likewise.
9260         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9261         problem.
9262         * doc/posix-functions/strerror.texi (strerror): Likewise.
9263         * doc/posix-functions/perror.texi (perror): Likewise.
9264         * tests/test-strerror.c (main): Enhance test.
9265         * tests/test-strerror_r.c (main): Likewise.
9266
9267 2011-06-08  Bruno Haible  <bruno@clisp.org>
9268
9269         gnulib-tool: Better isolation between different gnulib-tool invocations.
9270         * gnulib-tool: New option --witness-c-macro.
9271         (witness_c_macro): New variable.
9272         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9273         AM_CPPFLAGS define it as a C macro.
9274         (func_emit_tests_Makefile_am): Likewise.
9275         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9276         read it from there.
9277         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9278         m4_define, not AC_DEFUN.
9279         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9280         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9281         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9282         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9283         s|...|...|, to substitute the values of the GNULIB_* module indicator
9284         variables.
9285         * modules/dirent (Makefile.am): Likewise.
9286         * modules/fcntl-h (Makefile.am): Likewise.
9287         * modules/iconv-h (Makefile.am): Likewise.
9288         * modules/langinfo (Makefile.am): Likewise.
9289         * modules/locale (Makefile.am): Likewise.
9290         * modules/math (Makefile.am): Likewise.
9291         * modules/netdb (Makefile.am): Likewise.
9292         * modules/poll-h (Makefile.am): Likewise.
9293         * modules/pty (Makefile.am): Likewise.
9294         * modules/search (Makefile.am): Likewise.
9295         * modules/signal (Makefile.am): Likewise.
9296         * modules/spawn (Makefile.am): Likewise.
9297         * modules/stdio (Makefile.am): Likewise.
9298         * modules/stdlib (Makefile.am): Likewise.
9299         * modules/string (Makefile.am): Likewise.
9300         * modules/sys_ioctl (Makefile.am): Likewise.
9301         * modules/sys_select (Makefile.am): Likewise.
9302         * modules/sys_socket (Makefile.am): Likewise.
9303         * modules/sys_stat (Makefile.am): Likewise.
9304         * modules/sys_times (Makefile.am): Likewise.
9305         * modules/sys_utsname (Makefile.am): Likewise.
9306         * modules/sys_wait (Makefile.am): Likewise.
9307         * modules/termios (Makefile.am): Likewise.
9308         * modules/time (Makefile.am): Likewise.
9309         * modules/unistd (Makefile.am): Likewise.
9310         * modules/wchar (Makefile.am): Likewise.
9311
9312 2011-06-08  Eric Blake  <eblake@redhat.com>
9313
9314         strerror: simplify replacement
9315         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9316         * modules/strerror (configure.ac): No prereqs needed here...
9317         * modules/strerror-override (configure.ac): ...but this needs it.
9318         (Files): Add file for needed prereq macro.
9319
9320 2011-06-08  Bruno Haible  <bruno@clisp.org>
9321
9322         strerror_r-posix: Tweaks.
9323         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9324         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9326         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9327         (gl_FUNC_STRERROR_R): ... to here.
9328         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9329
9330 2011-06-07  Eric Blake  <eblake@redhat.com>
9331
9332         perror: document fixed bugs
9333         * doc/posix-functions/perror.texi (perror): Document recent
9334         patches.
9335
9336 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9337
9338         stat-time: get_stat_birthtime failure is better-defined
9339         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9340         return a timestamp whose tv_sec and tv_nsec values are both -1.
9341         Previously, the spec said only that the tv_nsec value was negative.
9342         This upward-compatible change simplifies GNU tar a bit.
9343
9344 2011-06-07  Eric Blake  <eblake@redhat.com>
9345
9346         strerror_r-posix: work around cygwin 1.7.9
9347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9348         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9349         bug without replacing strerror_r.
9350         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9351         strerror_r is buggy, but without requiring strerror_r compilation.
9352         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9353
9354         test-perror: relax test to ignore cygwin bug
9355         * tests/test-perror2.c (main): Relax test on requiring detection
9356         of stream errors, and use unbuffered stream.
9357         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9358         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9359         * doc/posix-functions/fputc.texi (fputc): Likewise.
9360         * doc/posix-functions/fputs.texi (fputs): Likewise.
9361         * doc/posix-functions/fputws.texi (fputws): Likewise.
9362         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9363         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9364         * doc/posix-functions/getopt.texi (getopt): Likewise.
9365         * doc/posix-functions/perror.texi (perror): Likewise.
9366         * doc/posix-functions/printf.texi (printf): Likewise.
9367         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9368         * doc/posix-functions/psignal.texi (psignal): Likewise.
9369         * doc/posix-functions/putc.texi (putc): Likewise.
9370         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9371         Likewise.
9372         * doc/posix-functions/putchar.texi (putchar): Likewise.
9373         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9374         Likewise.
9375         * doc/posix-functions/puts.texi (puts): Likewise.
9376         * doc/posix-functions/putwc.texi (putwc): Likewise.
9377         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9378         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9379         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9380         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9381         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9382         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9383         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9384         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9385
9386 2011-05-22  Bruno Haible  <bruno@clisp.org>
9387
9388         strerror: Move AC_LIBOBJ invocations to module description.
9389         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9390         gl_PREREQ_STRERROR invocations from here...
9391         * modules/strerror (configure.ac): ... to here.
9392
9393 2011-05-21  Bruno Haible  <bruno@clisp.org>
9394
9395         perror: Use common idiom.
9396         * modules/perror (configure.ac): Reorder statements.
9397
9398 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9399
9400         tests: fix usage message in 'mktempd_'
9401         * tests/init.sh (mktempd_): In the usage message, use literal
9402         'mktempd_', not '$ME' (which is even undefined), as the name of
9403         the subroutine.
9404
9405 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9406
9407         tests init: new function 'fatal_', for hard errors
9408         Before this patch, the only way offered by tests/init.sh to
9409         properly signal a hard error was the `framework_failure_'
9410         function.  But the error message issued by that function,
9411         as its name would suggest, refers to a set-up failure in the
9412         testsuite, while hard errors can obviously also be due to
9413         other reasons.  The best way to fix this inconsistency is to
9414         introduce a new function with a more general error message.
9415         * tests/init.sh (fatal_): New function.
9416
9417 2011-06-06  Eric Blake  <eblake@redhat.com>
9418
9419         canonicalize-lgpl: use common idiom
9420         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9421         over newer POSIX -Rf.
9422         Reported by Bruno Haible.
9423
9424         canonicalize-lgpl: work around AIX realpath bug
9425         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9426         * doc/posix-functions/realpath.texi (realpath): Document it.
9427         Reported by Bruno Haible.
9428
9429         strerror: work around FreeBSD bug
9430         * lib/strerror.c (strerror): Special case 0.
9431         Reported by Bruno Haible.
9432
9433         strerror-override: avoid bloating errno module
9434         * modules/errno (Files, configure.ac): Move replacement strings...
9435         * modules/strerror-override: ...to new module.
9436         * modules/strerror (Depends-on): Add strerror-override.
9437         * modules/strerror_r-posix (Depends-on): Likewise.
9438         * MODULES.html.sh: Document new module.
9439         Reported by Bruno Haible.
9440
9441 2011-06-06  Bruno Haible  <bruno@clisp.org>
9442
9443         spawn-pipe tests: Rename program.
9444         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9445         * tests/test-spawn-pipe-child.c: Update comment.
9446         * tests/test-spawn-pipe.sh: Update.
9447         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9448
9449         spawn-pipe tests: Link the child program only against libc.
9450         * tests/test-spawn-pipe-child.c: New file, extracted from
9451         tests/test-spawn-pipe.c.
9452         (main): Expect only one argument.
9453         (is_open): New function, copied from tests/test-pipe.c.
9454         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9455         (child_main): Remove function.
9456         (test_pipe): Pass only one argument to the child program.
9457         (main): Remove child process code. Expect the child program's name as
9458         first argument.
9459         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9460         argument.
9461         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9462         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9463         test-spawn-pipe-child against no libraries.
9464
9465 2011-06-06  Bruno Haible  <bruno@clisp.org>
9466
9467         careadlinkat: Avoid mismatch between ssize_t and int.
9468         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9469         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9470
9471 2011-06-06  Jim Meyering  <meyering@redhat.com>
9472
9473         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9474         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9475         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9476
9477 2011-06-05  Bruno Haible  <bruno@clisp.org>
9478
9479         ansi-c++-opt: Interoperability with libtool.
9480         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9481         set the variable to "no", not to ":".
9482         * NEWS: Mention the change.
9483
9484 2011-06-05  Bruno Haible  <bruno@clisp.org>
9485
9486         acl: Fix test failure on AIX 7.
9487         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9488         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9489
9490 2011-06-05  Bruno Haible  <bruno@clisp.org>
9491
9492         pipe-filter-ii: Fix test failure on AIX and IRIX.
9493         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9494         with EAGAIN, retry with a smaller buffer size.
9495
9496 2011-06-05  Bruno Haible  <bruno@clisp.org>
9497
9498         localename: Fix link dependencies.
9499         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9500         * modules/localename-tests (Makefile.am): Link test-localename with
9501         $(LIBTHREAD).
9502
9503 2011-06-05  Bruno Haible  <bruno@clisp.org>
9504
9505         error: Avoid gcc warning.
9506         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9507
9508 2011-06-05  Bruno Haible  <bruno@clisp.org>
9509
9510         unsetenv: Avoid gcc warning.
9511         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9512
9513 2011-06-05  Bruno Haible  <bruno@clisp.org>
9514
9515         setenv: Avoid gcc warning.
9516         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9517
9518 2011-06-05  Bruno Haible  <bruno@clisp.org>
9519
9520         sys_select: Ensure memset is declared also on AIX 7.
9521         * lib/sys_select.in.h: Include <string.h> also on AIX.
9522         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9523         self-contained also on AIX 7.1.
9524
9525 2011-06-04  Jim Meyering  <meyering@redhat.com>
9526
9527         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9528         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9529         function name, "error".
9530         (_gl_translatable_diag_func_re): New configurable variable.
9531
9532 2011-06-04  Bruno Haible  <bruno@clisp.org>
9533
9534         getopt: Avoid gcc warning.
9535         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9536
9537 2011-06-04  Bruno Haible  <bruno@clisp.org>
9538
9539         strerror_r: Fix comments.
9540         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9541         commit.
9542
9543 2011-06-04  Bruno Haible  <bruno@clisp.org>
9544
9545         perror: Fix compilation error.
9546         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9547         Undefine fprintf, not sprintf.
9548         * modules/perror (Depends-on): Remove intprops, verify.
9549
9550 2011-06-04  Bruno Haible  <bruno@clisp.org>
9551
9552         setlocale: Enable replacement on Cygwin 1.5.
9553         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9554         Cygwin 1.5.x.
9555         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9556         LC_CTYPE category also exists on Cygwin 1.5.x.
9557
9558 2011-06-04  Bruno Haible  <bruno@clisp.org>
9559
9560         strerror-override: Don't disable symbol renamings.
9561         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9562         * lib/strerror-override.c: Include config.h.
9563         (strerror_override): Don't undefine.
9564
9565 2011-06-03  Bruno Haible  <bruno@clisp.org>
9566
9567         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9568         * lib/localename.h: Update copyright header.
9569         * lib/localename.c: Likewise.
9570         * lib/relocatable.h: Likewise.
9571         * lib/relocatable.c: Likewise.
9572
9573 2011-06-02  Bruno Haible  <bruno@clisp.org>
9574
9575         doc: Fix a module name.
9576         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9577
9578 2011-06-02  Bruno Haible  <bruno@clisp.org>
9579
9580         pipe2: Remove dependency on 'nonblocking' module.
9581         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9582         O_NONBLOCK is defined by gnulib.
9583         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9584         is zero.
9585         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9586         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9587         defined by gnulib.
9588         (get_nonblocking_flag): New function.
9589         (main): Test O_NONBLOCK flag only if it is nonzero.
9590         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9591
9592 2011-06-03  Jim Meyering  <meyering@redhat.com>
9593
9594         maint: three new prohibit-header-without-use rules
9595         Prohibit use of cloexec.h, posixver.h, same.h without use.
9596         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9597         (sc_prohibit_posixver_without_use): Likewise.
9598         (sc_prohibit_same_without_use): Likewise.
9599
9600 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9601
9602         allocator: 'die' routine is now given requested size
9603         * lib/allocator.h (struct allocator.die): New size arg.
9604         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9605         If the actual problem is an ssize_t limitation, not a size_t or
9606         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9607
9608 2011-06-01  Eric Blake  <eblake@redhat.com>
9609
9610         strerror: drop strerror_r dependency
9611         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9612         * lib/strerror-override.c (strerror_override): ...to new file.
9613         * lib/strerror-override.h: Add prototype.
9614         * lib/strerror-impl.h: Delete.
9615         * lib/strerror.c (strerror): New implementation.
9616         * modules/errno (Files): Add new files.
9617         (configure.ac): Compile new file as appropriate.
9618         * modules/strerror (Files): Drop unused file.
9619         (Depends-on): Drop strerror_r-posix.
9620         * MODULES.html.sh: Document strerror_r-posix.
9621         Requested by Sam Steingold.
9622
9623         perror: call strerror_r directly
9624         * modules/perror (Files): Drop strerror-impl.h.
9625         * lib/perror.c (perror): Use our own stack buffer, rather than
9626         calling a wrapper that uses static storage.
9627         * doc/posix-functions/perror.texi (perror): Document a limitation
9628         of our replacement.
9629
9630         strerror_r: fix includes for FreeBSD
9631         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9632         since we use abort on some platforms.
9633         Reported by Matthias Bolte.
9634
9635 2011-05-31  Bruno Haible  <bruno@clisp.org>
9636
9637         Fix link errors in tests: openat-die uses gettext-h.
9638         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9639         against $(LIBINTL).
9640         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9641         against $(LIBINTL).
9642         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9643         $(LIBINTL).
9644         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9645         against $(LIBINTL).
9646         * modules/linkat-tests (Makefile.am): Link test-linkat against
9647         $(LIBINTL).
9648         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9649         $(LIBINTL).
9650         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9651         against $(LIBINTL).
9652         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9653         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9654         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9655         $(LIBINTL).
9656         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9657         $(LIBINTL).
9658         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9659         $(LIBINTL).
9660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9661
9662 2011-05-31  Bruno Haible  <bruno@clisp.org>
9663
9664         Fix link errors in tests: wait-process uses gettext-h.
9665         * modules/nonblocking-pipe-tests (Makefile.am): Set
9666         test_nonblocking_pipe_main_LDADD.
9667         * modules/nonblocking-socket-tests (Makefile.am): Link
9668         test-nonblocking-socket-main against $(LIBINTL).
9669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9670
9671 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         assert-h: work around 'verify' incompatibility
9674         * lib/verify.h: Use @...@ directives, not ifdef.
9675         * modules/assert-h (assert.h): Implement the directives.
9676         (assert.h): Substitute the symbol-prefix more consistently.
9677
9678 2011-05-29  Jim Meyering  <meyering@redhat.com>
9679
9680         trim: remove three superfluous assignments
9681         * lib/trim.c (trim2): Remove three superfluous assignments
9682         and correct brace positioning.
9683
9684 2011-05-29  Bruno Haible  <bruno@clisp.org>
9685
9686         wctype-h: Avoid namespace pollution on Solaris 2.6.
9687         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9688         identifiers.
9689         * doc/posix-headers/wctype.texi: Mention the problem.
9690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9691
9692 2011-05-28  Jim Meyering  <meyering@redhat.com>
9693
9694         parse-datetime.y: accommodate -Wstrict-overflow
9695         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9696         placate -Wstrict-overflow.
9697
9698         trim: avoid a warning from -O2 -Wstrict-overflow
9699         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9700
9701 2011-05-29  Bruno Haible  <bruno@clisp.org>
9702
9703         gnulib-tool: Fix bug in yesterday's commit.
9704         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9705         twice.
9706
9707 2011-05-29  Bruno Haible  <bruno@clisp.org>
9708
9709         Allow multiple gnulib generated include files to be combined.
9710         * gnulib-tool (func_compute_include_guard_prefix): New function.
9711         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9712         ${gl_include_guard_prefix} references.
9713         (func_import, func_create_testdir): Invoke
9714         func_compute_include_guard_prefix.
9715         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9716         * lib/ctype.in.h: Likewise.
9717         * lib/dirent.in.h: Likewise.
9718         * lib/errno.in.h: Likewise.
9719         * lib/fcntl.in.h: Likewise.
9720         * lib/float.in.h: Likewise.
9721         * lib/getopt.in.h: Likewise.
9722         * lib/iconv.in.h: Likewise.
9723         * lib/langinfo.in.h: Likewise.
9724         * lib/locale.in.h: Likewise.
9725         * lib/math.in.h: Likewise.
9726         * lib/netdb.in.h: Likewise.
9727         * lib/netinet_in.in.h: Likewise.
9728         * lib/poll.in.h: Likewise.
9729         * lib/pthread.in.h: Likewise.
9730         * lib/pty.in.h: Likewise.
9731         * lib/sched.in.h: Likewise.
9732         * lib/se-selinux.in.h: Likewise.
9733         * lib/search.in.h: Likewise.
9734         * lib/signal.in.h: Likewise.
9735         * lib/spawn.in.h: Likewise.
9736         * lib/stdarg.in.h: Likewise.
9737         * lib/stddef.in.h: Likewise.
9738         * lib/stdint.in.h: Likewise.
9739         * lib/stdio.in.h: Likewise.
9740         * lib/stdlib.in.h: Likewise.
9741         * lib/string.in.h: Likewise.
9742         * lib/strings.in.h: Likewise.
9743         * lib/sys_file.in.h: Likewise.
9744         * lib/sys_ioctl.in.h: Likewise.
9745         * lib/sys_select.in.h: Likewise.
9746         * lib/sys_socket.in.h: Likewise.
9747         * lib/sys_stat.in.h: Likewise.
9748         * lib/sys_time.in.h: Likewise.
9749         * lib/sys_times.in.h: Likewise.
9750         * lib/sys_uio.in.h: Likewise.
9751         * lib/sys_utsname.in.h: Likewise.
9752         * lib/sys_wait.in.h: Likewise.
9753         * lib/sysexits.in.h: Likewise.
9754         * lib/termios.in.h: Likewise.
9755         * lib/time.in.h: Likewise.
9756         * lib/unistd.in.h: Likewise.
9757         * lib/wchar.in.h: Likewise.
9758         * lib/wctype.in.h: Likewise.
9759         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9760         * modules/ctype (Makefile.am): Likewise.
9761         * modules/dirent (Makefile.am): Likewise.
9762         * modules/errno (Makefile.am): Likewise.
9763         * modules/fcntl-h (Makefile.am): Likewise.
9764         * modules/float (Makefile.am): Likewise.
9765         * modules/getopt-posix (Makefile.am): Likewise.
9766         * modules/iconv-h (Makefile.am): Likewise.
9767         * modules/langinfo (Makefile.am): Likewise.
9768         * modules/locale (Makefile.am): Likewise.
9769         * modules/math (Makefile.am): Likewise.
9770         * modules/netdb (Makefile.am): Likewise.
9771         * modules/netinet_in (Makefile.am): Likewise.
9772         * modules/poll-h (Makefile.am): Likewise.
9773         * modules/pthread (Makefile.am): Likewise.
9774         * modules/pty (Makefile.am): Likewise.
9775         * modules/sched (Makefile.am): Likewise.
9776         * modules/search (Makefile.am): Likewise.
9777         * modules/selinux-h (Makefile.am): Likewise.
9778         * modules/signal (Makefile.am): Likewise.
9779         * modules/spawn (Makefile.am): Likewise.
9780         * modules/stdarg (Makefile.am): Likewise.
9781         * modules/stddef (Makefile.am): Likewise.
9782         * modules/stdint (Makefile.am): Likewise.
9783         * modules/stdio (Makefile.am): Likewise.
9784         * modules/stdlib (Makefile.am): Likewise.
9785         * modules/string (Makefile.am): Likewise.
9786         * modules/strings (Makefile.am): Likewise.
9787         * modules/sys_file (Makefile.am): Likewise.
9788         * modules/sys_ioctl (Makefile.am): Likewise.
9789         * modules/sys_select (Makefile.am): Likewise.
9790         * modules/sys_socket (Makefile.am): Likewise.
9791         * modules/sys_stat (Makefile.am): Likewise.
9792         * modules/sys_time (Makefile.am): Likewise.
9793         * modules/sys_times (Makefile.am): Likewise.
9794         * modules/sys_uio (Makefile.am): Likewise.
9795         * modules/sys_utsname (Makefile.am): Likewise.
9796         * modules/sys_wait (Makefile.am): Likewise.
9797         * modules/sysexits (Makefile.am): Likewise.
9798         * modules/termios (Makefile.am): Likewise.
9799         * modules/time (Makefile.am): Likewise.
9800         * modules/unistd (Makefile.am): Likewise.
9801         * modules/wchar (Makefile.am): Likewise.
9802         * modules/wctype-h (Makefile.am): Likewise.
9803         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9804
9805 2011-05-29  Bruno Haible  <bruno@clisp.org>
9806
9807         assert-h: Allow multiple gnulib generated replacements to coexist.
9808         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9809
9810 2011-05-29  Bruno Haible  <bruno@clisp.org>
9811
9812         argp: Allow coexistence with strerror_r-posix module.
9813         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9814         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9815         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9816         not the glibc signature.
9817
9818 2011-05-28  Bruno Haible  <bruno@clisp.org>
9819
9820         gnulib-tool: Alternative structure of testdirs, similar to --import.
9821         * gnulib-tool: New option --single-configure.
9822         (func_usage): Document it.
9823         (single_configure): New variable.
9824         (func_modules_transitive_closure_separately,
9825         func_modules_transitive_closure_separately,
9826         func_determine_use_libtests, func_modules_add_dummy_separately,
9827         func_modules_to_filelist_separately): New functions, extracted from
9828         func_import.
9829         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9830         (func_import): Use the new functions.
9831         (func_create_testdir): Set final_modules. Handle $single_configure =
9832         true case.
9833
9834 2011-05-28  Bruno Haible  <bruno@clisp.org>
9835
9836         getloadavg: Remove an unreliable safety check.
9837         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9838         getloadavg.c is in place.
9839         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9840         Reported by Sam Steingold <sds@gnu.org>.
9841
9842 2011-05-28  Bruno Haible  <bruno@clisp.org>
9843
9844         doc: Cleanup yet another file produced by texinfo.tex.
9845         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9846
9847 2011-05-28  Bruno Haible  <bruno@clisp.org>
9848
9849         Finish the conditional dependencies mechanism.
9850         * gnulib-tool: New option --no-conditional-dependencies.
9851         (func_usage): Document it. Don't mark --conditional-dependencies as
9852         experimental.
9853         (cond_dependencies): The possible values can now be true, false, empty.
9854         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9855         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9856         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9857
9858 2011-05-28  Bruno Haible  <bruno@clisp.org>
9859
9860         doc: Use a recent texinfo.tex.
9861         * doc/Makefile (tex_opts): New variable.
9862         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9863
9864 2011-05-28  Jim Meyering  <meyering@redhat.com>
9865
9866         intprops.h: adjust comment to match code change
9867         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9868         only once, it *may* have side effects.  Also fix an unrelated typo.
9869         (_GL_INT_SIGNED): Likewise.
9870
9871 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9872
9873         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9874
9875 2011-05-26  Bruno Haible  <bruno@clisp.org>
9876
9877         mbsrchr: Avoid collision with system function on Interix.
9878         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9879         Reported by Markus Duft <mduft@gentoo.org>.
9880
9881 2011-05-15  James Youngman  <jay@gnu.org>
9882
9883         getopt: for ambiguous options, enumerate the possibilities.
9884         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9885         the ambiguous options when an ambiguous prefix is given. This was
9886         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9887         glibc change was
9888         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9889
9890 2011-05-25  Eric Blake  <eblake@redhat.com>
9891
9892         getcwd: work around mingw bug
9893         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9894         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9895         Reported by Matthias Bolte.
9896
9897 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9898
9899         test-intprops: disable -Wtype-limits diagnostics
9900         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9901         diagnostics.  Otherwise, the integer overflow macros generate many
9902         diagnostics.  Reported by Jim Meyering in
9903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9904
9905         intprops: shorten, to pacify gcc -Woverlength-strings
9906         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9907         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9908         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9909         likely to run afoul of C compiler limits for string constant lengths.
9910         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9911
9912 2011-05-24  Eric Blake  <eblake@redhat.com>
9913
9914         docs: document recently fixed glibc printf bug
9915         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9916         * doc/posix-functions/printf.texi (printf): Likewise.
9917         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9918         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9919
9920         closein-tests: convert to init.sh
9921         * modules/closein-tests (Files): Add init.sh
9922         * tests/test-closein.sh Use it.
9923
9924         yesno-tests: convert to init.sh
9925         * modules/yesno-tests (Files): Add init.sh.
9926         * tests/test-yesno.sh: Use it.
9927
9928         atexit-tests: ensure reliable exit status
9929         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9930         Reported by Bruno Haible.
9931
9932 2011-05-24  Bruno Haible  <bruno@clisp.org>
9933
9934         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9935         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9936         gl_PREREQ_STRERROR_R invocations from here...
9937         * modules/strerror_r-posix (configure.ac): ... to here.
9938
9939 2011-05-24  Eric Blake  <eblake@redhat.com>
9940
9941         strerror_r: fix missing header
9942         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9943
9944         strerror_r: fix AIX test failures
9945         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9946         ERANGE failure.
9947
9948         strerror_r: fix Solaris test failures
9949         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9950         failures.
9951         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9952
9953         strerror_r: enforce POSIX recommendations
9954         * lib/strerror_r.c (safe_copy): New helper method.
9955         (strerror_r): Guarantee a non-empty string.
9956         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9957         recent POSIX rulings and to match our strerror guarantees.
9958         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9959
9960 2011-05-24  Jim Meyering  <meyering@redhat.com>
9961
9962         test-perror2.c: avoid warning about unused variable
9963         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9964
9965 2011-05-24  Eric Blake  <eblake@redhat.com>
9966
9967         perror: avoid spurious test failure on HP-UX
9968         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9969
9970         tests: fix logic bug in init.sh
9971         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9972         shell.
9973
9974 2011-05-24  Jim Meyering  <meyering@redhat.com>
9975
9976         utimensat: do not reference an out-of-scope buffer
9977         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9978         declared in an inner scope, yet "times" would be dereferenced outside
9979         the scope in which "ts" was valid.
9980         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9981         of ts[2] "out/up", so that the use of aliased "times" (via
9982         "times = ts;") does not end up referencing an out-of-scope "ts"
9983
9984         opendir-safer.c: don't clobber errno; don't close negative FD
9985         * lib/opendir-safer.c (opendir_safer):
9986         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9987         file descriptor, and more importantly, don't clobber the
9988         offending errno value with EINVAL.  Before, upon failure
9989         of dup_safer, we would pass the negative file descriptor to
9990         fdopendir, which would clobber errno.
9991
9992 2011-05-23  Bruno Haible  <bruno@clisp.org>
9993
9994         idcache: Fix module description.
9995         * modules/idcache (Include): Set to "idcache.h".
9996
9997 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9998
9999         gnulib-tool: fix portability problem with MacOS sed
10000         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10001         before the "}".  Problem reported by Leo in
10002         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10003         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10004         sed_extract_condition1, sed_extract_condition2.
10005
10006 2011-05-23  Bruno Haible  <bruno@clisp.org>
10007
10008         hash: Simplify autoconf macro.
10009         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10010
10011 2011-05-23  Bruno Haible  <bruno@clisp.org>
10012
10013         getugroups: Fix module description.
10014         * modules/getugroups (Include): Set to "getugroups.h".
10015
10016 2011-05-23  Bruno Haible  <bruno@clisp.org>
10017
10018         linkat: Simplify autoconf macro.
10019         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10020
10021 2011-05-23  Bruno Haible  <bruno@clisp.org>
10022             Eric Blake  <eblake@redhat.com>
10023
10024         linkat, renameat: Update dependencies.
10025         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10026         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10027         symlinkat.
10028
10029 2011-05-23  Jim Meyering  <meyering@redhat.com>
10030
10031         maint.mk: more tight_scope improvements
10032         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10033         (_gl_TS_headers): Define only in if-0'd block.
10034         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10035         sometimes we must *not* use it.  Adjust uses accordingly.
10036         (sc_tight_scope): Use much simpler grep-based test to determine
10037         whether we skip this rule.
10038
10039         maint.mk: generalize/improve the tight-scope rule
10040         * top/maint.mk: Emit a warning when the test is skipped.
10041         (_gl_TS_dir): Add $(srcdir)/ prefix.
10042         (_gl_TS_function_match): Simplify, rather than trying
10043         to enumerate common types.  Otherwise, it would fail to match an
10044         "extern unsigned char const *" declaration in idutils.
10045         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10046         a way to support use of that type of macro.
10047         (_gl_TS_var_match): Simplify regexp.
10048         (_gl_TS_obj_files): New configurable variable.
10049         (_gl_TS_headers): Likewise.
10050
10051 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10052
10053         verify: fix bug when gnulib <assert.h> is also included
10054         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10055         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10056         Perhaps there's a better way, but this fixes the immediate problem.
10057         Problem reported by Bruno Haible in
10058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10059
10060 2011-05-22  Bruno Haible  <bruno@clisp.org>
10061
10062         xgetcwd: Simplify autoconf macro.
10063         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10064
10065 2011-05-22  Bruno Haible  <bruno@clisp.org>
10066
10067         New module 'mktime-internal'.
10068         * modules/mktime-internal: New file.
10069         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10070         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10071         mktime_internal as a C macro if libc has __mktime_internal.
10072         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10073         conditions.
10074         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10075
10076 2011-05-22  Bruno Haible  <bruno@clisp.org>
10077
10078         timegm: Correct mktime replacement statements.
10079         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10080         defining mktime as a C macro. This completes a 2009-07-28 commit.
10081
10082 2011-05-22  Bruno Haible  <bruno@clisp.org>
10083
10084         timegm: Simplify autoconf macro.
10085         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10086
10087 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10088
10089         clock-time: change to LGPLv2+.
10090         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10091         BSD-like but we have no mark for that; this is good enough for now.
10092
10093 2011-05-21  Bruno Haible  <bruno@clisp.org>
10094
10095         strerror_r: Fix comments.
10096         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10097
10098 2011-05-21  Bruno Haible  <bruno@clisp.org>
10099
10100         relocatable-prog-wrapper: Fix possible link error.
10101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10102         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10103         (gl_FUNC_SETENV): ... to here.
10104         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10105         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10106
10107 2011-05-21  Bruno Haible  <bruno@clisp.org>
10108
10109         relocatable-prog-wrapper: Assume strerror() exists.
10110         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10111         m4/strerror.m4.
10112         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10113         * lib/relocwrapper.c: Remove mention of strerror module.
10114         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10115         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10116         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10117         C macro.
10118
10119 2011-05-21  Bruno Haible  <bruno@clisp.org>
10120
10121         select: Simplify replacement idiom.
10122         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10123         Win32 platforms.
10124         * lib/sys_select.in.h (select): Simplify accordingly.
10125         * modules/select (Depends-on): Likewise.
10126
10127 2011-05-21  Bruno Haible  <bruno@clisp.org>
10128
10129         mkdir-p: Simplify autoconf macro.
10130         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10131         gl_FUNC_LCHOWN.
10132
10133 2011-05-21  Eric Blake  <eblake@redhat.com>
10134
10135         strerror_r: avoid clobbering strerror on cygwin
10136         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10137         fall back instead to sys_errlist.
10138         * modules/strerror (configure.ac): Add witness.
10139         * tests/test-strerror_r.c (main): Enhance test.
10140         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10141         * tests/test-perror2.c (main): Free memory before exit.
10142
10143 2011-05-21  Bruno Haible  <bruno@clisp.org>
10144
10145         mkdtemp: Use gnulib naming conventions.
10146         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10147         * modules/mkdtemp (configure.ac): Update.
10148
10149 2011-05-20  Eric Blake  <eblake@redhat.com>
10150
10151         strerror_r: avoid corrupting errno on Solaris
10152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10153         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10154
10155         strerror_r: avoid compiler warning
10156         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10157
10158         strerror_r: simplify AIX code
10159         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10160
10161         test-perror: avoid spurious failure on FreeBSD
10162         * modules/perror-tests (Depends-on): Add strerror, now that
10163         strerror_r no longer pulls it in.
10164
10165 2011-05-20  Bruno Haible  <bruno@clisp.org>
10166
10167         strerror_r-posix: Remove unused dependencies.
10168         * modules/strerror_r-posix (Depends-on): Remove strerror.
10169         Reported by Eric Blake.
10170
10171 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10172
10173         intprops: remove assumption about A|B representation
10174         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10175         is a valid integer if both A and B are.  Although this is true for
10176         all known practical hosts, the C standard doesn't guarantee it,
10177         and the code need not assume it.  Also, this change may work around
10178         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10180
10181 2011-05-20  Eric Blake  <eblake@redhat.com>
10182
10183         perror: work around FreeBSD bug
10184         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10185         is broken.  Move AC_LIBOBJ...
10186         * modules/perror (configure.ac): Here.
10187         * doc/posix-functions/perror.texi (perror): Document this.
10188         * tests/test-perror2.c (main): Enhance test.
10189
10190         test-perror: check for strerror interactions
10191         * tests/macros.h (STREQ): Add macro.
10192         * modules/perror-tests (Files): Add second test.
10193         * tests/test-perror2.c (main): New file.
10194         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10195
10196         test-perror: rewrite to use init script
10197         * modules/perror-tests (Files): Add init.sh.
10198         * tests/test-perror.sh: Use temporary directory.
10199
10200 2011-05-20  Jim Meyering  <meyering@redhat.com>
10201
10202         maint: replace misused "a" with "an"
10203         * doc/intprops.texi: "a integer"
10204         * doc/regex.texi: "a explanation"
10205         * lib/alignof.h: "a object"
10206         * lib/argmatch.h: "a explanation"
10207         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10208         * lib/stdint.in.h: "a integer"
10209         * lib/userspec.c: "a owner"
10210         * doc/gnulib.texi: Fix "a idea", and reword.
10211
10212 2011-05-19  Jim Meyering  <meyering@redhat.com>
10213
10214         maint: correct misuse of "a" and "an"
10215         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10216         * lib/argp-help.c: "an docum...": s/an/a/
10217         * lib/argp-parse.c: "An vector": s/An/A/
10218         * lib/execute.c: "an native": s/an/a/
10219         * lib/spawn-pipe.c: Likewise.
10220         * lib/gc.h: "an Gc_rc": s/an/a/
10221         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10222         * lib/fts.c: "an stat.st_dev": s/an/a/
10223
10224 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         intprops-tests: work around HP-UX 11.23 cc bug with constants
10227         * tests/test-intprops.c (VERIFY): New macro.
10228         (main): Use it, instead of verify, to work around the compiler bug; see
10229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10230
10231         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10232         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10233         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10234         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10235         (_GL_REMAINDER_OVERFLOW): Use it.
10236
10237         intprops-tests: revert unsigned part of previous change
10238         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10239         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10240         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10242
10243 2011-05-19  Bruno Haible  <bruno@clisp.org>
10244
10245         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10246         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10247         strerror_r() returned without filling the buffer.
10248         Reported by Eric Blake.
10249
10250 2011-05-19  Eric Blake  <eblake@redhat.com>
10251
10252         strerror_r: guarantee unchanged errno
10253         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10254         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10255         failure.
10256         * tests/test-strerror_r.c (main): Enhance test.
10257
10258 2011-05-19  Bruno Haible  <bruno@clisp.org>
10259
10260         strerror_r: Reorder #if blocks.
10261         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10262         for consistency with the previous commit.
10263
10264 2011-05-19  Bruno Haible  <bruno@clisp.org>
10265
10266         perror: Avoid clobbering the strerror buffer when possible.
10267         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10268         * lib/strerror.c: Include it.
10269         * modules/strerror (Files): Add lib/strerror-impl.h.
10270         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10271         (my_strerror): New function, defined through lib/strerror-impl.h.
10272         (perror): Use it instead of strerror.
10273         * modules/perror (Files): Add lib/strerror-impl.h.
10274         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10275
10276 2011-05-19  Eric Blake  <eblake@redhat.com>
10277
10278         strerror_r: fix on newer cygwin
10279         * lib/strerror_r.c (strerror_r): Cygwin now has
10280         __xpg_strerror_r, use it.
10281
10282 2011-05-19  Bruno Haible  <bruno@clisp.org>
10283
10284         strerror_r: Avoid clobbering the strerror buffer when possible.
10285         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10286         (sys_nerr, sys_errlist): New declarations.
10287         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10288         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10289         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10290
10291 2011-05-19  Bruno Haible  <bruno@clisp.org>
10292
10293         strerror_r: Fix test failure on mingw.
10294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10295         EXTEND_STRERROR_R.
10296         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10297         macros from errno.in.h instead.
10298
10299 2011-05-19  Eric Blake  <eblake@redhat.com>
10300
10301         strerror: relax test for Solaris
10302         * tests/test-strerror.c (main): Permit Solaris behavior.
10303         * tests/test-strerror_r.c (main): Likewise.
10304
10305         strerror: enforce POSIX ruling on strerror(0)
10306         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10307         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10308         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10309         * doc/posix-functions/strerror.texi (strerror): Document it.
10310         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10311         * tests/test-strerror.c (main): Strengthen test.
10312         * tests/test-strerror_r.c (main): Likewise.
10313
10314 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10315
10316         intprop-tests: port to older and more-pedantic compilers
10317         * modules/intprops-tests (Files): Add tests/macros.h.
10318         * tests/test-intprops.c: Include macros.h.
10319         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10320         it's no longer documented to expand to an integer constant expression.
10321         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10322         argument is floating point, as it's no longer documented to expand
10323         to an integer constant expression in that case.
10324         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10325         compiler bugs reported by Bruno Haible.  See
10326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10327         (U0, U1): New constants, to work around the same bugs.  Also,
10328         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10329
10330         intprops: work around C compiler bugs
10331         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10332         bug in Sun C 5.11 2010/08/13 and other compilers; see
10333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10334
10335         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10336         * doc/intprops.texi (Integer Type Determination): Fix
10337         documentation for TYPE_IS_INTEGER: it returns an constant
10338         expression, not an integer constant expression.  Fix doc for
10339         TYPE_SIGNED: it returns an integer constant expression only if its
10340         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10341         hardly worth documented that way....)
10342
10343 2011-05-18  Bruno Haible  <bruno@clisp.org>
10344
10345         strerror_r: Avoid clobbering the strerror buffer when possible.
10346         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10347         Handle gnulib defined errno values here. When strerror() returns NULL
10348         or an empty string, return EINVAL.
10349         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10350         gnulib defined errno values here.
10351         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10352
10353 2011-05-18  Eric Blake  <eblake@redhat.com>
10354
10355         fnmatch: avoid compiler warning
10356         * lib/fnmatch_loop.c (FCT): Use correct type.
10357         Reported by Matthias Bolte.
10358
10359 2011-05-13  Jim Meyering  <meyering@redhat.com>
10360
10361         maint.mk: three new prohibit_<HDR>_without_use rules
10362         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10363         (sc_prohibit_stdio-safer_without_use): Likewise.
10364         (sc_prohibit_xfreopen_without_use): Likewise.
10365
10366 2011-05-17  Jim Meyering  <meyering@redhat.com>
10367
10368         announce-gen: fail if the NEWS delta is empty
10369         If there's nothing noteworthy in NEWS, then either you forgot
10370         or you shouldn't be releasing.
10371         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10372
10373 2011-05-17  Pádraig Brady <P@draigBrady.com>
10374
10375         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10376         reserved symbols starting with double underscore from the check.
10377
10378 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10379
10380         intprops: add doc
10381         * doc/intprops.texi: New file, documenting intprops.
10382         * doc/gnulib.texi (Particular Modules): Include it.
10383
10384         verify: add doc to gnulib manual and fix example
10385         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10386         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10387         (Compile-time Assertions): Fix example so it can't overflow.
10388
10389 2011-05-17  Jim Meyering  <meyering@redhat.com>
10390
10391         warnings.m4: don't usurp save_CPPFLAGS variable name
10392         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10393
10394         doc: fix typo
10395         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10396
10397 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10398             Bruno Haible  <bruno@clisp.org>
10399
10400         doc: Tweak recent change.
10401         * README (Portability guidelines): Tweak new text.
10402         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10403         Interix 6.1.
10404
10405 2011-05-16  Eric Blake  <eblake@redhat.com>
10406
10407         inttypes: avoid autoconf warning
10408         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10409         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10410
10411 2011-05-16  Sam Steingold <sds@gnu.org>
10412         and Eric Blake  <eblake@redhat.com>
10413
10414         vc-list-files: accept multiple directory operands
10415         * build-aux/vc-list-files: Iterate over all remaining operands.
10416
10417 2011-05-16  Bruno Haible  <bruno@clisp.org>
10418
10419         Fix confusion regarding deprecated modules.
10420         * modules/calloc (Status, Notice): Mark module as deprecated, not
10421         obsolete.
10422         * modules/fnmatch-posix (Status, Notice): Likewise.
10423         * modules/getdate (Status, Notice): Likewise.
10424         * modules/getopt (Status, Notice): Likewise.
10425         * modules/malloc (Status, Notice): Likewise.
10426         * modules/pipe (Status, Notice): Likewise.
10427         * modules/realloc (Status, Notice): Likewise.
10428         * modules/rename-dest-slash (Status, Notice): Likewise.
10429         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10430         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10431         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10432         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10433         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10434
10435 2011-05-16  Bruno Haible  <bruno@clisp.org>
10436
10437         doc: List the target platforms.
10438         * doc/gnulib-intro.texi (Target Platforms): New section.
10439         * doc/gnulib.texi (Introduction): Update menu.
10440         * README (Portability guidelines): Refer to the new section. Update
10441         statement about oldest supported environment. Remove rationale why
10442         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10443         unportable C89 function.
10444         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10445         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10446
10447 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10448
10449         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10450
10451 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10452
10453         intprops-tests: new module
10454         * modules/intprops-tests, tests/test-intprops.c: New files.
10455
10456         intprops: add safe, portable integer overflow checking
10457         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10458         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10459         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10460         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10461         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10462         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10463         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10464         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10465         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10466         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10467         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10468
10469 2011-05-12  James Youngman  <jay@gnu.org>
10470
10471         Add a test for glibc's Bugzilla bug #12378.
10472         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10473         doesn't allow the literal matching of a lone "[" (which is
10474         required by POSIX).
10475         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10476
10477 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10478
10479         Sync glibc change fixing Bugzilla bug #12378.
10480         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10481         beginning and fall back to matching as normal character if the
10482         string ends before the matching ']' is found.  This is what POSIX
10483         requires.
10484
10485 2011-05-13  Eric Blake  <eblake@redhat.com>
10486
10487         getcwd-lgpl: relax test for FreeBSD
10488         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10489         issue.
10490         * tests/test-getcwd-lgpl.c (main): Relax test.
10491         Reported by Matthias Bolte.
10492
10493 2011-05-11  Eric Blake  <eblake@redhat.com>
10494
10495         test-fflush: silence compiler warning
10496         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10497
10498 2011-05-11  Bruno Haible  <bruno@clisp.org>
10499
10500         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10501         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10502         * modules/canonicalize (Depends-on): Add 'nocrash'.
10503         * modules/canonicalize-lgpl (Depends-on): Likewise.
10504         * doc/posix-functions/realpath.texi: Update platforms list.
10505         Reported by Ryan Schmidt <ryandesign@macports.org>.
10506
10507 2011-05-11  Bruno Haible  <bruno@clisp.org>
10508
10509         group-member: Declare function in <unistd.h>.
10510         * lib/unistd.in.h (group_member): New declaration.
10511         * lib/group-member.h: Remove file.
10512         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10513         * tests/test-unistd-c++.cc: Check signature of group_member.
10514         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10515         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10516         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10517         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10518         HAVE_GROUP_MEMBER.
10519         * modules/group-member (Files): Remove lib/group-member.h.
10520         (Depends-on): Add unistd. Specify conditions.
10521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10522         (Include): Change to <unistd.h>.
10523         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10524         HAVE_GROUP_MEMBER.
10525         * NEWS: Mention the change.
10526         * lib/euidaccess.c: Don't include group-member.h.
10527
10528 2011-05-11  Bruno Haible  <bruno@clisp.org>
10529
10530         group-member: Document module.
10531         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10532         module.
10533
10534 2011-05-11  Bruno Haible  <bruno@clisp.org>
10535
10536         fclose: Fix mistake earlier today.
10537         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10538
10539 2011-05-11  Eric Blake  <eblake@redhat.com>
10540
10541         fclose: preserve fflush errors
10542         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10543         Reported by Jim Meyering.
10544
10545         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10546         * build-aux/bootstrap (check_versions): When no specific version
10547         is required, merely check that the app produces an exit status
10548         that indicates its existence.
10549
10550         maint.mk: drop redundant check
10551         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10552         the same but better.
10553
10554 2011-05-11  Bruno Haible  <bruno@clisp.org>
10555
10556         fclose: Fix possible link error.
10557         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10558         unregister_shadow_fd. Improve comments.
10559         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10560         Eric Blake.
10561
10562 2011-05-11  Jim Meyering  <meyering@redhat.com>
10563
10564         maint.mk: improve "can not" detection and generalize rule name
10565         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10566         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10567         Use the same technique as in sc_prohibit_doubled_word, so that
10568         we recognize "can not" also when the words are separated by a newline.
10569         Suggested by Eric Blake.
10570         (perl_filename_lineno_text_): Define.  Factored out of...
10571         (prohibit_doubled_word_): ...here.  Use the new definition.
10572         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10573         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10574         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10575
10576 2011-05-10  Eric Blake  <eblake@redhat.com>
10577
10578         fclose: avoid double close race when possible
10579         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10580         all but WINDOWS_SOCKETS.
10581
10582 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10583
10584         openat: correct new comment
10585         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10586
10587 2011-05-10  Jim Meyering  <meyering@redhat.com>
10588
10589         openat: add comments
10590         * lib/openat-proc.c (openat_proc_name): Add comments,
10591         mostly from Eric Blake.
10592
10593 2011-05-09  Eric Blake  <eblake@redhat.com>
10594
10595         openat: reduce syscalls in first probe of /proc
10596         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10597         be a directory.  Simplify the probe for .. bugs.
10598         * modules/openat (Depends-on): Drop same-inode.
10599         Reported by Bastien ROUCARIES.
10600
10601 2011-05-09  Jim Meyering  <meyering@redhat.com>
10602
10603         maint.mk: change semantics/name of tight_scope variables
10604         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10605         Rename variables to align with semantics that make them more useful.
10606
10607         maint.mk: tweak new rule's name not to impinge
10608         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10609         (sc_tight_scope): Use new rule name rather than $@-0.
10610
10611         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10612         * top/maint.mk (sc_tight_scope): New rule.
10613         (sc_tight_scope-0): New rule, ifdef'd out.
10614         (_gl_TS_dir): Default.
10615         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10616         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10617
10618 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10619
10620         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10621         Haible <bruno@clisp.org>.
10622
10623 2011-05-08  Bruno Haible  <bruno@clisp.org>
10624
10625         Comments.
10626         * m4/isnanf.m4: Add comment.
10627         * m4/isnanl.m4: Likewise.
10628
10629 2011-05-08  Bruno Haible  <bruno@clisp.org>
10630
10631         glob: Remove obsolete macro.
10632         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10633
10634 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10635
10636         intprops: Sun C 5.11 supports __typeof__
10637         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10638         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10639         which is new.
10640         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10641
10642         intprops: switch to usual gnulib indenting and naming
10643         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10644         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10645
10646         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10647
10648 2011-05-08  Jim Meyering  <meyering@redhat.com>
10649
10650         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10651         * top/maint.mk (release-prep): Use make's --no-print-directory
10652         option when generating the announcement.  This eliminates the
10653         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10654         generated announcement template.
10655
10656 2011-05-08  Bruno Haible  <bruno@clisp.org>
10657
10658         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10659         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10660         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10661
10662 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10663
10664         ignore-value, verify: Omit include files from lib_SOURCES.
10665         * modules/ignore-value, modules/verify (Makefile.am):
10666         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10667         that leads Automake to duplicate use of am__objects_... variables
10668         in Makefile.in.  See
10669         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10670
10671 2011-05-07  Bruno Haible  <bruno@clisp.org>
10672
10673         fclose: Simplify autoconf macro.
10674         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10675         defined.
10676
10677 2011-05-07  Bruno Haible  <bruno@clisp.org>
10678
10679         canonicalize-lgpl: Fix autoconf macro ordering bug.
10680         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10681         gl_STDLIB_H_DEFAULTS.
10682
10683 2011-05-06  Eric Blake  <eblake@redhat.com>
10684
10685         maintainer-makefile: make sc_po_check easier to tune
10686         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10687         to probe for strings, such as an alternate location for gnulib.
10688
10689         fclose: guarantee behavior on seekable stdin
10690         * modules/fclose (Depends-on): Add fflush.
10691         * doc/posix-functions/fclose.texi (fclose): Document this.
10692         * tests/test-fclose.c (main): Make test for this unconditional.
10693
10694 2011-05-06  Bruno Haible  <bruno@clisp.org>
10695
10696         fflush, fpurge: Relicense under LGPLv2+.
10697         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10698         * modules/fpurge (License): Likewise.
10699         With permission from Eric Blake and Jim Meyering.
10700         Suggested by Eric Blake.
10701
10702 2011-05-06  Karl Berry  <karl@gnu.org>
10703
10704         * MODULES.html.sh (func_all_modules): remove exit.
10705
10706 2011-05-06  Jim Meyering  <meyering@redhat.com>
10707
10708         maint.mk: use info-gnu@ as the default only for a stable release
10709         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10710         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10711         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10713
10714 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10715
10716         assert-h: new module, which supports C1X-style static_assert
10717         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10718         * lib/verify.h: Revamp so that this can be copied into assert.h,
10719         while retaining the ability to use it standalone as before.
10720         Rename private identifiers so as not to encroach on the
10721         standard C namespace, since this is now used by assert.h.
10722         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10723         the old verify_true.
10724         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10725         the old verify_true.  Use _GL_VERIFY_TYPE.
10726         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10727         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10728         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10729         defined when this file is copied into the replacement assert.h.
10730         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10731         and _Static_assert is not built in.
10732         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10733         defined, and use the new macros mentioned above.
10734         * doc/posix-headers/assert.texi: Document this.
10735
10736 2011-05-05  Bruno Haible  <bruno@clisp.org>
10737
10738         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10739         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10740         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10741         gl_REPLACE_FCLOSE here.
10742         * modules/fflush (Depends-on): Remove fclose.
10743         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10744         combination with module 'fclose'.
10745
10746 2011-05-05  Bruno Haible  <bruno@clisp.org>
10747
10748         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10749         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10750         gl_FUNC_FFLUSH.
10751         (gl_FUNC_FFLUSH): Use it.
10752         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10753         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10754         gl_REPLACE_FSEEKO here.
10755
10756 2011-05-05  Bruno Haible  <bruno@clisp.org>
10757
10758         tzset: Relicense under LGPL.
10759         * modules/tzset (License): Change to LGPL.
10760         No agreement needed; it's a no-op.
10761
10762         strtoimax, strtoumax: Relicense under LGPL.
10763         * modules/strtoimax (License): Change to LGPL.
10764         * modules/strtoumax (License): Likewise.
10765         With permission from Jim Meyering, Paul Eggert:
10766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10768
10769         getgroups: Relicense under LGPL.
10770         * modules/getgroups (License): Change to LGPL.
10771         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10775
10776         nanosleep: Relicense under LGPL.
10777         * modules/nanosleep (License): Change to LGPL.
10778         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10779         Haible:
10780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10784
10785         futimens: Relicense under LGPL.
10786         * modules/futimens (License): Change to LGPL.
10787         With permission from Eric Blake:
10788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10789
10790         fflush: Relicense under LGPL.
10791         * modules/fflush (License): Change to LGPL.
10792         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10796
10797         tmpfile: Relicense under LGPL.
10798         * modules/tmpfile (License): Change to LGPL.
10799         With permission from Ben Pfaff:
10800         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10801
10802         isfinite: Relicense under LGPL.
10803         * modules/isfinite (License): Change to LGPL.
10804         With permission from Ben Pfaff, Bruno Haible:
10805         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10807
10808         acosl..tanl: Relicense under LGPL.
10809         * modules/acosl (License): Change to LGPL.
10810         * modules/asinl (License): Likewise.
10811         * modules/atanl (License): Likewise.
10812         * modules/cosl (License): Likewise.
10813         * modules/expl (License): Likewise.
10814         * modules/logl (License): Likewise.
10815         * modules/sinl (License): Likewise.
10816         * modules/sqrtl (License): Likewise.
10817         * modules/tanl (License): Likewise.
10818         Source code originally from glibc and Paolo Bonzini. Agreements:
10819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10821
10822 2011-05-05  Bruno Haible  <bruno@clisp.org>
10823
10824         signal: Define sighandler_t.
10825         * lib/signal.in.h (sighandler_t): New type.
10826         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10827         whether sighandler_t is defined.
10828         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10829         * modules/signal (Depends-on): Add extensions.
10830         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10831         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10832         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10833
10834 2011-05-05  Eric Blake  <eblake@redhat.com>
10835
10836         maint: remove useless REPLACE_*_H macros
10837         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10838         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10839         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10840         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10841         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10842         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10843         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10844         * m4/btowc.m4: Update callers.
10845         * m4/dirfd.m4: Likewise.
10846         * m4/duplocale.m4: Likewise.
10847         * m4/fchdir.m4: Likewise.
10848         * m4/fdopendir.m4: Likewise.
10849         * m4/inet_ntop.m4: Likewise.
10850         * m4/inet_pton.m4: Likewise.
10851         * m4/ioctl.m4: Likewise.
10852         * m4/mbrlen.m4: Likewise.
10853         * m4/mbrtowc.m4: Likewise.
10854         * m4/mbsinit.m4: Likewise.
10855         * m4/mbsnrtowcs.m4: Likewise.
10856         * m4/mbsrtowcs.m4: Likewise.
10857         * m4/poll.m4: Likewise.
10858         * m4/setlocale.m4: Likewise.
10859         * m4/wcrtomb.m4: Likewise.
10860         * m4/wcsnrtombs.m4: Likewise.
10861         * m4/wcsrtombs.m4: Likewise.
10862         * m4/wctob.m4: Likewise.
10863         * m4/wcwidth.m4: Likewise.
10864         * modules/posix_spawn: Likewise.
10865         * modules/posix_spawn_file_actions_addclose: Likewise.
10866         * modules/posix_spawn_file_actions_adddup2: Likewise.
10867         * modules/posix_spawn_file_actions_addopen: Likewise.
10868         * modules/posix_spawn_file_actions_destroy: Likewise.
10869         * modules/posix_spawn_file_actions_init: Likewise.
10870         * modules/posix_spawnattr_destroy: Likewise.
10871         * modules/posix_spawnattr_getflags: Likewise.
10872         * modules/posix_spawnattr_getpgroup: Likewise.
10873         * modules/posix_spawnattr_getschedparam: Likewise.
10874         * modules/posix_spawnattr_getschedpolicy: Likewise.
10875         * modules/posix_spawnattr_getsigdefault: Likewise.
10876         * modules/posix_spawnattr_getsigmask: Likewise.
10877         * modules/posix_spawnattr_init: Likewise.
10878         * modules/posix_spawnattr_setflags: Likewise.
10879         * modules/posix_spawnattr_setpgroup: Likewise.
10880         * modules/posix_spawnattr_setschedparam: Likewise.
10881         * modules/posix_spawnattr_setschedpolicy: Likewise.
10882         * modules/posix_spawnattr_setsigdefault: Likewise.
10883         * modules/posix_spawnattr_setsigmask: Likewise.
10884         * modules/posix_spawnp: Likewise.
10885
10886 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10887
10888         Add option to do-release-commit-and-tag to specify branch.
10889         * build-aux/do-release-commit-and-tag: Add --branch.
10890
10891 2011-05-03  Bruno Haible  <bruno@clisp.org>
10892
10893         Avoid unnecessary compilation units, through conditional dependencies.
10894         * modules/accept (Depends-on): Add conditions to the dependencies.
10895         * modules/acosl (Depends-on): Likewise.
10896         * modules/argz (Depends-on): Likewise.
10897         * modules/asinl (Depends-on): Likewise.
10898         * modules/atanl (Depends-on): Likewise.
10899         * modules/atoll (Depends-on): Likewise.
10900         * modules/bind (Depends-on): Likewise.
10901         * modules/btowc (Depends-on): Likewise.
10902         * modules/canonicalize-lgpl (Depends-on): Likewise.
10903         * modules/ceil (Depends-on): Likewise.
10904         * modules/ceilf (Depends-on): Likewise.
10905         * modules/ceill (Depends-on): Likewise.
10906         * modules/chdir-long (Depends-on): Likewise.
10907         * modules/chown (Depends-on): Likewise.
10908         * modules/close (Depends-on): Likewise.
10909         * modules/connect (Depends-on): Likewise.
10910         * modules/cosl (Depends-on): Likewise.
10911         * modules/dirfd (Depends-on): Likewise.
10912         * modules/dprintf (Depends-on): Likewise.
10913         * modules/dprintf-posix (Depends-on): Likewise.
10914         * modules/error (Depends-on): Likewise.
10915         * modules/euidaccess (Depends-on): Likewise.
10916         * modules/expl (Depends-on): Likewise.
10917         * modules/faccessat (Depends-on): Likewise.
10918         * modules/fchdir (Depends-on): Likewise.
10919         * modules/fclose (Depends-on): Likewise.
10920         * modules/fcntl (Depends-on): Likewise.
10921         * modules/fdopendir (Depends-on): Likewise.
10922         * modules/fflush (Depends-on): Likewise.
10923         * modules/floor (Depends-on): Likewise.
10924         * modules/floorf (Depends-on): Likewise.
10925         * modules/floorl (Depends-on): Likewise.
10926         * modules/fnmatch (Depends-on): Likewise.
10927         * modules/fopen (Depends-on): Likewise.
10928         * modules/fprintf-posix (Depends-on): Likewise.
10929         * modules/frexp (Depends-on): Likewise.
10930         * modules/frexp-nolibm (Depends-on): Likewise.
10931         * modules/frexpl (Depends-on): Likewise.
10932         * modules/frexpl-nolibm (Depends-on): Likewise.
10933         * modules/fseek (Depends-on): Likewise.
10934         * modules/fsusage (Depends-on): Likewise.
10935         * modules/ftell (Depends-on): Likewise.
10936         * modules/ftello (Depends-on): Likewise.
10937         * modules/futimens (Depends-on): Likewise.
10938         * modules/getcwd (Depends-on): Likewise.
10939         * modules/getcwd-lgpl (Depends-on): Likewise.
10940         * modules/getdelim (Depends-on): Likewise.
10941         * modules/getdomainname (Depends-on): Likewise.
10942         * modules/getgroups (Depends-on): Likewise.
10943         * modules/gethostname (Depends-on): Likewise.
10944         * modules/getline (Depends-on): Likewise.
10945         * modules/getlogin_r (Depends-on): Likewise.
10946         * modules/getopt-posix (Depends-on): Likewise.
10947         * modules/getpeername (Depends-on): Likewise.
10948         * modules/getsockname (Depends-on): Likewise.
10949         * modules/getsockopt (Depends-on): Likewise.
10950         * modules/getsubopt (Depends-on): Likewise.
10951         * modules/getusershell (Depends-on): Likewise.
10952         * modules/glob (Depends-on): Likewise.
10953         * modules/grantpt (Depends-on): Likewise.
10954         * modules/iconv_open (Depends-on): Likewise.
10955         * modules/iconv_open-utf (Depends-on): Likewise.
10956         * modules/inet_ntop (Depends-on): Likewise.
10957         * modules/inet_pton (Depends-on): Likewise.
10958         * modules/ioctl (Depends-on): Likewise.
10959         * modules/isapipe (Depends-on): Likewise.
10960         * modules/isfinite (Depends-on): Likewise.
10961         * modules/isinf (Depends-on): Likewise.
10962         * modules/lchown (Depends-on): Likewise.
10963         * modules/ldexpl (Depends-on): Likewise.
10964         * modules/link (Depends-on): Likewise.
10965         * modules/linkat (Depends-on): Likewise.
10966         * modules/listen (Depends-on): Likewise.
10967         * modules/logl (Depends-on): Likewise.
10968         * modules/lstat (Depends-on): Likewise.
10969         * modules/mbrlen (Depends-on): Likewise.
10970         * modules/mbrtowc (Depends-on): Likewise.
10971         * modules/mbsinit (Depends-on): Likewise.
10972         * modules/mbsnrtowcs (Depends-on): Likewise.
10973         * modules/mbsrtowcs (Depends-on): Likewise.
10974         * modules/mbtowc (Depends-on): Likewise.
10975         * modules/memcmp (Depends-on): Likewise.
10976         * modules/mkdir (Depends-on): Likewise.
10977         * modules/mkdtemp (Depends-on): Likewise.
10978         * modules/mkfifo (Depends-on): Likewise.
10979         * modules/mkfifoat (Depends-on): Likewise.
10980         * modules/mknod (Depends-on): Likewise.
10981         * modules/mkostemp (Depends-on): Likewise.
10982         * modules/mkostemps (Depends-on): Likewise.
10983         * modules/mkstemp (Depends-on): Likewise.
10984         * modules/mkstemps (Depends-on): Likewise.
10985         * modules/mktime (Depends-on): Likewise.
10986         * modules/nanosleep (Depends-on): Likewise.
10987         * modules/open (Depends-on): Likewise.
10988         * modules/openat (Depends-on): Likewise.
10989         * modules/perror (Depends-on): Likewise.
10990         * modules/poll (Depends-on): Likewise.
10991         * modules/popen (Depends-on): Likewise.
10992         * modules/posix_spawn (Depends-on): Likewise.
10993         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10994         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10995         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10996         * modules/posix_spawnp (Depends-on): Likewise.
10997         * modules/pread (Depends-on): Likewise.
10998         * modules/printf-posix (Depends-on): Likewise.
10999         * modules/ptsname (Depends-on): Likewise.
11000         * modules/putenv (Depends-on): Likewise.
11001         * modules/pwrite (Depends-on): Likewise.
11002         * modules/readline (Depends-on): Likewise.
11003         * modules/readlink (Depends-on): Likewise.
11004         * modules/readlinkat (Depends-on): Likewise.
11005         * modules/recv (Depends-on): Likewise.
11006         * modules/recvfrom (Depends-on): Likewise.
11007         * modules/regex (Depends-on): Likewise.
11008         * modules/remove (Depends-on): Likewise.
11009         * modules/rename (Depends-on): Likewise.
11010         * modules/renameat (Depends-on): Likewise.
11011         * modules/rmdir (Depends-on): Likewise.
11012         * modules/round (Depends-on): Likewise.
11013         * modules/roundf (Depends-on): Likewise.
11014         * modules/roundl (Depends-on): Likewise.
11015         * modules/rpmatch (Depends-on): Likewise.
11016         * modules/select (Depends-on): Likewise.
11017         * modules/send (Depends-on): Likewise.
11018         * modules/sendto (Depends-on): Likewise.
11019         * modules/setenv (Depends-on): Likewise.
11020         * modules/setlocale (Depends-on): Likewise.
11021         * modules/setsockopt (Depends-on): Likewise.
11022         * modules/shutdown (Depends-on): Likewise.
11023         * modules/sigaction (Depends-on): Likewise.
11024         * modules/signbit (Depends-on): Likewise.
11025         * modules/sigprocmask (Depends-on): Likewise.
11026         * modules/sinl (Depends-on): Likewise.
11027         * modules/sleep (Depends-on): Likewise.
11028         * modules/snprintf (Depends-on): Likewise.
11029         * modules/snprintf-posix (Depends-on): Likewise.
11030         * modules/socket (Depends-on): Likewise.
11031         * modules/sprintf-posix (Depends-on): Likewise.
11032         * modules/sqrtl (Depends-on): Likewise.
11033         * modules/stat (Depends-on): Likewise.
11034         * modules/strchrnul (Depends-on): Likewise.
11035         * modules/strdup-posix (Depends-on): Likewise.
11036         * modules/strerror (Depends-on): Likewise.
11037         * modules/strerror_r-posix (Depends-on): Likewise.
11038         * modules/strndup (Depends-on): Likewise.
11039         * modules/strnlen (Depends-on): Likewise.
11040         * modules/strptime (Depends-on): Likewise.
11041         * modules/strsep (Depends-on): Likewise.
11042         * modules/strsignal (Depends-on): Likewise.
11043         * modules/strstr-simple (Depends-on): Likewise.
11044         * modules/strtod (Depends-on): Likewise.
11045         * modules/strtoimax (Depends-on): Likewise.
11046         * modules/strtok_r (Depends-on): Likewise.
11047         * modules/strtoumax (Depends-on): Likewise.
11048         * modules/symlink (Depends-on): Likewise.
11049         * modules/symlinkat (Depends-on): Likewise.
11050         * modules/tanl (Depends-on): Likewise.
11051         * modules/tcgetsid (Depends-on): Likewise.
11052         * modules/tmpfile (Depends-on): Likewise.
11053         * modules/trunc (Depends-on): Likewise.
11054         * modules/truncf (Depends-on): Likewise.
11055         * modules/truncl (Depends-on): Likewise.
11056         * modules/uname (Depends-on): Likewise.
11057         * modules/unlink (Depends-on): Likewise.
11058         * modules/unlockpt (Depends-on): Likewise.
11059         * modules/unsetenv (Depends-on): Likewise.
11060         * modules/usleep (Depends-on): Likewise.
11061         * modules/utimensat (Depends-on): Likewise.
11062         * modules/vasprintf (Depends-on): Likewise.
11063         * modules/vdprintf (Depends-on): Likewise.
11064         * modules/vdprintf-posix (Depends-on): Likewise.
11065         * modules/vfprintf-posix (Depends-on): Likewise.
11066         * modules/vprintf-posix (Depends-on): Likewise.
11067         * modules/vsnprintf (Depends-on): Likewise.
11068         * modules/vsnprintf-posix (Depends-on): Likewise.
11069         * modules/vsprintf-posix (Depends-on): Likewise.
11070         * modules/wcrtomb (Depends-on): Likewise.
11071         * modules/wcscasecmp (Depends-on): Likewise.
11072         * modules/wcscspn (Depends-on): Likewise.
11073         * modules/wcsdup (Depends-on): Likewise.
11074         * modules/wcsncasecmp (Depends-on): Likewise.
11075         * modules/wcsnrtombs (Depends-on): Likewise.
11076         * modules/wcspbrk (Depends-on): Likewise.
11077         * modules/wcsrtombs (Depends-on): Likewise.
11078         * modules/wcsspn (Depends-on): Likewise.
11079         * modules/wcsstr (Depends-on): Likewise.
11080         * modules/wcstok (Depends-on): Likewise.
11081         * modules/wcswidth (Depends-on): Likewise.
11082         * modules/wctob (Depends-on): Likewise.
11083         * modules/wctomb (Depends-on): Likewise.
11084         * modules/wctype (Depends-on): Likewise.
11085         * modules/wcwidth (Depends-on): Likewise.
11086         * modules/write (Depends-on): Likewise.
11087
11088 2011-05-03  Bruno Haible  <bruno@clisp.org>
11089
11090         Support for conditional dependencies.
11091         * doc/gnulib.texi (Module description): Document the syntax of
11092         conditional dependencies.
11093         * gnulib-tool: New option --conditional-dependencies.
11094         (func_usage): Document it.
11095         (cond_dependencies): New variable.
11096         (func_get_automake_snippet_conditional,
11097         func_get_automake_snippet_unconditional): New functions, extracted from
11098         func_get_automake_snippet.
11099         (func_get_automake_snippet): Use them.
11100         (sed_first_32_chars): New variable.
11101         (func_module_shellfunc_name): New function.
11102         (func_module_shellvar_name): New function.
11103         (func_module_conditional_name): New function.
11104         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11105         func_cond_module_condition): New functions.
11106         (func_modules_transitive_closure): Add support for conditional
11107         dependencies.
11108         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11109         conditional automake snippet in an automake conditional.
11110         (func_emit_autoconf_snippets): Emit shell functions that contain the
11111         code for conditional modules.
11112         (func_import, func_create_testdir): Update specification.
11113
11114 2011-05-03  Eric Blake  <eblake@redhat.com>
11115
11116         test-getaddrinfo: report error information
11117         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11118
11119 2011-05-03  Jim Meyering  <meyering@redhat.com>
11120
11121         bootstrap: avoid build failure when $GZIP is set
11122         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11123         program name.  If defined at all, it is supposed to list gzip options.
11124         Reported by Alan Curry in http://debbugs.gnu.org/8609
11125
11126 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11127
11128         readme-release: new module with release instructions
11129         * modules/readme-release: New module.
11130         * top/README-release: New file, from coreutils, grep, diffutils.
11131         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11132
11133 2011-05-02  Eric Blake  <eblake@redhat.com>
11134
11135         fflush: also replace fclose when fixing fflush
11136         * modules/fflush (Depends-on): Add fclose.
11137         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11138         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11139         memstreams with no backing fd.
11140         * doc/posix-functions/fclose.texi (fclose): Document the use of
11141         fflush module to fix the bug.
11142         * tests/test-fclose.c (main): Relax test when fclose is used in
11143         isolation.
11144
11145         fclose: add some tests
11146         * modules/fclose-tests: New test module.
11147         * tests/test-fclose.c: New file.
11148         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11149
11150         fclose: reduced dependencies
11151         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11152         simpler lseek.
11153         * lib/fclose.c (rpl_fclose): Likewise.
11154         Reported by Simon Josefsson.
11155
11156         exit: drop remaining clients
11157         * modules/argmatch (Depends-on): Replace exit with stdlib.
11158         * modules/copy-file (Depends-on): Likewise.
11159         * modules/execute (Depends-on): Likewise.
11160         * modules/exitfail (Depends-on): Likewise.
11161         * modules/obstack (Depends-on): Likewise.
11162         * modules/pagealign_alloc (Depends-on): Likewise.
11163         * modules/pipe-filter-gi (Depends-on): Likewise.
11164         * modules/pipe-filter-ii (Depends-on): Likewise.
11165         * modules/savewd (Depends-on): Likewise.
11166         * modules/spawn-pipe (Depends-on): Likewise.
11167         * modules/wait-process (Depends-on): Likewise.
11168         * modules/xsetenv (Depends-on): Likewise.
11169         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11170         * modules/git-merge-changelog (Depends-on): Likewise.
11171         * modules/long-options (Depends-on): Likewise.
11172         * modules/pt_chown (Depends-on): Likewise.
11173         * modules/sysexits (Depends-on): Likewise.
11174
11175         freading: relax license from LGPLv3+ to LGPLv2+
11176         * modules/freading (License): Relax LGPL version.
11177
11178 2011-05-02  Bruno Haible  <bruno@clisp.org>
11179
11180         fchdir: Remove unused dependencies.
11181         * modules/fchdir (Depends-on): Remove include_next.
11182
11183 2011-05-02  Bruno Haible  <bruno@clisp.org>
11184
11185         gnulib-tool: Refactor.
11186         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11187         from func_emit_autoconf_snippets.
11188         (func_emit_autoconf_snippets): Use it.
11189
11190 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11191
11192         * NEWS: Document removal of 'exit'.
11193         * modules/exit: Remove file.
11194
11195 2011-05-01  Bruno Haible  <bruno@clisp.org>
11196
11197         Update DEPENDENCIES.
11198         * DEPENDENCIES (gettext): Recommend the newest release.
11199         Reported by Simon Josefsson.
11200
11201 2011-05-01  Bruno Haible  <bruno@clisp.org>
11202
11203         gnulib-tool: Reduce code duplication.
11204         * gnulib-tool (func_emit_autoconf_snippets): New function.
11205         (func_import, func_create_testdir): Use it.
11206
11207 2011-04-30  Eric Blake  <eblake@redhat.com>
11208
11209         fclose: don't fail on non-seekable input stream
11210         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11211         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11212         since fflush is allowed to fail in that case.
11213
11214 2011-04-30  Bruno Haible  <bruno@clisp.org>
11215
11216         dup3: cleanup
11217         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11218
11219 2011-04-30  Bruno Haible  <bruno@clisp.org>
11220
11221         netdb: Make it work in C++ mode.
11222         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11223         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11224         module.
11225         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11226         gl_MODULE_INDICATOR_FOR_TESTS.
11227         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11228         * modules/netdb-c++-tests: New file.
11229         * tests/test-netdb-c++.cc: New file.
11230
11231 2011-04-30  Bruno Haible  <bruno@clisp.org>
11232
11233         New modules 'vfscanf', 'vscanf'.
11234         * modules/vfscanf: New file.
11235         * modules/vscanf: New file.
11236         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11237         here.
11238         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11239         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11240
11241 2011-04-30  Bruno Haible  <bruno@clisp.org>
11242
11243         passfd: Add comments.
11244         * lib/passfd.c: Add comments about platforms.
11245
11246 2011-04-30  Bruno Haible  <bruno@clisp.org>
11247
11248         sys_uio: Make <sys/uio.h> self-contained.
11249         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11250         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11251
11252 2011-04-30  Bruno Haible  <bruno@clisp.org>
11253
11254         sys_socket: Ensure 'struct iovec' definition.
11255         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11256         <sys/socket.h>.
11257         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11258
11259 2011-04-30  Bruno Haible  <bruno@clisp.org>
11260
11261         sys_uio: Protect definition of 'struct iovec'.
11262         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11263         it as a C struct.
11264
11265 2011-04-30  Bruno Haible  <bruno@clisp.org>
11266
11267         manywarnings: fix indentation
11268         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11269
11270 2011-04-30  Pádraig Brady <P@draigBrady.com>
11271
11272         manywarnings: add -Wno-missing-field-initializers if needed.
11273         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11274         option if it's needed to allow initialization with { 0, }
11275
11276 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11277
11278         announce-gen: cosmetic improvement
11279         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11280
11281 2011-04-29  Jim Meyering  <meyering@redhat.com>
11282
11283         vc-list-files: indent with spaces, not TABs
11284         * build-aux/vc-list-files: Convert leading TABs to spaces,
11285         to match the style of most other files in gnulib.
11286
11287         announce-gen: indent with spaces, not TABs
11288         * build-aux/announce-gen: Convert all TABs to spaces, to match
11289         the style of most other files in gnulib.
11290
11291 2011-04-29  Eric Blake  <eblake@redhat.com>
11292
11293         quotearg: avoid uninitialized variable use
11294         * lib/quotearg.c (quoting_options_from_style): Initialize
11295         remaining fields, and ensure that custom styles are only used via
11296         quoting_options rather than quoting_style.
11297
11298 2011-04-29  Jim Meyering  <meyering@redhat.com>
11299
11300         maint.mk: remove unused VC-tag variable
11301         * top/maint.mk (VC-tag): Remove unused variable.
11302
11303 2011-04-29  Bruno Haible  <bruno@clisp.org>
11304
11305         netdb: fix gai_strerror replacements
11306         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11307         * modules/netdb: Substitute it.
11308
11309 2011-04-29  Jim Meyering  <meyering@redhat.com>
11310
11311         test-getcwd.c: avoid new set-but-not-used warning
11312         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11313         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11314         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11315         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11316
11317         test-hash.c: avoid a new shadowing warning
11318         * tests/test-hash.c (main): Don't shadow "dup".
11319
11320 2011-04-28  Eric Blake  <eblake@redhat.com>
11321
11322         getaddrinfo: fix gai_strerror signature
11323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11324         and work around mingw with UNICODE defined.
11325         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11326         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11327         * modules/netdb (Makefile.am): Substitute it.
11328         * lib/netdb.in.h (gai_strerror): Declare replacement.
11329         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11330         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11331         the fix.
11332
11333         getsockopt: avoid compiler warning
11334         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11335         Reported by Matthias Bolte.
11336
11337         tests: drop unused link dependency
11338         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11339         * modules/dirent-safer-tests (Makefile.am): Likewise.
11340         * modules/fdopendir-tests (Makefile.am): Likewise.
11341         * modules/mkfifoat-tests (Makefile.am): Likewise.
11342         * modules/openat-safer-tests (Makefile.am): Likewise.
11343         * modules/openat-tests (Makefile.am): Likewise.
11344         * modules/readlinkat-tests (Makefile.am): Likewise.
11345         * modules/symlinkat-tests (Makefile.am): Likewise.
11346         * modules/linkat-tests (Makefile.am): Likewise.
11347         (Depends-on): Switch to filenamecat-lgpl.
11348         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11349         LIBINTL.
11350         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11351         * tests/test-linkat.c (main): Don't require xalloc.
11352
11353         hash, mgetgroups: drop xalloc dependency
11354         * lib/hash.c (includes): Adjust includes.
11355         * lib/mgetgroups.c (includes): Likewise.
11356         (xgetgroups): Move...
11357         * lib/xgetgroups.c: ...to new file.
11358         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11359         * modules/xgetgroups: New file, split from...
11360         * modules/mgetgroups: ...here.
11361         (Depends-on): Add xalloc-oversized.
11362         * modules/hash (Depends-on): Likewise.
11363         * modules/hash-tests (Depends-on): Drop xalloc.
11364         (test_hash_LDADD): Drop unused library.
11365         * tests/test-hash.c (main): Break xalloc dependency.
11366         (includes): Drop unused include.
11367
11368         xalloc-oversized: new module
11369         * modules/xalloc-oversized: New module.
11370         * modules/xalloc (Depends-on): Add it.
11371         * lib/xalloc.h (xalloc_oversized): Move...
11372         * lib/xalloc-oversized.h: ...into new file.
11373
11374         utimecmp: drop dependency on xmalloc
11375         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11376         due to memory pressure.
11377         * modules/utimecmp (Depends-on): Drop xalloc.
11378
11379 2011-04-27  Eric Blake  <eblake@redhat.com>
11380
11381         getcwd: fix mingw bugs
11382         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11383         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11384         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11385
11386 2011-04-27  Bruno Haible  <bruno@clisp.org>
11387
11388         mkstemps: Ensure declaration on MacOS X 10.5.
11389         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11390         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11391         MacOS X.
11392
11393 2011-04-27  Bruno Haible  <bruno@clisp.org>
11394
11395         mkstemp: More documentation.
11396         * doc/posix-functions/mkstemp.texi: Document header file problem on
11397         MacOS X.
11398
11399 2011-04-27  Bruno Haible  <bruno@clisp.org>
11400
11401         mkstemp: Tweak configure message when cross-compiling.
11402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11403         result as a guess.
11404
11405 2011-04-27  Bruno Haible  <bruno@clisp.org>
11406
11407         clean-temp: Clarify what it does.
11408         * lib/clean-temp.h: Add more comments.
11409         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11410         module.
11411         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11412         * doc/glibc-functions/mkstemps.texi: Likewise.
11413         * doc/glibc-functions/mkostemps.texi: Likewise.
11414
11415 2011-04-27  Eric Blake  <eblake@redhat.com>
11416
11417         fchdir: avoid extra chdir and fix test
11418         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11419         getcwd-lgpl.
11420         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11421         have to be canonical.
11422         (canonicalize_file_name): Drop unused macro.
11423         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11424
11425         filenamecat-lgpl: fix licence
11426         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11427         when it was first created.
11428
11429         linkat, renameat: add missing dependency
11430         * modules/linkat (Depends-on): Require getcwd-lgpl.
11431         * modules/renameat (Depends-on): Likewise.
11432
11433         tests: reduce dependencies
11434         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11435         * tests/test-renameat.c (main): Likewise.
11436         * modules/linkat-tests (Depends-on): Relax dependency.
11437         * modules/renameat-tests (Depends-on): Likewise.
11438         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11439         dependency explicit.
11440
11441         save-cwd: reduce default dependency
11442         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11443         * lib/save-cwd.c: Update comments.
11444         * NEWS: Document the semantic change.
11445
11446         getcwd: enhance tests
11447         * tests/test-getcwd-lgpl.c: New file, taken from...
11448         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11449         repeat long path stress tests from m4 probe.
11450         * modules/getcwd-lgpl-tests: New module.
11451         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11452         * m4/getcwd-abort-bug.m4: Update comment.
11453         * m4/getcwd-path-max.m4: Likewise.
11454
11455         getcwd-lgpl: new module
11456         * modules/getcwd-lgpl: New module.
11457         * lib/getcwd-lgpl.c: New file.
11458         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11459         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11460         * modules/getcwd (configure.ac): Set C witness.
11461         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11462
11463         getcwd: tweak comments
11464         * m4/getcwd-abort-bug.m4: Fix comments.
11465         * m4/getcwd-path-max.m4: Likewise.
11466         * m4/getcwd.m4: Likewise.
11467
11468 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11469         and Eric Blake  <eblake@redhat.com>
11470
11471         mkstemp: replace if system version uses wrong permissions
11472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11473         read/write mode bits set in file created by mkstemp.
11474         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11475
11476 2011-04-27  Eric Blake  <eblake@redhat.com>
11477
11478         passfd: avoid compiler warning
11479         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11480         Reported by Laine Stump.
11481
11482 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11483
11484         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11485         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11486
11487 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11488         and Eric Blake  <eblake@redhat.com>
11489
11490         mkstemp: mention clean-temp module
11491         * lib/mkstemp.c: Add comment.
11492         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11493
11494 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11495
11496         inttypes: also provide default values for 32-bit tests
11497         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11498         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11499
11500 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11501
11502         strtoumax: remove dependency on strtoimax
11503         This is like the strtoull change of yesterday.
11504         * modules/strtoumax (Files): Add lib/strtoimax.c.
11505         (Depends-on): Remove strtoimax and add verify.
11506
11507         inttypes-incomplete: new module
11508         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11509         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11510         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11511         of gl_INTTYPES_H.
11512         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11513         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11514         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11515         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11516         * modules/strtoumax, modules/xstrtol (Depends-on):
11517         Depend on inttypes-incomplete, not inttypes.
11518         * modules/inttypes-incomplete: New module, containing the contents
11519         of the old modules/inttypes module, except that the Files: section
11520         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11521         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11522         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11523         (Depends-on): Depend only on inttypes-incomplete.
11524         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11525
11526         inttypes: omit now-redundant strtoimax and strtoumax work
11527         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11528         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11529
11530         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11531         This supports apps that need pointers to strtoimax and strtoumax,
11532         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11533         nonexistent functions.  See
11534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11535         et seq.
11536         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11537         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11538         a macro.
11539         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11540
11541 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11542
11543         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11544
11545 2011-04-25  Bruno Haible  <bruno@clisp.org>
11546
11547         strtol, strtoul: Mark modules as obsolete.
11548         * modules/strtol (Status, Notice): New sections.
11549         * modules/strtoul (Status, Notice): New sections.
11550
11551 2011-04-25  Bruno Haible  <bruno@clisp.org>
11552
11553         strtod: Remove check for strtod, unless supporting old platforms.
11554         * modules/strtod-obsolete: New file.
11555         * m4/strtod-obsolete.m4: New file.
11556         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11557         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11558         * modules/strtod (Depends-on): Add strtod-obsolete.
11559         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11560
11561 2011-04-25  Bruno Haible  <bruno@clisp.org>
11562
11563         strcase: Make module obsolete.
11564         * modules/strcase (Status, Notice): New sections.
11565
11566 2011-04-25  Bruno Haible  <bruno@clisp.org>
11567
11568         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11569         * modules/dup2-obsolete: New file.
11570         * m4/dup2-obsolete.m4: New file.
11571         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11572         gl_FUNC_DUP2_OBSOLETE is not also defined.
11573         * modules/dup2 (Depends-on): Add dup2-obsolete.
11574         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11575
11576 2011-04-25  Bruno Haible  <bruno@clisp.org>
11577
11578         strnlen: Avoid memchr related link error on old obsolete platforms.
11579         * modules/memchr-obsolete: New file.
11580         * m4/memchr-obsolete.m4: New file.
11581         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11582         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11583         * modules/memchr (Depends-on): Add memchr-obsolete.
11584         * modules/strnlen (Depends-on): Likewise.
11585         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11586
11587 2011-04-25  Jim Meyering  <meyering@redhat.com>
11588
11589         maint.mk: makefile_at_at_check extend and clean up
11590         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11591         in addition to */Makefile.am.
11592         Exempt legitimate uses of @VAR@ notation, e.g.,
11593         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11594         Remove obsolete coreutils-specific comment.
11595         Prompted by discussion here:
11596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11597
11598 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11599
11600         strtoul: remove dependency on strtol
11601         This is so that 'configure' need not check for strtol merely because
11602         the application needs strtoul.
11603         * modules/strtoul (Files): Add lib/strtol.c.
11604         (Depends-on): Remove strtol.
11605
11606         strtoull: remove dependency on strtoul
11607         This is like the strtoll change.
11608         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11609         (Depends-on): Remove strtoul.
11610
11611         strtoll: remove dependency on strtol
11612         This is so that 'configure' need not check for strtol merely because
11613         the application needs strtoll.
11614         * modules/strtoll (Files): Add lib/strtol.c.
11615         (Depends-on): Remove strtol.
11616
11617 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11618
11619         inttypes: Move some configure check to module 'imaxdiv'.
11620         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11621         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11622         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11623
11624 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         inttypes: Move some configure check to module 'imaxabs'.
11627         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11628         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11629         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11630
11631 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11632
11633         inttypes: Remove configure tests that are not needed since 2009-12-31.
11634         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11635         gl_cv_header_working_inttypes_h.
11636
11637 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11638
11639         * modules/strnlen (Depends-on): Remove memchr.
11640         The strnlen implementation doesn't need the memchr module's fixes; see
11641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11642
11643         strtol: remove dependency on wchar
11644         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11645         * modules/strtol (Depends-on): Remove wchar.
11646
11647 2011-04-21  Eric Blake  <eblake@redhat.com>
11648
11649         passfd: fix test regression on Linux
11650         * modules/passfd-tests (configure.ac): Correct socketpair check.
11651
11652         passfd: speed up configure and drop unused code
11653         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11654         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11655         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11656         Instead of probing at configure for unix_scm_rights_bsd44_way,
11657         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11658         check to a struct member probe.
11659         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11660         (sendfd, recvfd): Update preprocessor checks.
11661         * modules/passfd (Files): Reflect rename, and drop unused file.
11662         (Depends-on): Drop unused dependency.
11663
11664         passfd: allow compilation on mingw
11665         * modules/sys_socket (Depends-on): Add sys_uio.
11666         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11667         iovec and a minimal struct msghdr.
11668         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11669         * tests/test-sys_socket.c (main): Enhance test.
11670         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11671         guaranteed to provide what we need.
11672         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11673         * modules/passfd-tests (Depends-on): Add sys_wait.
11674         * tests/test-passfd.c (main): Skip test on mingw, for now.
11675         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11676         partial 'struct msghdr' implementation.
11677
11678         sys_uio: new module
11679         * modules/sys_uio: New module.
11680         * modules/sys_uio-tests: Likewise.
11681         * lib/sys_uio.in.h: New file.
11682         * m4/sys_uio_h.m4: Likewise.
11683         * tests/test-sys_uio.c: Likewise.
11684         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11685         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11686
11687 2011-04-20  Jim Meyering  <meyering@redhat.com>
11688
11689         useless-if-before-free: avoid false-positive
11690         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11691         disjunct so that it too requires a terminating ";".  Without that,
11692         this script would identify as useless one statement from gcc that
11693         was not:
11694           if (aligned_ptr)
11695             free (((void **) aligned_ptr) [-1]);
11696
11697 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11698
11699         doc: update users.txt.
11700         * users.txt: Add barcode.
11701
11702 2011-04-19  Bruno Haible  <bruno@clisp.org>
11703
11704         ioctl: Remove link dependency on native Windows.
11705         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11706         (gl_close_fn, gl_ioctl_fn): New types.
11707         (struct fd_hook): Renamed from struct close_hook. Change type of
11708         private_close_fn field. Add private_ioctl_fn field.
11709         (close_hook_fn): Add parameter for primary close method.
11710         (execute_close_hooks, execute_all_close_hooks): Likewise.
11711         (ioctl_hook_fn): New type.
11712         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11713         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11714         argument.
11715         (unregister_fd_hook): Renamed from unregister_close_hook.
11716         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11717         Don't include <unistd.h>.
11718         (close): Remove undef.
11719         (anchor): Update.
11720         (execute_close_hooks): Add argument for primary close method.
11721         (execute_all_close_hooks): Likewise.
11722         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11723         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11724         argument. Allow each argument to be NULL.
11725         (unregister_fd_hook): Renamed from unregister_close_hook.
11726         * lib/close.c (rpl_close): Pass 'close' function pointer to
11727         execute_all_close_hooks.
11728         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11729         (primary_ioctl): New function.
11730         (ioctl): Don't call ioctlsocket here. Instead, call
11731         execute_all_ioctl_hooks.
11732         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11733         close method.
11734         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11735         (fd_sockets_hook): Renamed from close_sockets_hook.
11736         (gl_sockets_startup, gl_sockets_cleanup): Update.
11737         * modules/fd-hook: Renamed from modules/close-hook. Update.
11738         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11739         * modules/sockets (Depends-on): Likewise.
11740         * modules/ioctl (Depends-on): Add fd-hook.
11741         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11742         GNULIB_SOCKET.
11743
11744 2011-04-19  Bruno Haible  <bruno@clisp.org>
11745
11746         Move the support of O_NONBLOCK in open() to the 'open' module.
11747         * modules/nonblocking (Depends-on): Remove 'open'.
11748         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11749         gl_cv_have_open_O_NONBLOCK.
11750         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11751         O_NONBLOCK support.
11752         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11753
11754 2011-04-17  Bruno Haible  <bruno@clisp.org>
11755
11756         pipe2: Simplify code.
11757         * lib/pipe2.c (pipe2): Reduce code duplication.
11758
11759 2011-04-17  Bruno Haible  <bruno@clisp.org>
11760
11761         nonblocking: Add comment.
11762         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11763
11764 2011-04-17  Bruno Haible  <bruno@clisp.org>
11765
11766         nonblocking: Add tests for sockets.
11767         * tests/test-nonblocking-socket.sh: New file.
11768         * tests/test-nonblocking-socket-main.c: New file.
11769         * tests/test-nonblocking-socket-child.c: New file.
11770         * tests/test-nonblocking-socket.h: New file.
11771         * tests/socket-server.h: New file.
11772         * tests/socket-client.h: New file.
11773         * modules/nonblocking-socket-tests: New file.
11774         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11775
11776 2011-04-17  Bruno Haible  <bruno@clisp.org>
11777
11778         nonblocking: Add tests for pipes.
11779         * tests/test-nonblocking-pipe.sh: New file.
11780         * tests/test-nonblocking-pipe-main.c: New file.
11781         * tests/test-nonblocking-pipe-child.c: New file.
11782         * tests/test-nonblocking-pipe.h: New file.
11783         * tests/test-nonblocking-writer.h: New file.
11784         * tests/test-nonblocking-reader.h: New file.
11785         * tests/test-nonblocking-misc.h: New file.
11786         * modules/nonblocking-pipe-tests: New file.
11787         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11788
11789 2011-04-16  Bruno Haible  <bruno@clisp.org>
11790
11791         gettext: Clarify the needed programmer actions.
11792         * modules/gettext (Notice): New field.
11793         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11794
11795 2011-04-16  Bruno Haible  <bruno@clisp.org>
11796
11797         strchrnul: Tweak last commit.
11798         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11799         bug.
11800         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11801         as in _GL_FUNCDECL_SYS.
11802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11803         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11804
11805 2011-04-15  Eric Blake  <eblake@redhat.com>
11806
11807         strchrnul: work around cygwin bug
11808         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11809         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11811         * modules/string (Makefile.am): Substitute it.
11812         * lib/string.in.h (strchrnul): Use it.
11813
11814 2011-04-15  Bruno Haible  <bruno@clisp.org>
11815
11816         Don't require lib/stdio-write.c when only module 'stdio' is used.
11817         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11818         invocation.
11819         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11820
11821 2011-04-14  Bruno Haible  <bruno@clisp.org>
11822
11823         Support non-blocking pipe I/O in read() on native Windows.
11824         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11825         (read): New declaration.
11826         * lib/read.c: New file.
11827         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11828         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11829         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11830         vscanf): New declarations.
11831         * lib/stdio-read.c: New file.
11832         * m4/read.m4: New file.
11833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11834         REPLACE_READ.
11835         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11836         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11837         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11838         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11839         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11840         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11841         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11842         * modules/read: New file.
11843         * modules/nonblocking (Files): Add lib/stdio-read.c.
11844         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11845         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11846         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11847         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11848         * modules/pread (Depends-on): Add read.
11849         * modules/safe-read (Depends-on): Likewise.
11850         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11851         gets, scanf, vfscanf, vscanf): Verify signatures.
11852         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11853         problem with non-blocking pipes.
11854         * doc/posix-functions/fgetc.texi: Likewise.
11855         * doc/posix-functions/fgets.texi: Likewise.
11856         * doc/posix-functions/fread.texi: Likewise.
11857         * doc/posix-functions/fscanf.texi: Likewise.
11858         * doc/posix-functions/getc.texi: Likewise.
11859         * doc/posix-functions/getchar.texi: Likewise.
11860         * doc/posix-functions/gets.texi: Likewise.
11861         * doc/posix-functions/scanf.texi: Likewise.
11862         * doc/posix-functions/vfscanf.texi: Likewise.
11863         * doc/posix-functions/vscanf.texi: Likewise.
11864
11865 2011-04-14  Bruno Haible  <bruno@clisp.org>
11866
11867         Support non-blocking pipe I/O in write() on native Windows.
11868         * lib/write.c (rpl_write): Split a write request that failed merely
11869         because the byte count was larger than the pipe buffer's size.
11870         * doc/posix-functions/write.texi: Mention the problem with large byte
11871         counts.
11872
11873 2011-04-14  Bruno Haible  <bruno@clisp.org>
11874
11875         wchar: Ensure that wchar_t gets defined on uClibc.
11876         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11877         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11878
11879 2011-04-13  Bruno Haible  <bruno@clisp.org>
11880
11881         safe-write, full-read: Avoid unnecessary compilation units.
11882         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11883         (Depends-on): Remove safe-read. Add ssize_t.
11884         * modules/full-read (Files): Add lib/full-write.c.
11885         (Depends-on): Add full-write.
11886
11887 2011-04-13  Bruno Haible  <bruno@clisp.org>
11888
11889         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11890         * modules/pwrite (Depends-on): Add 'write'.
11891
11892 2011-04-13  Bruno Haible  <bruno@clisp.org>
11893
11894         Support non-blocking pipe I/O in write() on native Windows.
11895         * lib/unistd.in.h (write): Enable replacement also if
11896         GNULIB_UNISTD_H_NONBLOCKING is 1.
11897         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11898         (rpl_write): When failing to write on a non-blocking pipe, change
11899         errno from ENOSPC to EAGAIN.
11900         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11901         putchar, puts, vfprintf, vprintf): Enable replacement also if
11902         GNULIB_STDIO_H_NONBLOCKING is 1.
11903         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11904         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11905         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11906         CALL_WITH_SIGPIPE_EMULATION.
11907         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11908         * m4/nonblocking.m4: New file.
11909         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11910         for non-blocking I/O support.
11911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11912         GNULIB_UNISTD_H_NONBLOCKING.
11913         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11914         required for non-blocking I/O support.
11915         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11916         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11917         lib/stdio-write.c, m4/asm-underscore.m4.
11918         (Depends-on): Add stdio, unistd.
11919         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11920         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11921         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11922         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11923         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11924         problem with non-blocking pipes.
11925         * doc/posix-functions/fputc.texi: Likewise.
11926         * doc/posix-functions/fputs.texi: Likewise.
11927         * doc/posix-functions/fwrite.texi: Likewise.
11928         * doc/posix-functions/printf.texi: Likewise.
11929         * doc/posix-functions/putc.texi: Likewise.
11930         * doc/posix-functions/putchar.texi: Likewise.
11931         * doc/posix-functions/puts.texi: Likewise.
11932         * doc/posix-functions/vfprintf.texi: Likewise.
11933         * doc/posix-functions/vprintf.texi: Likewise.
11934         * doc/posix-functions/write.texi: Likewise.
11935
11936 2011-04-10  Jim Meyering  <meyering@redhat.com>
11937
11938         maint.mk: prohibit doubled words
11939         Detect them also when they're separated by a newline.
11940         There are 3 ways to customize it:
11941           - disable the test on a per file basis, as usual with rules using
11942             $(VC_LIST_EXCEPT)
11943           - replace the default doubled-word-selecting regexp (affects all files)
11944           - ignore a particular file-vs-doubled-word match
11945         I nearly used that last one to ignore the "is is" match in
11946         coreutils' NEWS file, since the text was "ls -is is ..."
11947         To do that, I would have added this line to cfg.mk:
11948           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11949         but it would have ignored any "is is" match in NEWS.
11950         Low probability, but still...
11951         Instead, I changed the text, slightly:
11952           -  ls -is is now consistent with ls -lis in ignoring values returned
11953           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11954         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11955         (prohibit_doubled_word_): Define.
11956         (sc_prohibit_doubled_word): New rule.
11957         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11958
11959 2011-04-10  Jim Meyering  <meyering@redhat.com>
11960
11961         maint: fix doubled-word typo in comment
11962         * m4/gethostname.m4: s/is is/it is/
11963         * m4/getdomainname.m4: Likewise.
11964
11965 2011-04-10  Jim Meyering  <meyering@redhat.com>
11966
11967         maint: remove doubled word: s/it it/it/
11968         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11969
11970 2011-04-10  Jim Meyering  <meyering@redhat.com>
11971
11972         maint.mk: remove useless semicolon and backslash
11973         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11974         semicolon and backslash.
11975
11976 2011-04-10  Bruno Haible  <bruno@clisp.org>
11977
11978         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11979         * modules/stdint-tests (Depends-on): Add wchar.
11980
11981 2011-04-10  Jim Meyering  <meyering@redhat.com>
11982
11983         maint: remove doubled words in comments, e.g., s/a a/a/
11984         * lib/strptime.c (day_of_the_week): s/the the/the/
11985         * tests/test-chown.h (test_chown): s/a a/a/
11986
11987         test-chown.h: correct a cast
11988         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11989         when the destination is a stat.st_gid.
11990
11991 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11992
11993         getaddrinfo: Fix test for sa_len member.
11994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11995         include <sys/types.h> before <sys/socket.h>.
11996
11997 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11998
11999         maint: change "can not" to "cannot"
12000         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12001         boundaries.
12002
12003 2011-04-09  Jim Meyering  <meyering@redhat.com>
12004
12005         maint: change "a a" to "a"
12006         * tests/test-lchown.h (test_lchown): s/a a/a/
12007
12008         maint.mk: prohibit \<the the\>
12009         * top/maint.mk (sc_prohibit_the_the): New rule.
12010
12011         maint: fix "the the" in comment
12012         * lib/count-one-bits.h: s/the the/the/
12013
12014         maint: change "can not" to "cannot"
12015         But do not change the occurrences in maintain.texi or in
12016         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12017         * doc/gnulib-tool.texi: s/can not/cannot/
12018         * doc/posix-functions/accept.texi (accept): Likewise.
12019         * doc/posix-functions/socket.texi (socket): Likewise.
12020         * lib/mbrtowc.c: Likewise.
12021
12022         maint.mk: prohibit use of "can not"
12023         * top/maint.mk (sc_prohibit_can_not): New rule.
12024         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12025
12026 2011-04-09  Bruno Haible  <bruno@clisp.org>
12027
12028         careadlinkat: Guard against misuse of careadlinkatcwd.
12029         * lib/careadlinkat.c: Include <stdlib.h>.
12030         (careadlinkatcwd): Check that the fd argument is as expected.
12031
12032 2011-04-09  Bruno Haible  <bruno@clisp.org>
12033
12034         careadlinkat: Use common coding style.
12035         * lib/careadlinkat.c: Move gnulib includes after system includes.
12036
12037 2011-04-09  Bruno Haible  <bruno@clisp.org>
12038
12039         careadlinkat: Clarify specification.
12040         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12041         (careadlinkatcwd): Add comment.
12042         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12043
12044 2011-04-09  Bruno Haible  <bruno@clisp.org>
12045
12046         areadlinkat: Avoid link error on many platforms.
12047         * modules/areadlinkat (Depends-on): Add areadlink.
12048
12049 2011-04-09  Bruno Haible  <bruno@clisp.org>
12050
12051         allocator, careadlinkat: Fix double-inclusion guard.
12052         * lib/allocator.h: Fix double-inclusion guard.
12053         * lib/careadlinkat.h: Likewise.
12054
12055 2011-04-09  Bruno Haible  <bruno@clisp.org>
12056
12057         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12058         * lib/relocwrapper.c: Update dependencies hierarchy.
12059         * build-aux/install-reloc: Update list of files to be compiled.
12060         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12061         lib/allocator.[hc].
12062
12063 2011-04-08  Eric Blake  <eblake@redhat.com>
12064
12065         strftime: silence gnulib-tool warning
12066         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12067
12068 2011-04-08  Bruno Haible  <bruno@clisp.org>
12069
12070         verify: Fix syntax error with GCC 4.6 in C++ mode.
12071         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12072         (HAVE_STATIC_ASSERT): New macro.
12073         (verify_true, verify): Use 'static_assert' if it is supported and
12074         '_Static_assert' is not supported.
12075
12076 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12077
12078         allocator: New module.
12079         * modules/allocator, lib/allocator.c: New files.
12080         * lib/allocator.h (stdlib_allocator): New decl.
12081         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12082         Remove.  Do not include <stdlib.h>.
12083         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12084         * modules/careadlinkat (Files): Remove lib/allocator.h.
12085         (Depends-on): Add allocator.
12086
12087         stdlib: let modules use system malloc, realloc
12088         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12089         if !_GL_USE_STDLIB_ALLOC.
12090         (malloc, realloc): Limit this change to a smaller scope.
12091
12092         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12093         (malloc, realloc): Don't #undef; no longer needed.
12094         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12095         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12096         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12097         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12098         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12099         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12100         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12101         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12102
12103         careadlinkat: rename members to avoid problem
12104         * lib/allocator.h (struct allocator): Rename members from
12105         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12106         and realloc are #define'd.  Reported by Eric Blake in
12107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12108         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12109
12110 2011-04-08  Eric Blake  <eblake@redhat.com>
12111
12112         nonblocking: reduce dependency
12113         * tests/test-nonblocking.c: Only test sockets when in use.
12114         * modules/nonblocking-tests (Depends-on): Drop socket.
12115         (Makefile.am): Link even if sockets are not present.
12116         * modules/pipe2-tests (Makefile.am): Likewise.
12117         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12118
12119         pipe2: fix O_NONBLOCK support on mingw
12120         * modules/pipe2 (Depends-on): Add nonblocking.
12121         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12122         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12123         * tests/test-nonblocking.c (main): Likewise.
12124         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12125
12126         fcntl-h: fix O_ACCMODE on cygwin
12127         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12128         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12129
12130         pipe-filter: drop O_NONBLOCK workarounds
12131         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12132         * modules/pipe-filter-ii (Depends-on): Likewise.
12133         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12134
12135         nonblocking: provide O_NONBLOCK for mingw
12136         * modules/nonblocking (Depends-on): Add open.
12137         (configure.ac): Set new witness macro.
12138         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12139         * modules/fcntl-h (Makefile.am): Substitute it.
12140         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12141         nonblocking module is in use.
12142         * lib/nonblocking.c: Adjust portability test.
12143         * lib/open.c (open): Don't let native open see gnulib flag.
12144         * tests/test-fcntl-h.c (main): Enhance test.
12145         * tests/test-open.h (test_open): Likewise.
12146         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12147
12148         careadlinkat: fix compilation error on mingw
12149         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12150         within struct allocator.
12151
12152 2011-04-06  Eric Blake  <eblake@redhat.com>
12153
12154         binary-io: relicense under LGPLv2+
12155         * modules/binary-io (License): Relax to LGPLv2+.
12156         Requested for libvirt, and required by pipe2.
12157
12158 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12159
12160         verify: use _Static_assert if available
12161         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12162         (verify_true, verify): Use it if available.  This generates better
12163         diagnostics with GCC 4.6.0 and later.
12164
12165 2011-04-05  Bruno Haible  <bruno@clisp.org>
12166
12167         Remove leftover generated .h files after config.status changed.
12168
12169         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12170         GL_GENERATE_ALLOCA_H.
12171         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12172         GL_GENERATE_ALLOCA_H evaluates to false.
12173
12174         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12175         GL_GENERATE_ARGZ_H.
12176         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12177         evaluates to false.
12178
12179         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12180         GL_GENERATE_BYTESWAP_H.
12181         * modules/byteswap (Makefile.am): Remove byteswap.h if
12182         GL_GENERATE_BYTESWAP_H evaluates to false.
12183
12184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12185         GL_GENERATE_ERRNO_H.
12186         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12187         evaluates to false.
12188
12189         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12190         GL_GENERATE_FLOAT_H.
12191         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12192         evaluates to false.
12193
12194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12195         GL_GENERATE_FNMATCH_H.
12196         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12197         GL_GENERATE_FNMATCH_H evaluates to false.
12198
12199         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12200         GL_GENERATE_GLOB_H.
12201         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12202         evaluates to false.
12203
12204         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12205         automake conditional GL_GENERATE_ICONV_H.
12206         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12207         evaluates to false.
12208
12209         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12210         GL_GENERATE_NETINET_IN_H.
12211         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12212         GL_GENERATE_NETINET_IN_H evaluates to false.
12213
12214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12215         conditional GL_GENERATE_PTHREAD_H.
12216         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12217         * modules/pthread (Makefile.am): Remove pthread.h if
12218         GL_GENERATE_PTHREAD_H evaluates to false.
12219
12220         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12221         GL_GENERATE_SCHED_H.
12222         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12223         evaluates to false.
12224
12225         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12226         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12227         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12228         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12229
12230         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12231         GL_GENERATE_STDARG_H.
12232         * modules/stdarg (Makefile.am): Remove stdarg.h if
12233         GL_GENERATE_STDARG_H evaluates to false.
12234
12235         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12236         GL_GENERATE_STDBOOL_H.
12237         * modules/stdbool (Makefile.am): Remove stdbool.h if
12238         GL_GENERATE_STDBOOL_H evaluates to false.
12239
12240         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12241         conditional GL_GENERATE_STDDEF_H.
12242         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12243         * modules/stddef (Makefile.am): Remove stddef.h if
12244         GL_GENERATE_STDDEF_H evaluates to false.
12245
12246         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12247         GL_GENERATE_STDINT_H.
12248         * modules/stdint (Makefile.am): Remove stdint.h if
12249         GL_GENERATE_STDINT_H evaluates to false.
12250
12251         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12252         GL_GENERATE_SYSEXITS_H.
12253         * modules/sysexits (Makefile.am): Remove sysexits.h if
12254         GL_GENERATE_SYSEXITS_H evaluates to false.
12255
12256         Reported by Karl Berry and Ralf Wildenhues.
12257
12258 2011-04-05  Bruno Haible  <bruno@clisp.org>
12259
12260         Ensure to rebuild generated .h files when config.status has changed.
12261         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12262         config.status.
12263         * modules/ctype (Makefile.am): Likewise.
12264         * modules/dirent (Makefile.am): Likewise.
12265         * modules/errno (Makefile.am): Likewise.
12266         * modules/fcntl-h (Makefile.am): Likewise.
12267         * modules/float (Makefile.am): Likewise.
12268         * modules/getopt-posix (Makefile.am): Likewise.
12269         * modules/glob (Makefile.am): Likewise.
12270         * modules/iconv-h (Makefile.am): Likewise.
12271         * modules/inttypes (Makefile.am): Likewise.
12272         * modules/langinfo (Makefile.am): Likewise.
12273         * modules/locale (Makefile.am): Likewise.
12274         * modules/math (Makefile.am): Likewise.
12275         * modules/netdb (Makefile.am): Likewise.
12276         * modules/netinet_in (Makefile.am): Likewise.
12277         * modules/poll-h (Makefile.am): Likewise.
12278         * modules/pthread (Makefile.am): Likewise.
12279         * modules/pty (Makefile.am): Likewise.
12280         * modules/sched (Makefile.am): Likewise.
12281         * modules/search (Makefile.am): Likewise.
12282         * modules/selinux-h (Makefile.am): Likewise.
12283         * modules/signal (Makefile.am): Likewise.
12284         * modules/spawn (Makefile.am): Likewise.
12285         * modules/stdarg (Makefile.am): Likewise.
12286         * modules/stdbool (Makefile.am): Likewise.
12287         * modules/stddef (Makefile.am): Likewise.
12288         * modules/stdint (Makefile.am): Likewise.
12289         * modules/stdio (Makefile.am): Likewise.
12290         * modules/stdlib (Makefile.am): Likewise.
12291         * modules/string (Makefile.am): Likewise.
12292         * modules/strings (Makefile.am): Likewise.
12293         * modules/sys_file (Makefile.am): Likewise.
12294         * modules/sys_ioctl (Makefile.am): Likewise.
12295         * modules/sys_select (Makefile.am): Likewise.
12296         * modules/sys_socket (Makefile.am): Likewise.
12297         * modules/sys_stat (Makefile.am): Likewise.
12298         * modules/sys_time (Makefile.am): Likewise.
12299         * modules/sys_times (Makefile.am): Likewise.
12300         * modules/sys_utsname (Makefile.am): Likewise.
12301         * modules/sys_wait (Makefile.am): Likewise.
12302         * modules/sysexits (Makefile.am): Likewise.
12303         * modules/termios (Makefile.am): Likewise.
12304         * modules/time (Makefile.am): Likewise.
12305         * modules/unistd (Makefile.am): Likewise.
12306         * modules/wchar (Makefile.am): Likewise.
12307         * modules/wctype-h (Makefile.am): Likewise.
12308         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12309
12310 2011-04-05  Bruno Haible  <bruno@clisp.org>
12311
12312         pipe2: Relicense under LGPLv2+.
12313         * modules/pipe2 (License): Change to LGPLv2+.
12314         Requested by Eric Blake, for libvirt.
12315
12316 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12317
12318         bootstrap: compute gnulib_extra_files after updating build_aux
12319         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12320         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12321
12322 2011-04-05  Eric Blake  <eblake@redhat.com>
12323
12324         bootstrap: preserve git whitelist item sorting
12325         * build-aux/bootstrap (sort_patterns): New function.
12326         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12327
12328 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12329
12330         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12331         sc_space_tab check.
12332
12333 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12334
12335         areadlink, areadlinkat: rewrite in terms of careadlinkat
12336         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12337         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12338         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12339         (malloc, realloc): Remove #undefs.
12340         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12341         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12342         readlink, ssize_t, stdint, unistd.
12343         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12344         areadlink, stdint.
12345
12346         careadlinkat: new module
12347         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12348         * modules/careadlinkat: New files, written by me with
12349         a review and feedback from Ben Pfaff in
12350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12351
12352 2011-04-01  Bruno Haible  <bruno@clisp.org>
12353
12354         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12355         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12356         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12357         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12358         Reported by Bruce Korb <bruce.korb@gmail.com>.
12359
12360 2011-04-01  Bruno Haible  <bruno@clisp.org>
12361
12362         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12363         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12364         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12365         * modules/wcpcpy (Depends-on): Add extensions.
12366         * modules/wcpncpy (Depends-on): Likewise.
12367         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12368         systems.
12369         * doc/posix-functions/wcpncpy.texi: Likewise.
12370         * doc/posix-functions/wcwidth.texi: Likewise.
12371
12372 2011-03-31  Eric Blake  <eblake@redhat.com>
12373
12374         nonblocking: fix mingw test failures
12375         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12376         non-blocking flag on regular file.
12377         (get_nonblocking_flag): Set errno on invalid fd.
12378         * tests/test-nonblocking.c (main): Avoid test failure on
12379         directories if fchdir is not active.
12380         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12381
12382 2011-03-31  Bruno Haible  <bruno@clisp.org>
12383
12384         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12385         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12386         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12387         Reported by Simon Josefsson <simon@josefsson.org>.
12388
12389 2011-03-31  Bruno Haible  <bruno@clisp.org>
12390         and Eric Blake  <eblake@redhat.com>
12391
12392         nonblocking: new module
12393         * modules/nonblocking: New module.
12394         * modules/nonblocking-tests: Likewise.
12395         * lib/nonblocking.h: New file.
12396         * lib/nonblocking.c: Likewise.
12397         * tests/test-nonblocking.c: New test.
12398         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12399
12400 2011-03-30  Bruno Haible  <bruno@clisp.org>
12401
12402         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12403         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12404         instead of 'printf' format for GCC >= 4.4.
12405         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12406         (fprintf, printf, vfprintf, vprintf): Declare with
12407         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12408         the system's vfprintf() function.
12409         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12410
12411 2011-03-30  Eric Blake  <eblake@redhat.com>
12412
12413         passfd: fix scoping bug
12414         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12415         before sendmsg/recvmsg.
12416
12417         passfd: standardize coding conventions
12418         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12419         can be learned at compile time.
12420         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12421         ifdefs.
12422         (sendfd, recvfd): Follow gnulib code conventions.
12423
12424         passfd: fix incorrect sendmsg arguments
12425         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12426         incorrect msg_controllen value.
12427         * modules/passfd-tests (Depends-on): Check for alarm.
12428         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12429         Reported by Bastien ROUCARIES.
12430
12431 2011-03-30  Bruno Haible  <bruno@clisp.org>
12432
12433         c-strcasestr: Relicense under LGPLv2+.
12434         * modules/c-strcasestr (License): Change to LGPLv2+.
12435         Requested by Eric Blake, for libvirt.
12436
12437 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12438
12439         * users.txt: Add libidn2.  Fix libtasn1 link.
12440
12441 2011-03-30  Jim Meyering  <meyering@redhat.com>
12442
12443         tests: readlink* ("",... fails with EINVAL on newer kernels
12444         readlink and readlinkat have typically failed with ENOENT for
12445         the invalid, empty file name,  "".  However, with the advent
12446         of linux-2.6.39, they fail with EINVAL.
12447         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12448         when operating on the empty file name.
12449         * tests/test-readlink.h (test_readlink): Likewise.
12450
12451 2011-03-29  Bruno Haible  <bruno@clisp.org>
12452
12453         Relicense some modules under LGPLv2+, for libidn2.
12454         * modules/array-mergesort (License): Change to LGPLv2+.
12455         * modules/c-strcaseeq (License): Likewise.
12456         * modules/striconveh (License): Likewise.
12457         * modules/striconveha (License): Likewise.
12458         * modules/uniconv/base (License): Likewise.
12459         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12460         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12461         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12462         * modules/unictype/base (License): Likewise.
12463         * modules/unictype/bidiclass-of (License): Likewise.
12464         * modules/unictype/category-M (License): Likewise.
12465         * modules/unictype/category-none (License): Likewise.
12466         * modules/unictype/category-of (License): Likewise.
12467         * modules/unictype/category-test (License): Likewise.
12468         * modules/unictype/category-test-withtable (License): Likewise.
12469         * modules/unictype/combining-class (License): Likewise.
12470         * modules/unictype/joiningtype-of (License): Likewise.
12471         * modules/unictype/scripts (License): Likewise.
12472         * modules/uninorm/base (License): Likewise.
12473         * modules/uninorm/canonical-decomposition (License): Likewise.
12474         * modules/uninorm/composition (License): Likewise.
12475         * modules/uninorm/decompose-internal (License): Likewise.
12476         * modules/uninorm/decomposition-table (License): Likewise.
12477         * modules/uninorm/nfc (License): Likewise.
12478         * modules/uninorm/nfd (License): Likewise.
12479         * modules/uninorm/u32-normalize (License): Likewise.
12480         * modules/unistr/base (License): Likewise.
12481         * modules/unistr/u32-cpy (License): Likewise.
12482         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12483         * modules/unistr/u32-to-u8 (License): Likewise.
12484         * modules/unistr/u32-uctomb (License): Likewise.
12485         * modules/unistr/u8-check (License): Likewise.
12486         * modules/unistr/u8-mblen (License): Likewise.
12487         * modules/unistr/u8-mbtouc (License): Likewise.
12488         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12489         * modules/unistr/u8-mbtoucr (License): Likewise.
12490         * modules/unistr/u8-prev (License): Likewise.
12491         * modules/unistr/u8-strlen (License): Likewise.
12492         * modules/unistr/u8-to-u32 (License): Likewise.
12493         * modules/unistr/u8-uctomb (License): Likewise.
12494         * modules/unitypes (License): Likewise.
12495         Requested by Simon Josefsson.
12496
12497 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12498
12499         lib-symbol-visibility: Add a notice.
12500         * modules/lib-symbol-visibility (Notice): New field.
12501
12502 2011-03-29  Bruno Haible  <bruno@clisp.org>
12503
12504         getaddrinfo: Doc fix.
12505         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12506         section "fixed in Gnulib".
12507
12508 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12509
12510         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12511         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12512
12513 2011-03-26  Bruno Haible  <bruno@clisp.org>
12514
12515         unictype/property-byname: Reduce the number of load-time relocations.
12516         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12517         (UC_PROPERTY_INDEX_*): New enumeration values.
12518         (uc_property_byname): Convert an index from the lookup table to an
12519         uc_property_t.
12520         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12521         values.
12522
12523 2011-03-26  Bruno Haible  <bruno@clisp.org>
12524
12525         unictype/property-byname: Allow omitted word separators and aliases.
12526         * lib/unictype/pr_byname.gperf: Add property names without word
12527         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12528         for 'space'.
12529
12530 2011-03-26  Bruno Haible  <bruno@clisp.org>
12531
12532         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12533         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12534         also hyphens to space.
12535         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12536         without spaces.
12537         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12538
12539 2011-03-26  Bruno Haible  <bruno@clisp.org>
12540
12541         unictype/joiningtype-byname: Recognize long names as well.
12542         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12543         a long name.
12544         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12545         unictype/joiningtype_byname.h.
12546         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12547         * lib/unictype/joiningtype_byname.gperf: New file.
12548         * modules/unictype/joiningtype-byname (Files): Add
12549         lib/unictype/joiningtype_byname.gperf.
12550         (Depends-on): Add gperf.
12551         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12552         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12553         long names.
12554
12555         Tests for module 'unictype/joiningtype-longname'.
12556         * modules/unictype/joiningtype-longname-tests: New file.
12557         * tests/unictype/test-joiningtype_longname.c: New file.
12558
12559         New module 'unictype/joiningtype-longname'.
12560         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12561         * lib/unictype/joiningtype_longname.c: New file.
12562         * modules/unictype/joiningtype-longname: New file.
12563         * modules/unictype/joiningtype-all (Depends-on): Add
12564         unictype/joiningtype-longname.
12565
12566 2011-03-26  Bruno Haible  <bruno@clisp.org>
12567
12568         unictype/bidiclass-byname: Recognize long names as well.
12569         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12570         name.
12571         * lib/unictype/bidi_byname.c: Include <string.h>,
12572         unictype/bidi_byname.h.
12573         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12574         * lib/unictype/bidi_byname.gperf: New file.
12575         * modules/unictype/bidiclass-byname (Files): Add
12576         lib/unictype/bidi_byname.gperf.
12577         (Depends-on): Add gperf.
12578         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12579         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12580         long names.
12581
12582         Tests for module 'unictype/bidiclass-longname'.
12583         * modules/unictype/bidiclass-longname-tests: New file.
12584         * tests/unictype/test-bidi_longname.c: New file.
12585
12586         New module 'unictype/bidiclass-longname'.
12587         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12588         * lib/unictype/bidi_longname.c: New file.
12589         * modules/unictype/bidiclass-longname: New file.
12590         * modules/unictype/bidiclass-all (Depends-on): Add
12591         unictype/bidiclass-longname.
12592
12593 2011-03-26  Bruno Haible  <bruno@clisp.org>
12594
12595         unictype/bidi*: Rename modules.
12596         * modules/unictype/bidiclass-all: Renamed from
12597         modules/unictype/bidicategory-all.
12598         * modules/unictype/bidiclass-name: Renamed from
12599         modules/unictype/bidiclass-name.
12600         (Description): Update.
12601         * modules/unictype/bidiclass-name-tests: Renamed from
12602         modules/unictype/bidicategory-name-tests.
12603         * modules/unictype/bidiclass-byname: Renamed from
12604         modules/unictype/bidicategory-byname.
12605         (Description): Update.
12606         * modules/unictype/bidiclass-byname-tests: Renamed from
12607         modules/unictype/bidicategory-byname-tests.
12608         * modules/unictype/bidiclass-of: Renamed from
12609         modules/unictype/bidicategory-of.
12610         (Description): Update.
12611         * modules/unictype/bidiclass-of-tests: Renamed from
12612         modules/unictype/bidicategory-of-tests.
12613         * modules/unictype/bidiclass-test: Renamed from
12614         modules/unictype/bidicategory-test.
12615         (Description): Update.
12616         * modules/unictype/bidiclass-test-tests: Renamed from
12617         modules/unictype/bidicategory-test-tests.
12618         * modules/unictype/bidicategory-all: New file, a simple redirection.
12619         * modules/unictype/bidicategory-name: Likewise.
12620         * modules/unictype/bidicategory-byname: Likewise.
12621         * modules/unictype/bidicategory-of: Likewise.
12622         * modules/unictype/bidicategory-test: Likewise.
12623         * modules/unictype/property-bidi-* (Dependencies): Update.
12624         * lib/unictype/bidi_*.c: Update comment.
12625
12626 2011-03-26  Bruno Haible  <bruno@clisp.org>
12627
12628         unictype/bidi*: Rename functions, part 2.
12629         * modules/unictype/bidicategory-name (configure.ac): Update required
12630         libunistring version.
12631         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12632
12633 2011-03-25  Bruno Haible  <bruno@clisp.org>
12634
12635         New module 'unictype/combining-class-all'.
12636         * modules/unictype/combining-class-all: New file.
12637
12638         Tests for module 'unictype/combining-class-byname'.
12639         * modules/unictype/combining-class-byname-tests: New file.
12640         * tests/unictype/test-combiningclass_byname.c: New file.
12641
12642         New module 'unictype/combining-class-byname'.
12643         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12644         * lib/unictype/combiningclass_byname.c: New file.
12645         * lib/unictype/combiningclass_byname.gperf: New file.
12646         * modules/unictype/combining-class-byname: New file.
12647
12648         Tests for module 'unictype/combining-class-longname'.
12649         * modules/unictype/combining-class-longname-tests: New file.
12650         * tests/unictype/test-combiningclass_longname.c: New file.
12651
12652         New module 'unictype/combining-class-longname'.
12653         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12654         * lib/unictype/combiningclass_longname.c: New file.
12655         * modules/unictype/combining-class-longname: New file.
12656
12657         Tests for module 'unictype/combining-class-name'.
12658         * modules/unictype/combining-class-name-tests: New file.
12659         * tests/unictype/test-combiningclass_name.c: New file.
12660
12661         New module 'unictype/combining-class-name'.
12662         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12663         * lib/unictype/combiningclass_name.c: New file.
12664         * modules/unictype/combining-class-name: New file.
12665
12666 2011-03-25  Bruno Haible  <bruno@clisp.org>
12667
12668         unictype/combining-class: Rename source files.
12669         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12670         of unictype/combining.h.
12671         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12672         Update.
12673         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12674         * modules/unictype/combining-class (Description): Fix.
12675         (Files, Makefile.am): Update.
12676         * tests/unictype/test-combiningclass.c: Renamed from
12677         tests/unictype/test-combining.c.
12678         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12679
12680 2011-03-25  Bruno Haible  <bruno@clisp.org>
12681
12682         unictype: Update list of canonical combining classes.
12683         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12684
12685 2011-03-25  Bruno Haible  <bruno@clisp.org>
12686
12687         unictype/category-byname: Recognize long names as well.
12688         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12689         a long name.
12690         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12691         unictype/categ_byname.h.
12692         (UC_CATEGORY_INDEX_*): New enumeration values.
12693         (uc_general_category_byname): Use uc_general_category_lookup and
12694         convert from index to value.
12695         * lib/unictype/categ_byname.gperf: New file.
12696         * modules/unictype/category-byname (Files): Add
12697         lib/unictype/categ_byname.gperf.
12698         (Depends-on): Add gperf.
12699         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12700         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12701         long names.
12702
12703         Tests for module 'unictype/category-longname'.
12704         * modules/unictype/category-longname-tests: New file.
12705         * tests/unictype/test-categ_longname.c: New file.
12706
12707         New module 'unictype/category-longname'.
12708         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12709         * lib/unictype/categ_longname.c: New file.
12710         * modules/unictype/category-longname: New file.
12711         * modules/unictype/category-all (Depends-on): Add it.
12712
12713 2011-03-25  Bruno Haible  <bruno@clisp.org>
12714
12715         Tests for module 'unictype/category-LC'.
12716         * modules/unictype/category-LC-tests: New file.
12717         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12718
12719         New module 'unictype/category-LC'.
12720         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12721         (UC_CATEGORY_LC): New declaration.
12722         (UC_CASED_LETTER): New macro.
12723         * lib/gen-uni-tables.c (is_category_LC): New function.
12724         (output_categories): Also handle category LC.
12725         (UC_CATEGORY_MASK_LC): New enumeration value.
12726         (general_category_byname): Also handle category LC.
12727         * lib/unictype/categ_LC.c: New file.
12728         * lib/unictype/categ_LC.h: New file, automatically generated.
12729         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12730         category LC.
12731         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12732         * modules/unictype/category-LC: New file.
12733         * modules/unictype/category-byname (Depends-on): Add
12734         unictype/category-LC.
12735         * modules/unictype/category-all (Depends-on): Likewise.
12736
12737 2011-03-25  Eric Blake  <eblake@redhat.com>
12738
12739         xmalloc: revert yesterday's regression
12740         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12741         realloc's underlying behavior (allowing allocation of zero-size
12742         objects, especially if malloc-gnu is also in use).
12743
12744 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12745
12746         maint.mk: add missing version to VC-tag
12747         * top/maint.mk: git tag was missing actual tag name; add it.
12748
12749         valgrind: do leak checking, and exit with code 1 on error (not 0)
12750         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12751         to VALGRIND.
12752
12753 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12754
12755         posix-modules: say what it does.
12756         * posix-modules: Add a line to the --help output saying what it does.
12757
12758 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12759
12760         xmalloc: Do not leak if underlying realloc is C99 compatible.
12761         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12762         This avoids a leak on C99-based systems.  See
12763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12764
12765 2011-03-24  Eric Blake  <eblake@redhat.com>
12766
12767         realloc: document portability problem
12768         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12769         passing 0 size to realloc.
12770
12771 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12772
12773         doc: update users.txt
12774         * users.txt: Add cvsps, tmpwatch
12775
12776 2011-03-23  Matt Rice  <ratmice@gmail.com>
12777
12778         doc: update users.txt
12779         * users.txt: Add gdb.
12780
12781 2011-03-23  Jim Meyering  <meyering@redhat.com>
12782
12783         doc: update users.txt
12784         Looking through matches up to the following URL (there are still
12785         several more pages), I found several projects that use gnulib:
12786         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12787         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12788         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12789
12790 2011-03-22  Bruno Haible  <bruno@clisp.org>
12791
12792         unictype/bidi*: Rename functions.
12793         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12794         uc_bidi_class, uc_is_bidi_class): New declarations.
12795         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12796         uc_bidi_category_byname.
12797         (uc_bidi_category_byname): New function.
12798         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12799         u_bidi_category_name.
12800         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12801         (uc_bidi_category_name): New function.
12802         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12803         uc_bidi_category.
12804         (uc_bidi_category): New function.
12805         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12806         uc_is_bidi_category. Invoke uc_bidi_class.
12807         (uc_is_bidi_category): New function.
12808         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12809         instead of uc_bidi_category_byname.
12810         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12811         instead of uc_bidi_category_name.
12812         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12813         uc_bidi_category.
12814         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12815         instead of uc_is_bidi_category.
12816
12817 2011-03-21  Bruno Haible  <bruno@clisp.org>
12818
12819         New module 'unictype/joininggroup-all'.
12820         * modules/unictype/joininggroup-all: New file.
12821
12822         Tests for module 'unictype/joininggroup-of'.
12823         * modules/unictype/joininggroup-of-tests: New file.
12824         * tests/unictype/test-joininggroup_of.c: New file.
12825         * tests/unictype/test-joininggroup_of.h: New file, automatically
12826         generated by gen-uni-tables.
12827
12828         New module 'unictype/joininggroup-of'.
12829         * modules/unictype/joininggroup-of: New file.
12830         * lib/unictype/joininggroup_of.c: New file.
12831         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12832         gen-uni-tables.
12833
12834         Tests for module 'unictype/joininggroup-byname'.
12835         * modules/unictype/joininggroup-byname-tests: New file.
12836         * tests/unictype/test-joininggroup_byname.c: New file.
12837
12838         New module 'unictype/joininggroup-byname'.
12839         * modules/unictype/joininggroup-byname: New file.
12840         * lib/unictype/joininggroup_byname.c: New file.
12841         * lib/unictype/joininggroup_byname.gperf: New file.
12842
12843         Tests for module 'unictype/joininggroup-name'.
12844         * modules/unictype/joininggroup-name-tests: New file.
12845         * tests/unictype/test-joininggroup_name.c: New file.
12846
12847         New module 'unictype/joininggroup-name'.
12848         * modules/unictype/joininggroup-name: New file.
12849         * lib/unictype/joininggroup_name.c: New file.
12850         * lib/unictype/joininggroup_name.h: New file.
12851
12852         New module 'unictype/joiningtype-all'.
12853         * modules/unictype/joiningtype-all: New file.
12854
12855         Tests for module 'unictype/joiningtype-of'.
12856         * modules/unictype/joiningtype-of-tests: New file.
12857         * tests/unictype/test-joiningtype_of.c: New file.
12858         * tests/unictype/test-joiningtype_of.h: New file, automatically
12859         generated by gen-uni-tables.
12860
12861         New module 'unictype/joiningtype-of'.
12862         * modules/unictype/joiningtype-of: New file.
12863         * lib/unictype/joiningtype_of.c: New file.
12864         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12865         gen-uni-tables.
12866
12867         Tests for module 'unictype/joiningtype-byname'.
12868         * modules/unictype/joiningtype-byname-tests: New file.
12869         * tests/unictype/test-joiningtype_byname.c: New file.
12870
12871         New module 'unictype/joiningtype-byname'.
12872         * modules/unictype/joiningtype-byname: New file.
12873         * lib/unictype/joiningtype_byname.c: New file.
12874
12875         Tests for module 'unictype/joiningtype-name'.
12876         * modules/unictype/joiningtype-name-tests: New file.
12877         * tests/unictype/test-joiningtype_name.c: New file.
12878
12879         New module 'unictype/joiningtype-name'.
12880         * modules/unictype/joiningtype-name: New file.
12881         * lib/unictype/joiningtype_name.c: New file.
12882
12883         unictype: Add support for Arabic shaping properties.
12884         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12885         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12886         declarations.
12887         (UC_JOINING_GROUP_*): New enumeration values.
12888         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12889         declarations.
12890         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12891         (unicode_joining_type): New variable.
12892         (UC_JOINING_GROUP_*): New enumeration values.
12893         (unicode_joining_group): New variable.
12894         (fill_arabicshaping, joining_type_as_c_identifier,
12895         output_joining_type_test, output_joining_type,
12896         joining_group_as_c_identifier, output_joining_group_test,
12897         output_joining_group): New functions.
12898         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12899         fill_arabicshaping and output_joining_type_test, output_joining_type,
12900         output_joining_group_test, output_joining_group.
12901         Reported by Simon Josefsson.
12902
12903 2011-03-21  Jim Meyering  <meyering@redhat.com>
12904
12905         strftime: fix a bug in yesterday's change
12906         * lib/strftime.c (add): Accommodate width's initial value of -1.
12907         Otherwise, nstrftime would copy uninitialized data into
12908         the result buffer.
12909
12910 2011-03-21  Jim Meyering  <meyering@redhat.com>
12911
12912         tests: add strftime-tests module
12913         * tests/test-strftime.c: New file.
12914         * modules/strftime-tests: New module.
12915
12916 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12917
12918         strftime: don't assume a byte count fits in 'int'
12919         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12920         found this problem by static analysis, using gcc -Wstrict-overflow
12921         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12922         on an integer overflow having undefined behavior, but it turns out
12923         that the argument is a size, which might not fit in 'int' anyway,
12924
12925 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12926
12927         stdio: don't require ignore_value around fwrite
12928
12929         This patch works around libc bug 11959
12930         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12931         Without this patch, applications must often write
12932         ignore_value (fwrite (...)) even though the ignore_value is
12933         not helpful here.  It's common to write many objects, using
12934         fwrite/printf/etc., and then use ferror to detect output error.
12935
12936         I considered making this patch optional, but decided against it,
12937         because libc is obviously being inconsistent here: there is no
12938         reason libc should insist that user code must inspect fwrite
12939         return's value without also insisting that it inspect printf's,
12940         putchar's, etc.  If user code wants to have a strict style where
12941         all these functions' values are checked (so that ferror need not
12942         be checked), we could add support for that style in a new gnulib
12943         module, but in the meantime it's better to be consistent and to
12944         support common usage.
12945
12946         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12947         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12948         that we are compiling in checking mode, and if not C++, and
12949         if not already wrapping fwrite for some other reason.
12950         (fwrite): #define to rpl_fwrite if the latter is defined.
12951
12952 2011-03-20  Bruno Haible  <bruno@clisp.org>
12953
12954         verror: Fix compilation error introduced on 2011-02-13.
12955         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12956         instead of __attribute__.
12957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12958
12959 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12960             Bruno Haible  <bruno@clisp.org>
12961
12962         socklen: do not depend on sys_socket
12963         While trying to modify Emacs to use gnulib's socklen module,
12964         I discovered a circular dependency: socklen depends on sys_socket
12965         and vice versa.  Emacs can use socklen, but it does not need
12966         sys_socket because it has its own substitute for sys/socket.h.
12967         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12968         gl_TYPE_SOCKLEN_T.
12969         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12970         gl_PREREQ_SYS_H_SOCKET.
12971         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12972         gl_PREREQ_SYS_H_SOCKET.
12973         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12974         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12975         * modules/socklen (Depends-on): Do not depend on sys_socket.
12976         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12977
12978 2011-03-20  Jim Meyering  <meyering@redhat.com>
12979
12980         maint.mk: sort file names *after* new transformation
12981         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12982         prefix would have led to an unwarranted failure in GNU parted.
12983         Sort after that transformation.
12984
12985 2011-03-19  Jim Meyering  <meyering@redhat.com>
12986
12987         maint.mk: fix po-file syntax-check rule
12988         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12989         Patch by Bruno Haible.
12990
12991 2011-03-19  Bruno Haible  <bruno@clisp.org>
12992
12993         socklen: Update comment.
12994         * m4/socklen.m4: Update comment about platforms.
12995
12996 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12997             Bruno Haible  <bruno@clisp.org>
12998
12999         inet_ntop, inet_pton: Simplify.
13000         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13001         documented to provide socklen_t and we already depend on sys_socket.
13002         * modules/inet_pton (Depends-on): Likewise.
13003         * lib/arpa_inet.in.h: Adjust comment.
13004
13005 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13006             Bruno Haible  <bruno@clisp.org>
13007
13008         netdb: Simplify.
13009         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13010         documented to provide socklen_t and we already depend on sys_socket.
13011         * lib/netdb.in.h: Adjust comment.
13012
13013 2011-03-19  Bruno Haible  <bruno@clisp.org>
13014
13015         sys_socket, netdb: Document problem with socklen_t.
13016         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13017         platforms.
13018         * doc/posix-headers/netdb.texi: Likewise.
13019
13020 2011-03-18  Eric Blake  <eblake@redhat.com>
13021
13022         maint.mk: let po check work in VPATH build
13023         * top/maint.mk (po_file): Allow cfg.mk override.
13024         (sc_po_check): Allow VPATH use.
13025         Reported by Jiri Denemark.
13026
13027 2011-03-16  Jim Meyering  <meyering@redhat.com>
13028
13029         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13030         Before, you would have had to create one .x-sc_ file per rule in order
13031         to exempt offending files.  Now, you may instead use a Make variable --
13032         usually defined in cfg.mk -- whose name identifies the affected rule.
13033         * top/maint.mk (_sc_excl): Define.
13034         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13035         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13036
13037 2011-03-13  Bruno Haible  <bruno@clisp.org>
13038
13039         ignore-value tests: Avoid warnings.
13040         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13041         empty for gcc < 3.4.
13042
13043 2011-03-13  Bruno Haible  <bruno@clisp.org>
13044
13045         passfd: Fix link error on Solaris.
13046         * modules/passfd (Description): Correct.
13047         (Depends-on): Add socketlib.
13048         (Link): New section.
13049         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13050
13051 2011-03-13  Bruno Haible  <bruno@clisp.org>
13052
13053         passfd: Fix link error on AIX 5.2.
13054         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13055
13056 2011-03-13  Bruno Haible  <bruno@clisp.org>
13057
13058         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13059         * lib/sys_socket.in.h: Include <stddef.h>.
13060         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13061         CMSG_FIRSTHDR. Remove unused variable.
13062
13063 2011-03-13  Bruno Haible  <bruno@clisp.org>
13064
13065         passfd: Fix compilation error on OpenBSD.
13066         * lib/passfd.c: Include <sys/uio.h>.
13067
13068 2011-03-13  Bruno Haible  <bruno@clisp.org>
13069
13070         passfd test: Fix warnings.
13071         * tests/test-passfd.c: Include <sys/wait.h>.
13072         (main): Fix typo.
13073
13074 2011-03-13  Bruno Haible  <bruno@clisp.org>
13075
13076         passfd module, part 4, tweaks.
13077         * tests/test-passfd.c: Reorder includes.
13078         (main): Fix perror and printf calls.
13079
13080 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13081
13082         passfd module, part 4.
13083         * modules/passfd-tests: New file.
13084         * tests/test-passfd.c: New file.
13085
13086 2011-03-13  Jim Meyering  <meyering@redhat.com>
13087
13088         Makefile: rely on GNU make; derive syntax-check rule names
13089         Rather than requiring that each sc_ rule be listed as a dependent
13090         of "check", use features of GNU make to derive the list.
13091         * Makefile (syntax-check-rules): Define.
13092         (check): Depend on the new variable, not the hard-coded list.
13093
13094 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13095             Bruno Haible  <bruno@clisp.org>
13096
13097         passfd module, part 3.
13098         * lib/passfd.h (recvfd): Add a flags argument.
13099         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13100         (recvfd): Add a flags argument.
13101         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13102         exists.
13103         * modules/passfd (Depends-on): Add cloexec.
13104         Suggested by Eric Blake.
13105
13106 2011-03-13  Bruno Haible  <bruno@clisp.org>
13107
13108         passfd module, part 2, tweaks.
13109         * modules/passfd (Files): Reorder.
13110         (Depends-on): Remove errno.
13111         (Include): Remove <sys/socket.h>, <sys/un.h>.
13112         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13113         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13114         specification header. Include <sys/socket.h> always. Don't include
13115         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13116         (sendfd): Clarify that it sets errno when it fails.
13117         (recvfd): Fix specification.
13118
13119 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13120
13121         passfd module, part 2.
13122         * modules/passfd: New file.
13123         * lib/passfd.h: New file.
13124         * lib/passfd.c: New file.
13125
13126 2011-03-12  Bruno Haible  <bruno@clisp.org>
13127
13128         wcswidth, mbswidth: Avoid integer overflow.
13129         * lib/wcswidth.c: Include <limits.h>.
13130         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13131         * lib/mbswidth.c: Include <limits.h>.
13132         (mbsnwidth): Avoid 'int' overflow.
13133         Reported by Jim Meyering.
13134
13135 2011-03-12  Bruno Haible  <bruno@clisp.org>
13136
13137         futimens, utimensat: Avoid endless recursion on Solaris 10.
13138         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13139         Solaris.
13140         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13141         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13142
13143 2011-03-11  Jim Meyering  <meyering@redhat.com>
13144
13145         maint.mk: relax a regexp to accommodate other formatting styles
13146         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13147         between "ngettext" and the following "(".
13148
13149 2011-03-11  Pádraig Brady <P@draigBrady.com>
13150
13151         maint.mk: suppress a false positive warning
13152         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13153         diagnostics are marked with ngettext.
13154
13155 2011-03-10  Eric Blake  <eblake@redhat.com>
13156
13157         wchar: add explicit dependencies, for Tru64
13158         * modules/mbmemcasecoll (Depends-on): Add wchar.
13159         * modules/mbtowc (Depends-on): Likewise.
13160         * modules/vasnprintf (Depends-on): Likewise.
13161         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13162         * modules/wctomb (Depends-on): Likewise.
13163         Reported by Peter O'Gorman.
13164
13165 2011-03-08  Bruno Haible  <bruno@clisp.org>
13166
13167         passfd module, part 1, tweaks.
13168         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13169         Improve indentation. Improve AC_MSG_CHECKING messages.
13170         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13171         gl_SOCKET_FAMILIES.
13172
13173 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13174
13175         passfd module, part 1.
13176         * m4/afunix.m4: New file.
13177         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13178         sockets.
13179
13180 2011-03-08  Bruno Haible  <bruno@clisp.org>
13181
13182         regex-quote: New API.
13183         * lib/regex-quote.h: Include <stdbool.h>.
13184         (struct regex_quote_spec): New type.
13185         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13186         New declarations.
13187         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13188         'const struct regex_quote_spec *' argument.
13189         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13190         (pcre_special): New constant.
13191         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13192         New functions.
13193         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13194         'const struct regex_quote_spec *' argument.
13195         * modules/regex-quote (Depends-on): Add stdbool.
13196         * tests/test-regex-quote.c (check): Update for new API. Add test for
13197         anchored results.
13198         * NEWS: Mention the API change.
13199         Reported by Reuben Thomas and Eric Blake.
13200
13201 2011-03-06  Bruno Haible  <bruno@clisp.org>
13202
13203         regex-quote: Fix creation of POSIX extended regular expressions.
13204         * lib/regex-quote.c (ere_special): Add grouping and alternation
13205         operators.
13206
13207 2011-03-05  Bruno Haible  <bruno@clisp.org>
13208
13209         doc: Improve doc regarding autopoint vs. gnulib.
13210         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13211         disable autopoint while running autoreconf.
13212         Suggested by Ralf Wildenhues.
13213
13214 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13215
13216         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13217         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13218
13219 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13220
13221         parse-duration: remove xalloc.h dependency
13222         * lib/parse-duration.c (parse_period): handle NULL return from
13223         strdup instead of calling xstrdup().
13224         * modules/parse-duration: remove "xalloc" dependency
13225
13226 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13227
13228         bootstrap: honor m4_base when running aclocal
13229         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13230
13231 2011-03-02  Jim Meyering  <meyering@redhat.com>
13232
13233         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13234         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13235         on request from Matt Booth.
13236
13237 2011-03-01  Eric Blake  <eblake@redhat.com>
13238
13239         test-link: work on Hurd
13240         * tests/test-link.h (test_link): Hurd rejects linking directories
13241         with EISDIR instead of the POSIX-mandated EPERM.
13242
13243 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13244
13245         stdio: simplify by moving files to printf-posix, sigpipe
13246         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13247         since this symbol is needed only if printf is replaced.
13248         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13249         Require gl_ASM_SYMBOL_PREFIX.
13250         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13251         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13252         (Depends-on): Add 'raise'.
13253         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13254         * modules/stdio (Files): Remove lib/stdio-write.c,
13255         m4/asm-underscore.m4.
13256         (Depends-on): Remove 'raise'.
13257
13258         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13259         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13260         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13261         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13262
13263 2011-02-28  Bruno Haible  <bruno@clisp.org>
13264
13265         localcharset: Assume ANSI C behaviour of free().
13266         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13267         calling free().
13268         Suggested by Simon Josefsson <simon@josefsson.org>.
13269
13270 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13271             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13272             Bruno Haible  <bruno@clisp.org>  (tiny change)
13273
13274         On Cygwin, use /proc file system instead of win32 API.
13275         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13276         Win32 file names.
13277         (DllMain): Simplify by removing Cygwin specific code.
13278         (find_shared_library_fullname): Use Linux specific implementation also
13279         for Cygwin.
13280         (get_shared_library_fullname): Update accordingly.
13281         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13282         Win32 file names.
13283         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13284         Cygwin specific code.
13285
13286 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13287             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13288
13289         Fix OpenMP flag detection for various Fortran compilers.
13290         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13291         OpenMP-conditional compilation construct, to force compile
13292         failure with missing OpenMP flag.
13293         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13294
13295 2011-02-25  Eric Blake  <eblake@redhat.com>
13296
13297         strstr: expand test coverage
13298         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13299         compilation.
13300         * tests/test-memmem.c (main): Duplicate tests.
13301         * tests/test-strcasestr.c (main): Likewise.
13302         * tests/test-c-strcasestr.c (main): Likewise.
13303
13304 2011-02-25  Jim Meyering  <meyering@redhat.com>
13305
13306         maint.mk: detect missing-NL-at-EOF, too
13307         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13308         it also detects when a file lacks a newline at EOF.
13309         (require_exactly_one_NL_at_EOF_): Renamed from
13310         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13311         since people may well have .x-sc_... file names tied to the
13312         existing name.  Suggested by Eric Blake.
13313
13314 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13315
13316         dirname: move m4/dos.m4 functionality into lib/dosname.h
13317
13318         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13319         extracts symbols from it, puts them into config.h; but it's much
13320         easier to use the symbols directly.  filename.h already does this,
13321         but it disagrees with dos.m4 in some respects.  This patch
13322         introduces a different include file dosname.h that packages up
13323         dos.m4, and then later we can work on merging filename.h and
13324         dosname.h.  Applications that need only the easy-to-configure
13325         symbols should consider including dosname.h rather than dirname.h.
13326         * NEWS: Mention incompatible changes.
13327         * m4/dos.m4: Remove.
13328         * lib/dosname.h, modules/dosname: New files.
13329         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13330         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13331         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13332         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13333         Include dosname.h, not dirname.h.
13334         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13335         Include dosname.h, for definitions of symbols like ISSLASH
13336         that used to be in config.h.
13337         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13339         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13340         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13341         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13342         * modules/rmdir (Files): Likewise.
13343         * modules/stat (Files): Likewise.
13344         * modules/unlink (Files): Likewise.
13345         * modules/dirname-lgpl (Depends-on): Add dosname.
13346         * modules/lstat (Depends-on): Likewise.
13347         * modules/openat (Depends-on): Likewise.
13348         * modules/rmdir (Depends-on): Likewise.
13349         * modules/savewd (Depends-on): Likewise.
13350         * modules/stat (Depends-on): Likewise.
13351         * modules/unlink (Depends-on): Likewise.
13352         * modules/openat (Depends-on): Remove dirname-lgpl.
13353         * modules/savewd (Depends-on): Likewise.
13354         * tests/test-dirname.c: Do not use removed symbols like
13355         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13356         the remaining symbols, e.g., ISSLASH ('\\').
13357
13358 2011-02-25  Eric Blake  <eblake@redhat.com>
13359
13360         strstr: revert patches that introduced bug and pessimization
13361         * lib/str-two-way.h: Add another reference.
13362         (two_way_short_needle, two_way_long_needle): Revert changes from
13363         2011-02-24; they pessimize search speed.
13364         (critical_factorization): Partially revert changes from
13365         2010-06-22; they violate the requirement that the left half of the
13366         needle be smaller than the period of the needle.
13367
13368 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13369
13370         filenamecat: remove unnecessary dependency on dirname-lgpl
13371         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13372         is no direct dependency, just an indirect one via filenamecat-lgpl.
13373
13374         remove: remove unnecessary use of m4/dos.m4
13375         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13376         * modules/remove (FILES): Remove m4/dos.m4.
13377
13378         * lib/openat-proc.c: Don't include dirname.h; not needed.
13379
13380         backupfile: remove unnecessary use of m4/dos.m4
13381         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13382         of its symbols are used by the backupfile code.  backupfile.c does
13383         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13384         for the rare case of programs that want all their backup file
13385         names to live within 8+3 limits, and dos.m4 doesn't address that.
13386         * modules/backupfile (Files): Remove m4/dos.m4.
13387
13388 2011-02-24  Jim Meyering  <meyering@redhat.com>
13389
13390         strstr: fix a bug whereby strstr would mistakenly return NULL
13391         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13392         in period calculation.
13393         (two_way_long_needle): Likewise.
13394         The original problem was reported by Mike Stump in
13395         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13396         Ralf Wildenhues provided the short needle and haystack.
13397         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13398         Add a more involved test to trigger the bug in two_way_long_needle.
13399
13400 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13401
13402         gnulib-tool: remove use of bold display in help screen
13403         * gnulib-tool (func_usage): Do not use bold display anymore in the
13404         help screen.  That was just meant to be a temporary emphasis for a
13405         backward-incompatible change.
13406
13407 2011-02-23  Bruno Haible  <bruno@clisp.org>
13408
13409         Fix misindentation of preprocessor directives.
13410         * lib/argp-namefrob.h: Reindent preprocessor directives.
13411         * lib/getopt_int.h (struct _getopt_data): Likewise.
13412         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13413         * lib/vasnprintf.c (decode_long_double): Likewise.
13414         * tests/test-argmatch.c: Insert blank lines, for clarity.
13415         * tests/test-exclude.c: Likewise.
13416
13417 2011-02-22  Bruno Haible  <bruno@clisp.org>
13418
13419         ioctl: Fix for MacOS X in 64-bit mode.
13420         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13421         value.
13422         Suggested by Eric Blake.
13423         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13424
13425 2011-02-22  Jim Meyering  <meyering@redhat.com>
13426
13427         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13428         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13429         in lib/.
13430
13431 2011-02-22  Eric Blake  <eblake@redhat.com>
13432
13433         maint: avoid any CDPATH issue
13434         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13435
13436         maint: adjust cpp indentation for my modules, as well
13437         * Makefile (sc_cpp_indent_check): Add my name.
13438         * lib/fbufmode.c: Filter through cppi.
13439         * lib/fpurge.c: Likewise.
13440         * lib/freadable.c: Likewise.
13441         * lib/freading.c: Likewise.
13442         * lib/fwritable.c: Likewise.
13443         * lib/fwriting.c: Likewise.
13444         * lib/sigaction.c: Likewise.
13445
13446 2011-02-22  Jim Meyering  <meyering@redhat.com>
13447
13448         maint: adjust cpp indentation to reflect nesting depth
13449         I.e., in a block of code that begins with an unnested "#if",
13450         put one space between the "#" in column 1 and following token.
13451         For example,
13452         -#include <sys/vfs.h>
13453         +# include <sys/vfs.h>
13454         Do this only in .c files that are part of a module I maintain.
13455         * lib/linkat.c: Filter through cppi.
13456         * lib/nanosleep.c: Likewise.
13457         * lib/openat.c: Likewise.
13458         * lib/openat-die.c: Likewise.
13459         * lib/dup3.c: Likewise.
13460         * lib/fchownat.c: Likewise.
13461         * lib/flock.c: Likewise.
13462         * lib/fsync.c: Likewise.
13463         * lib/fts.c: Likewise.
13464         * lib/getpass.c: Likewise.
13465         * lib/gettimeofday.c: Likewise.
13466         * lib/userspec.c: Likewise.
13467         * Makefile (sc_cpp_indent_check): New rule, to check this.
13468
13469 2011-02-22  Bruno Haible  <bruno@clisp.org>
13470
13471         New module 'wctomb'.
13472         * lib/stdlib.in.h (wctomb): New declaration.
13473         * lib/wctomb.c: New file.
13474         * lib/wctomb-impl.h: New file.
13475         * m4/wctomb.m4: New file.
13476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13477         REPLACE_WCTOMB.
13478         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13479         REPLACE_WCTOMB.
13480         * modules/wctomb: New file.
13481         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13482         * doc/posix-functions/wctomb.texi: Mention the new module.
13483         * modules/wctob (Depends-on): Add wctomb.
13484
13485 2011-02-22  Bruno Haible  <bruno@clisp.org>
13486
13487         New module 'mbtowc'.
13488         * lib/stdlib.in.h (mbtowc): New declaration.
13489         * lib/mbtowc.c: New file.
13490         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13491         * m4/mbtowc.m4: New file.
13492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13493         REPLACE_MBTOWC.
13494         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13495         REPLACE_MBTOWC.
13496         * modules/mbtowc: New file.
13497         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13498         * doc/posix-functions/mbtowc.texi: Mention the new module.
13499         * modules/btowc (Depends-on): Add mbtowc.
13500
13501 2011-02-22  Bruno Haible  <bruno@clisp.org>
13502
13503         wcrtomb: Add more tests for native Windows platforms.
13504         * tests/test-wcrtomb-w32-1.sh: New file.
13505         * tests/test-wcrtomb-w32-2.sh: New file.
13506         * tests/test-wcrtomb-w32-3.sh: New file.
13507         * tests/test-wcrtomb-w32-4.sh: New file.
13508         * tests/test-wcrtomb-w32-5.sh: New file.
13509         * tests/test-wcrtomb-w32.c: New file.
13510         * modules/wcrtomb-tests (Files): Add them.
13511         (Makefile.am): Arrange to run these tests.
13512         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13513         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13514
13515 2011-02-20  Bruno Haible  <bruno@clisp.org>
13516
13517         wcrtomb: Enhance test.
13518         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13519
13520 2011-02-20  Bruno Haible  <bruno@clisp.org>
13521
13522         mbrtowc: Tiny optimization.
13523         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13524
13525 2011-02-20  Jim Meyering  <meyering@redhat.com>
13526
13527         test-exclude.c: remove unmatched #endif
13528         * tests/test-exclude.c: Remove stray #endif, left over from
13529         the change of a week ago.
13530
13531 2011-02-19  Jim Meyering  <meyering@redhat.com>
13532
13533         git-version-gen: skip "-dirty" check when appropriate
13534         * build-aux/git-version-gen: Don't run any git commands when the
13535         version string comes from .tarball-version.  Prior to this, we
13536         would run git update-index --refresh even from a just-unpacked
13537         tarball directory, and that could affect a .git/ directory in a
13538         parent of the build directory.  Reported by Mike Frysinger.
13539
13540 2011-02-19  Bruno Haible  <bruno@clisp.org>
13541
13542         unictype/property-byname: Reduce the size of the 'data' segment.
13543         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13544
13545 2011-02-19  Bruno Haible  <bruno@clisp.org>
13546
13547         unictype/scripts: Reduce the size of the 'data' segment.
13548         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13549         '%pic'.
13550         * lib/unictype/scripts_byname.gperf: Regenerated.
13551
13552 2011-02-19  Bruno Haible  <bruno@clisp.org>
13553
13554         stdint: Update documentation.
13555         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13556
13557 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13558
13559         stdint: omit redundant check for wchar.h
13560         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13561         always tests whether wchar.h exists, so remove the now-redundant test.
13562
13563 2011-02-18  Bruno Haible  <bruno@clisp.org>
13564
13565         stdint: Cut dependency to module 'wchar'.
13566         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13567         include the necessary prerequisites.
13568         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13569         * modules/stdint (Depends-on): Remove wchar.
13570         (Makefile.am): Substitute HAVE_WCHAR_H.
13571         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13572
13573 2011-02-18  Eric Blake  <eblake@redhat.com>
13574
13575         longlong: skip, rather than fail, on cross-compilation
13576         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13577         when cross-compiling; regression from 2011-02-16.
13578
13579 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13580
13581         * NEWS: Mention 2011-02-08 change to stdlib.
13582
13583 2011-02-17  Bruno Haible  <bruno@clisp.org>
13584
13585         getloadavg: Add comments about platforms.
13586         * m4/getloadavg.m4: Add comment.
13587         * lib/getloadavg.c: Likewise.
13588
13589 2011-02-17  Bruno Haible  <bruno@clisp.org>
13590
13591         getloadavg: Fix link error on Solaris 2.6.
13592         * modules/getloadavg (Link): New section.
13593         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13594         linking test-getloadavg.
13595         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13596         getloadavg.
13597
13598 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13599
13600         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13601         It was 'int', but this doesn't match the IRIX 6.5 manual.
13602         Suggested by Bruno Haible in
13603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13604
13605 2011-02-17  Bruno Haible  <bruno@clisp.org>
13606
13607         havelib: Fix comments.
13608         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13609         change.
13610
13611 2011-02-17  Bruno Haible  <bruno@clisp.org>
13612
13613         havelib: Update config.rpath.
13614         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13615
13616 2011-02-17  Bruno Haible  <bruno@clisp.org>
13617
13618         getloadavg test: Add some plausibility checks.
13619         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13620         is improbable.
13621
13622 2011-02-16  Eric Blake  <eblake@redhat.com>
13623
13624         maintainer-makefile: make syntax-check a no-op from tarballs
13625         * top/maint.mk (no-vc-detected): New rule.
13626         (local-checks-available): Use it to avoid hanging if someone tries
13627         'make syntax-check' from a tarball.  Also append to any non-syntax
13628         checks already defined in cfg.mk.
13629
13630 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13631
13632         longlong: tune, particularly for common case of c99
13633
13634         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13635         or running anything if c99, or if unsigned long long int does not
13636         work.  In either case, we know the answer without further tests.
13637         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13638         it at most once, and use its results for both long long int and
13639         unsigned long long int.  This is more likely to be efficient in
13640         the common case where the program wants to check for both long
13641         long int and unsigned long long int.
13642         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13643         since the answer is already known.
13644
13645 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13646
13647         getloadavg: set errno
13648         * lib/getloadavg.c: Set errno when returning -1.  If no other
13649         error number looks appropriate, set it to ENOSYS if the getloadavg
13650         looks like it can't possibly ever work, ENOTSUP otherwise.
13651         Suggested by Bruno Haible in
13652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13653
13654         getloadavg: trim unused parts and speed up 'configure'
13655         * NEWS: Document this.
13656         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13657         always compiled if getloadavg is absent.
13658         Move test code to ...
13659         * tests/test-getloadavg.c: New file, containing previous
13660         contents of test from lib/getloadavg.c.  It also contains
13661         suggestions by Bruno Haible in
13662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13663         * modules/getloadavg-tests: New file.
13664         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13665         Do tests in the same order as they're needed for getloadavg.c.
13666         Omit setgid-related tests that generate symbols KMEM_GROUP,
13667         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13668         Do only the tests that are needed to see whether the system has
13669         getloadavg, moving the other tests into ...
13670         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13671         NLIST_NAME_UNION; nobody should be using it.  Do not define
13672         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13673         relevant, as the user of this module shouldn't care how getloadavg
13674         is implemented.
13675
13676         getloadavg: omit unused var
13677         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13678
13679 2011-02-15  Jim Meyering  <meyering@redhat.com>
13680
13681         doc: update users.txt
13682         * users.txt: Update iwhd's URL.
13683
13684 2011-02-13  Bruno Haible  <bruno@clisp.org>
13685
13686         Consistent macro naming for macros that use GCC __attribute__.
13687         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13688         _ATTRIBUTE_NONNULL_.
13689         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13690         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13691         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13692         ATTRIBUTE_DEPRECATED.
13693         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13694         ATTRIBUTE_NORETURN.
13695         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13696         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13697         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13698         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13699         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13700         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13701         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13702         ATTRIBUTE_SENTINEL.
13703         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13704         ATTRIBUTE_RETURN_CHECK.
13705         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13706         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13707         ATTRIBUTE_NORETURN.
13708         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13709         Reported by Paul Eggert.
13710
13711 2011-02-13  Bruno Haible  <bruno@clisp.org>
13712
13713         Don't interfere with a program's definition of __attribute__.
13714         * lib/argp.h (__attribute__): Remove definition.
13715         (_GL_ATTRIBUTE_FORMAT): New macro.
13716         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13717         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13718         (_GL_ATTRIBUTE_FORMAT): New macro.
13719         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13720         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13721         GCC 3 or newer.
13722         * lib/error.h (__attribute__): Remove definition.
13723         (_GL_ATTRIBUTE_FORMAT): New macro.
13724         (error, error_at_line): Use it.
13725         * lib/hash.h (__attribute__): Remove definition.
13726         (ATTRIBUTE_WUR): Update definition. Define always.
13727         * lib/openat.h (__attribute__): Remove definition.
13728         (ATTRIBUTE_NORETURN): Update definition. Define always.
13729         * lib/sigpipe-die.h (__attribute__): Remove definition.
13730         (ATTRIBUTE_NORETURN): Update definition. Define always.
13731         * lib/vasnprintf.h (__attribute__): Remove definition.
13732         (_GL_ATTRIBUTE_FORMAT): New macro.
13733         (asnprintf, vasnprintf): Use it.
13734         * lib/xalloc.h (__attribute__): Remove definition.
13735         (ATTRIBUTE_NORETURN): Update definition. Define always.
13736         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13737         * lib/xmemdup0.h (__attribute__): Remove definition.
13738         (ATTRIBUTE_NORETURN): Update definition. Define always.
13739         * lib/xprintf.h (__attribute__): Remove definition.
13740         (_GL_ATTRIBUTE_FORMAT): New macro.
13741         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13742         * lib/xstrtol.h (__attribute__): Remove definition.
13743         (ATTRIBUTE_NORETURN): Update definition. Define always.
13744         * lib/xvasprintf.h (__attribute__): Remove definition.
13745         (_GL_ATTRIBUTE_FORMAT): New macro.
13746         (xasprintf, xvasprintf): Use it.
13747         * tests/test-argmatch.c (__attribute__): Remove definition.
13748         (ATTRIBUTE_NORETURN): Update definition. Define always.
13749         * tests/test-exclude.c (__attribute__): Remove definition.
13750         (ATTRIBUTE_NORETURN): Update definition. Define always.
13751         Reported by Paul Eggert.
13752
13753 2011-02-13  Bruno Haible  <bruno@clisp.org>
13754
13755         mbrtowc: Add more tests for native Windows platforms.
13756         * tests/test-mbrtowc-w32-1.sh: New file.
13757         * tests/test-mbrtowc-w32-2.sh: New file.
13758         * tests/test-mbrtowc-w32-3.sh: New file.
13759         * tests/test-mbrtowc-w32-4.sh: New file.
13760         * tests/test-mbrtowc-w32-5.sh: New file.
13761         * tests/test-mbrtowc-w32.c: New file.
13762         * modules/mbrtowc-tests (Files): Add them.
13763         (Makefile.am): Arrange to run these tests.
13764         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13765         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13766
13767 2011-02-13  Bruno Haible  <bruno@clisp.org>
13768
13769         mbrtowc: Work around native Windows bug.
13770         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13771         guess when no suitable locale for testing was found.
13772         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13773
13774 2011-02-13  Bruno Haible  <bruno@clisp.org>
13775
13776         mbsinit: Work around mingw bug.
13777         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13778         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13779         Windows.
13780         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13781
13782 2011-02-13  Bruno Haible  <bruno@clisp.org>
13783
13784         mbsinit: Don't crash for a NULL argument.
13785         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13786         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13787
13788 2011-02-13  Bruno Haible  <bruno@clisp.org>
13789
13790         Don't interfere with a program's definition of __attribute__.
13791         * lib/stdio.in.h (__attribute__): Remove definition.
13792         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13793         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13794         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13795         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13796         * lib/string.in.h (__attribute__): Remove definition.
13797         Reported by Paul Eggert.
13798
13799 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         stdlib: don't get in the way of non-GCC __attribute__
13802         See thread starting at
13803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13804         Revert previous stdlib change, installing the following instead:
13805         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13806         to get in the way of a non-GCC compiler that supports __attribute__.
13807         (_GL_ATTRIBUTE_RETURN): New macro.
13808         (_Exit): Use it instead of __attribute__.
13809
13810 2011-02-12  Bruno Haible  <bruno@clisp.org>
13811
13812         quotearg test: Avoid test failure on mingw.
13813         * tests/test-quotearg.sh: Convert the locale identifier from native
13814         Windows syntax to Unix syntax.
13815
13816 2011-02-12  Bruno Haible  <bruno@clisp.org>
13817
13818         setlocale: Prefer gnulib's override over libintl's override.
13819         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13820         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13821         GNULIB_defined_setlocale is set.
13822
13823 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13824
13825         stdlib: support non-GCC __attribute__
13826
13827         Fix a serious and tricky problem encountered when attempting to
13828         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13829         5.5, but it crashed due to memory corruption on Solaris 10 with
13830         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13831         bits that are otherwise zero.  This tagging is optional inside
13832         Emacs but is preferred and is used when __attribute__ ((__aligned
13833         (8))) works, as it does with both recent-enough GCC and with Sun C
13834         5.11.  However, Sun C 5.11 is not GCC and does not #define
13835         __GNUC__ and __GNUC_MINOR__.
13836
13837         When I added the getloadavg module to Emacs, it brought in
13838         stdlib.in.h, which contained this fragment:
13839
13840            #ifndef __attribute__
13841            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13842            #  define __attribute__(Spec)   /* empty */
13843            # endif
13844            #endif
13845
13846         When files that include <stdlib.h> were compiled with Sun C 5.11,
13847         the above code disabled __attribute__ ((__aligned (8))), which
13848         caused variables to not be properly aligned, which eventually led
13849         to the pointer corruption mentioned above.  (This was a bit hard
13850         to diagnose, unfortunately.)
13851
13852         Several "#define __attribute__(X) /* empty */" code snippets need
13853         to be eradicated from Gnulib to work with non-GCC compilers that
13854         support __attribute__.  The Autoconf way to do this is to test for
13855         each kind of attribute that we want support for, and selectively
13856         enable that in source code.
13857
13858         Fix this problem just for stdlib.h, by adding a test for the
13859         __noreturn__ attribute, and change stdlib.in.h to use that test
13860         when needed.  This technique can be easily generalized to the
13861         other *.in.h files and attributes, and a similar technique can be
13862         used for *.h and *.c files.  This patch is enough to solve the
13863         problem for Emacs + getloadavg, and I thought I'd publish it for
13864         feedback before undertaking further, similar fixes in other
13865         modules.
13866
13867         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13868         because it's not needed for stdlib.h.  It merely substitutes the
13869         value directly into stdlib.h.  We may well need to #define it, or
13870         similar symbols, for other modules, but it's nice to also have an
13871         option to not #define it for applications like Emacs that do not
13872         need it.
13873
13874         * lib/stdlib.in.h (__attribute__): Do not #define.
13875         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13876         be defined only if the _Exit module is also used.
13877         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13879         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13880         platforms.
13881         * modules/_Exit (Files): Add m4/attribute.m4.
13882         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13883         * m4/attribute.m4: New file.
13884
13885 2011-02-12  Bruno Haible  <bruno@clisp.org>
13886
13887         wcsrtombs: Work around bug on native Windows.
13888         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13889         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13890         instead of len.
13891         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13892
13893 2011-02-12  Bruno Haible  <bruno@clisp.org>
13894
13895         mbsrtowcs: Work around bug on native Windows.
13896         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13897         against mingw bug.
13898         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13899
13900 2011-02-12  Bruno Haible  <bruno@clisp.org>
13901
13902         Avoid setlocale bugs in tests.
13903         * modules/btowc (Dependencies): Add setlocale.
13904         * modules/c-strcase (Dependencies): Likewise.
13905         * modules/mbmemcasecmp (Dependencies): Likewise.
13906         * modules/mbmemcasecoll (Dependencies): Likewise.
13907         * modules/mbrtowc (Dependencies): Likewise.
13908         * modules/mbscasecmp (Dependencies): Likewise.
13909         * modules/mbscasestr (Dependencies): Likewise.
13910         * modules/mbschr (Dependencies): Likewise.
13911         * modules/mbscspn (Dependencies): Likewise.
13912         * modules/mbsinit (Dependencies): Likewise.
13913         * modules/mbsncasecmp (Dependencies): Likewise.
13914         * modules/mbsnrtowcs (Dependencies): Likewise.
13915         * modules/mbspbrk (Dependencies): Likewise.
13916         * modules/mbspcasecmp (Dependencies): Likewise.
13917         * modules/mbsrchr (Dependencies): Likewise.
13918         * modules/mbsrtowcs (Dependencies): Likewise.
13919         * modules/mbsspn (Dependencies): Likewise.
13920         * modules/mbsstr (Dependencies): Likewise.
13921         * modules/nl_langinfo (Dependencies): Likewise.
13922         * modules/quotearg (Dependencies): Likewise.
13923         * modules/unicase/locale-language (Dependencies): Likewise.
13924         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13925         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13926         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13927         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13928         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13929         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13930         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13931         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13932         * modules/vasnprintf-posix (Dependencies): Likewise.
13933         * modules/wcrtomb (Dependencies): Likewise.
13934         * modules/wcsnrtombs (Dependencies): Likewise.
13935         * modules/wcsrtombs (Dependencies): Likewise.
13936
13937 2011-02-12  Bruno Haible  <bruno@clisp.org>
13938
13939         setlocale: Workaround native Windows bug.
13940         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13941         succeeds but sets LC_CTYPE to "C", report a failure.
13942         * tests/test-setlocale2.sh: New file.
13943         * tests/test-setlocale2.c: New file.
13944         * modules/setlocale-tests (Files): Add the new files.
13945         (Makefile.am): Enable test-setlocale2.sh test.
13946         * doc/posix-functions/setlocale.texi: Mention workaround.
13947
13948 2011-02-11  Bruno Haible  <bruno@clisp.org>
13949
13950         Tests for module 'setlocale'.
13951         * modules/setlocale-tests: New file.
13952         * tests/test-setlocale1.sh: New file.
13953         * tests/test-setlocale1.c: New file.
13954
13955         New module 'setlocale'.
13956         * lib/locale.in.h (setlocale): New declaration.
13957         * lib/setlocale.c: New file, based on
13958         gettext/gettext-runtime/intl/setlocale.c.
13959         * m4/setlocale.m4: New file.
13960         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13961         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13962         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13963         REPLACE_SETLOCALE.
13964         * modules/setlocale: New file.
13965         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13966         * doc/posix-functions/setlocale.texi: Mention the new module.
13967
13968 2011-02-11  Bruno Haible  <bruno@clisp.org>
13969
13970         Prepare for locale dependent tests on mingw.
13971         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13972         because it has the wrong locale encoding.
13973         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13974         French_France.1252 instead of "fr".
13975         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13976         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13977         because it has the wrong locale encoding.
13978         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13979         native Windows, try Turkish_Turkey.65001.
13980         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13981         Chinese_China.54936.
13982
13983         Prepare for locale dependent tests on mingw.
13984         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13985         differently.
13986         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13987         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13988         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13989         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13990
13991 2011-02-11  Eric Blake  <eblake@redhat.com>
13992
13993         strptime: avoid compiler warnings
13994         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13995         compiler warnings about dead code.
13996         Reported by Daniel P. Berrange.
13997
13998 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13999
14000         doc: update users.txt
14001         * users.txt: Add rcs.
14002
14003 2011-02-10  John W. Eaton  <jwe@gnu.org>
14004
14005         doc: update users.txt
14006         * users.txt: Add octave.
14007
14008 2011-02-10  Jim Meyering  <meyering@redhat.com>
14009
14010         doc: update users.txt
14011         * users.txt: Add iwhd.
14012
14013 2011-02-09  Bruno Haible  <bruno@clisp.org>
14014
14015         gnulib-tool: Make copyright notice adjustment more robust.
14016         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14017         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14018         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14019         License".
14020         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14021
14022 2011-02-06  Bruno Haible  <bruno@clisp.org>
14023
14024         New module 'towctrans'.
14025         * modules/towctrans: New file.
14026         * lib/wctype.in.h (towctrans): New declaration.
14027         * lib/towctrans.c: New file.
14028         * lib/towctrans-impl.h: New file.
14029         * m4/towctrans.m4: New file.
14030         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14031         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14032         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14033         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14034         * doc/posix-functions/towctrans.texi: Mention the new module.
14035
14036 2011-02-06  Bruno Haible  <bruno@clisp.org>
14037
14038         New module 'wctrans'.
14039         * modules/wctrans: New file.
14040         * lib/wctype.in.h (wctrans): New declaration.
14041         * lib/wctrans.c: New file.
14042         * lib/wctrans-impl.h: New file.
14043         * m4/wctrans.m4: New file.
14044         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14045         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14046         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14047         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14048         * doc/posix-functions/wctrans.texi: Mention the new module.
14049
14050 2011-02-06  Bruno Haible  <bruno@clisp.org>
14051
14052         New module 'iswctype'.
14053         * modules/iswctype: New file.
14054         * lib/wctype.in.h (iswctype): New declaration.
14055         * lib/iswctype.c: New file.
14056         * lib/iswctype-impl.h: New file.
14057         * m4/iswctype.m4: New file.
14058         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14059         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14060         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14061         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14062         * doc/posix-functions/iswctype.texi: Mention the new module and the
14063         HP-UX 11.00 problem.
14064
14065 2011-02-06  Bruno Haible  <bruno@clisp.org>
14066
14067         New module 'wctype'.
14068         * modules/wctype: Change to represent the wctype() substitute.
14069         * lib/wctype.in.h (wctype): New declaration.
14070         * lib/wctype.c: New file.
14071         * lib/wctype-impl.h: New file.
14072         * m4/wctype.m4: New file.
14073         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14074         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14075         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14076         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14077         * doc/posix-functions/wctype.texi: Mention the new module and the
14078         HP-UX 11.00 problem.
14079
14080 2011-02-06  Bruno Haible  <bruno@clisp.org>
14081
14082         wctype-h: Ensure wctype_t and wctrans_t are defined.
14083         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14084         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14085         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14086         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14087         HAVE_WCTRANS_T.
14088         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14089
14090 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14091
14092         flock: fix license typo
14093
14094         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14095         omitted.
14096
14097 2011-02-08  Bruno Haible  <bruno@clisp.org>
14098
14099         Split large sed scripts, for HP-UX sed.
14100         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14101         to avoid HP-UX limit of 99 commands, in the near future.
14102         * modules/stdlib (Makefile.am): Likewise.
14103         * modules/unistd (Makefile.am): Likewise.
14104         * modules/wchar (Makefile.am): Likewise.
14105         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14106         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14108
14109 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14110             Bruno Haible  <bruno@clisp.org>
14111
14112         stdlib: improve random_r modularization
14113         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14114         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14115         you also need the random_r module to get this material right.
14116         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14117         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14118         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14119
14120 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14121
14122         stdlib: don't depend on stdint
14123         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14124         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14125         be independent of whether stdint.h is needed.
14126         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14127         here, instead of ...
14128         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14129         struct random_data should be using the random_r module, not just
14130         the stdlib module (which wouldn't make sense: what package needs
14131         just struct random_data without also needing random_r?).
14132         * modules/stdlib (Depends-on): Remove stdint.
14133
14134         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14135         See the thread rooted at
14136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14137         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14138         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14139         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14140         __VMS)); previously it was always included (via fcntl--.h).
14141         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14142         hand; this is good enough for load averages.  Also, do not use
14143         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14144         flags directly if available and don't bother otherwise.  (Packages
14145         that need the extra reliability should use the modules that define
14146         these flags on older platforms that lack them.)
14147         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14148         fcntl-safer.
14149
14150 2011-02-08  Jim Meyering  <meyering@redhat.com>
14151
14152         di-set.h, ino-map.h: add multiple-inclusion guard
14153         Technically, the guard is required only for ino-map.h, due to its
14154         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14155         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14156         * lib/ino-map.h: Likewise.
14157
14158 2011-02-06  Bruno Haible  <bruno@clisp.org>
14159
14160         iswblank: Ensure declaration on glibc systems.
14161         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14162         * modules/iswblank (Dependencies): Add 'extensions'.
14163         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14164
14165 2011-02-06  Bruno Haible  <bruno@clisp.org>
14166
14167         New module 'iswblank'.
14168         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14169         * modules/iswblank: New file.
14170         * modules/wctype-h (Files): Remove lib/iswblank.c.
14171         (Makefile.am): Substitute GNULIB_ISWBLANK.
14172         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14173         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14174         (gl_WCTYPE_H_DEFAULTS): New macro.
14175         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14176         * modules/iswblank-tests: New file.
14177         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14178         * tests/test-wctype-h.c (main): Remove iswblank tests.
14179         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14180         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14181         of 'wctype-h'.
14182         * NEWS: Mention the change.
14183         * modules/mbchar (Depends-on): Add iswblank.
14184
14185 2011-02-08  Bruno Haible  <bruno@clisp.org>
14186
14187         di-set tests: Refactor.
14188         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14189         unnecessary includes.
14190         (ASSERT): Remove macro.
14191         (main): Make C90 compliant by avoiding variable declaration after
14192         statement.
14193         * modules/di-set-tests (Files): Add tests/macros.h.
14194
14195 2011-02-08  Bruno Haible  <bruno@clisp.org>
14196
14197         ino-map tests: Refactor.
14198         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14199         unnecessary includes.
14200         (ASSERT): Remove macro.
14201         (main): Make C90 compliant by avoiding variable declaration after
14202         statement.
14203         * modules/ino-map-tests (Files): Add tests/macros.h.
14204
14205 2011-02-08  Jim Meyering  <meyering@redhat.com>
14206
14207         di-set: add "const" to a cast
14208         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14209         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14210
14211 2011-02-06  Bruno Haible  <bruno@clisp.org>
14212
14213         Rename module 'wctype' to 'wctype-h'.
14214         * modules/wctype-h: Renamed from modules/wctype.
14215         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14216         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14217         (Files, Depends-on, Makefile.am): Update.
14218         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14219         (Files, Makefile.am): Update.
14220         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14221         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14222         * doc/posix-headers/wctype.texi: Update.
14223         * doc/posix-functions/iswalnum.texi: Update.
14224         * doc/posix-functions/iswalpha.texi: Update.
14225         * doc/posix-functions/iswblank.texi: Update.
14226         * doc/posix-functions/iswcntrl.texi: Update.
14227         * doc/posix-functions/iswdigit.texi: Update.
14228         * doc/posix-functions/iswgraph.texi: Update.
14229         * doc/posix-functions/iswlower.texi: Update.
14230         * doc/posix-functions/iswprint.texi: Update.
14231         * doc/posix-functions/iswpunct.texi: Update.
14232         * doc/posix-functions/iswspace.texi: Update.
14233         * doc/posix-functions/iswupper.texi: Update.
14234         * doc/posix-functions/iswxdigit.texi: Update.
14235         * doc/posix-functions/towlower.texi: Update.
14236         * doc/posix-functions/towupper.texi: Update.
14237         * NEWS: Mention the change.
14238         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14239         * modules/mbchar (Dependencies): Likewise.
14240         * modules/mbswidth (Dependencies): Likewise.
14241         * modules/quotearg (Dependencies): Likewise.
14242         * modules/regex (Dependencies): Likewise.
14243         * modules/wcscasecmp (Dependencies): Likewise.
14244         * modules/wcsncasecmp (Dependencies): Likewise.
14245         * modules/wcwidth (Dependencies): Likewise.
14246
14247 2011-02-06  Bruno Haible  <bruno@clisp.org>
14248
14249         New module 'wcswidth'.
14250         * modules/wcswidth: New file.
14251         * lib/wchar.in.h (wcswidth): New declaration.
14252         * lib/wcswidth.c: New file.
14253         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14254         * m4/wcswidth.m4: New file.
14255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14257         REPLACE_WCSWIDTH.
14258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14259         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14260         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14261         * doc/posix-functions/wcswidth.texi: Mention the new module.
14262
14263 2011-02-06  Bruno Haible  <bruno@clisp.org>
14264
14265         New module 'wcstok'.
14266         * modules/wcstok: New file.
14267         * lib/wchar.in.h (wcstok): New declaration.
14268         * lib/wcstok.c: New file.
14269         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14270         * m4/wcstok.m4: New file.
14271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14274         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14275         * doc/posix-functions/wcstok.texi: Mention the new module.
14276
14277 2011-02-06  Bruno Haible  <bruno@clisp.org>
14278
14279         New module 'wcsstr'.
14280         * modules/wcsstr: New file.
14281         * lib/wchar.in.h (wcsstr): New declaration.
14282         * lib/wcsstr.c: New file.
14283         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14284         * m4/wcsstr.m4: New file.
14285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14288         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14289         * doc/posix-functions/wcsstr.texi: Mention the new module.
14290
14291 2011-02-06  Bruno Haible  <bruno@clisp.org>
14292
14293         New module 'wcspbrk'.
14294         * modules/wcspbrk: New file.
14295         * lib/wchar.in.h (wcspbrk): New declaration.
14296         * lib/wcspbrk.c: New file.
14297         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14298         * m4/wcspbrk.m4: New file.
14299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14302         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14303         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14304
14305 2011-02-06  Bruno Haible  <bruno@clisp.org>
14306
14307         New module 'wcsspn'.
14308         * modules/wcsspn: New file.
14309         * lib/wchar.in.h (wcsspn): New declaration.
14310         * lib/wcsspn.c: New file.
14311         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14312         * m4/wcsspn.m4: New file.
14313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14316         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14317         * doc/posix-functions/wcsspn.texi: Mention the new module.
14318
14319 2011-02-06  Bruno Haible  <bruno@clisp.org>
14320
14321         New module 'wcscspn'.
14322         * modules/wcscspn: New file.
14323         * lib/wchar.in.h (wcscspn): New declaration.
14324         * lib/wcscspn.c: New file.
14325         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14326         * m4/wcscspn.m4: New file.
14327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14330         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14331         * doc/posix-functions/wcscspn.texi: Mention the new module.
14332
14333 2011-02-06  Bruno Haible  <bruno@clisp.org>
14334
14335         New module 'wcsrchr'.
14336         * modules/wcsrchr: New file.
14337         * lib/wchar.in.h (wcsrchr): New declaration.
14338         * lib/wcsrchr.c: New file.
14339         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14340         * m4/wcsrchr.m4: New file.
14341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14344         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14345         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14346
14347 2011-02-06  Bruno Haible  <bruno@clisp.org>
14348
14349         New module 'wcschr'.
14350         * modules/wcschr: New file.
14351         * lib/wchar.in.h (wcschr): New declaration.
14352         * lib/wcschr.c: New file.
14353         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14354         * m4/wcschr.m4: New file.
14355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14358         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14359         * doc/posix-functions/wcschr.texi: Mention the new module.
14360
14361 2011-02-06  Bruno Haible  <bruno@clisp.org>
14362
14363         New module 'wcsdup'.
14364         * modules/wcsdup: New file.
14365         * lib/wchar.in.h (wcsdup): New declaration.
14366         * lib/wcsdup.c: New file.
14367         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14368         * m4/wcsdup.m4: New file.
14369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14372         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14373         * doc/posix-functions/wcsdup.texi: Mention the new module.
14374
14375 2011-02-06  Bruno Haible  <bruno@clisp.org>
14376
14377         New module 'wcsxfrm'.
14378         * modules/wcsxfrm: New file.
14379         * lib/wchar.in.h (wcsxfrm): New declaration.
14380         * lib/wcsxfrm.c: New file.
14381         * lib/wcsxfrm-impl.h: New file.
14382         * m4/wcsxfrm.m4: New file.
14383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14386         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14387         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14388
14389 2011-02-06  Bruno Haible  <bruno@clisp.org>
14390
14391         New module 'wcscoll'.
14392         * modules/wcscoll: New file.
14393         * lib/wchar.in.h (wcscoll): New declaration.
14394         * lib/wcscoll.c: New file.
14395         * lib/wcscoll-impl.h: New file.
14396         * m4/wcscoll.m4: New file.
14397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14400         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14401         * doc/posix-functions/wcscoll.texi: Mention the new module.
14402
14403 2011-02-06  Bruno Haible  <bruno@clisp.org>
14404
14405         New module 'wcsncasecmp'.
14406         * modules/wcsncasecmp: New file.
14407         * lib/wchar.in.h (wcsncasecmp): New declaration.
14408         * lib/wcsncasecmp.c: New file.
14409         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14410         * m4/wcsncasecmp.m4: New file.
14411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14414         HAVE_WCSNCASECMP.
14415         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14416         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14417
14418 2011-02-06  Bruno Haible  <bruno@clisp.org>
14419
14420         New module 'wcscasecmp'.
14421         * modules/wcscasecmp: New file.
14422         * lib/wchar.in.h (wcscasecmp): New declaration.
14423         * lib/wcscasecmp.c: New file.
14424         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14425         * m4/wcscasecmp.m4: New file.
14426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14429         HAVE_WCSCASECMP.
14430         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14431         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14432
14433 2011-02-05  Bruno Haible  <bruno@clisp.org>
14434
14435         New module 'wcsncmp'.
14436         * modules/wcsncmp: New file.
14437         * lib/wchar.in.h (wcsncmp): New declaration.
14438         * lib/wcsncmp.c: New file.
14439         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14440         * m4/wcsncmp.m4: New file.
14441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14444         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14445         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14446
14447 2011-02-05  Bruno Haible  <bruno@clisp.org>
14448
14449         New module 'wcscmp'.
14450         * modules/wcscmp: New file.
14451         * lib/wchar.in.h (wcscmp): New declaration.
14452         * lib/wcscmp.c: New file.
14453         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14454         * m4/wcscmp.m4: New file.
14455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14458         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14459         * doc/posix-functions/wcscmp.texi: Mention the new module.
14460
14461 2011-02-05  Bruno Haible  <bruno@clisp.org>
14462
14463         New module 'wcsncat'.
14464         * modules/wcsncat: New file.
14465         * lib/wchar.in.h (wcsncat): New declaration.
14466         * lib/wcsncat.c: New file.
14467         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14468         * m4/wcsncat.m4: New file.
14469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14472         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14473         * doc/posix-functions/wcsncat.texi: Mention the new module.
14474
14475 2011-02-05  Bruno Haible  <bruno@clisp.org>
14476
14477         New module 'wcscat'.
14478         * modules/wcscat: New file.
14479         * lib/wchar.in.h (wcscat): New declaration.
14480         * lib/wcscat.c: New file.
14481         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14482         * m4/wcscat.m4: New file.
14483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14486         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14487         * doc/posix-functions/wcscat.texi: Mention the new module.
14488
14489 2011-02-05  Bruno Haible  <bruno@clisp.org>
14490
14491         New module 'wcpncpy'.
14492         * modules/wcpncpy: New file.
14493         * lib/wchar.in.h (wcpncpy): New declaration.
14494         * lib/wcpncpy.c: New file.
14495         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14496         * m4/wcpncpy.m4: New file.
14497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14499         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14500         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14501         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14502
14503 2011-02-05  Bruno Haible  <bruno@clisp.org>
14504
14505         New module 'wcsncpy'.
14506         * modules/wcsncpy: New file.
14507         * lib/wchar.in.h (wcsncpy): New declaration.
14508         * lib/wcsncpy.c: New file.
14509         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14510         * m4/wcsncpy.m4: New file.
14511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14514         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14515         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14516
14517 2011-02-05  Bruno Haible  <bruno@clisp.org>
14518
14519         New module 'wcpcpy'.
14520         * modules/wcpcpy: New file.
14521         * lib/wchar.in.h (wcpcpy): New declaration.
14522         * lib/wcpcpy.c: New file.
14523         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14524         * m4/wcpcpy.m4: New file.
14525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14527         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14528         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14529         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14530
14531 2011-02-05  Bruno Haible  <bruno@clisp.org>
14532
14533         New module 'wcscpy'.
14534         * modules/wcscpy: New file.
14535         * lib/wchar.in.h (wcscpy): New declaration.
14536         * lib/wcscpy.c: New file.
14537         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14538         * m4/wcscpy.m4: New file.
14539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14542         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14543         * doc/posix-functions/wcscpy.texi: Mention the new module.
14544
14545 2011-02-05  Bruno Haible  <bruno@clisp.org>
14546
14547         New module 'wcsnlen'.
14548         * modules/wcsnlen: New file.
14549         * lib/wchar.in.h (wcsnlen): New declaration.
14550         * lib/wcsnlen.c: New file.
14551         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14552         * m4/wcsnlen.m4: New file.
14553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14556         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14557         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14558
14559 2011-02-05  Bruno Haible  <bruno@clisp.org>
14560
14561         New module 'wcslen'.
14562         * modules/wcslen: New file.
14563         * lib/wchar.in.h (wcslen): New declaration.
14564         * lib/wcslen.c: New file.
14565         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14566         * m4/wcslen.m4: New file.
14567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14570         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14571         * doc/posix-functions/wcslen.texi: Mention the new module.
14572
14573 2011-02-05  Bruno Haible  <bruno@clisp.org>
14574
14575         New module 'wmemset'.
14576         * modules/wmemset: New file.
14577         * lib/wchar.in.h (wmemset): New declaration.
14578         * lib/wmemset.c: New file.
14579         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14580         * m4/wmemset.m4: New file.
14581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14583         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14584         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14585         * doc/posix-functions/wmemset.texi: Mention the new module.
14586
14587 2011-02-05  Bruno Haible  <bruno@clisp.org>
14588
14589         New module 'wmemmove'.
14590         * modules/wmemmove: New file.
14591         * lib/wchar.in.h (wmemmove): New declaration.
14592         * lib/wmemmove.c: New file.
14593         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14594         * m4/wmemmove.m4: New file.
14595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14597         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14598         HAVE_WMEMMOVE.
14599         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14600         * doc/posix-functions/wmemmove.texi: Mention the new module.
14601
14602 2011-02-05  Bruno Haible  <bruno@clisp.org>
14603
14604         New module 'wmemcpy'.
14605         * modules/wmemcpy: New file.
14606         * lib/wchar.in.h (wmemcpy): New declaration.
14607         * lib/wmemcpy.c: New file.
14608         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14609         * m4/wmemcpy.m4: New file.
14610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14612         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14613         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14614         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14615
14616 2011-02-05  Bruno Haible  <bruno@clisp.org>
14617
14618         New module 'wmemcmp'.
14619         * modules/wmemcmp: New file.
14620         * lib/wchar.in.h (wmemcmp): New declaration.
14621         * lib/wmemcmp.c: New file.
14622         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14623         * m4/wmemcmp.m4: New file.
14624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14626         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14627         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14628         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14629
14630 2011-02-07  Jim Meyering  <meyering@redhat.com>
14631
14632         di-set, ino-map: new modules, from coreutils
14633         * lib/di-set.c: New file.
14634         * lib/di-set.h: Likewise.
14635         * lib/ino-map.c: Likewise.
14636         * lib/ino-map.h: Likewise.
14637         * modules/di-set: Likewise.
14638         * modules/di-set-tests: Likewise.
14639         * modules/ino-map: Likewise.
14640         * modules/ino-map-tests: Likewise.
14641         * tests/test-di-set.c: Likewise.
14642         * tests/test-ino-map.c: Likewise.
14643
14644 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14645
14646         getloadavg: merge minor changes from Emacs
14647
14648         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14649         (getloadavg): Use memset, not bzero.
14650
14651         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14652         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14653         clash (bug#86).
14654
14655 2010-11-14  Bruno Haible  <bruno@clisp.org>
14656
14657         Allow multiple gnulib generated replacements to coexist.
14658         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14659         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14660         * lib/langinfo.in.h (nl_item): Likewise.
14661         * lib/math.in.h (_NaN, NAN): Likewise.
14662         * lib/netdb.in.h (struct addrinfo): Likewise.
14663         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14664         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14665         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14666         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14667         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14668         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14669         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14670         pthread_mutexattr_init, pthread_mutexattr_settype,
14671         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14672         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14673         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14674         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14675         * lib/sched.in.h (struct sched_param): Likewise.
14676         * lib/se-selinux.in.h (security_class_t, security_context_t,
14677         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14678         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14679         lsetfilecon, fsetfilecon, security_check_context,
14680         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14681         Likewise.
14682         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14683         Likewise.
14684         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14685         _gl_function_taking_int_returning_void_t, union sigval,
14686         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14687         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14688         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14689         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14690         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14691         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14692         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14693         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14694         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14695         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14696         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14697         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14698         socklen_t, rpl_fd_isset): Likewise.
14699         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14700         * lib/sys_time.in.h (struct timeval): Likewise.
14701         * lib/sys_times.in.h (struct tms): Likewise.
14702         * lib/sys_utsname.in.h (struct utsname):
14703         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14704         * lib/unistd.in.h (getpagesize): Likewise.
14705         * lib/wchar.in.h (mbstate_t): Likewise.
14706         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14707         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14708         towlower, towupper): Likewise.
14709         Reported by Sam Steingold <sds@gnu.org>.
14710
14711 2011-02-05  Eric Blake  <eblake@redhat.com>
14712
14713         unsetenv: work around Haiku issues
14714         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14715         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14716
14717 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14718
14719         libposix: avoid calling error() within libposix
14720         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14721         is defined.
14722
14723 2011-02-05  Eric Blake  <eblake@redhat.com>
14724
14725         strerror_r-posix: port to cygwin
14726         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14727         implementation.
14728         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14729         * tests/test-strerror_r.c (main): Fix test.
14730         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14731         issue.
14732
14733 2011-02-05  Bruno Haible  <bruno@clisp.org>
14734
14735         New module 'wmemchr'.
14736         * modules/wmemchr: New file.
14737         * lib/wchar.in.h (wmemchr): New declaration.
14738         * lib/wmemchr.c: New file.
14739         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14740         * m4/wmemchr.m4: New file.
14741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14743         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14744         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14745         * doc/posix-functions/wmemchr.texi: Mention the new module.
14746
14747 2011-02-04  Eric Blake  <eblake@redhat.com>
14748
14749         fdopendir: detect FreeBSD bug
14750         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14751         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14752
14753 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14754
14755         stdbool: do not define HAVE_STDBOOL_H
14756         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14757         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14758         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14759         imported from the latest Autoconf git.  It was motivated by Emacs,
14760         which uses gnulib but does not need HAVE_STDBOOL_H.
14761
14762 2011-02-04  Bruno Haible  <bruno@clisp.org>
14763
14764         wcsnrtombs: Prepare for new module wwcsnrtombs.
14765         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14766         * lib/wcsnrtombs.c: Include it.
14767         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14768
14769         wcsrtombs: Prepare for new module wwcsrtombs.
14770         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14771         * lib/wcsrtombs.c: Include it.
14772         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14773
14774         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14775         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14776         * lib/mbsnrtowcs.c: Include it.
14777         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14778
14779         mbsrtowcs: Prepare for new module mbsrtowwcs.
14780         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14781         * lib/mbsrtowcs.c: Include it.
14782         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14783
14784 2011-02-04  Bruno Haible  <bruno@clisp.org>
14785
14786         vasnprintf: Reduce use of malloc for small format strings.
14787         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14788         (arguments): Add room for the first 7 arguments.
14789         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14790         (char_directives, u8_directives, u16_directives, u32_directives): Add
14791         room for the first 7 directives.
14792         * lib/printf-parse.c: Include <string.h>.
14793         (PRINTF_PARSE): Change memory handling code so that it uses the first
14794         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14795         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14796         Reported by Pádraig Brady <P@draigbrady.com>.
14797
14798 2011-01-31  Eric Blake  <eblake@redhat.com>
14799
14800         dup2: work around Haiku bug
14801         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14802         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14803         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14804         * tests/test-dup2.c (main): Enhance test.
14805
14806 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14807
14808         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14809         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14810         declared by eglibc 2.11.2.
14811         * lib/stdio.in.h: Likewise.
14812
14813 2011-01-31  Eric Blake  <eblake@redhat.com>
14814
14815         ignore-value: add missing test dependency
14816         * tests/test-ignore-value.c: Revert previous change; stdio.h
14817         provides off_t.
14818         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14819
14820 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14821
14822         mktime: clarify long_int width checking
14823         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14824         the top level, to make it clearer that the assumption about
14825         long_int width is being checked.  See
14826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14827
14828 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14829
14830         ignore-value: Fix self-test.
14831         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14832
14833 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14834
14835         TYPE_MAXIMUM: avoid theoretically undefined behavior
14836         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14837         negative number, which the C Standard says has undefined behavior.
14838         In practice this is not a problem, but might as well do it by the book.
14839         Reported by Rich Felker and Eric Blake; see
14840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14841         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14842         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14844         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14845         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14846         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14847
14848         mktime: #undef mktime before #defining it
14849         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14850
14851         mktime: systematically normalize tm_isdst comparisons
14852         * lib/mktime.c (isdst_differ): New function.
14853         (__mktime_internal): Use it systematically for all isdst comparisons.
14854         This completes the fix for libc BZ #6723, and removes the need for
14855         normalizing tm_isdst.  See
14856         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14857         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14858
14859         mktime: fix some integer overflow issues and sidestep the rest
14860
14861         This was prompted by a bug report by Benjamin Lindner for MinGW
14862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14863         His bug is due to signed integer overflow (0 - INT_MIN), and I
14864         I scanned through mktime.c looking for other integer overflow
14865         problems, fixing all the bugs I found.
14866
14867         Although the C Standard says the resulting code is still not safe
14868         in the presence of integer overflow, in practice it should be good
14869         enough for all real-world two's-complement implementations, except
14870         for debugging environments that deliberately trap on integer
14871         overflow (e.g., gcc -ftrapv).
14872
14873         * lib/mktime.c (WRAPV): New macro.
14874         (SHR): Also check that long_int and time_t shift right in the
14875         usual way, before using the fast-but-unportable method.
14876         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14877         used.  The code already assumed two's complement, so there's
14878         no need to test for alternatives.  All uses removed.
14879         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14880         the C standard.  Problem reported by Rich Felker in
14881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14882         (twos_complement_arithmetic): Also check long_int and time_t.
14883         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14884         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14885         (__mktime_internal): Avoid integer overflow with unary subtraction
14886         in two instances where -1 - X is an adequate replacement for -X,
14887         since the calculations are approximate.
14888
14889 2011-01-29  Eric Blake  <eblake@redhat.com>
14890
14891         mktime: avoid infinite loop
14892         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14893         type; behavior is still undefined but portable to all known targets.
14894         Reported by Rich Felker.
14895
14896 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14897
14898         rename, unlink, same-inode: Relicense.
14899         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14900         * modules/unlink (License): Likewise.
14901         * modules/same-inode (License): Likewise.
14902
14903 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14904
14905         mktime: avoid problems on NetBSD 5 / i386
14906         * lib/mktime.c (long_int): New type.  This works around a problem
14907         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14908         but time_t is 64 bits, and where I expect the existing code is
14909         wrong in some cases.
14910         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14911         (ydhms_diff): Bring back the compile-time check for wide-enough
14912         year and yday.
14913
14914         mktime: fix misspelling in comment
14915         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14916         This merges all recent glibc changes of importance.
14917
14918 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14919
14920         move-if-change: cope with concurrent mv of identical file.
14921         * build-aux/move-if-change (CMPPROG): Accept environment
14922         variable as an override for `cmp'.
14923         (usage): Document CMPPROG.
14924         Adjust comparison to drop stdout.  Cope with failure of mv if
14925         the target file exists and is identical to the source, for
14926         parallel builds.
14927         Report from H.J. Lu against binutils in PR binutils/12283.
14928
14929 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14930
14931         * users.txt: Mention sharutils.
14932
14933 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14934
14935         * users.txt: Mention OATH Toolkit.
14936
14937 2011-01-27  Bruno Haible  <bruno@clisp.org>
14938
14939         Prepare for supporting FreeBSD 10.
14940         * build-aux/config.libpath: Remove handling of freebsd1*.
14941
14942 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14943
14944         Prepare for supporting FreeBSD 10.
14945         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14946         match FreeBSD 10.0.
14947
14948 2011-01-27  Bruno Haible  <bruno@clisp.org>
14949
14950         vma-iter, get-rusage-as: Add OpenBSD support.
14951         * modules/vma-iter (configure.ac): Test for mquery.
14952         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14953         * lib/vma-iter.c: Include <sys/mman.h>.
14954         (vma_iterate): Add an implementation based on mquery().
14955         * lib/resource-ext.h (get_rusage_as): Update comments.
14956         * lib/get-rusage-as.c: Likewise.
14957         * lib/get-rusage-data.c: Likewise.
14958
14959 2011-01-26  Karl Berry  <karl@gnu.org>
14960
14961         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14962         variables to make it easier to override the makeinfo program used.
14963
14964 2011-01-26  Eric Blake  <eblake@redhat.com>
14965
14966         fcntl: work around Haiku F_DUPFD bugs
14967         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14968         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14969         cloexec bit on duplication.
14970         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14971
14972 2011-01-26  Bruno Haible  <bruno@clisp.org>
14973
14974         Enable memory leak tests on AIX.
14975         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14976         * tests/test-fprintf-posix3.c (main): Likewise.
14977
14978 2011-01-26  Bruno Haible  <bruno@clisp.org>
14979
14980         Tests for module 'get-rusage-data'.
14981         * modules/get-rusage-data-tests: New file.
14982         * tests/test-get-rusage-data.c: New file.
14983
14984         New module 'get-rusage-data'.
14985         * lib/resource-ext.h (get_rusage_data): New declaration.
14986         * lib/get-rusage-data.c: New file.
14987         * modules/get-rusage-data: New file.
14988
14989 2011-01-25  Bruno Haible  <bruno@clisp.org>
14990
14991         get-rusage-as: Allow for easier testing.
14992         * lib/resource-ext.h (get_rusage_as): Add comment.
14993         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14994         (main): New function for interactive testing.
14995
14996 2011-01-25  Bruno Haible  <bruno@clisp.org>
14997
14998         vma-iter: Treat Haiku like BeOS.
14999         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15000         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15001
15002 2011-01-25  Eric Blake  <eblake@redhat.com>
15003
15004         c-stack: fix regression on cygwin when libsigsegv is present
15005         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15006
15007 2011-01-24  Bruno Haible  <bruno@clisp.org>
15008
15009         vma-iter: Avoid empty intervals.
15010         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15011         on an empty interval.
15012
15013 2011-01-24  Jim Meyering  <meyering@redhat.com>
15014
15015         u64: remove unnecessary #include
15016         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15017
15018 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15019
15020         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15021         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15022
15023 2011-01-23  Bruno Haible  <bruno@clisp.org>
15024
15025         New module 'vma-iter'.
15026         * lib/vma-iter.h: New file.
15027         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15028         * modules/vma-iter: New file.
15029         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15030         for get_rusage_as_via_iterator.
15031         (vma_iterate_callback): New function.
15032         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15033         * modules/get-rusage-as (Depends-on): Add vma-iter.
15034
15035 2011-01-23  Bruno Haible  <bruno@clisp.org>
15036
15037         uninorm: Tweak includes.
15038         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15039         Reported by Jim Meyering.
15040
15041 2011-01-23  Bruno Haible  <bruno@clisp.org>
15042
15043         get-rusage-as: Improve on NetBSD.
15044         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15045         /proc, like on FreeBSD.
15046
15047 2011-01-23  Jim Meyering  <meyering@redhat.com>
15048
15049         xreadlink.h: remove unnecessary #include
15050         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15051
15052         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15053         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15054
15055 2011-01-23  Bruno Haible  <bruno@clisp.org>
15056
15057         get-rusage-as: Fix bug.
15058         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15059         original limit when aborting the first loop.
15060
15061 2011-01-23  Bruno Haible  <bruno@clisp.org>
15062
15063         wctype: Ensure valid C syntax.
15064         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15065         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15066
15067 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15068
15069         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15071         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15072         as they are needed only for configure's test case.
15073         This removes two unnecessary symbols from config.h.
15074
15075         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15076         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15078         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15079         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15080         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15081         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15082         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15083         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15084         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15085         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15086         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15087         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15088         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15089         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15090         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15091         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15092         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15093
15094 2011-01-21  Eric Blake  <eblake@redhat.com>
15095
15096         maintainer-makefile: work with older git for submodule check
15097         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15098         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15099         Reported by Matthias Bolte.
15100
15101         bootstrap: minor portability fixes
15102         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15103         (usage): Omit leading capital and trailing . on help phrases, per
15104         GNU Coding Standards.
15105         (check_versions, top level): Prefix messages with script name.
15106
15107 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15108
15109         bootstrap: support --no-git option
15110         * build-aux/bootstrap: Add --no-git option, to be used when
15111         --gnulib-srcdir points to the exact desired checkout.
15112
15113 2011-01-21  Eric Blake  <eblake@redhat.com>
15114
15115         strerror_r-posix: work with glibc 2.13
15116         * lib/strerror_r.c (strerror_r): Fix return type.
15117
15118 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15119             Bruno Haible  <bruno@clisp.org>
15120
15121         uN_strstr: New unit tests.
15122         * modules/unistr/u8-strstr-tests: New file.
15123         * modules/unistr/u16-strstr-tests: New file.
15124         * modules/unistr/u32-strstr-tests: New file.
15125         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15126         * tests/unistr/test-u8-strstr.c: New file.
15127         * tests/unistr/test-u16-strstr.c: New file.
15128         * tests/unistr/test-u32-strstr.c: New file.
15129
15130 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15131             Bruno Haible  <bruno@clisp.org>
15132
15133         Make uN_strstr functions O(n) worst-case.
15134         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15135         16-bit and 32-bit unit cases, use the unibyte algorithm from
15136         lib/mbsstr.c.
15137         * lib/unistr/u8-strstr.c: Include <string.h>.
15138         (UNIT_IS_UINT8_T): New macro.
15139         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15140         (U_STRLEN, U_STRNLEN): New macros.
15141         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15142         (U_STRLEN, U_STRNLEN): New macros.
15143         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15144         (configure.ac): Update required libunistring version.
15145         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15146         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15147         malloca.
15148         (configure.ac): Update required libunistring version.
15149         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15150         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15151         malloca.
15152         (configure.ac): Update required libunistring version.
15153
15154 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15155             Bruno Haible  <bruno@clisp.org>
15156
15157         Prepare for faster uN_strstr functions.
15158         * lib/str-kmp.h: Support definable UNITs.
15159         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15160         needle_len argument.
15161         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15162         * lib/mbscasestr.c (mbscasestr): Likewise.
15163
15164 2011-01-21  Pádraig Brady <P@draigBrady.com>
15165
15166         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15167         * tests/test-malloca.c (main): Unset the environment variable
15168         to greatly speed up the test.
15169         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15170         * modules/malloca-tests: Depend on unsetenv.
15171
15172 2011-01-21  Pádraig Brady <P@draigBrady.com>
15173
15174         ignore-value: remove stdint dependency
15175         * lib/ignore-value.h: Remove <stdint.h>
15176         * modules/ignore-value: Remove stdint dependency.
15177
15178 2011-01-21  Jim Meyering  <meyering@redhat.com>
15179
15180         maint.mk: adjust variable name to be consistent with other gl_ vars
15181         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15182         to be lower case.
15183
15184 2011-01-20  Jim Meyering  <meyering@redhat.com>
15185
15186         maint.mk: make "check" depend on public-submodule-commit by default
15187         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15188
15189 2011-01-20  Bruno Haible  <bruno@clisp.org>
15190
15191         mbfile, mbiter: Complete change from 2008-12-21.
15192         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15193         * m4/mbiter.m4 (gl_MBITER): Likewise.
15194
15195 2011-01-20  Jim Meyering  <meyering@redhat.com>
15196
15197         init.sh: insert space between each function name and "()"
15198         * tests/init.sh: Make it a little easier to see that a function's
15199         name is "warn_", and not "warn" when looking at the first part of
15200         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15201
15202 2011-01-20  Jim Meyering  <meyering@redhat.com>
15203
15204         mountlist: clean up code formatting
15205         * lib/mountlist.c (read_file_system_list): Split a long line,
15206         correct bracing style, use NULL in place of "(struct statfs *)0",
15207         don't parenthesize return value, add spaces around "=" and after
15208         ";-in-for-stmt".
15209
15210 2011-01-14  Markus Duft <mduft@gentoo.org>
15211
15212         mountlist: add support for Interix
15213         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15214         Apply statvfs to all entries of /dev/fs.
15215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15216         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15217
15218 2011-01-20  Jim Meyering  <meyering@redhat.com>
15219
15220         maint.mk: improve the public-submodule-commit rule
15221         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15222         to suppress printing of its commands... unless V=1.
15223         Add git submodule's --quiet option to suppress printing of e.g.,
15224         "Entering gnulib" output.
15225         "cd" into $(srcdir) before running git submodule.
15226
15227 2011-01-20  Bruno Haible  <bruno@clisp.org>
15228
15229         include_next: Fix bug introduced on 2011-01-18.
15230         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15231         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15232         ac_cv_header_... variable if the second argument is not 'check'.
15233         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15234         gl_NEXT_HEADERS_INTERNAL.
15235
15236 2011-01-20  Bruno Haible  <bruno@clisp.org>
15237
15238         Allow the user to avoid the GNULIB_TEST_* macros.
15239         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15240         Suggested by Paul Eggert.
15241
15242 2011-01-14  Jim Meyering  <meyering@redhat.com>
15243
15244         bootstrap: avoid failure when there is no .gitmodules file
15245         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15246         has been assigned to, even when its value is the empty string.
15247         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15248         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15249         Reported by John W. Eaton <jwe@gnu.org>.
15250
15251 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15252
15253         assume <ctype.h>, ..., <time.h> exist
15254         For years gnulib has been assuming the existence of the headers
15255         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15256         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15257         them, since they don't appear to be needed.
15258         * README (Portability guidelines): Document this.
15259         * lib/flock.c: Assume <fcntl.h> exists.
15260         * lib/regex_internal.h: Assume <locale.h> exists.
15261         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15262         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15263         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15264         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15265         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15266         * m4/regex.m4 (gl_REGEX): Likewise.
15267         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15268         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15269         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15270         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15271         * tests/test-argp.c: Likewise.
15272         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15273
15274         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15275         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15276         AA_APPLE_UNIVERSAL_BUILD.  See
15277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15278         * NEWS: Document this.
15279
15280 2011-01-19  Eric Blake  <eblake@redhat.com>
15281
15282         c-stack: assume stack overflow if SA_SIGINFO unsupported
15283         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15284         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15285         sigaction will work.
15286         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15287         behavior match Linux.
15288         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15289
15290         stdbool-tests: accomodate Haiku
15291         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15292
15293         binary-io: fix O_TEXT on Haiku
15294         * modules/binary-io (Depends-on): Add fcntl-h.
15295         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15296         than blindly undefining O_TEXT.
15297         Reported by Scott McCreary.
15298
15299 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15300
15301         include_next: do not check for standard headers like stddef.h
15302
15303         I found this problem when modifying Emacs to use gnulib.
15304         I noticed that it added HAVE_STDDEF_H to config.h, even though
15305         gnulib always assumes <stddef.h> exists as per README and this
15306         symbol is unnecessary.
15307         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15308         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15309         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15310         faster for headers like stddef.h that are known to exist.
15311         (gl_CHECK_NEXT_HEADERS): Use it.
15312         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15313         rather than gl_CHECK_NEXT_HEADERS.
15314         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15315         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15316
15317 2011-01-18  Eric Blake  <eblake@redhat.com>
15318
15319         ansi-c++-opt: skip C++ dependency style if C++ is unused
15320         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15321         tests when we know C++ compilation is not desired.
15322         Reported by Scott McCreary.
15323
15324 2011-01-18  Bruno Haible  <bruno@clisp.org>
15325
15326         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15327         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15328         (main): Perform test also when getrlimit and setrlimit don't exist or
15329         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15330         limiting the address space size using setrlimit, compare the address
15331         space size before and after the the test.
15332         * tests/test-dprintf-posix2.c: Likewise.
15333         * tests/test-fprintf-posix3.sh: Update skip messages.
15334         * tests/test-dprintf-posix2.sh: Likewise.
15335         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15336         * modules/dprintf-posix-tests (Depends-on): Likewise.
15337         Reported by Bruce Korb <bkorb@gnu.org> and
15338         Gary V. Vaughan <gary@gnu.org>.
15339
15340 2011-01-18  Bruno Haible  <bruno@clisp.org>
15341
15342         get-rusage-as: Improvement for Cygwin.
15343         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15344         areas that are merely reserved.
15345
15346 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         strftime: remove dependencies on multibyte modules
15349
15350         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15351         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15352         only if __osf__ is defined, and I suspect OSF doesn't need these
15353         other modules.  If my guess is wrong, we'll need to come up with a
15354         variant of strftime that doesn't need the multibyte modules.
15355
15356         I discovered this problem when attempting modify Emacs to use the
15357         strftime module.  With the previous gnulib, this caused Emacs to
15358         need 31 new files, ranging from lib/config.charset to
15359         m4/wint_t.m4.  This was overkill and I expect would be offputting
15360         to the Emacs maintainers.  After this change, only 6 new files are
15361         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15362         stdbool.m4, and tm_gmtoff.m4.
15363
15364         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15365         Suggested by Bruno Haible in
15366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15367         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15368         and do not check for wchar.h.
15369         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15370         (Depends-on): Remove mbrlen, mbsinit, wchar.
15371
15372 2011-01-18  Bruno Haible  <bruno@clisp.org>
15373
15374         Tests for module 'get-rusage-as'.
15375         * modules/get-rusage-as-tests: New file.
15376         * tests/test-get-rusage-as.c: New file.
15377
15378         New module 'get-rusage-as'.
15379         * modules/get-rusage-as: New file.
15380         * lib/resource-ext.h: New file.
15381         * lib/get-rusage-as.c: New file.
15382
15383 2011-01-17  Eric Blake  <eblake@redhat.com>
15384
15385         sigaction: relax license from LGPLv3+ to LGPLv2+
15386         * modules/sigaction (License): Relax to LGPLv2+.
15387
15388 2011-01-14  Bruno Haible  <bruno@clisp.org>
15389
15390         filemode: Make function declarations usable in C++ mode.
15391         * lib/filemode.h: Enclose function declarations in extern "C" block.
15392         Reported by John W. Eaton <jwe@gnu.org>.
15393
15394 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15395
15396         save-cwd: no longer include "xgetcwd.h"
15397         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15398         This avoids a compilation failure in projects that use save-cwd
15399         without also using the xgetcwd module.
15400
15401 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15402
15403         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15404         This is so that a program like Emacs, which needs only dtoastr,
15405         does not have to bother with distributing and compiling ftoastr
15406         and ldtoastr.
15407         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15408         * modules/dtoastr, modules/ldtoastr: New files.
15409         * modules/ftoastr: Now works just for 'float'.
15410         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15411         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15412         dtoastr.c, ldtoastr.c.
15413
15414 2011-01-11  Jim Meyering  <meyering@redhat.com>
15415
15416         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15417         There is no need to work around the lack of the fchdir function,
15418         since gnulib can now provide a replacement when required.
15419         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15420         * modules/save-cwd (Depends-on): Add fchdir.
15421
15422 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         openat, save-cwd: avoid xmalloc
15425
15426         This removes a direct (but undocumented) dependency of openat on
15427         xalloc, along with an indirect dependency via save-cwd.  It also
15428         removes a dependency of save-cwd on xgetcwd, and thereby
15429         indirectly on xalloc.  This change causes the openat substitute
15430         to fall back on save_cwd when memory is tight, and for save_cwd to
15431         fail instead of dying when memory is tight, but that's good enough.
15432         Problem and initial idea for fix reported by Bastien Roucaries in
15433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15434
15435         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15436         xalloc.h (for xmalloc).
15437         (openat_proc_name): Use malloc, not xmalloc.
15438         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15439         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15440
15441         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15442         This avoids heap allocation for file names whose lengths are in
15443         the range 512..1023, with the upper bound increasing to at most
15444         4031 depending on the platform's PATH_MAX.  (We do not want
15445         pathmax.h here as it might supply a non-constant PATH_MAX.)
15446         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15447         Perhaps they should be moved to malloca.h?
15448         (OPENAT_BUFFER_SIZE): Use them.
15449
15450 2011-01-10  Bruno Haible  <bruno@clisp.org>
15451
15452         doc: Update users.txt.
15453         * users.txt: Add recutils.
15454
15455 2011-01-09  Karl Berry  <karl@gnu.org>
15456
15457         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15458
15459         * doc/configmake.texi: New file.
15460         * doc/gnulib.texi: Include it.
15461         * modules/configmake: Move documentation from here.
15462
15463 2011-01-09  Bruno Haible  <bruno@clisp.org>
15464
15465         Update to Unicode 6.0.0.
15466         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15467         (get_lbp): Update for Unicode 6.0.0.
15468         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15469         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15470         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15471         U+11001, U+11038..U+11046. Remove U+06DE.
15472         (uc_width): Fix bounds of planes.
15473         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15474         lib/uniwidth/width.c.
15475         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15476         trailing whitespace removed.
15477         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15478         without comments, but with the original copyright notice.
15479         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15480         * lib/unicase/ignorable.h: Likewise.
15481         * lib/unicase/tocasefold.h: Likewise.
15482         * lib/unicase/tolower.h: Likewise.
15483         * lib/unicase/totitle.h: Likewise.
15484         * lib/unicase/toupper.h: Likewise.
15485         * lib/unictype/bidi_of.h: Likewise.
15486         * lib/unictype/blocks.h: Likewise.
15487         * lib/unictype/categ_C.h: Likewise.
15488         * lib/unictype/categ_Cn.h: Likewise.
15489         * lib/unictype/categ_L.h: Likewise.
15490         * lib/unictype/categ_Ll.h: Likewise.
15491         * lib/unictype/categ_Lm.h: Likewise.
15492         * lib/unictype/categ_Lo.h: Likewise.
15493         * lib/unictype/categ_Lu.h: Likewise.
15494         * lib/unictype/categ_M.h: Likewise.
15495         * lib/unictype/categ_Mc.h: Likewise.
15496         * lib/unictype/categ_Me.h: Likewise.
15497         * lib/unictype/categ_Mn.h: Likewise.
15498         * lib/unictype/categ_N.h: Likewise.
15499         * lib/unictype/categ_Nd.h: Likewise.
15500         * lib/unictype/categ_No.h: Likewise.
15501         * lib/unictype/categ_P.h: Likewise.
15502         * lib/unictype/categ_Po.h: Likewise.
15503         * lib/unictype/categ_S.h: Likewise.
15504         * lib/unictype/categ_Sc.h: Likewise.
15505         * lib/unictype/categ_Sk.h: Likewise.
15506         * lib/unictype/categ_Sm.h: Likewise.
15507         * lib/unictype/categ_So.h: Likewise.
15508         * lib/unictype/categ_of.h: Likewise.
15509         * lib/unictype/combining.h: Likewise.
15510         * lib/unictype/ctype_alnum.h: Likewise.
15511         * lib/unictype/ctype_alpha.h: Likewise.
15512         * lib/unictype/ctype_graph.h: Likewise.
15513         * lib/unictype/ctype_lower.h: Likewise.
15514         * lib/unictype/ctype_print.h: Likewise.
15515         * lib/unictype/ctype_punct.h: Likewise.
15516         * lib/unictype/ctype_upper.h: Likewise.
15517         * lib/unictype/decdigit.h: Likewise.
15518         * lib/unictype/digit.h: Likewise.
15519         * lib/unictype/numeric.h: Likewise.
15520         * lib/unictype/pr_alphabetic.h: Likewise.
15521         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15522         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15523         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15524         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15525         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15526         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15527         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15528         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15529         * lib/unictype/pr_case_ignorable.h: Likewise.
15530         * lib/unictype/pr_cased.h: Likewise.
15531         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15532         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15533         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15534         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15535         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15536         * lib/unictype/pr_combining.h: Likewise.
15537         * lib/unictype/pr_composite.h: Likewise.
15538         * lib/unictype/pr_currency_symbol.h: Likewise.
15539         * lib/unictype/pr_decimal_digit.h: Likewise.
15540         * lib/unictype/pr_deprecated.h: Likewise.
15541         * lib/unictype/pr_format_control.h: Likewise.
15542         * lib/unictype/pr_grapheme_base.h: Likewise.
15543         * lib/unictype/pr_grapheme_extend.h: Likewise.
15544         * lib/unictype/pr_grapheme_link.h: Likewise.
15545         * lib/unictype/pr_id_continue.h: Likewise.
15546         * lib/unictype/pr_id_start.h: Likewise.
15547         * lib/unictype/pr_ideographic.h: Likewise.
15548         * lib/unictype/pr_lowercase.h: Likewise.
15549         * lib/unictype/pr_math.h: Likewise.
15550         * lib/unictype/pr_numeric.h: Likewise.
15551         * lib/unictype/pr_other_alphabetic.h: Likewise.
15552         * lib/unictype/pr_other_id_continue.h: Likewise.
15553         * lib/unictype/pr_other_math.h: Likewise.
15554         * lib/unictype/pr_punctuation.h: Likewise.
15555         * lib/unictype/pr_sentence_terminal.h: Likewise.
15556         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15557         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15558         * lib/unictype/pr_unified_ideograph.h: Likewise.
15559         * lib/unictype/pr_uppercase.h: Likewise.
15560         * lib/unictype/pr_xid_continue.h: Likewise.
15561         * lib/unictype/pr_xid_start.h: Likewise.
15562         * lib/unictype/scripts.h: Likewise.
15563         * lib/unictype/scripts_byname.gperf: Likewise.
15564         * lib/unictype/sy_java_ident.h: Likewise.
15565         * lib/unigbrk/gbrkprop.h: Likewise.
15566         * lib/unilbrk/lbrkprop1.h: Likewise.
15567         * lib/unilbrk/lbrkprop2.h: Likewise.
15568         * lib/uninorm/decomposition-table2.h: Likewise.
15569         * lib/uniwbrk/wbrkprop.h: Likewise.
15570         * tests/unicase/test-cased.c: Likewise.
15571         * tests/unicase/test-ignorable.c: Likewise.
15572         * tests/unicase/test-uc_tolower.c: Likewise.
15573         * tests/unicase/test-uc_totitle.c: Likewise.
15574         * tests/unicase/test-uc_toupper.c: Likewise.
15575         * tests/unictype/test-categ_C.c: Likewise.
15576         * tests/unictype/test-categ_Cn.c: Likewise.
15577         * tests/unictype/test-categ_L.c: Likewise.
15578         * tests/unictype/test-categ_Ll.c: Likewise.
15579         * tests/unictype/test-categ_Lm.c: Likewise.
15580         * tests/unictype/test-categ_Lo.c: Likewise.
15581         * tests/unictype/test-categ_Lu.c: Likewise.
15582         * tests/unictype/test-categ_M.c: Likewise.
15583         * tests/unictype/test-categ_Mc.c: Likewise.
15584         * tests/unictype/test-categ_Me.c: Likewise.
15585         * tests/unictype/test-categ_Mn.c: Likewise.
15586         * tests/unictype/test-categ_N.c: Likewise.
15587         * tests/unictype/test-categ_Nd.c: Likewise.
15588         * tests/unictype/test-categ_No.c: Likewise.
15589         * tests/unictype/test-categ_P.c: Likewise.
15590         * tests/unictype/test-categ_Po.c: Likewise.
15591         * tests/unictype/test-categ_S.c: Likewise.
15592         * tests/unictype/test-categ_Sc.c: Likewise.
15593         * tests/unictype/test-categ_Sk.c: Likewise.
15594         * tests/unictype/test-categ_Sm.c: Likewise.
15595         * tests/unictype/test-categ_So.c: Likewise.
15596         * tests/unictype/test-ctype_alnum.c: Likewise.
15597         * tests/unictype/test-ctype_alpha.c: Likewise.
15598         * tests/unictype/test-ctype_graph.c: Likewise.
15599         * tests/unictype/test-ctype_lower.c: Likewise.
15600         * tests/unictype/test-ctype_print.c: Likewise.
15601         * tests/unictype/test-ctype_punct.c: Likewise.
15602         * tests/unictype/test-ctype_upper.c: Likewise.
15603         * tests/unictype/test-decdigit.h: Likewise.
15604         * tests/unictype/test-digit.h: Likewise.
15605         * tests/unictype/test-numeric.h: Likewise.
15606         * tests/unictype/test-pr_alphabetic.c: Likewise.
15607         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15608         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15609         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15610         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15611         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15612         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15613         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15614         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15615         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15616         * tests/unictype/test-pr_cased.c: Likewise.
15617         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15618         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15619         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15620         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15621         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15622         * tests/unictype/test-pr_combining.c: Likewise.
15623         * tests/unictype/test-pr_composite.c: Likewise.
15624         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15625         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15626         * tests/unictype/test-pr_deprecated.c: Likewise.
15627         * tests/unictype/test-pr_format_control.c: Likewise.
15628         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15629         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15630         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15631         * tests/unictype/test-pr_id_continue.c: Likewise.
15632         * tests/unictype/test-pr_id_start.c: Likewise.
15633         * tests/unictype/test-pr_ideographic.c: Likewise.
15634         * tests/unictype/test-pr_lowercase.c: Likewise.
15635         * tests/unictype/test-pr_math.c: Likewise.
15636         * tests/unictype/test-pr_numeric.c: Likewise.
15637         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15638         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15639         * tests/unictype/test-pr_other_math.c: Likewise.
15640         * tests/unictype/test-pr_punctuation.c: Likewise.
15641         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15642         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15643         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15644         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15645         * tests/unictype/test-pr_uppercase.c: Likewise.
15646         * tests/unictype/test-pr_xid_continue.c: Likewise.
15647         * tests/unictype/test-pr_xid_start.c: Likewise.
15648         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15649         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15650         changes.
15651         * lib/unictype/categ_Cc.h: Likewise.
15652         * lib/unictype/categ_Cf.h: Likewise.
15653         * lib/unictype/categ_Co.h: Likewise.
15654         * lib/unictype/categ_Cs.h: Likewise.
15655         * lib/unictype/categ_Lt.h: Likewise.
15656         * lib/unictype/categ_Nl.h: Likewise.
15657         * lib/unictype/categ_Pc.h: Likewise.
15658         * lib/unictype/categ_Pd.h: Likewise.
15659         * lib/unictype/categ_Pe.h: Likewise.
15660         * lib/unictype/categ_Pf.h: Likewise.
15661         * lib/unictype/categ_Pi.h: Likewise.
15662         * lib/unictype/categ_Ps.h: Likewise.
15663         * lib/unictype/categ_Z.h: Likewise.
15664         * lib/unictype/categ_Zl.h: Likewise.
15665         * lib/unictype/categ_Zp.h: Likewise.
15666         * lib/unictype/categ_Zs.h: Likewise.
15667         * lib/unictype/ctype_blank.h: Likewise.
15668         * lib/unictype/ctype_cntrl.h: Likewise.
15669         * lib/unictype/ctype_digit.h: Likewise.
15670         * lib/unictype/ctype_space.h: Likewise.
15671         * lib/unictype/ctype_xdigit.h: Likewise.
15672         * lib/unictype/mirror.h: Likewise.
15673         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15674         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15675         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15676         * lib/unictype/pr_bidi_control.h: Likewise.
15677         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15678         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15679         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15680         * lib/unictype/pr_bidi_pdf.h: Likewise.
15681         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15682         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15683         * lib/unictype/pr_dash.h: Likewise.
15684         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15685         * lib/unictype/pr_diacritic.h: Likewise.
15686         * lib/unictype/pr_extender.h: Likewise.
15687         * lib/unictype/pr_hex_digit.h: Likewise.
15688         * lib/unictype/pr_hyphen.h: Likewise.
15689         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15690         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15691         * lib/unictype/pr_ignorable_control.h: Likewise.
15692         * lib/unictype/pr_iso_control.h: Likewise.
15693         * lib/unictype/pr_join_control.h: Likewise.
15694         * lib/unictype/pr_left_of_pair.h: Likewise.
15695         * lib/unictype/pr_line_separator.h: Likewise.
15696         * lib/unictype/pr_logical_order_exception.h: Likewise.
15697         * lib/unictype/pr_non_break.h: Likewise.
15698         * lib/unictype/pr_not_a_character.h: Likewise.
15699         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15700         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15701         * lib/unictype/pr_other_id_start.h: Likewise.
15702         * lib/unictype/pr_other_lowercase.h: Likewise.
15703         * lib/unictype/pr_other_uppercase.h: Likewise.
15704         * lib/unictype/pr_paired_punctuation.h: Likewise.
15705         * lib/unictype/pr_paragraph_separator.h: Likewise.
15706         * lib/unictype/pr_pattern_syntax.h: Likewise.
15707         * lib/unictype/pr_pattern_white_space.h: Likewise.
15708         * lib/unictype/pr_private_use.h: Likewise.
15709         * lib/unictype/pr_quotation_mark.h: Likewise.
15710         * lib/unictype/pr_radical.h: Likewise.
15711         * lib/unictype/pr_soft_dotted.h: Likewise.
15712         * lib/unictype/pr_space.h: Likewise.
15713         * lib/unictype/pr_titlecase.h: Likewise.
15714         * lib/unictype/pr_variation_selector.h: Likewise.
15715         * lib/unictype/pr_white_space.h: Likewise.
15716         * lib/unictype/pr_zero_width.h: Likewise.
15717         * lib/unictype/sy_c_ident.h: Likewise.
15718         * lib/unictype/sy_c_whitespace.h: Likewise.
15719         * lib/unictype/sy_java_whitespace.h: Likewise.
15720         * lib/uninorm/composition-table.gperf: Likewise.
15721         * lib/uninorm/decomposition-table1.h: Likewise.
15722         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15723         LB8.
15724         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15725         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15726         * modules/unictype/*: Bump version number of expected libunistring
15727         version.
15728
15729 2011-01-09  Bruno Haible  <bruno@clisp.org>
15730
15731         Update to Unicode 5.2.0.
15732         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15733         trailing whitespace removed.
15734
15735 2011-01-09  Bruno Haible  <bruno@clisp.org>
15736
15737         New Unicode character properties, from Unicode 5.2.0.
15738         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15739         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15740         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15741         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15742         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15743         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15744         uc_is_property_cased, uc_is_property_case_ignorable,
15745         uc_is_property_changes_when_lowercased,
15746         uc_is_property_changes_when_uppercased,
15747         uc_is_property_changes_when_titlecased,
15748         uc_is_property_changes_when_casefolded,
15749         uc_is_property_changes_when_casemapped): New declarations.
15750         * lib/unictype/pr_byname.gperf: Add the new properties.
15751         * modules/unictype/property-byname (Depends-on): Depend on the new
15752         properties modules.
15753         * modules/unictype/property-all (Depends-on): Likewise.
15754         * MODULES.html.sh (Unicode string functions): Add
15755         unictype/property-case-ignorable, unictype/property-cased,
15756         unictype/property-changes-when-casefolded,
15757         unictype/property-changes-when-casemapped,
15758         unictype/property-changes-when-lowercased,
15759         unictype/property-changes-when-titlecased,
15760         unictype/property-changes-when-uppercased.
15761
15762         New module 'unictype/property-changes-when-casemapped'.
15763         * modules/unictype/property-changes-when-casemapped: New file.
15764         * lib/unictype/pr_changes_when_casemapped.c: New file.
15765         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15766         generated by gen-uni-tables.
15767         * modules/unictype/property-changes-when-casemapped-tests: New file.
15768         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15769         automatically generated by gen-uni-tables.
15770
15771         New module 'unictype/property-changes-when-casefolded'.
15772         * modules/unictype/property-changes-when-casefolded: New file.
15773         * lib/unictype/pr_changes_when_casefolded.c: New file.
15774         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15775         generated by gen-uni-tables.
15776         * modules/unictype/property-changes-when-casefolded-tests: New file.
15777         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15778         automatically generated by gen-uni-tables.
15779
15780         New module 'unictype/property-changes-when-titlecased'.
15781         * modules/unictype/property-changes-when-titlecased: New file.
15782         * lib/unictype/pr_changes_when_titlecased.c: New file.
15783         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15784         generated by gen-uni-tables.
15785         * modules/unictype/property-changes-when-titlecased-tests: New file.
15786         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15787         automatically generated by gen-uni-tables.
15788
15789         New module 'unictype/property-changes-when-uppercased'.
15790         * modules/unictype/property-changes-when-uppercased: New file.
15791         * lib/unictype/pr_changes_when_uppercased.c: New file.
15792         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15793         generated by gen-uni-tables.
15794         * modules/unictype/property-changes-when-uppercased-tests: New file.
15795         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15796         automatically generated by gen-uni-tables.
15797
15798         New module 'unictype/property-changes-when-lowercased'.
15799         * modules/unictype/property-changes-when-lowercased: New file.
15800         * lib/unictype/pr_changes_when_lowercased.c: New file.
15801         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15802         generated by gen-uni-tables.
15803         * modules/unictype/property-changes-when-lowercased-tests: New file.
15804         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15805         automatically generated by gen-uni-tables.
15806
15807         New module 'unictype/property-case-ignorable'.
15808         * modules/unictype/property-case-ignorable: New file.
15809         * lib/unictype/pr_case_ignorable.c: New file.
15810         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15811         by gen-uni-tables.
15812         * modules/unictype/property-case-ignorable-tests: New file.
15813         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15814         generated by gen-uni-tables.
15815
15816         New module 'unictype/property-cased'.
15817         * modules/unictype/property-cased: New file.
15818         * lib/unictype/pr_cased.c: New file.
15819         * lib/unictype/pr_cased.h: New file, automatically generated by
15820         gen-uni-tables.
15821         * modules/unictype/property-cased-tests: New file.
15822         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15823         gen-uni-tables.
15824
15825 2011-01-09  Bruno Haible  <bruno@clisp.org>
15826
15827         Update to Unicode 5.2.0.
15828         * lib/gen-uni-tables.c (output_predicate, output_category,
15829         output_combclass, output_bidi_category, output_decimal_digit_test,
15830         output_decimal_digit, output_digit_test, output_digit,
15831         output_numeric_test, output_numeric, output_mirror, output_scripts,
15832         output_scripts_byname, output_blocks, output_ident_category): Fix
15833         comment header.
15834         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15835         get_wbp.
15836         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15837         items.
15838         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15839         Changes_When_Lowercased, Changes_When_Uppercased,
15840         Changes_When_Titlecased, Changes_When_Casefolded,
15841         Changes_When_Casemapped.
15842         (is_property_alphabetic, is_property_default_ignorable_code_point):
15843         Update for Unicode 5.2.0.
15844         (is_property_cased, is_property_case_ignorable,
15845         is_property_changes_when_lowercased,
15846         is_property_changes_when_uppercased,
15847         is_property_changes_when_titlecased,
15848         is_property_changes_when_casefolded,
15849         is_property_changes_when_casemapped): New functions.
15850         (output_properties): Output also the properties cased, case_ignorable,
15851         changes_when_lowercased, changes_when_uppercased,
15852         changes_when_titlecased, changes_when_casefolded,
15853         changes_when_casemapped.
15854         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15855         Unicode TR#11 revision 17 -> 19.
15856         (LBP_CP): New enumeration value.
15857         (LBP_*): Adjust values accordingly.
15858         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15859         TR#14 revision 22 -> 24.
15860         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15861         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15862         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15863         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15864         is_WBP_MIDLETTER.
15865         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15866         the code1 and code2 of each composition rule.
15867         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15868         * lib/unicase/ignorable.h: Likewise.
15869         * lib/unicase/tocasefold.h: Likewise.
15870         * lib/unicase/tolower.h: Likewise.
15871         * lib/unicase/totitle.h: Likewise.
15872         * lib/unicase/toupper.h: Likewise.
15873         * lib/unictype/bidi_of.h: Likewise.
15874         * lib/unictype/blocks.h: Likewise.
15875         * lib/unictype/categ_C.h: Likewise.
15876         * lib/unictype/categ_Cf.h: Likewise.
15877         * lib/unictype/categ_Cn.h: Likewise.
15878         * lib/unictype/categ_L.h: Likewise.
15879         * lib/unictype/categ_Ll.h: Likewise.
15880         * lib/unictype/categ_Lm.h: Likewise.
15881         * lib/unictype/categ_Lo.h: Likewise.
15882         * lib/unictype/categ_Lu.h: Likewise.
15883         * lib/unictype/categ_M.h: Likewise.
15884         * lib/unictype/categ_Mc.h: Likewise.
15885         * lib/unictype/categ_Mn.h: Likewise.
15886         * lib/unictype/categ_N.h: Likewise.
15887         * lib/unictype/categ_Nd.h: Likewise.
15888         * lib/unictype/categ_Nl.h: Likewise.
15889         * lib/unictype/categ_No.h: Likewise.
15890         * lib/unictype/categ_P.h: Likewise.
15891         * lib/unictype/categ_Pd.h: Likewise.
15892         * lib/unictype/categ_Po.h: Likewise.
15893         * lib/unictype/categ_S.h: Likewise.
15894         * lib/unictype/categ_Sc.h: Likewise.
15895         * lib/unictype/categ_So.h: Likewise.
15896         * lib/unictype/categ_of.h: Likewise.
15897         * lib/unictype/combining.h: Likewise.
15898         * lib/unictype/ctype_alnum.h: Likewise.
15899         * lib/unictype/ctype_alpha.h: Likewise.
15900         * lib/unictype/ctype_graph.h: Likewise.
15901         * lib/unictype/ctype_lower.h: Likewise.
15902         * lib/unictype/ctype_print.h: Likewise.
15903         * lib/unictype/ctype_punct.h: Likewise.
15904         * lib/unictype/ctype_upper.h: Likewise.
15905         * lib/unictype/decdigit.h: Likewise.
15906         * lib/unictype/digit.h: Likewise.
15907         * lib/unictype/numeric.h: Likewise.
15908         * lib/unictype/pr_alphabetic.h: Likewise.
15909         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15910         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15911         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15912         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15913         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15914         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15915         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15916         * lib/unictype/pr_combining.h: Likewise.
15917         * lib/unictype/pr_composite.h: Likewise.
15918         * lib/unictype/pr_currency_symbol.h: Likewise.
15919         * lib/unictype/pr_dash.h: Likewise.
15920         * lib/unictype/pr_decimal_digit.h: Likewise.
15921         * lib/unictype/pr_deprecated.h: Likewise.
15922         * lib/unictype/pr_diacritic.h: Likewise.
15923         * lib/unictype/pr_extender.h: Likewise.
15924         * lib/unictype/pr_grapheme_base.h: Likewise.
15925         * lib/unictype/pr_grapheme_extend.h: Likewise.
15926         * lib/unictype/pr_grapheme_link.h: Likewise.
15927         * lib/unictype/pr_id_continue.h: Likewise.
15928         * lib/unictype/pr_id_start.h: Likewise.
15929         * lib/unictype/pr_ideographic.h: Likewise.
15930         * lib/unictype/pr_ignorable_control.h: Likewise.
15931         * lib/unictype/pr_logical_order_exception.h: Likewise.
15932         * lib/unictype/pr_lowercase.h: Likewise.
15933         * lib/unictype/pr_numeric.h: Likewise.
15934         * lib/unictype/pr_other_alphabetic.h: Likewise.
15935         * lib/unictype/pr_punctuation.h: Likewise.
15936         * lib/unictype/pr_sentence_terminal.h: Likewise.
15937         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15938         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15939         * lib/unictype/pr_unified_ideograph.h: Likewise.
15940         * lib/unictype/pr_uppercase.h: Likewise.
15941         * lib/unictype/pr_xid_continue.h: Likewise.
15942         * lib/unictype/pr_xid_start.h: Likewise.
15943         * lib/unictype/pr_zero_width.h: Likewise.
15944         * lib/unictype/scripts.h: Likewise.
15945         * lib/unictype/scripts_byname.gperf: Likewise.
15946         * lib/unictype/sy_java_ident.h: Likewise.
15947         * lib/unigbrk/gbrkprop.h: Likewise.
15948         * lib/unilbrk/lbrkprop1.h: Likewise.
15949         * lib/unilbrk/lbrkprop2.h: Likewise.
15950         * lib/unilbrk/lbrktables.h: Likewise.
15951         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15952         LBP_CP. Implement rule LB30.
15953         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15954         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15955         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15956         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15957         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15958         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15959         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15960         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15961         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15962         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15963         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15964         bits instead of 16 bits in the code1 and code2 of each composition
15965         rule.
15966         (uc_composition): Update for Unicode 5.2.0.
15967         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15968         * lib/uninorm/decomposition-table2.h: Likewise.
15969         * lib/uniwbrk/wbrkprop.h: Likewise.
15970         * tests/unicase/test-cased.c: Likewise.
15971         * tests/unicase/test-ignorable.c: Likewise.
15972         * tests/unicase/test-uc_tolower.c: Likewise.
15973         * tests/unicase/test-uc_totitle.c: Likewise.
15974         * tests/unicase/test-uc_toupper.c: Likewise.
15975         * tests/unictype/test-categ_C.c: Likewise.
15976         * tests/unictype/test-categ_Cf.c: Likewise.
15977         * tests/unictype/test-categ_Cn.c: Likewise.
15978         * tests/unictype/test-categ_L.c: Likewise.
15979         * tests/unictype/test-categ_Ll.c: Likewise.
15980         * tests/unictype/test-categ_Lm.c: Likewise.
15981         * tests/unictype/test-categ_Lo.c: Likewise.
15982         * tests/unictype/test-categ_Lu.c: Likewise.
15983         * tests/unictype/test-categ_M.c: Likewise.
15984         * tests/unictype/test-categ_Mc.c: Likewise.
15985         * tests/unictype/test-categ_Mn.c: Likewise.
15986         * tests/unictype/test-categ_N.c: Likewise.
15987         * tests/unictype/test-categ_Nd.c: Likewise.
15988         * tests/unictype/test-categ_Nl.c: Likewise.
15989         * tests/unictype/test-categ_No.c: Likewise.
15990         * tests/unictype/test-categ_P.c: Likewise.
15991         * tests/unictype/test-categ_Pd.c: Likewise.
15992         * tests/unictype/test-categ_Po.c: Likewise.
15993         * tests/unictype/test-categ_S.c: Likewise.
15994         * tests/unictype/test-categ_Sc.c: Likewise.
15995         * tests/unictype/test-categ_So.c: Likewise.
15996         * tests/unictype/test-ctype_alnum.c: Likewise.
15997         * tests/unictype/test-ctype_alpha.c: Likewise.
15998         * tests/unictype/test-ctype_graph.c: Likewise.
15999         * tests/unictype/test-ctype_lower.c: Likewise.
16000         * tests/unictype/test-ctype_print.c: Likewise.
16001         * tests/unictype/test-ctype_punct.c: Likewise.
16002         * tests/unictype/test-ctype_upper.c: Likewise.
16003         * tests/unictype/test-decdigit.h: Likewise.
16004         * tests/unictype/test-digit.h: Likewise.
16005         * tests/unictype/test-numeric.h: Likewise.
16006         * tests/unictype/test-pr_alphabetic.c: Likewise.
16007         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16008         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16009         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16010         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16011         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16012         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16013         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16014         * tests/unictype/test-pr_combining.c: Likewise.
16015         * tests/unictype/test-pr_composite.c: Likewise.
16016         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16017         * tests/unictype/test-pr_dash.c: Likewise.
16018         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16019         * tests/unictype/test-pr_deprecated.c: Likewise.
16020         * tests/unictype/test-pr_diacritic.c: Likewise.
16021         * tests/unictype/test-pr_extender.c: Likewise.
16022         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16023         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16024         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16025         * tests/unictype/test-pr_id_continue.c: Likewise.
16026         * tests/unictype/test-pr_id_start.c: Likewise.
16027         * tests/unictype/test-pr_ideographic.c: Likewise.
16028         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16029         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16030         * tests/unictype/test-pr_lowercase.c: Likewise.
16031         * tests/unictype/test-pr_numeric.c: Likewise.
16032         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16033         * tests/unictype/test-pr_punctuation.c: Likewise.
16034         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16035         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16036         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16037         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16038         * tests/unictype/test-pr_uppercase.c: Likewise.
16039         * tests/unictype/test-pr_xid_continue.c: Likewise.
16040         * tests/unictype/test-pr_xid_start.c: Likewise.
16041         * tests/unictype/test-pr_zero_width.c: Likewise.
16042         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16043         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16044         changed behaviour: line breaking is now disallowed between a letter
16045         or '=' and '('.
16046         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16047         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16048         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16049         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16050         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16051         lib/uniwidth/width.c.
16052         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16053         without comments, but with the original copyright notice.
16054         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16055         changes.
16056         * lib/unictype/categ_Cc.h: Likewise.
16057         * lib/unictype/categ_Co.h: Likewise.
16058         * lib/unictype/categ_Cs.h: Likewise.
16059         * lib/unictype/categ_Lt.h: Likewise.
16060         * lib/unictype/categ_Me.h: Likewise.
16061         * lib/unictype/categ_Pc.h: Likewise.
16062         * lib/unictype/categ_Pe.h: Likewise.
16063         * lib/unictype/categ_Pf.h: Likewise.
16064         * lib/unictype/categ_Pi.h: Likewise.
16065         * lib/unictype/categ_Ps.h: Likewise.
16066         * lib/unictype/categ_Sk.h: Likewise.
16067         * lib/unictype/categ_Sm.h: Likewise.
16068         * lib/unictype/categ_Z.h: Likewise.
16069         * lib/unictype/categ_Zl.h: Likewise.
16070         * lib/unictype/categ_Zp.h: Likewise.
16071         * lib/unictype/categ_Zs.h: Likewise.
16072         * lib/unictype/ctype_blank.h: Likewise.
16073         * lib/unictype/ctype_cntrl.h: Likewise.
16074         * lib/unictype/ctype_digit.h: Likewise.
16075         * lib/unictype/ctype_space.h: Likewise.
16076         * lib/unictype/ctype_xdigit.h: Likewise.
16077         * lib/unictype/mirror.h: Likewise.
16078         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16079         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16080         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16081         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16082         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16083         * lib/unictype/pr_bidi_control.h: Likewise.
16084         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16085         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16086         * lib/unictype/pr_bidi_pdf.h: Likewise.
16087         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16088         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16089         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16090         * lib/unictype/pr_format_control.h: Likewise.
16091         * lib/unictype/pr_hex_digit.h: Likewise.
16092         * lib/unictype/pr_hyphen.h: Likewise.
16093         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16094         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16095         * lib/unictype/pr_iso_control.h: Likewise.
16096         * lib/unictype/pr_join_control.h: Likewise.
16097         * lib/unictype/pr_left_of_pair.h: Likewise.
16098         * lib/unictype/pr_line_separator.h: Likewise.
16099         * lib/unictype/pr_math.h: Likewise.
16100         * lib/unictype/pr_non_break.h: Likewise.
16101         * lib/unictype/pr_not_a_character.h: Likewise.
16102         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16103         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16104         * lib/unictype/pr_other_id_continue.h: Likewise.
16105         * lib/unictype/pr_other_id_start.h: Likewise.
16106         * lib/unictype/pr_other_lowercase.h: Likewise.
16107         * lib/unictype/pr_other_math.h: Likewise.
16108         * lib/unictype/pr_other_uppercase.h: Likewise.
16109         * lib/unictype/pr_paired_punctuation.h: Likewise.
16110         * lib/unictype/pr_paragraph_separator.h: Likewise.
16111         * lib/unictype/pr_pattern_syntax.h: Likewise.
16112         * lib/unictype/pr_pattern_white_space.h: Likewise.
16113         * lib/unictype/pr_private_use.h: Likewise.
16114         * lib/unictype/pr_quotation_mark.h: Likewise.
16115         * lib/unictype/pr_radical.h: Likewise.
16116         * lib/unictype/pr_soft_dotted.h: Likewise.
16117         * lib/unictype/pr_space.h: Likewise.
16118         * lib/unictype/pr_titlecase.h: Likewise.
16119         * lib/unictype/pr_variation_selector.h: Likewise.
16120         * lib/unictype/pr_white_space.h: Likewise.
16121         * lib/unictype/sy_c_ident.h: Likewise.
16122         * lib/unictype/sy_c_whitespace.h: Likewise.
16123         * lib/unictype/sy_java_whitespace.h: Likewise.
16124         * modules/uni*/*: Bump version number of expected libunistring version.
16125         Reported by Simon Josefsson.
16126
16127 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16128
16129         useless-if-before-free: fix typo in --help and make the internal,
16130         automatic version date update process work once again.
16131         --help output contained a NUL character instead of the
16132         backslash-zero that was intended.  Also, the "must lie within
16133         the first 8 lines" line is on line 9, and hence not getting
16134         automatically updated.
16135         * build-aux/useless-if-before-free: Fix the former by adding a
16136         backslash, and the latter by condensing the three lines of what-it-does
16137         to a single line, leaving one line of slack for the future.
16138
16139 2011-01-09  Bruno Haible  <bruno@clisp.org>
16140
16141         uniwidth/width: Fix width of U+1D173..U+1D17A.
16142         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16143         symbolic_width, output_width_property_test): New functions.
16144         (main): Invoke output_nonspacing_property, output_width_property_test.
16145         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16146         U+1D173..U+1D17A.
16147         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16148         1.
16149         * modules/uniwidth/*: Bump version number of expected libunistring
16150         version.
16151         * modules/unilbrk/*: Likewise.
16152
16153 2011-01-08  Bruno Haible  <bruno@clisp.org>
16154
16155         uninorm tests: Preserve copyright of Unicode data file.
16156         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16157         Mention modifications.
16158
16159 2011-01-08  Bruno Haible  <bruno@clisp.org>
16160
16161         gen-uni-tables: Prepare for Unicode 5.2.0.
16162         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16163         (debug_output_lbp, output_lbp): Update.
16164
16165 2011-01-08  Bruno Haible  <bruno@clisp.org>
16166
16167         unilbrk: Clarify gen-uni-tables.c code.
16168         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16169         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16170         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16171
16172 2011-01-07  Bruno Haible  <bruno@clisp.org>
16173
16174         strtod: Restore errno when successfully parsing Infinity or NaN.
16175         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16176         restore the original errno.
16177
16178 2011-01-07  Bruno Haible  <bruno@clisp.org>
16179
16180         remove test: Avoid failure on HP-UX 11.
16181         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16182
16183 2011-01-07  Bruno Haible  <bruno@clisp.org>
16184
16185         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16186         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16187         error code.
16188
16189 2011-01-07  Pádraig Brady <P@draigBrady.com>
16190
16191         ignore-value: fixup comments, and add Eric Blake
16192         as an author since he rewrote the macros.
16193         * lib/ignore-value.h (ignore_value):  State that
16194         we now support aggregates.  Also specify exactly
16195         when the GCC warn_unused_result feature was added.
16196
16197 2011-01-06  Eric Blake  <eblake@redhat.com>
16198
16199         ignore-value: support aggregate types
16200         * lib/ignore-value.h (ignore_value): Provide separate gcc
16201         definition.
16202         * modules/ignore-value-tests: New test module.
16203         * tests/test-ignore-value.c: New test.
16204
16205         maint.mk: improve sc_prohibit_strcmp regex
16206         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16207         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16208         definition of STRNEQ.
16209
16210         signal: work around Haiku issue with SIGBUS
16211         * lib/siglist.h: Add comment.
16212         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16213         strsignal's favoring of SIGSEGV.
16214         * tests/test-signal.c (main): Avoid test failure.
16215         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16216         Reported by Scott McCreary.
16217
16218         maint.mk: add pre-release check to ensure submodule commits are public
16219         * top/maint.mk (public-submodule-commit): New rule.
16220         (submodule-checks): New variable.
16221         (alpha beta stable): Depend on the variable.
16222
16223 2011-01-05  Pádraig Brady <P@draigBrady.com>
16224         and Jim Meyering  <meyering@redhat.com>
16225
16226         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16227         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16228         (ATTRIBUTE_DEPRECATED): Define.
16229         (_ignore_case): New function.
16230         (ignore_value): New macro, to replace the old function.
16231         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16232         * modules/ignore-value (Depends-on): Add stdint.
16233
16234 2011-01-04  Eric Blake  <eblake@redhat.com>
16235
16236         doc: regenerate INSTALL
16237         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16238         @firstparagraphindent support, now that autoconf dropped it.
16239         (INSTALL_PRELUDE): Reinstate old macro.
16240         * doc/install.texi: Resync from autoconf.
16241         * doc/INSTALL: Reflect recent autoconf update.
16242         * doc/INSTALL.ISO: Likewise.
16243         * doc/INSTALL.UTF-8: Likewise.
16244         Reported by Karl Berry.
16245
16246 2011-01-04  Bruce Korb  <address@hidden>
16247
16248         git-version-gen: avoid a sub-shell
16249         * build-aux/git-version-gen: Redirect stderr in `...` via
16250         "exec 2>...", rather than via an added sub-shell.
16251
16252 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16253
16254         git-version-gen: use (...) rather than sh -c '...'
16255         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16256         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16257
16258 2011-01-03  Jim Meyering  <meyering@redhat.com>
16259
16260         git-version-gen: convert leading TABs to spaces
16261         * build-aux/git-version-gen: Expand leading TABs.
16262
16263         git-version-gen: handle failed "git rev-list"
16264         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16265         from git and proceeding as if it had succeeded but printed no SHA1
16266         checksums, suppress the diagnostic and handle the failure.
16267         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16268
16269         git-version-gen: include command name in one more diagnostic
16270         * build-aux/git-version-gen: When the required .tarball-version file
16271         was missing or unreadable, you might see the diagnostic from "cat",
16272         but no trace of the name of the invoking script.  Now, you still see
16273         the diagnostic from cat, but also get one from "git-version-gen: ".
16274         Inspired by a patch from Bruce Korb.
16275
16276         update-copyright: adjust test to match changed code
16277         * tests/test-update-copyright.sh: Change test's expected output
16278         to match new actual output.
16279
16280 2011-01-02  Bruno Haible  <bruno@clisp.org>
16281
16282         getlogin_r: Avoid test failure on HP-UX 11.
16283         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16284         ERANGE when the second argument is zero.
16285         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16286         portability problem.
16287
16288 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16289
16290         * build-aux/update-copyright: doc Simon's changes
16291
16292 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16293
16294         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16295         environment variable.
16296
16297 2011-01-02  Bruno Haible  <bruno@clisp.org>
16298
16299         unigbrk: Avoid gcc warnings.
16300         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16301         unused variable.
16302         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16303         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16304         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16305         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16306         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16307         Change type of first argument to 'const char *'.
16308         (main): Remove unused variable.
16309         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16310         type of first argument to 'const char *'.
16311         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16312         Likewise.
16313         (main): Change type of variable 's'.
16314         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16315         to 'int'.
16316
16317 2011-01-02  Bruno Haible  <bruno@clisp.org>
16318
16319         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16320         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16321         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16322         bug.
16323         * lib/pwrite.c: Undo 2010-12-31 patch.
16324         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16325
16326 2011-01-02  Bruno Haible  <bruno@clisp.org>
16327
16328         pread: Fix test whether it works.
16329         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16330
16331 2011-01-02  Bruno Haible  <bruno@clisp.org>
16332
16333         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16334         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16335         ends in "6". Don't require a specific month name. Try also the locale
16336         names found on HP-UX 11 and Solaris 7.
16337
16338 2011-01-02  Bruno Haible  <bruno@clisp.org>
16339
16340         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16341         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16342         C linkage.
16343         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16344
16345 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16346
16347         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16348         for consistency, since the "cluster" term is not used elsewhere.
16349         * lib/unigbrk.in.h: Update name.
16350         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16351         * lib/unigbrk/u16-grapheme-next.c: Update name.
16352         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16353         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16354         * lib/unigbrk/u32-grapheme-next.c: Update name.
16355         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16356         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16357         * lib/unigbrk/u8-grapheme-next.c: Update name.
16358         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16359         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16360         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16361         Suggested by Bruno Haible.
16362
16363 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16364
16365         Remove module 'u8-grapheme-len' as too redundant with
16366         'u8-grapheme-next'.
16367         * modules/unigbrk/u8-grapheme-len: Delete file.
16368         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16369         * lib/unigbrk.in.h: Remove prototype for deleted function.
16370         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16371         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16372
16373         Remove module 'u16-grapheme-len' as too redundant with
16374         'u16-grapheme-next'.
16375         * modules/unigbrk/u16-grapheme-len: Delete file.
16376         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16377         * lib/unigbrk.in.h: Remove prototype for deleted function.
16378         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16379         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16380
16381         Remove module 'u32-grapheme-len' as too redundant with
16382         'u32-grapheme-next'.
16383         * modules/unigbrk/u32-grapheme-len: Delete file.
16384         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16385         * lib/unigbrk.in.h: Remove prototype for deleted function.
16386         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16387         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16388
16389         Suggested by Bruno Haible.
16390
16391 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16392
16393         * unigbrk.in.h: Fix typo: "ben" => "been".
16394         Reported by Bruno Haible.
16395
16396 2011-01-01  Jim Meyering  <meyering@redhat.com>
16397
16398         maint: update almost all copyright ranges to include 2011
16399         Run the new "make update-copyright" rule.
16400
16401 2011-01-01  Jim Meyering  <meyering@redhat.com>
16402
16403         maint: update-copyright: exempt doc/INSTALL*
16404         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16405         since they are generated.  Suggested by Bruno Haible.
16406
16407 2011-01-01  Jim Meyering  <meyering@redhat.com>
16408
16409         maint: refine the update-copyright rule
16410         * Makefile (update-copyright): Also exclude any file that includes
16411         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16412         code that merely generates the comment.
16413
16414 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16415
16416         New module 'u8-grapheme-len'.
16417         * modules/unigbrk/u8-grapheme-len: New file.
16418         * modules/unigbrk/u8-grapheme-len-tests: New file.
16419         * lib/unigbrk.in.h: Add prototype for new function.
16420         * lib/unigbrk/u8-grapheme-len.c: New file.
16421         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16422
16423         New module 'u16-grapheme-len'.
16424         * modules/unigbrk/u16-grapheme-len: New file.
16425         * modules/unigbrk/u16-grapheme-len-tests: New file.
16426         * lib/unigbrk.in.h: Add prototype for new function.
16427         * lib/unigbrk/u16-grapheme-len.c: New file.
16428         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16429
16430         New module 'u32-grapheme-len'.
16431         * modules/unigbrk/u32-grapheme-len: New file.
16432         * modules/unigbrk/u32-grapheme-len-tests: New file.
16433         * lib/unigbrk.in.h: Add prototype for new function.
16434         * lib/unigbrk/u32-grapheme-len.c: New file.
16435         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16436
16437         New module 'u8-grapheme-next'.
16438         * modules/unigbrk/u8-grapheme-next: New file.
16439         * modules/unigbrk/u8-grapheme-next-tests: New file.
16440         * lib/unigbrk.in.h: Add prototype for new function.
16441         * lib/unigbrk/u8-grapheme-next.c: New file.
16442         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16443
16444         New module 'u16-grapheme-next'.
16445         * modules/unigbrk/u16-grapheme-next: New file.
16446         * modules/unigbrk/u16-grapheme-next-tests: New file.
16447         * lib/unigbrk.in.h: Add prototype for new function.
16448         * lib/unigbrk/u16-grapheme-next.c: New file.
16449         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16450
16451         New module 'u32-grapheme-next'.
16452         * modules/unigbrk/u32-grapheme-next: New file.
16453         * modules/unigbrk/u32-grapheme-next-tests: New file.
16454         * lib/unigbrk.in.h: Add prototype for new function.
16455         * lib/unigbrk/u32-grapheme-next.c: New file.
16456         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16457
16458         New module 'u8-grapheme-prev'.
16459         * modules/unigbrk/u8-grapheme-prev: New file.
16460         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16461         * lib/unigbrk.in.h: Add prototype for new function.
16462         * lib/unigbrk/u8-grapheme-prev.c: New file.
16463         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16464
16465         New module 'u16-grapheme-prev'.
16466         * modules/unigbrk/u16-grapheme-prev: New file.
16467         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16468         * lib/unigbrk.in.h: Add prototype for new function.
16469         * lib/unigbrk/u16-grapheme-prev.c: New file.
16470         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16471
16472         New module 'u32-grapheme-prev'.
16473         * modules/unigbrk/u32-grapheme-prev: New file.
16474         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16475         * lib/unigbrk.in.h: Add prototype for new function.
16476         * lib/unigbrk/u32-grapheme-prev.c: New file.
16477         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16478
16479         New module 'u8-grapheme-breaks'.
16480         * modules/unigbrk/u8-grapheme-breaks: New file.
16481         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16482         * lib/unigbrk.in.h: Add prototype for new function.
16483         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16484         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16485
16486         New module 'u16-grapheme-breaks'.
16487         * modules/unigbrk/u16-grapheme-breaks: New file.
16488         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16489         * lib/unigbrk.in.h: Add prototype for new function.
16490         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16491         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16492
16493         New module 'u32-grapheme-breaks'.
16494         * modules/unigbrk/u32-grapheme-breaks: New file.
16495         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16496         * lib/unigbrk.in.h: Add prototype for new function.
16497         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16498         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16499
16500         New module 'ulc-grapheme-breaks'.
16501         * modules/unigbrk/ulc-grapheme-breaks: New file.
16502         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16503         * m4/locale-ar.m4: New file.
16504         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16505         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16506         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16507
16508 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16509
16510         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16511         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16512         modified how this file was generated before I initially submitted
16513         the module, but failed to regenerate it.  This meant that several
16514         of the level2 entries were wrong.
16515         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16516         Remove the division-by-2 that is folded into the table now that
16517         gbrkprop.h has been regenerated properly.  Now -1 entries are
16518         handled correctly.
16519
16520         New module 'unigbrk/uc-gbrk-prop-tests'.
16521         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16522         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16523         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16524         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16525
16526 2011-01-01  Bruno Haible  <bruno@clisp.org>
16527
16528         Avoid use of hexadecimal escapes.
16529         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16530         instead of hexadecimal escapes.
16531
16532 2011-01-01  Jim Meyering  <meyering@redhat.com>
16533
16534         maint: new rule to update copyright year ranges
16535         * Makefile (update-copyright): New rule.
16536
16537         maint: indent with TABs in Makefile
16538         * Makefile: Expand leading sequences of spaces to TABs
16539
16540         version-etc: update the copyright year it reports
16541         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16542
16543 2010-12-31  Bruno Haible  <bruno@clisp.org>
16544
16545         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16546         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16547         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16548         zero.
16549
16550 2010-12-31  Bruno Haible  <bruno@clisp.org>
16551
16552         pwrite: Work around HP-UX 11.11 bug.
16553         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16554         works and set REPLACE_PWRITE if not.
16555         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16556         function.
16557         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16558
16559 2010-12-31  Bruno Haible  <bruno@clisp.org>
16560
16561         pread: Work around HP-UX 11 bugs.
16562         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16563         and set REPLACE_PREAD if not.
16564         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16565
16566 2010-12-31  Eric Blake  <eblake@redhat.com>
16567
16568         nl_langinfo: fix YESEXPR on Irix 6.5
16569         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16570         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16571         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16572         it.
16573
16574 2010-12-31  Bruno Haible  <bruno@clisp.org>
16575
16576         iconv: Document HP-UX 11 bug.
16577         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16578
16579 2010-12-31  Bruno Haible  <bruno@clisp.org>
16580
16581         ldexpl: Fix link error on HP-UX 11.
16582         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16583         LDEXPL_LIBM, using $ISNANL_LIBM.
16584
16585 2010-12-31  Eric Blake  <eblake@redhat.com>
16586
16587         ftello: avoid compilation failure with SunStudio c89
16588         * lib/ftello.c (ftello): Use lseek, not llseek.
16589
16590         tests: avoid failing coreutils tests on cygwin
16591         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16592         (create_exe_shims_): Return 0 when skipping.
16593
16594 2010-12-31  Bruno Haible  <bruno@clisp.org>
16595
16596         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16597         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16598
16599 2010-12-31  Bruno Haible  <bruno@clisp.org>
16600
16601         waitpid: Fix link error in C++ mode.
16602         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16603
16604 2010-12-31  Bruno Haible  <bruno@clisp.org>
16605
16606         isnan: Use GCC built-ins when possible.
16607         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16608         __builtin_isnan.
16609         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16610         (isnan): Define using GCC built-ins for GCC >= 4.0.
16611
16612 2010-12-31  Bruno Haible  <bruno@clisp.org>
16613
16614         isnand: Fix mistake.
16615         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16616         __builtin_isnand.
16617
16618 2010-12-31  Bruno Haible  <bruno@clisp.org>
16619
16620         open: Avoid C++ error on HP-UX 11.
16621         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16622
16623 2010-12-31  Bruno Haible  <bruno@clisp.org>
16624
16625         time_r: Add missing declarations on HP-UX 11.
16626         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16627         instead of HAVE_LOCALTIME_R.
16628         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16629         HAVE_LOCALTIME_R always.
16630         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16631         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16632         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16633         HAVE_LOCALTIME_R.
16634         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16635         * doc/posix-functions/localtime_r.texi: Likewise.
16636
16637 2010-12-29  Eric Blake  <eblake@redhat.com>
16638
16639         mountlist: tweak previous commit
16640         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16641         Reported by Paul Eggert.
16642
16643         mountlist: fix local drive detection on cygwin
16644         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16645         that works for cygwin.
16646
16647 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16648
16649         ftoastr, snprintf: ftoastr + snprintf module
16650         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16651         since the snprintf module now should be good enough here.
16652         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16653         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16654         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16655         GNULIB_SNPRINTF only for the test directory, and the latter
16656         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16657         seems to suffice by itself.
16658
16659 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16660
16661         alloca: one step towards thread-safety
16662         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16663         need for a static variable.  All callers changed.  This does not
16664         make the alloca replacement thread-safe, but it's one step.
16665
16666         tests: minor indenting change
16667         * tests/init.sh: Sync from coreutils housekeeping patch
16668         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16669         to keep lines within 80 columns.
16670
16671 2010-12-28  Jim Meyering  <meyering@redhat.com>
16672
16673         regex: don't infloop on persistent failing calloc
16674         * lib/regexec.c (build_trtable): Return failure indication upon
16675         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16676         In glibc, this was fixed for version 2.13:
16677         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16678
16679 2010-12-28  Bruno Haible  <bruno@clisp.org>
16680             Paul Eggert <eggert@cs.ucla.edu>
16681
16682         linkat: Make implementation robust against system behaviour variations.
16683         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16684         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16685         way, and to -2 if it needs a generic runtime test.
16686         * lib/linkat.c (solaris_optimized_link_immediate,
16687         solaris_optimized_link_follow): New functions.
16688         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16689         (check_same_link): Use it.
16690
16691 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16692
16693         New module 'unigbrk/base'.
16694         * modules/unigbrk/base: New file.
16695         * lib/unigbrk.in.h: New file.
16696
16697         New module 'unigbrk/uc-gbrk-prop'.
16698         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16699         * modules/unigbrk/uc-gbrk-prop: New file.
16700         * lib/unigbrk/gbrkprop.h: New file.
16701         * lib/unigbrk/uc-gbrk-prop.c: New file.
16702
16703         New module 'unigbrk/uc-is-grapheme-break'.
16704         * modules/unigbrk/uc-is-grapheme-break: New file.
16705         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16706         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16707         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16708         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16709         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16710
16711         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16712
16713 2010-12-27  Bruno Haible  <bruno@clisp.org>
16714
16715         linkat test: Avoid failure on Solaris 11 2010-11.
16716         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16717
16718 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16719
16720         utimens: work around glibc rounding bug on more platforms
16721         * lib/utimens.c (fdutimens): Work around rounding bug even if
16722         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16723         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16724
16725 2010-12-27  Bruno Haible  <bruno@clisp.org>
16726
16727         select tests: Improve comments.
16728         * tests/test-select.c (do_select): Add comments.
16729
16730 2010-12-27  Bruno Haible  <bruno@clisp.org>
16731
16732         select tests: Safer way of handling timeout.
16733         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16734         at every invocation.
16735
16736 2010-12-27  Bruno Haible  <bruno@clisp.org>
16737
16738         select tests: Use 'bool' where appropriate.
16739         * tests/test-select.c (connect_to_socket): Change argument type to
16740         'bool'.
16741
16742 2010-12-27  Bruno Haible  <bruno@clisp.org>
16743
16744         select tests: Use existing modules.
16745         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16746         (configure.ac): Don't test for unistd.h.
16747         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16748         declared in <unistd.h>.
16749
16750 2010-12-27  Bruno Haible  <bruno@clisp.org>
16751
16752         mbrtowc: Work around a Solaris 7 bug.
16753         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16754         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16755         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16756         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16757         MBRTOWC_NULL_ARG1_BUG.
16758         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16759         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16760         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16761         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16762
16763 2010-12-27  Jim Meyering  <meyering@redhat.com>
16764
16765         read-file.c: tweak syntax
16766         * lib/read-file.c (fread_file): Remove space after "*" in function
16767         definitions.
16768
16769 2010-12-27  Bruno Haible  <bruno@clisp.org>
16770
16771         times test: Avoid gcc warnings on OSF/1.
16772         * tests/test-times.c (main): Cast printf arguments from clock_t to
16773         'long int'.
16774
16775 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16776
16777         utimens: work around glibc rounding bug on older Linux kernels
16778         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16779         on Linux with a glibc whose utimes might not work, then work
16780         around a longstanding glibc bug involving rounding rather than
16781         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16782         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16783
16784 2010-12-26  Bruno Haible  <bruno@clisp.org>
16785
16786         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16787         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16788         _GL_CXXALIAS_SYS.
16789         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16790
16791 2010-12-26  Bruno Haible  <bruno@clisp.org>
16792
16793         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16794         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16795         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16796         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16797         looking for the declaration.
16798         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16799         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16800         problem.
16801         * doc/posix-functions/inet_pton.texi: Likewise.
16802
16803 2010-12-26  Bruno Haible  <bruno@clisp.org>
16804
16805         arpa_inet: Use the common idioms with C++ support.
16806         * lib/arpa_inet.in.h: Include c++defs.h.
16807         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16808         support.
16809         * modules/arpa_inet (Depends-on): Add c++defs.
16810         (Makefile.am): Substitute the contents of c++defs.h.
16811         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16812         * modules/arpa_inet-c++-tests: New file.
16813         * tests/test-arpa_inet-c++.cc: New file.
16814
16815 2010-12-25  Bruno Haible  <bruno@clisp.org>
16816
16817         Fix more C++ link errors on Solaris 8.
16818         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16819         $(LIB_EACCESS).
16820         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16821         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16822         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16823         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16824         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16825
16826 2010-12-25  Bruno Haible  <bruno@clisp.org>
16827
16828         printf-posix: Fix link error when a non-GCC compiler is used.
16829         * lib/stdio.in.h (printf): When not using GCC, override printf
16830         correctly.
16831         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16832
16833 2010-12-25  Bruno Haible  <bruno@clisp.org>
16834
16835         strerror_r-posix: Update doc.
16836         * doc/posix-functions/strerror_r.texi: Update doc about the return
16837         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16838
16839 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16840
16841         utimens: simplify the logic of the previous change
16842         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16843         This should not affect whether the test succeeds or fails.
16844
16845         utimens: configure better on hosts with NFS clock skew
16846         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16847         uses the clock of the local host.  It might use the clock of the
16848         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16850
16851 2010-12-25  Bruno Haible  <bruno@clisp.org>
16852
16853         ptsname test: Avoid failure on Solaris.
16854         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16855         open a pseudo-terminal; don't use BSD-style ptys.
16856         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16857
16858 2010-12-25  Bruno Haible  <bruno@clisp.org>
16859
16860         ptsname: Avoid ERANGE failure on some systems.
16861         * lib/ptsname.c (buffer): Increase size.
16862
16863 2010-12-25  Bruno Haible  <bruno@clisp.org>
16864
16865         rename, renameat: Avoid test failures at NFS mounted locations.
16866         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16867         so that subsequent mkdir calls succeed.
16868
16869 2010-12-25  Bruno Haible  <bruno@clisp.org>
16870
16871         iswblank: Fix C++ link error on Solaris 8.
16872         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16873         _GL_FUNCDECL_SYS.
16874
16875 2010-12-25  Bruno Haible  <bruno@clisp.org>
16876
16877         unistd: Fix C++ link error on Solaris 8.
16878         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16879
16880 2010-12-25  Bruno Haible  <bruno@clisp.org>
16881
16882         readlink doc: Mention an old glibc bug.
16883         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16884
16885 2010-12-25  Bruno Haible  <bruno@clisp.org>
16886
16887         fcntl-h: Fix for use of C++ on glibc systems.
16888         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16889         also on glibc systems in C++ mode.
16890         Reported by Gary V. Vaughan <gary@gnu.org>.
16891
16892 2010-12-25  Bruno Haible  <bruno@clisp.org>
16893
16894         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16895         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16896
16897 2010-12-25  Bruno Haible  <bruno@clisp.org>
16898
16899         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16900         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16901         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16902         test whether truncl works according to ISO C 99 with IEC 60559.
16903         * m4/truncl-ieee.m4: New file.
16904         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16905         m4/signbit.m4.
16906         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16907
16908 2010-12-25  Bruno Haible  <bruno@clisp.org>
16909
16910         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16911         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16912         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16913         test whether ceill works according to ISO C 99 with IEC 60559.
16914         * m4/ceill-ieee.m4: New file.
16915         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16916         m4/signbit.m4.
16917         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16918
16919 2010-12-25  Bruno Haible  <bruno@clisp.org>
16920
16921         Ensure all prerequisites of <wchar.h> are included.
16922         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16923         before <wchar.h>.
16924         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16925         gl_MBRLEN_NUL_RETVAL): Likewise.
16926         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16927         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16928         AC_FUNC_MBRTOWC): Likewise.
16929         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16930         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16932         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16933         Likewise.
16934         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16935         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16936         (gl_WCHAR_H): Improve comments.
16937         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16938
16939 2010-12-25  Bruno Haible  <bruno@clisp.org>
16940
16941         strtok_r: Fix C syntax error in autoconf macro.
16942         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16943         characters in test program.
16944
16945 2010-12-24  Bruno Haible  <bruno@clisp.org>
16946
16947         ceil, trunc, round: Fix gcc warnings.
16948         * lib/ceil.c (MIN): Undefine before redefining.
16949         * lib/trunc.c (MIN): Likewise.
16950         * lib/round.c (MIN): Likewise.
16951         Include <math.h> first.
16952
16953 2010-12-24  Bruno Haible  <bruno@clisp.org>
16954
16955         select tests: Avoid failures on OSF/1 5.1.
16956         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16957         failure of closing the last socket; it may fail with ECONNRESET.
16958
16959 2010-12-24  Eric Blake  <eblake@redhat.com>
16960
16961         stdint: avoid HP-UX 10.20 preprocessor bug
16962         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16963         than #if.
16964         * tests/test-floor2.c (main): Likewise.
16965         Reported by Peter O'Gorman.
16966
16967         pipe: make obsoletion transition easier
16968         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16969         * modules/pipe (Files): Include revived file.
16970         (Include): Drop reference, to mirror getdate's behavior.
16971
16972 2010-12-24  Bruno Haible  <bruno@clisp.org>
16973
16974         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16975         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16976         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16977         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16978
16979 2010-12-24  Bruno Haible  <bruno@clisp.org>
16980
16981         gethostname: Ensure declaration on NonStop Kernel.
16982         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16984
16985 2010-12-24  Bruno Haible  <bruno@clisp.org>
16986
16987         sys_select: Ensure all necessary types on NonStop Kernel.
16988         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16989         include <sys/time.h>.
16990         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16991         NonStop Kernel.
16992         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16993
16994 2010-12-24  Bruno Haible  <bruno@clisp.org>
16995
16996         sys_select: Remove unneeded include.
16997         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16998         have <sys/select.h>.
16999
17000 2010-12-24  Bruno Haible  <bruno@clisp.org>
17001
17002         gethostname: Provide a fallback for HOST_NAME_MAX.
17003         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17004         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17005         instead.
17006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17007
17008 2010-12-24  Bruno Haible  <bruno@clisp.org>
17009
17010         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17011         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17012         (SA_RESTART): Likewise.
17013         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17014
17015 2010-12-24  Bruno Haible  <bruno@clisp.org>
17016
17017         signal: Define NSIG.
17018         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17019         * tests/test-signal.c (nsig): New variable.
17020         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17021
17022 2010-12-24  Bruno Haible  <bruno@clisp.org>
17023
17024         rename, renameat: Avoid test failures on OSF/1 5.1.
17025         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17026         alternative error codes.
17027         * tests/test-renameat.c (main): Likewise.
17028
17029 2010-12-24  Bruno Haible  <bruno@clisp.org>
17030
17031         *printf: Detect large precisions bug on Solaris 10/SPARC.
17032         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17033         by Paul Eggert.
17034         * tests/test-snprintf-posix.h (test_function): Add this test code here
17035         too.
17036         * tests/test-sprintf-posix.h (test_function): Likewise.
17037         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17038         * tests/test-vasprintf-posix.c (test_function): Likewise.
17039         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17040         around by gnulib.
17041         * doc/posix-functions/printf.texi: Likewise.
17042         * doc/posix-functions/snprintf.texi: Likewise.
17043         * doc/posix-functions/sprintf.texi: Likewise.
17044         * doc/posix-functions/vfprintf.texi: Likewise.
17045         * doc/posix-functions/vprintf.texi: Likewise.
17046         * doc/posix-functions/vsnprintf.texi: Likewise.
17047         * doc/posix-functions/vsprintf.texi: Likewise.
17048         * doc/posix-functions/dprintf.texi: Undo last commit.
17049         * doc/posix-functions/vdprintf.texi: Likewise.
17050
17051 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17052
17053         tests: port test-fdutimensat.c to Solaris 8
17054         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17055         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17056         On Solaris 8, it fails with errno == ENOSYS, because there is no
17057         futimens (so it can't use the fd), and there is no lutimens (so it
17058         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17059
17060         vsnprintf: make more consistent with snprintf; doc fixes
17061
17062         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17063         the byte count return problem was promoted from the snprintf-posix
17064         to the snprintf module.
17065         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17066         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17067         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17068         * tests/test-snprintf.c (main): Check the byte count returned.
17069         * tests/test-vsnprintf.c (main): Likewise.
17070
17071 2010-12-23  Eric Blake  <eblake@redhat.com>
17072
17073         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17074         * modules/sigpipe (License): Relax license.
17075
17076 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17077
17078         doc: document Solaris printf bug with large float precisions
17079         * doc/posix-functions/dprintf.texi (dprintf):
17080         * doc/posix-functions/fprintf.texi (fprintf):
17081         * doc/posix-functions/printf.texi (printf):
17082         * doc/posix-functions/snprintf.texi (snprintf):
17083         * doc/posix-functions/sprintf.texi (sprintf):
17084         * doc/posix-functions/vdprintf.texi (vdprintf):
17085         * doc/posix-functions/vfprintf.texi (vfprintf):
17086         * doc/posix-functions/vprintf.texi (vprintf):
17087         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17088         * doc/posix-functions/vsprintf.texi (vsprintf):
17089         Mention that these functions mishandle large floating point
17090         precisions on Solaris 10.  The same bug is also present in Solaris
17091         8, and I assume earlier.  This causes "cd gnulib-tests; make
17092         check" to fail on Solaris 8 (and I assume, later) when building
17093         the latest coreutils, in test-vasprintf-posix's call to
17094         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17095         the wide flavors (e.g., wprintf) so this patch just updates the
17096         documentation for the narrow ones.
17097
17098         test-posixtm.c: add two tests
17099         * tests/test-posixtm.c: Add two tests, to highlight the
17100         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17101         around this bug; this is merely to document it.
17102
17103 2010-12-22  Bruno Haible  <bruno@clisp.org>
17104
17105         getlogin_r: Work around portability problem on OSF/1.
17106         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17107         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17108         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17109         test for a truncated result.
17110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17111         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17112         * modules/getlogin_r (Depends-on): Add memchr.
17113         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17114
17115 2010-12-22  Bruno Haible  <bruno@clisp.org>
17116
17117         ptsname: Avoid test failure on OSF/1 5.1.
17118         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17119         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17120         (same_slave): New function.
17121         (main): Use it to compare ptsname's result with the expected file name.
17122
17123 2010-12-22  Bruno Haible  <bruno@clisp.org>
17124
17125         Port extended stdio modules to HP NonStop Kernel.
17126         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17127         macros.
17128         * lib/fbufmode.c: Update comments.
17129         * lib/fflush.c: Likewise.
17130         * lib/fpurge.c: Likewise.
17131         * lib/freadable.c: Likewise.
17132         * lib/freadahead.c: Likewise.
17133         * lib/freading.c: Likewise.
17134         * lib/freadptr.c: Likewise.
17135         * lib/freadseek.c: Likewise.
17136         * lib/fseeko.c: Likewise.
17137         * lib/fseterr.c: Likewise.
17138         * lib/fwritable.c: Likewise.
17139         * lib/fwriting.c: Likewise.
17140         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17141
17142 2010-12-22  Bruno Haible  <bruno@clisp.org>
17143
17144         ttyname_r: Work around bug on OSF/1 5.1.
17145         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17146         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17147         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17148         present.
17149         * lib/ttyname_r.c (ttyname_r): Update comments.
17150
17151 2010-12-22  Bruno Haible  <bruno@clisp.org>
17152
17153         round: Implement result sign according to IEEE 754.
17154         * lib/round.c (MIN, MINUS_ZERO): New macros.
17155         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17156         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17157         * tests/test-round-ieee.c (main): Likewise.
17158         * tests/test-roundl-ieee.c (main): Likewise.
17159
17160         trunc: Implement result sign according to IEEE 754.
17161         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17162         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17163         * tests/test-trunc2.c: Include minus-zero.h.
17164         (MINUS_ZERO): New macro.
17165         (trunc_reference): Keep in sync with lib/trunc.c.
17166         * tests/test-truncf2.c: Include minus-zero.h.
17167         (MINUS_ZERO): New macro.
17168         (truncf_reference): Keep in sync with lib/trunc.c.
17169         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17170         * tests/test-trunc-ieee.c (main): Likewise.
17171         * tests/test-truncl-ieee.c (main): Likewise.
17172
17173         ceil: Implement result sign according to IEEE 754.
17174         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17175         (FUNC): Return -0.0 for -1 < x < 0.
17176         * tests/test-ceil2.c: Include minus-zero.h.
17177         (MINUS_ZERO): New macro.
17178         (ceil_reference): Keep in sync with lib/ceil.c.
17179         * tests/test-ceilf2.c: Include minus-zero.h.
17180         (MINUS_ZERO): New macro.
17181         (ceilf_reference): Keep in sync with lib/ceil.c.
17182         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17183         * tests/test-ceil-ieee.c (main): Likewise.
17184         * tests/test-ceill-ieee.c (main): Likewise.
17185
17186         floor: Implement result sign according to IEEE 754.
17187         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17188         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17189         * tests/test-floorf2.c (floorf_reference): Likewise.
17190         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17191         * tests/test-floor-ieee.c (main): Likewise.
17192         * tests/test-floorl-ieee.c (main): Likewise.
17193
17194 2010-12-22  Bruno Haible  <bruno@clisp.org>
17195
17196         getaddrinfo: Update doc.
17197         * doc/posix-functions/gai_strerror.texi: Return type is also different
17198         on AIX and HP-UX.
17199
17200 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17201
17202         getaddrinfo, inet_ntop: Update doc for Solaris.
17203         * doc/posix-functions/gai_strerror.texi: Return type is also an
17204         issue on Solaris 9 and earlier.
17205         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17206         on Solaris 10 and earlier.
17207
17208 2010-12-21  Bruno Haible  <bruno@clisp.org>
17209
17210         New module 'roundl-ieee'.
17211         * modules/roundl-ieee: New file.
17212         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17213         test whether roundl works according to ISO C 99 with IEC 60559.
17214         * m4/roundl-ieee.m4: New file.
17215         * modules/roundl-ieee-tests: New file.
17216         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17217         * tests/test-roundl.c (main): Remove signbit tests.
17218         * modules/roundl-tests (Depends-on): Remove signbit.
17219         * doc/posix-functions/roundl.texi: Mention the new module.
17220
17221 2010-12-21  Bruno Haible  <bruno@clisp.org>
17222
17223         New module 'truncl-ieee'.
17224         * modules/truncl-ieee: New file.
17225         * modules/truncl-ieee-tests: New file.
17226         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17227         * tests/test-truncl.c (main): Remove signbit tests.
17228         * modules/truncl-tests (Depends-on): Remove signbit.
17229         * doc/posix-functions/truncl.texi: Mention the new module.
17230
17231 2010-12-21  Bruno Haible  <bruno@clisp.org>
17232
17233         New module 'ceill-ieee'.
17234         * modules/ceill-ieee: New file.
17235         * modules/ceill-ieee-tests: New file.
17236         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17237         * tests/test-ceill.c (main): Remove signbit tests.
17238         * modules/ceill-tests (Depends-on): Remove signbit.
17239         * doc/posix-functions/ceill.texi: Mention the new module.
17240
17241 2010-12-21  Bruno Haible  <bruno@clisp.org>
17242
17243         New module 'floorl-ieee'.
17244         * modules/floorl-ieee: New file.
17245         * modules/floorl-ieee-tests: New file.
17246         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17247         * tests/test-floorl.c (main): Remove signbit tests.
17248         * modules/floorl-tests (Depends-on): Remove signbit.
17249         * doc/posix-functions/floorl.texi: Mention the new module.
17250
17251 2010-12-21  Bruno Haible  <bruno@clisp.org>
17252
17253         New module 'round-ieee'.
17254         * modules/round-ieee: New file.
17255         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17256         whether round works according to ISO C 99 with IEC 60559.
17257         * m4/round-ieee.m4: New file.
17258         * modules/round-ieee-tests: New file.
17259         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17260         * tests/test-round1.c (main): Remove signbit tests.
17261         * modules/round-tests (Depends-on): Remove 'signbit'.
17262         * doc/posix-functions/round.texi: Mention the new module.
17263
17264 2010-12-21  Bruno Haible  <bruno@clisp.org>
17265
17266         New module 'trunc-ieee'.
17267         * modules/trunc-ieee: New file.
17268         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17269         whether trunc works according to ISO C 99 with IEC 60559.
17270         * m4/trunc-ieee.m4: New file.
17271         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17273         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17274         * modules/trunc-ieee-tests: New file.
17275         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17276         * tests/test-trunc1.c (main): Remove signbit tests.
17277         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17278         * doc/posix-functions/trunc.texi: Mention the new module.
17279
17280 2010-12-21  Bruno Haible  <bruno@clisp.org>
17281
17282         New module 'ceil-ieee'.
17283         * modules/ceil-ieee: New file.
17284         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17285         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17286         ISO C 99 with IEC 60559.
17287         * m4/ceil-ieee.m4: New file.
17288         * modules/ceil (Files): Add lib/ceil.c.
17289         (Depends-on): Add 'float'.
17290         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17291         * lib/math.in.h (ceil): New declaration.
17292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17293         REPLACE_CEIL.
17294         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17295         * modules/ceil-ieee-tests: New file.
17296         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17297         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17298         * doc/posix-functions/ceil.texi: Mention the new module.
17299
17300 2010-12-21  Bruno Haible  <bruno@clisp.org>
17301
17302         New module 'floor-ieee'.
17303         * modules/floor-ieee: New file.
17304         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17305         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17306         ISO C 99 with IEC 60559.
17307         * m4/floor-ieee.m4: New file.
17308         * modules/floor (Files): Add lib/floor.c.
17309         (Depends-on): Add 'float'.
17310         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17311         * lib/math.in.h (floor): New declaration.
17312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17313         REPLACE_FLOOR.
17314         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17315         * modules/floor-ieee-tests: New file.
17316         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17317         * tests/test-math-c++.cc: Check the signature of 'floor'.
17318         * doc/posix-functions/floor.texi: Mention the new module.
17319
17320 2010-12-21  Bruno Haible  <bruno@clisp.org>
17321
17322         New module 'roundf-ieee'.
17323         * modules/roundf-ieee: New file.
17324         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17325         test whether roundf works according to ISO C 99 with IEC 60559.
17326         * m4/roundf-ieee.m4: New file.
17327         * modules/roundf-ieee-tests: New file.
17328         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17329         * tests/test-roundf1.c (main): Remove signbit tests.
17330         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17331         * doc/posix-functions/roundf.texi: Mention the new module.
17332
17333 2010-12-21  Bruno Haible  <bruno@clisp.org>
17334
17335         New module 'truncf-ieee'.
17336         * modules/truncf-ieee: New file.
17337         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17338         test whether truncf works according to ISO C 99 with IEC 60559.
17339         * m4/truncf-ieee.m4: New file.
17340         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17342         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17343         * modules/truncf-ieee-tests: New file.
17344         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17345         * tests/test-truncf1.c (main): Remove signbit tests.
17346         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17347         * doc/posix-functions/truncf.texi: Mention the new module.
17348
17349 2010-12-21  Bruno Haible  <bruno@clisp.org>
17350
17351         New module 'ceilf-ieee'.
17352         * modules/ceilf-ieee: New file.
17353         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17354         test whether ceilf works according to ISO C 99 with IEC 60559.
17355         * m4/ceilf-ieee.m4: New file.
17356         * modules/ceilf-ieee-tests: New file.
17357         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17358         * tests/test-ceilf1.c (main): Remove signbit tests.
17359         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17360         * doc/posix-functions/ceilf.texi: Mention the new module.
17361
17362 2010-12-21  Bruno Haible  <bruno@clisp.org>
17363
17364         New module 'floorf-ieee'.
17365         * modules/floorf-ieee: New file.
17366         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17367         test whether floorf works according to ISO C 99 with IEC 60559.
17368         * m4/floorf-ieee.m4: New file.
17369         * modules/floorf-ieee-tests: New file.
17370         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17371         * tests/test-floorf1.c (main): Remove signbit tests.
17372         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17373         * doc/posix-functions/floorf.texi: Mention the new module.
17374
17375 2010-12-21  Bruno Haible  <bruno@clisp.org>
17376
17377         Support for minus zero in autoconf macros.
17378         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17379         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17380         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17381         * tests/minus-zero.h: Update comments.
17382
17383 2010-12-21  Bruno Haible  <bruno@clisp.org>
17384
17385         Tests for module 'ceil'.
17386         * modules/ceil-tests: New file.
17387         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17388         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17389
17390 2010-12-21  Bruno Haible  <bruno@clisp.org>
17391
17392         Tests for module 'floor'.
17393         * modules/floor-tests: New file.
17394         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17395         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17396
17397 2010-12-21  Bruno Haible  <bruno@clisp.org>
17398
17399         math: Fix indentation.
17400         * lib/math.in.h (floorf): Fix indentation.
17401
17402 2010-12-21  Bruno Haible  <bruno@clisp.org>
17403
17404         Fix cross-compilation guesses on Solaris.
17405         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17406         not match "solaris2.10".
17407         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17408         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17409         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17410
17411 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17412
17413         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17414         This fixes a problem observed with the latest coreutils snapshot
17415         that caused a test to fail on Solaris 8.  src/csplit.c's call
17416         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17417         earlier, instead of returning the number of bytes that would have
17418         been generated; this causes csplit to incorrectly report memory
17419         exhaustion.
17420         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17421         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17422         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17423         comments to match.
17424         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17425         Fix typo in matching older versions of Solaris: "solaris2.10"
17426         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17427         only for guessing while cross-compiling.
17428         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17429
17430 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17431
17432         ftoastr: fix comment again
17433         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17435         Also, simplify example a bit by using flags = 0.
17436
17437 2010-12-20  Bruno Haible  <bruno@clisp.org>
17438
17439         round*, trunc*: Update documentation regarding glibc.
17440         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17441         * doc/posix-functions/round.texi: Likewise.
17442         * doc/posix-functions/roundl.texi: Likewise.
17443         * doc/posix-functions/truncf.texi: Likewise.
17444         * doc/posix-functions/trunc.texi: Likewise.
17445         * doc/posix-functions/truncl.texi: Likewise.
17446
17447 2010-12-20  Bruno Haible  <bruno@clisp.org>
17448
17449         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17450         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17451         * doc/posix-functions/round.texi: Likewise.
17452         * doc/posix-functions/roundl.texi: Likewise.
17453
17454 2010-12-20  Bruno Haible  <bruno@clisp.org>
17455
17456         ttyname_r: Add missing declaration on HP-UX 11.
17457         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17458         HAVE_TTYNAME_R.
17459         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17460         declared. Set HAVE_TTYNAME_R always.
17461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17462         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17463         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17464         HAVE_TTYNAME_R.
17465         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17466
17467 2010-12-20  Bruno Haible  <bruno@clisp.org>
17468
17469         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17470         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17471         * doc/posix-functions/getlogin_r.texi: Likewise.
17472         * tests/test-getlogin.c: Include <errno.h>.
17473         (main): Avoid test failure on HP-UX 11.11.
17474         * tests/test-getlogin_r.c (main): Likewise.
17475
17476 2010-12-20  Bruno Haible  <bruno@clisp.org>
17477
17478         getlogin_r: Add missing declaration on HP-UX 11.
17479         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17480         declared also when it exists as a function.
17481         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17482
17483 2010-12-20  Bruno Haible  <bruno@clisp.org>
17484
17485         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17486         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17487         through wcrtomb.
17488
17489 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17490
17491         ftoastr: fix comment
17492         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17493         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17494
17495 2010-12-19  Bruno Haible  <bruno@clisp.org>
17496
17497         isnan: Ensure it is a macro.
17498         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17499         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17500         Solaris.
17501
17502 2010-12-19  Bruno Haible  <bruno@clisp.org>
17503
17504         ldexpl test: Fix link error on OSF/1 5.1.
17505         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17506
17507 2010-12-19  Bruno Haible  <bruno@clisp.org>
17508
17509         wctype: Make it work in C++ mode on OSF/1 5.1.
17510         * lib/wctype.in.h (iswblank): Declare but not define here.
17511         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17512         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17513         * modules/wctype (Files): Add lib/iswblank.c.
17514
17515 2010-12-19  Bruno Haible  <bruno@clisp.org>
17516
17517         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17518         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17519         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17520
17521 2010-12-19  Bruno Haible  <bruno@clisp.org>
17522
17523         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17525         _POSIX_PII_SOCKET.
17526         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17527         * doc/posix-functions/recvfrom.texi: Likewise.
17528         * doc/posix-functions/send.texi: Likewise.
17529         * doc/posix-functions/sendto.texi: Likewise.
17530
17531 2010-12-19  Bruno Haible  <bruno@clisp.org>
17532
17533         tcgetsid: Add missing declaration on OSF/1 5.1.
17534         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17535         HAVE_TCGETSID.
17536         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17537         Don't set HAVE_TCGETSID.
17538         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17539         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17540         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17541         HAVE_TCGETSID.
17542         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17543
17544 2010-12-19  Bruno Haible  <bruno@clisp.org>
17545
17546         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17547         * lib/stdio.in.h: During the include_next statement, let recursive
17548         includes of this file include only the system header file.
17549
17550 2010-12-19  Bruno Haible  <bruno@clisp.org>
17551
17552         iconv_open: Fix regression from 2010-12-04.
17553         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17554         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17555
17556 2010-12-19  Bruno Haible  <bruno@clisp.org>
17557
17558         stdbool test: Avoid a gcc warning.
17559         * tests/test-stdbool.c (main): Fail if e1 is false.
17560         Reported by Jim Meyering.
17561
17562 2010-12-19  Jim Meyering  <meyering@redhat.com>
17563
17564         setenv: restore to working order
17565         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17566         mistakenly removed.
17567         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17568         HAVE_SETENV.
17569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17570         HAVE_SETENV.
17571
17572 2010-12-19  Bruno Haible  <bruno@clisp.org>
17573
17574         Document some different function declarations on OSF/1 5.1.
17575         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17576         * doc/posix-functions/inet_ntop.texi: Likewise.
17577         * doc/posix-functions/gethostname.texi: Likewise.
17578         * lib/unistd.in.h (gethostname): Update comment.
17579
17580 2010-12-19  Bruno Haible  <bruno@clisp.org>
17581
17582         doc: Mention vasprintf-posix module.
17583         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17584         the 'vasprintf-posix' module.
17585         * doc/glibc-functions/vasprintf.texi: Likewise.
17586
17587 2010-12-19  Bruno Haible  <bruno@clisp.org>
17588
17589         unsetenv: Add missing declaration on OSF/1 5.1.
17590         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17591         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17592         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17594         not HAVE_UNSETENV.
17595         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17596         HAVE_UNSETENV.
17597         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17598
17599 2010-12-19  Bruno Haible  <bruno@clisp.org>
17600
17601         setenv: Add missing declaration on OSF/1 5.1.
17602         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17603         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17604         declared. Don't set HAVE_SETENV.
17605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17606         not HAVE_SETENV.
17607         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17608         HAVE_SETENV.
17609         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17610
17611 2010-12-19  Bruno Haible  <bruno@clisp.org>
17612
17613         nl_langinfo tests: Avoid gcc warning.
17614         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17615
17616 2010-12-19  Bruno Haible  <bruno@clisp.org>
17617
17618         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17619         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17620         _GL_CXXALIAS_SYS.
17621
17622 2010-12-19  Bruno Haible  <bruno@clisp.org>
17623
17624         stdbool: Relax test.
17625         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17626         address to 'bool' work in static initializer, for compilers other than
17627         GCC.
17628
17629 2010-12-19  Bruno Haible  <bruno@clisp.org>
17630
17631         ftello: Add missing declaration on OSF/1 5.1.
17632         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17633         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17635         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17636         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17637
17638 2010-12-19  Bruno Haible  <bruno@clisp.org>
17639
17640         fseeko: Add missing declaration on OSF/1 5.1.
17641         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17642         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17644         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17645         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17646
17647 2010-12-19  Bruno Haible  <bruno@clisp.org>
17648
17649         fchdir: Add missing declaration on OSF/1 5.1.
17650         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17653         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17654         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17655
17656 2010-12-19  Bruno Haible  <bruno@clisp.org>
17657
17658         relocatable-prog-wrapper: Separate from relocatable-prog.
17659         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17660         uninstall-relocwrapper rule here.
17661         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17662         Reported by Ian Beckwith <ianb@erislabs.net>.
17663
17664 2010-12-19  Bruno Haible  <bruno@clisp.org>
17665
17666         unistr/u8-mbsnlen: Add missing dependency.
17667         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17668         Reported by Ian Beckwith <ianb@erislabs.net>.
17669
17670 2010-12-19  Bruno Haible  <bruno@clisp.org>
17671
17672         iconv: Make it possible again to use this module without 'iconv-h'.
17673         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17674         if it is not defined.
17675         Reported by Ian Beckwith <ianb@erislabs.net>.
17676
17677 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17678
17679         acl: port to Solaris 8 when copying from tmpfs to ufs
17680         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17681         error number.  Problem observed on Solaris 8 with latest
17682         coreutils, with "mv A B", where A is on a tmpfs file system and B
17683         is on a ufs file system.  This caused coreutils' mv/part-symlink
17684         test to fail.
17685
17686         tests: set fail=0 at start
17687         * tests/init.sh (setup_): Move fail=0 initialization here ...
17688         (mktempd_): ... from here, so that tests can rely on fail being
17689         set to 0 initially.  This fixes a problem in coreutils; see:
17690         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17691
17692 2010-12-18  Bruno Haible  <bruno@clisp.org>
17693
17694         memmem-simple: Stylistic changes.
17695         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17696         Fix preprocessor directive indentation.
17697
17698 2010-12-15  Pádraig Brady <P@draigBrady.com>
17699
17700         memmem, memmem-simple: reorganize and expand empty needle check
17701         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17702         functional checks to memmem-simple so that one has a fully functional
17703         memmem by using just this module.
17704         Restrict the performance only check to the memmem module.
17705         Also expand the empty needle check to ensure the correct
17706         pointer is returned, not just a non NULL pointer.
17707         * doc/glibc-functions/memmem.texi: Rearrange the portability
17708         documentation to correlate with the rearranged checks.
17709         Clarify exactly how the memmem and memmem-simple modules
17710         relate to each other.
17711
17712 2010-12-15  Pádraig Brady <P@draigBrady.com>
17713             Bruno Haible  <bruno@clisp.org>
17714
17715         Improve cross-compilation guesses for uClibc.
17716         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17717         that uClibc does not have the glibc bug.
17718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17719         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17720
17721 2010-12-14  Eric Blake  <eblake@redhat.com>
17722
17723         configmake: provide fallbacks for oldest supported autotools
17724         * m4/configmake.m4: New file.
17725         * modules/configmake (Files): Ship it.
17726         (configure.ac): Use it to guarantee fallbacks.
17727
17728 2010-12-13  Pádraig Brady <P@draigBrady.com>
17729
17730         read-file: Improve handling of large files
17731         * lib/read-file.c (fread_file): Minimize realloc()s
17732         for regular files, and better manage sizes around SIZE_MAX.
17733
17734 2010-12-13  Eric Blake  <eblake@redhat.com>
17735
17736         cloexec, fcntl: relax license
17737         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17738         consent from all contributors.
17739         * modules/fcntl (License): Likewise.
17740
17741 2010-12-10  Bruno Haible  <bruno@clisp.org>
17742
17743         Tests for module 'pipe-posix'.
17744         * modules/pipe-posix-tests: New file.
17745         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17746
17747 2010-12-10  Bruno Haible  <bruno@clisp.org>
17748
17749         pipe-posix: Make it work in C++ mode.
17750         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17751         (pipe): Use common idiom, not a macro definition.
17752         * lib/pipe.c: New file.
17753         * m4/pipe.m4: New file.
17754         * modules/pipe-posix (Description): Enhance.
17755         (Files): Add lib/pipe.c, m4/pipe.m4.
17756         (configure.ac): Invoke gl_FUNC_PIPE.
17757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17758         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17759         * tests/test-unistd-c++.cc: Check the signature of pipe.
17760
17761 2010-12-10  Bruno Haible  <bruno@clisp.org>
17762
17763         Rename module 'pipe' to 'spawn-pipe'.
17764         * modules/spawn-pipe: New file, renamed from modules/pipe.
17765         (Files, configure.ac, Makefile.am): Update.
17766         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17767         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17768         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17769         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17770         "spawn-pipe.h" instead of "pipe.h".
17771         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17772         to gl_SPAWN_PIPE.
17773         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17774         (Files, Makefile.am): Update.
17775         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17776         Update.
17777         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17778         Include "spawn-pipe.h" instead of "pipe.h".
17779         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17780         * lib/javacomp.c: Likewise.
17781         * lib/javaversion.c: Likewise.
17782         * lib/pipe-filter-gi.c: Likewise.
17783         * lib/pipe-filter-ii.c: Likewise.
17784         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17785         * modules/javacomp (Depends-on): Likewise.
17786         * modules/javaversion (Depends-on): Likewise.
17787         * modules/pipe-filter-gi (Depends-on): Likewise.
17788         * modules/pipe-filter-ii (Depends-on): Likewise.
17789         * MODULES.html.sh (Executing programs): Update.
17790         * NEWS: Mention the change.
17791
17792 2010-12-10  Eric Blake  <eblake@redhat.com>
17793
17794         pipe-posix: new module
17795         * modules/pipe-posix: New file.
17796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17797         (gl_UNISTD_H): Check for declaration.
17798         * modules/unistd (Makefile.am): Substitute it.
17799         * lib/unistd.in.h (pipe): Provide it for mingw.
17800         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17801         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17802
17803 2010-12-07  Bruno Haible  <bruno@clisp.org>
17804
17805         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17806         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17807         u8_strcmp_gnu.
17808         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17809
17810 2010-12-06  Bruno Haible  <bruno@clisp.org>
17811
17812         Update internal documentation.
17813         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17814
17815 2010-12-04  Bruno Haible  <bruno@clisp.org>
17816
17817         Put more information about failed tests into the test return codes.
17818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17819         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17820         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17822         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17823         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17824         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17825         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17826         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17829         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17830         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17831         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17832         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17833         returns a bit mask.
17834         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17835         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17836         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17837         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17838         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17839         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17842         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17843         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17845         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17846         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17847         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17848         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17849         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17850         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17851         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17852         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17853         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17855         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17856         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17857         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17858         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17859         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17860         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17861         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17862         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17863         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17864         gl_PRINTF_PRECISION): Likewise.
17865         * m4/regex.m4 (gl_REGEX): Likewise.
17866         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17868         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17869         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17873         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17874         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17875         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17876         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17877         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17879         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17880         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17881         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17882         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17883         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17884         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17885         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17886         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17887         enumerated value.
17888         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17889
17890 2010-12-04  Bruno Haible  <bruno@clisp.org>
17891
17892         Update for Solaris 11 2010-11.
17893         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17894         Express, released in November 2010.
17895
17896 2010-12-04  Bruno Haible  <bruno@clisp.org>
17897
17898         nproc: Relax license.
17899         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17900         and Paul Eggert.
17901         Requested by Ludovic Courtès <ludo@gnu.org>.
17902
17903 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         utimecmp: fine-grained src to nearby coarse-grained dest
17906
17907         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17908         and the source is on a file system with higher-resolution time
17909         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17910         not work, and the time stamps are close together, the algorithm to
17911         determine the exact resolution from the read-back mtime was buggy:
17912         it had a "!=" where it should have had an "==".  This bug has been
17913         in the code ever since it was introduced to gnulib.
17914         Problem reported by Dan Jacobson in
17915         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17916
17917 2010-11-30  Bruno Haible  <bruno@clisp.org>
17918
17919         strerror_r-posix: Fix autoconf test.
17920         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17921
17922 2010-11-28  Bruno Haible  <bruno@clisp.org>
17923             Paul Eggert  <eggert@cs.ucla.edu>
17924
17925         Tests for module 'getdomainname'.
17926         * modules/getdomainname-tests: New file.
17927         * tests/test-getdomainname.c: New file, based on
17928         tests/test-gethostname.c.
17929
17930 2010-11-28  Bruno Haible  <bruno@clisp.org>
17931             Paul Eggert  <eggert@cs.ucla.edu>
17932
17933         getdomainname: Use the system function when possible.
17934         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17935         (getdomainname): Replace if needed. Provide the declaration if it is
17936         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17937         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17938         (getdomainname): When the system has getdomainname, call the system
17939         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17940         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17941         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17942         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17943         the function if its second argument is of type 'int' or if it is found
17944         in libnsl.
17945         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17946         <sys/systeminfo.h> and sysinfo().
17947         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17949         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17950         HAVE_GETDOMAINNAME.
17951         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17952         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17953         * doc/glibc-functions/getdomainname.texi: Document the problems with
17954         the getdomainname declaration.
17955
17956 2010-11-28  Bruno Haible  <bruno@clisp.org>
17957
17958         sys_socket: Ensure ss_family field on AIX.
17959         * lib/sys_socket.in.h (ss_family): New macro definition.
17960         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17961         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17962         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17963         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17964         * modules/sys_socket (Makefile.am): Substitute
17965         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17966         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17967
17968 2010-11-27  Bruno Haible  <bruno@clisp.org>
17969
17970         readline: Improve configure output.
17971         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17972         "checking for readline..." result understandable.
17973
17974 2010-11-27  Bruno Haible  <bruno@clisp.org>
17975
17976         *printf-posix: Detect a bug on Solaris 10/x86.
17977         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17978         for floating-point output.
17979         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17980         directive.
17981         * tests/test-snprintf-posix.h (test_function): Likewise.
17982         * tests/test-sprintf-posix.h (test_function): Likewise.
17983         * tests/test-vasprintf-posix.c (test_function): Likewise.
17984         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17985         * doc/posix-functions/printf.texi: Likewise.
17986         * doc/posix-functions/snprintf.texi: Likewise.
17987         * doc/posix-functions/sprintf.texi: Likewise.
17988         * doc/posix-functions/vfprintf.texi: Likewise.
17989         * doc/posix-functions/vprintf.texi: Likewise.
17990         * doc/posix-functions/vsnprintf.texi: Likewise.
17991         * doc/posix-functions/vsprintf.texi: Likewise.
17992         * doc/glibc-functions/obstack_printf.texi: Likewise.
17993         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17994
17995 2010-11-27  Bruno Haible  <bruno@clisp.org>
17996
17997         Fix link error when module libunistring-optional is in use.
17998         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17999         * modules/striconveha-tests (Makefile.am): Likewise.
18000
18001 2010-11-27  Bruno Haible  <bruno@clisp.org>
18002
18003         regex: Mention link dependencies.
18004         * modules/regex (Link): New section.
18005         * modules/rpmatch (Link): Likewise.
18006         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18007
18008 2010-11-27  Bruno Haible  <bruno@clisp.org>
18009
18010         ftoastr: Fix compilation error on Solaris.
18011         * lib/ftoastr.c: Include <config.h>.
18012
18013 2010-11-27  Bruno Haible  <bruno@clisp.org>
18014
18015         getloadavg: Update documentation.
18016         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18017
18018 2010-11-27  Bruno Haible  <bruno@clisp.org>
18019
18020         sys_socket: Fix test whether the functions are declared.
18021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18022         not <sys/select.h>.
18023
18024 2010-11-27  Bruno Haible  <bruno@clisp.org>
18025
18026         getpass: Make sure to get system declaration on some platforms.
18027         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18028         gl_USE_SYSTEM_EXTENSIONS.
18029         * modules/getpass (Depends-on): Add extensions.
18030
18031 2010-11-26  Bruno Haible  <bruno@clisp.org>
18032
18033         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18034         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18035         'iconv' module is present.
18036         (ICONV_CONST): New macro.
18037         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18038         ICONV_CONST.
18039         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18040         set ICONV_CONST.
18041         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18042         here.
18043         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18044         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18045         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18046         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18047         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18048         present.
18049
18050 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18051
18052         ftoastr: comment fix
18053         * lib/ftoastr.c: "little" -> "little or no" in comment
18054
18055 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18056
18057         stdint: port to GCC 4.3 + OSX + Octave
18058         On this platform, stdint.h is buggy and defines int64_t to long
18059         long int.  The replacement defined it to long int, causing
18060         problems with C++ style name mangling.  Instead, trust the system
18061         definition if INT64_MAX is defined, and likewise for the unsigned
18062         variant.   Problem reported by Jarno Rajahalme in
18063         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18064         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18065         and don't mess with int64_t and INT64_MAX in this case.
18066         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18067
18068 2010-11-24  Bruno Haible  <bruno@clisp.org>
18069
18070         doc: Corrections regarding MacOS X 10.4 and 10.5.
18071         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18072         MacOS X.
18073         Reported by Simon Josefsson.
18074
18075 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18076
18077         Uninstall ".bin" files installed by relocwrapper.
18078         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18079         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18080         unless it is already there.
18081
18082 2010-11-21  Bruno Haible  <bruno@clisp.org>
18083
18084         Update for NetBSD 5.0.
18085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18086         NetBSD; the test fails on NetBSD 5.0.
18087         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18088         about NetBSD.
18089
18090 2010-11-21  Bruno Haible  <bruno@clisp.org>
18091
18092         Update for HP-UX 11.23 and HP-UX 11.31.
18093         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18094         HP-UX.
18095
18096 2010-11-21  Bruno Haible  <bruno@clisp.org>
18097
18098         Update for MacOS X 10.5.
18099         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18100         MacOS X; the test fails on MacOS X 10.5.8.
18101         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18102         about MacOS X.
18103
18104 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18105
18106         bootstrap: add bootstrap_sync option.
18107         See discussion at
18108         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18110         * build-aux/bootstrap: Accept --bootstrap-sync to update
18111         bootstrap if it is not identical to the local gnulib's
18112         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18113         enable this by default.  Accept --no-bootstrap-sync to disable
18114         it.
18115
18116 2010-11-20  Bruno Haible  <bruno@clisp.org>
18117
18118         Ensure that <features.h> is included before __GLIBC__ is tested.
18119         * lib/printf-parse.h: Include <features.h>.
18120         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18121         Reported by Mike Frysinger <vapier@gentoo.org>.
18122
18123         Ensure that <features.h> is included before __GLIBC__ is tested.
18124         * lib/wchar.in.h: Include <features.h>.
18125         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18126         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18127         Reported by Mike Frysinger <vapier@gentoo.org>.
18128
18129         Ensure that <features.h> is included before __GLIBC__ is tested.
18130         * lib/arpa_inet.in.h: Include <features.h>.
18131         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18132         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18133         Reported by Mike Frysinger <vapier@gentoo.org>.
18134
18135         Ensure that <features.h> is included before __GLIBC__ is tested.
18136         * build-aux/link-warning.h: Include <features.h>.
18137         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18138         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18139         Reported by Mike Frysinger <vapier@gentoo.org>.
18140
18141         Ensure that <features.h> is included before __GLIBC__ is tested.
18142         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18143         Reported by Mike Frysinger <vapier@gentoo.org>.
18144
18145 2010-11-20  Bruno Haible  <bruno@clisp.org>
18146
18147         memmem: Fix autoconf test.
18148         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18149
18150 2010-11-20  Bruno Haible  <bruno@clisp.org>
18151
18152         Port to uClibc.
18153         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18154         * lib/fcntl.in.h: Likewise.
18155         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18156         * lib/mbrtowc.c (mbrtowc): Likewise.
18157         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18158         * lib/strerror_r.c: Likewise.
18159         * lib/unistr/u8-strnlen.c: Likewise.
18160         * lib/vasnprintf.c (decimal_point_char): Likewise.
18161         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18162         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18164         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18165         * tests/test-sigaction.c (handler, main): Likewise.
18166         * lib/freading.h: Treat uClibc like a non-glibc platform.
18167         * lib/freading.c: Likewise.
18168         * lib/gettext.h: Likewise.
18169         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18170         Likewise.
18171         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18172         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18173         * lib/propername.c (proper_name_utf8): Likewise.
18174         * lib/spawn.in.h: Likewise.
18175         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18176         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18177         mem_cd_iconveh_internal): Likewise.
18178         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18179         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18180         strstr, strcasestr): Likewise.
18181         * lib/unicodeio.c (unicode_to_mb): Likewise.
18182         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18183         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18184         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18185         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18186         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18187         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18188         * lib/unistr/u8-stpncpy.c: Likewise.
18189         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18190         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18191         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18192         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18193         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18195         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18198         Likewise.
18199         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18200         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18201         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18203         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18204         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18205         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18206         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18207         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18208         * tests/test-striconveha.c (main): Likewise.
18209         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18210         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18211         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18212         * doc/posix-functions/getline.texi: Likewise.
18213         Reported by Mike Frysinger <vapier@gentoo.org>.
18214
18215 2010-11-20  Bruno Haible  <bruno@clisp.org>
18216
18217         nproc: Fix condition.
18218         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18219         HAVE_PTHREAD_AFFINITY_NP.
18220
18221 2010-11-20  Bruno Haible  <bruno@clisp.org>
18222
18223         Fix a comment.
18224         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18225
18226 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         ftoastr: don't assume snprintf
18229         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18230         Implement a subset of snprintf here, by using sprintf safely.
18231         * modules/ftoastr (Depends-on): Remove snprintf.
18232
18233 2010-11-19  Jim Meyering  <meyering@redhat.com>
18234
18235         test-rename.h: fix compilation failure
18236         * tests/test-rename.h (test_rename): Add omitted "}".
18237
18238 2010-11-17  Jim Meyering  <meyering@redhat.com>
18239
18240         maint.mk: add a URL discussing the no-@acronym policy
18241         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18242
18243 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18244
18245         ftoastr: depend on snprintf, improve comments
18246         * lib/ftoastr.c: Also mention Loitsch's draft.
18247         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18248         needed in the current implementation, but it might simplify
18249         speeding up the code later.
18250         * modules/ftoastr: Depend on snprintf; this improves portability.
18251         Suggested by Bruno Haible in the same email.
18252
18253         ftoastr: port to hosts lacking strtof and strtold
18254         Problem reported by Bruno Haible in
18255         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18256         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18257         environment and strtold (and presumably strtof) are not available.
18258         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18259         (configure.ac): Require gl_C99_STRTOLD.
18260
18261 2010-11-18  Bruno Haible  <bruno@clisp.org>
18262
18263         c-strtold: Avoid link error on AIX 7.
18264         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18265         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18266         (gl_C_STRTOLD): Test whether strtold_l exists.
18267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18268
18269 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18270
18271         intprops: new macro INT_BITS_STRLEN_BOUND
18272         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18273         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18274         not exposed.  Also, it uses a slightly tighter bound than before;
18275         though this makes no practical difference, we might as well be as
18276         tight as we easily can.
18277
18278         ftoastr: new module, for lossless conversion of floats to short strings
18279         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18280         * modules/ftoastr: New files.
18281
18282 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18283
18284         bootstrap: port to Solaris sed
18285         * build-aux/bootstrap (get_version): Port to Solaris sed.
18286         See Ralf Wildenhues's note in
18287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18288
18289 2010-11-14  Jim Meyering  <meyering@redhat.com>
18290
18291         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18292         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18293         and move definition closer to sole use.
18294
18295 2010-11-13  Jim Meyering  <meyering@redhat.com>
18296
18297         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18298         Now we require at least autoconf-2.59, which means the work-around
18299         is no longer needed.
18300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18302         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18303         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18304         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18305
18306 2010-11-13  Bruno Haible  <bruno@clisp.org>
18307
18308         rename, renameat: Avoid test failures at NFS mounted locations.
18309         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18310         functions.
18311         (test_rename): Use assert_nonexistent.
18312         * tests/test-rename.c: Include <dirent.h>.
18313         * tests/test-renameat.c: Likewise.
18314         Reported by Gary V. Vaughan <gary@gnu.org>.
18315
18316         rename, renameat: Document Linux bug with NFS
18317         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18318         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18319         * doc/posix-functions/renameat.texi: Likewise.
18320         Suggested by Eric Blake.
18321
18322 2010-11-13  Bruno Haible  <bruno@clisp.org>
18323
18324         rename test: Add comments.
18325         * tests/test-rename.h (test_rename): Add structure and comments.
18326
18327 2010-11-13  Eric Blake  <eblake@redhat.com>
18328
18329         maintainer-makefile: cover a few more files
18330         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18331         scripts generated within C files, for libvirt.
18332
18333 2010-11-13  Bruno Haible  <bruno@clisp.org>
18334
18335         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18336         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18337         character, return the number of bytes that belong together, not always
18338         1.
18339         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18340         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18341         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18342         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18343         number of bytes of an invalid character.
18344         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18345         (main): Invoke it.
18346         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18347         results.
18348         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18349         malformed byte sequences.
18350         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18351         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18352         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18353         Reported by Ben Pfaff and Paolo Bonzini.
18354
18355 2010-11-13  Bruno Haible  <bruno@clisp.org>
18356
18357         openat: Work around glibc bug with fchownat() and empty file names.
18358         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18359         (gl_FUNC_FCHOWNAT): Invoke it.
18360         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18361         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18362         Reported by Gary V. Vaughan <gary@gnu.org>.
18363
18364 2010-11-13  Bruno Haible  <bruno@clisp.org>
18365
18366         openat: Ensure autoconf macro ordering.
18367         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18368         gl_USE_SYSTEM_EXTENSIONS.
18369         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18370
18371 2010-11-13  Bruno Haible  <bruno@clisp.org>
18372
18373         Update comments.
18374         * lib/unistr/u8-check.c: Update file name in comments.
18375         * lib/unistr/u8-mblen.c: Likewise.
18376         * lib/unistr/u8-prev.c: Likewise.
18377         * lib/unistr/u8-strmblen.c: Likewise.
18378         * lib/unistr/u8-strmbtouc.c: Likewise.
18379
18380 2010-11-13  Jim Meyering  <meyering@redhat.com>
18381
18382         tests: avoid test failure on Solaris 10 due to lack of PATH export
18383         * tests/test-update-copyright.sh: Don't forget to export PATH.
18384
18385         init.sh: ensure that IFS is defined, just in case...
18386         * tests/init.sh (setup_): Ensure that IFS is defined,
18387         so that saving and restoring it works as expected.  This
18388         appears to be useful at least for an old version of dash
18389         from a long time ago (RH 6).  See here for details:
18390         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18391
18392         maint.mk: tighten "test a == b" check
18393         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18394         test to files that contain something like #!/bin/sh.
18395         Without this, coreutils would get two false positives in
18396         the comments of C source files.
18397
18398 2010-11-12  Eric Blake  <eblake@redhat.com>
18399
18400         bootstrap: fix typo in previous attempt
18401         * build-aux/bootstrap (buildreq): Correct the grouping.
18402         Reported by Paul Eggert.
18403
18404         maintainer-makefile: prohibit test x == x
18405         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18406         Based on a report by Matthias Bolte.
18407
18408         bootstrap: allow FreeBSD gzip
18409         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18410         which has no '.' and goes to stderr.
18411         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18412         Reported by Matthias Bolte.
18413
18414         maintainer-makefile: check for i18n setup
18415         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18416         will likely work.
18417
18418 2010-11-12  Bruno Haible  <bruno@clisp.org>
18419
18420         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18421         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18422         * lib/nanosleep.c (nanosleep): Likewise.
18423
18424 2010-11-11  Bruno Haible  <bruno@clisp.org>
18425
18426         fcntl-h: Fix for use of C++ on glibc systems.
18427         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18428         also on glibc systems in C++ mode.
18429         Reported by Gary V. Vaughan <gary@gnu.org>.
18430
18431 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18432
18433         mknod: avoid false failure with dash
18434         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18435
18436 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18437
18438         unlink: Fix "is it should" typo in diagnostic.
18439         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18441
18442 2010-11-11  Bruno Haible  <bruno@clisp.org>
18443
18444         Tests for module 'strerror_r-posix'.
18445         * modules/strerror_r-posix-tests: New file.
18446         * tests/test-strerror_r.c: New file.
18447         * tests/test-string-c++.cc: Check the signature of strerror_r.
18448
18449         New module 'strerror_r-posix'.
18450         * lib/string.in.h (strerror_r): New declaration.
18451         * lib/strerror_r.c: New file.
18452         * m4/strerror_r.m4: New file.
18453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18454         of strerror_r.
18455         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18456         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18457         * modules/strerror_r-posix: New file.
18458         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18459         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18460         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18461         portability problems.
18462
18463 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18464
18465         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18466         line is also considered for output. Quoted function name in shell
18467         command, so temporary files for functions like MyClass::operator()
18468         are removed correctly without errors.
18469
18470 2010-11-09  Bruno Haible  <bruno@clisp.org>
18471
18472         * doc/posix-functions/strerror.texi: List more failing platforms.
18473
18474         * doc/posix-functions/strerror.texi: Add a comment.
18475
18476 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18477
18478         fdopendir: fix bug on MacOS X when low on file descriptors
18479
18480         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18481         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18482         All callers changed.
18483         (fdopendir): Invoke save_cwd at the top level, not after using
18484         multiple dup() calls to use up file descriptors.  Then retry
18485         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18486         less than the maximum number of open file descriptors, because
18487         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18488         on Mac OS X 10.6.4 for tar 1.24
18489         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18490         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18491         and for tar 1.25
18492         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18493
18494 2010-11-07  Bruno Haible  <bruno@clisp.org>
18495
18496         vasnprintf: Support I flag on glibc systems.
18497         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18498         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18499         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18500         snprintf function.
18501         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18502         glibc systems.
18503         * tests/test-vasnprintf-posix3.c: New file.
18504         * modules/vasnprintf-posix-tests (Files): Add it.
18505         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18506
18507 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18508
18509         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18510         * MODULES.html.sh: For compiler warnings, use name
18511         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18512
18513 2010-11-05  Eric Blake  <eblake@redhat.com>
18514
18515         ceil, floor: avoid spurious failure with icc
18516         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18517         [denormals-as-zero] when optimizing without -mieee-fp option.
18518         * tests/test-floorf2.c (floorf_reference): Likewise.
18519         * tests/test-ceilf1.c (dummy): New function.
18520         (main): Use it to outsmart icc's optimization.
18521         * tests/test-floorf1.c (dummy, main): Likewise.
18522
18523         tests: require working signbit
18524         * modules/ceilf-tests (Depends-on): Add signbit.
18525         * modules/ceill-tests (Depends-on): Likewise.
18526         * modules/floorf-tests (Depends-on): Likewise.
18527         * modules/floorl-tests (Depends-on): Likewise.
18528         * modules/round-tests (Depends-on): Likewise.
18529         * modules/roundf-tests (Depends-on): Likewise.
18530         * modules/roundl-tests (Depends-on): Likewise.
18531         * modules/trunc-tests (Depends-on): Likewise.
18532         * modules/truncf-tests (Depends-on): Likewise.
18533         * modules/truncl-tests (Depends-on): Likewise.
18534
18535         strtod: work around icc bug
18536         * lib/strtod.c (minus_zero): Define to working value.
18537         (strtod): Use it to avoid icc bug.
18538
18539         copysign: enhance tests
18540         * modules/copysign-tests (Files): Add minus-zero.h.
18541         * tests/test-copysign.c (main): Also test zeros.
18542
18543 2010-11-04  Eric Blake  <eblake@redhat.com>
18544
18545         ceil, floor, round, trunc: enhance tests of -0
18546         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18547         * tests/test-ceill.c (main): Likewise.
18548         * tests/test-floorf1.c (main): Likewise.
18549         * tests/test-floorl.c (main): Likewise.
18550         * tests/test-round1.c (main): Likewise.
18551         * tests/test-roundf1.c (main): Likewise.
18552         * tests/test-roundl.c (main): Likewise.
18553         * tests/test-trunc1.c (main): Likewise.
18554         * tests/test-truncf1.c (main): Likewise.
18555         * tests/test-truncl.c (main): Likewise.
18556
18557 2010-11-04  Eric Blake  <eblake@redhat.com>
18558
18559         frexp, tests: work around ICC bug with -zero
18560         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18561         works with more compilers.
18562         * tests/minus-zero.h: New file.
18563         * modules/ceilf-tests (Files): Include it.
18564         * modules/ceill-tests (Files): Likewise.
18565         * modules/floorf-tests (Files): Likewise.
18566         * modules/floorl-tests (Files): Likewise.
18567         * modules/frexp-nolibm-tests (Files): Likewise.
18568         * modules/frexp-tests (Files): Likewise.
18569         * modules/frexpl-nolibm-tests (Files): Likewise.
18570         * modules/frexpl-tests (Files): Likewise.
18571         * modules/isnan-tests (Files): Likewise.
18572         * modules/isnand-nolibm-tests (Files): Likewise.
18573         * modules/isnand-tests (Files): Likewise.
18574         * modules/isnanf-nolibm-tests (Files): Likewise.
18575         * modules/isnanf-tests (Files): Likewise.
18576         * modules/isnanl-nolibm-tests (Files): Likewise.
18577         * modules/isnanl-tests (Files): Likewise.
18578         * modules/round-tests (Files): Likewise.
18579         * modules/roundf-tests (Files): Likewise.
18580         * modules/roundl-tests (Files): Likewise.
18581         * modules/ldexpl-tests (Files): Likewise.
18582         * modules/signbit-tests (Files): Likewise.
18583         * modules/snprintf-posix-tests (Files): Likewise.
18584         * modules/sprintf-posix-tests (Files): Likewise.
18585         * modules/strtod-tests (Files): Likewise.
18586         * modules/trunc-tests (Files): Likewise.
18587         * modules/truncf-tests (Files): Likewise.
18588         * modules/truncl-tests (Files): Likewise.
18589         * modules/vsnprintf-posix-tests (Files): Likewise.
18590         * modules/vsprintf-posix-tests (Files): Likewise.
18591         * modules/vasnprintf-posix-tests (Files): Likewise.
18592         * modules/vasprintf-posix-tests (Files): Likewise.
18593         * tests/test-ceilf1.c (main): Use it.
18594         * tests/test-ceill.c (main): Likewise.
18595         * tests/test-floorf1.c (main): Likewise.
18596         * tests/test-floorl.c (main): Likewise.
18597         * tests/test-frexp.c (main): Likewise.
18598         * tests/test-frexpl.c (main): Likewise.
18599         * tests/test-isnan.c (main): Likewise.
18600         * tests/test-isnand.h (main): Likewise.
18601         * tests/test-isnanf.h (main): Likewise.
18602         * tests/test-isnanl.h (main): Likewise.
18603         * tests/test-ldexpl.c (main): Likewise.
18604         * tests/test-round.c (main): Likewise.
18605         * tests/test-roundf.c (main): Likewise.
18606         * tests/test-roundl.c (main): Likewise.
18607         * tests/test-signbit.c (test_signbitf, test_signbitd)
18608         (test_signbitl): Likewise.
18609         * tests/test-snprintf-posix.h (test_function): Likewise.
18610         * tests/test-sprintf-posix.h (test_function): Likewise.
18611         * tests/test-strtod.c (main): Likewise.
18612         * tests/test-trunc1.c (main): Likewise.
18613         * tests/test-truncf1.c (main): Likewise.
18614         * tests/test-truncl.c (main): Likewise.
18615
18616         isnanl: work around icc bug
18617         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18618
18619 2010-11-03  Eric Blake  <eblake@redhat.com>
18620
18621         tests: fix compiler warnings
18622         * tests/test-getopt.h (test_getopt): Fix condition.
18623         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18624         * tests/test-pipe2.c (main): Likewise.
18625         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18626
18627         utimens: fix broken m4 test
18628         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18629
18630 2010-10-28  Bruno Haible  <bruno@clisp.org>
18631
18632         posix_spawn*, getdtablesize: Relax license.
18633         * modules/posix_spawn (License): Change to LGPLv2+.
18634         * modules/posix_spawnp (License): Likewise.
18635         * modules/posix_spawn-internal (License): Likewise.
18636         * modules/posix_spawnattr_init (License): Likewise.
18637         * modules/posix_spawnattr_getflags (License): Likewise.
18638         * modules/posix_spawnattr_setflags (License): Likewise.
18639         * modules/posix_spawnattr_getpgroup (License): Likewise.
18640         * modules/posix_spawnattr_setpgroup (License): Likewise.
18641         * modules/posix_spawnattr_getschedparam (License): Likewise.
18642         * modules/posix_spawnattr_setschedparam (License): Likewise.
18643         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18644         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18645         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18646         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18647         * modules/posix_spawnattr_getsigmask (License): Likewise.
18648         * modules/posix_spawnattr_setsigmask (License): Likewise.
18649         * modules/posix_spawnattr_destroy (License): Likewise.
18650         * modules/posix_spawn_file_actions_init (License): Likewise.
18651         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18652         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18653         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18654         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18655         * modules/getdtablesize (License): Likewise.
18656         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18657
18658 2010-10-26  Bruno Haible  <bruno@clisp.org>
18659
18660         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18661         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18662         Cygwin and mingw.
18663         Suggested by Eric Blake.
18664
18665 2010-10-26  Bruno Haible  <bruno@clisp.org>
18666
18667         stdio: Work around compilation error due to renameat() on Solaris 10.
18668         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18669         * lib/renameat.c: Don't include <unistd.h> here.
18670         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18671         Reported by Paul Eggert and Eric Blake.
18672
18673 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18674
18675         renameat: port to Solaris 10, which declares renameat in unistd.h
18676
18677         * lib/renameat.c: Include unistd.h before stdio.h, because
18678         Solaris 10 declares renameat in unistd.h.  Problem encountered
18679         when building GNU tar 1.24 on Solaris 10.
18680
18681 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18682
18683         fdopendir: fix C89 compilation
18684         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18685         compilers.
18686
18687 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18688
18689         inttostr: simplify by removing unnecessary redundancy
18690         * lib/anytostr.c: Don't include verify.h.
18691         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18692         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18693         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18694         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18695         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18696         Likewise.
18697         * modules/inttostr (Depends-on): Remove 'verify'.
18698
18699 2010-10-23  Bruno Haible  <bruno@clisp.org>
18700
18701         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18702         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18703         Reported by Eric Blake.
18704
18705 2010-10-23  Bruno Haible  <bruno@clisp.org>
18706
18707         Tests: Fix LOCALE_JA on MirBSD 10.
18708         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18709         to an UTF-8 locale.
18710         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18711         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18712         Reported by Eric Blake.
18713
18714 2010-10-21  Bruno Haible  <bruno@clisp.org>
18715
18716         nl_langinfo test: Avoid test failure on NetBSD 5.
18717         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18718         Reported by Eric Blake.
18719
18720 2010-10-21  Eric Blake  <eblake@redhat.com>
18721
18722         c-stack: work around libsigsegv 2.8 bug
18723         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18724         overflow on at least PowerPC64.
18725
18726 2010-10-17  Bruno Haible  <bruno@clisp.org>
18727
18728         userspec: Drop redundant file.
18729         * modules/userspec (Files): Remove lib/inttostr.h.
18730
18731 2010-10-17  Bruno Haible  <bruno@clisp.org>
18732
18733         nl_langinfo tests: Silence some warnings.
18734         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18735         Reported by Jim Meyering.
18736
18737 2010-10-17  Bruno Haible  <bruno@clisp.org>
18738
18739         Make use of GCC's attribute __alloc_size__.
18740         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18741         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18742         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18743         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18744         __alloc_size__.
18745         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18746         Suggested by Jim Meyering.
18747
18748 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18749
18750         bootstrap: anchor .gitignore entries.
18751         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18752         with...
18753         (insert_vc_ignore): ... this new function, which prepends `/' to
18754         all .gitignore entries before passing them to
18755         insert_sorted_if_absent.
18756
18757 2010-10-16  Bruno Haible  <bruno@clisp.org>
18758
18759         nextafter: Fix configure check.
18760         * modules/nextafter (configure.ac): Correct expected prototype.
18761
18762 2010-10-16  Bruno Haible  <bruno@clisp.org>
18763
18764         termios: Update documentation.
18765         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18766
18767 2010-10-16  Bruno Haible  <bruno@clisp.org>
18768
18769         tests: Make them compile with TinyCC.
18770         * tests/test-strstr.c (main): Remove parentheses around array
18771         initializer.
18772
18773 2010-10-15  Eric Blake  <eblake@redhat.com>
18774
18775         ignore-value: make header idempotent
18776         * lib/ignore-value.h: Add double-inclusion guards.
18777         Reported by Stefan Berger.
18778
18779 2010-10-15  Jim Meyering  <meyering@redhat.com>
18780
18781         GNUmakefile: handle "stable" target, not "major"
18782         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18783         lists in maint.mk and announce-gen.  Without this, "make stable"
18784         would fail to ensure that $(VERSION) is up to date.
18785
18786 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18787
18788         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18789         & co.
18790
18791 2010-10-14  Bruno Haible  <bruno@clisp.org>
18792
18793         vasnprintf: Don't set errno to 0.
18794         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18795         block that sets it to 0.
18796         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18797
18798 2010-10-14  Bruno Haible  <bruno@clisp.org>
18799
18800         socketlib: Fix.
18801         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18802         gl_PREREQ_SYS_H_WINSOCK2.
18803         Reported by Ian Beckwith <ianb@erislabs.net>.
18804
18805 2010-10-13  Jim Meyering  <meyering@redhat.com>
18806
18807         test-select-stdin.c: avoid warn_unused_result warnings
18808         * tests/test-select-stdin.c: Include "macros.h".
18809         ASSERT that read and fflush succeed.
18810
18811 2010-10-13  Jim Meyering  <meyering@redhat.com>
18812
18813         git-version-gen: do require git-VC'd files in cwd
18814         * build-aux/git-version-gen: Reject a git version string
18815         if there are no commits associated with the current directory.
18816         This avoids an unlikely false-positive (unrelated dir whose parent
18817         repository also contains a tag matching v*), as pointed out
18818         by Giuseppe Scrivano in
18819         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18820
18821 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18822
18823         argv-iter: omit nonconforming declaration
18824         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18825         enum arg_iter_err declaration, which doesn't conform to C99.
18826         Solaris 10 cc warns about this.
18827
18828 2010-10-13  Eric Blake  <eblake@redhat.com>
18829
18830         termios: fix compilation on mingw
18831         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18832         (gl_TERMIOS_H): Adjust it on mingw.
18833         * modules/termios (Makefile.am): Substitute new key.
18834         * lib/termios.in.h (includes): Make include_next conditional.
18835         * doc/posix-headers/termios.texi (termios.h): Update
18836         documentation.
18837         Reported by Daniel P. Berrange.
18838
18839 2010-10-13  Jim Meyering  <meyering@redhat.com>
18840
18841         git-version-gen: don't require that .git/ be in the current dir
18842         * build-aux/git-version-gen: Adjust this script so that it works
18843         when run from any working directory beneath the top-level .git/-
18844         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18845         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18846
18847         test-select: avoid warn_unused_result warnings
18848         * tests/test-select.c: Include "macros.h".
18849         ASSERT that each call to read, write, and pipe succeeds.
18850         While not technically required, also check each "close".
18851         * modules/select-tests (Files): Add tests/macros.h.
18852
18853         test-symlinkat: remove declaration of unused local
18854         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18855
18856         test-inttostr: avoid shadowing warnings
18857         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18858         and use malloc rather than the stack for the same reason as
18859         mentioned in the comment justifying the other allocation.
18860
18861 2010-10-11  Bruno Haible  <bruno@clisp.org>
18862
18863         stdlib: Allow multiple gnulib generated replacements to coexist.
18864         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18865         Reported by Sam Steingold <sds@gnu.org>.
18866
18867 2010-10-11  Jim Meyering  <meyering@redhat.com>
18868
18869         fix a documentation typo
18870         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18871
18872 2010-10-11  Eric Blake  <eblake@redhat.com>
18873
18874         futimens: work around Solaris 11 bug
18875         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18876         * tests/test-futimens.h (test_futimens): Enhance, rather than
18877         weaken test.
18878         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18879
18880 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18881
18882         Indentation.
18883         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18884         higher-level operators more to the left.
18885
18886 2010-10-11  Jim Meyering  <meyering@redhat.com>
18887
18888         test-futimens: avoid unwarranted test failure on Solaris 5.11
18889         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18890         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18891         because it tries to dereference the NULL name argument.
18892
18893 2010-10-11  Bruno Haible  <bruno@clisp.org>
18894
18895         Indentation.
18896         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18897         indentation.
18898
18899 2010-10-11  Jim Meyering  <meyering@redhat.com>
18900
18901         spawn.in.h: make indentation consistent with parentheses
18902         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18903         Make indentation consistent with parentheses.
18904
18905 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18906
18907         Fix mismatched parens in previous commit
18908         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18909         parens.
18910
18911 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18912
18913         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18914
18915         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18916         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18917         * lib/malloca.c: Include "verify.h".
18918         (verify1): Remove, replacing with a verify call.
18919         * lib/relocwrapper.c (verify1): Likewise.
18920         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18921         Likewise.
18922         * modules/malloca (Depends-on): Add 'verify'.
18923         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18924         * modules/vasnprintf (Depends-on): Add 'verify'.
18925         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18926         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18927         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18928         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18929         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18930         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18931         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18932
18933         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18934
18935         Formerly the style was sometimes 2*X - 1, because the C standard
18936         was wrongly thought to disallow ?: in integral constant expressions.
18937         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18938         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18939         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18940         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18941         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18942         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18943         verify that time_t cannot be floating.
18944
18945 2010-10-08  Eric Blake  <eblake@redhat.com>
18946
18947         time: enforce recent POSIX ruling that time_t is integral
18948         * lib/time.in.h (__time_t_must_be_integral): Detect any
18949         problematic systems, allowing the rest of gnulib to assume POSIX.
18950
18951 2010-10-08  Jim Meyering  <meyering@redhat.com>
18952
18953         fdopendir: fix a bug on systems lacking openat and /proc support
18954         OpenBSD 4.7 is one such system.  The most noticeable effect was
18955         failure of any application making nontrivial use of fts: rm, du,
18956         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18957           ./rm: traversal failed: `a': Bad file descriptor
18958         Debugging that, you see that even though FD 6 was closed just
18959         prior to the opendir call in fd_clone_opendir, its resulting
18960         dir->dd_fd was 8, rather than the expected value of 6:
18961
18962         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18963         93                close (fd);
18964         (gdb) n
18965         94                dir = fd_clone_opendir (dupfd);
18966         (gdb) n
18967         95                saved_errno = errno;
18968         (gdb) p dir->dd_fd
18969         $11 = 8
18970
18971         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18972         The problem is that on OpenBSD, fd_clone_opendir has to resort
18973         to using the old-style save/restore CWD mechanism, due to its
18974         lack of openat/proc support, and *that* would steal the FD (6)
18975         that opendir was supposed to use.
18976
18977         The fix is to squirrel away the desired FD so that save_cwd uses a
18978         different one, and then free the dest FD right before calling opendir.
18979         That guarantees opendir will use the required file descriptor.
18980
18981         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18982
18983 2010-10-08  Bruno Haible  <bruno@clisp.org>
18984
18985         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18986         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18987
18988 2010-10-08  Bruno Haible  <bruno@clisp.org>
18989
18990         nanosleep: Make replacement POSIX compliant.
18991         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18992         is out of range.
18993         Reported by Jim Meyering.
18994
18995 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         bootstrap: add hook for altering gnulib.mk, for Bison
18998         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18999         the Bison bootstrapping process can rewrite file names and variables
19000         in this file before later parts of 'bootstrap' use the file.
19001         Bison wants to include lib/gnulib.mk from the top-level makefile,
19002         so it needs the file names in this file to be relative to the top
19003         level, not relative to lib; plus it needs variable names to be
19004         rewritten.
19005         (slurp): Use the new function.
19006
19007         bootstrap: reformat for readability
19008         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19009
19010 2010-10-08  Eric Blake  <eblake@redhat.com>
19011
19012         docs: update cygwin progress
19013         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19014         1.7.7.
19015         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19016         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19017         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19018         * doc/posix-functions/carg.texi (carg): Likewise.
19019         * doc/posix-functions/cargf.texi (cargf): Likewise.
19020         * doc/posix-functions/casin.texi (casin): Likewise.
19021         * doc/posix-functions/casinf.texi (casinf): Likewise.
19022         * doc/posix-functions/casinh.texi (casinh): Likewise.
19023         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19024         * doc/posix-functions/catan.texi (catan): Likewise.
19025         * doc/posix-functions/catanf.texi (catanf): Likewise.
19026         * doc/posix-functions/catanh.texi (catanh): Likewise.
19027         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19028         * doc/posix-functions/ccos.texi (ccos): Likewise.
19029         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19030         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19031         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19032         * doc/posix-functions/cexp.texi (cexp): Likewise.
19033         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19034         * doc/posix-functions/cimag.texi (cimag): Likewise.
19035         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19036         * doc/posix-functions/clog.texi (clog): Likewise.
19037         * doc/posix-functions/clogf.texi (clogf): Likewise.
19038         * doc/posix-functions/conj.texi (conj): Likewise.
19039         * doc/posix-functions/conjf.texi (conjf): Likewise.
19040         * doc/posix-functions/cpow.texi (cpow): Likewise.
19041         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19042         * doc/posix-functions/cproj.texi (cproj): Likewise.
19043         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19044         * doc/posix-functions/creal.texi (creal): Likewise.
19045         * doc/posix-functions/crealf.texi (crealf): Likewise.
19046         * doc/posix-functions/csin.texi (csin): Likewise.
19047         * doc/posix-functions/csinf.texi (csinf): Likewise.
19048         * doc/posix-functions/csinh.texi (csinh): Likewise.
19049         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19050         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19051         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19052         * doc/posix-functions/ctan.texi (ctan): Likewise.
19053         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19054         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19055         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19056         * doc/posix-headers/complex.texi (complex.h): Likewise.
19057
19058 2010-10-07  Jim Meyering  <meyering@redhat.com>
19059
19060         parse-datetime: avoid compilation failure on OpenBSD 4.7
19061         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19062         This works around a compilation failure on OpenBSD 4.7:
19063         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19064
19065 2010-10-07  Eric Blake  <eblake@redhat.com>
19066
19067         docs: update cygwin progress
19068         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19069         1.7.6.
19070         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19071         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19072         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19073         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19074         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19075         Likewise.
19076         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19077         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19078         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19079         Likewise.
19080         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19081         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19082         Likewise.
19083         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19084         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19085         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19086         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19087         Likewise.
19088         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19089         Likewise.
19090         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19091
19092         docs: update parse-datetime history
19093         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19094         documentation of this function's history and alternatives.
19095
19096         cygwin: use more robust version check
19097         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19098         exclude an eventual cygwin 1.9.1.
19099         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19101         (gl_FUNC_STRCASESTR): Likewise.
19102         Reported by Bruno Haible.
19103
19104 2010-10-06  Bruno Haible  <bruno@clisp.org>
19105
19106         string, sys_select: Avoid #including large headers unless necessary.
19107         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19108         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19109         OSF/1, BeOS, Haiku.
19110         Reported by Jim Meyering.
19111
19112 2010-10-05  Eric Blake  <eblake@redhat.com>
19113
19114         memmem, strstr, strcasestr: fix bug with long periodic needle
19115         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19116         periodic needle having false positive.
19117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19118         and cygwin 1.7.7.
19119         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19121         (gl_FUNC_STRCASESTR): Likewise.
19122         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19123         * tests/test-memmem.c (main): Expose the bug.
19124         * tests/test-strcasestr.c (main): Likewise.
19125         * tests/test-strstr.c (main): Likewise.
19126         * tests/test-c-strcasestr.c (main): Likewise.
19127         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19128         * doc/posix-functions/strstr.texi (strstr): Likewise.
19129         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19130         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19131
19132 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19133
19134         parse-datetime: do some more renaming
19135         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19136         parse_datetime, not get_date.  Mention the renaming.
19137         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19138         in comments.
19139         * m4/bison.m4: Likewise.
19140
19141 2010-10-05  Eric Blake  <eblake@redhat.com>
19142
19143         parse-datetime: better name than get_date
19144         * NEWS: Reword the deprecation notice.
19145         * modules/get_date: Rename to modules/parse-datetime.
19146         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19147         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19148         * lib/get_date.y: Rename to lib/parse-datetime.y.
19149         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19150         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19151         * doc/getdate.texi: Provide fallback wrapper.
19152         * lib/getdate.h: Move guts, and wrap...
19153         * lib/parse-datetime.h: ...new file.
19154         * lib/parse-datetime.y (get_date): Rename...
19155         (parse_datetime): ...to this.
19156         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19157         (gl_PARSE_DATETIME): ...to this.
19158         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19159         documentation.
19160         * modules/getdate (Files): Provide fallback docs and header.
19161         (Notice, Depends-on): Update references.
19162         * tests/test-parse-datetime.c: Likewise.
19163         * DEPENDENCIES: Likewise.
19164         * MODULES.html.sh (Date and time <time.h>): Likewise.
19165         * doc/parse-datetime.texi (Date input formats)
19166         (Authors of parse_datetime): Likewise.
19167         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19168         (Include): Likewise.
19169         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19170         * gnulib-tool: Likewise.
19171         * m4/bison.m4 (gl_BISON): Likewise.
19172         Suggested by Bruno Haible.
19173
19174 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19175
19176         more ports to Solaris tr, which needs [] around ranges
19177         * gnulib-tool: Solaris tr needs [] around ranges.
19178         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19179         * tests/test-pipe-filter-gi1.c (main): Likewise.
19180         * tests/test-pipe-filter-ii1.c (main): Likewise.
19181
19182 2010-10-05  Eric Blake  <eblake@redhat.com>
19183
19184         bootstrap: fix Solaris regression
19185         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19186         around ranges.
19187         Reported by Pádraig Brady.
19188
19189         bootstrap: work with pkg-config
19190         * build-aux/bootstrap (check_versions): Also transliterate - in
19191         prerequisite name.
19192         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19193         prerequisites that were already found, to avoid confusion.
19194         Reported by Justin Clift.
19195
19196         faccessat: remove unused wrappers
19197         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19198         presence of these wrappers dragged in -lgen on Solaris.
19199         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19200
19201 2010-10-05  Jim Meyering  <meyering@redhat.com>
19202
19203         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19204         * Makefile (sc_pragma_columns): New syntax-check rule.
19205
19206 2010-10-04  Bruno Haible  <bruno@clisp.org>
19207
19208         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19209         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19210         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19211         Reported by Bruce Korb and Eric Blake.
19212
19213 2010-10-04  Bruno Haible  <bruno@clisp.org>
19214
19215         threadlib: Make option --with-libpth-prefix work.
19216         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19217         use $LIBPTH, not just -lpth.
19218
19219 2010-10-04  Bruno Haible  <bruno@clisp.org>
19220
19221         Avoid line length limitation from HP NonStop system header files.
19222         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19223         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19224         * lib/ctype.in.h: Likewise.
19225         * lib/dirent.in.h: Likewise.
19226         * lib/errno.in.h: Likewise.
19227         * lib/fcntl.in.h: Likewise.
19228         * lib/float.in.h: Likewise.
19229         * lib/getopt.in.h: Likewise.
19230         * lib/iconv.in.h: Likewise.
19231         * lib/inttypes.in.h: Likewise.
19232         * lib/langinfo.in.h: Likewise.
19233         * lib/locale.in.h: Likewise.
19234         * lib/math.in.h: Likewise.
19235         * lib/netdb.in.h: Likewise.
19236         * lib/netinet_in.in.h: Likewise.
19237         * lib/poll.in.h: Likewise.
19238         * lib/pthread.in.h: Likewise.
19239         * lib/pty.in.h: Likewise.
19240         * lib/sched.in.h: Likewise.
19241         * lib/se-selinux.in.h: Likewise.
19242         * lib/search.in.h: Likewise.
19243         * lib/signal.in.h: Likewise.
19244         * lib/spawn.in.h: Likewise.
19245         * lib/stdarg.in.h: Likewise.
19246         * lib/stddef.in.h: Likewise.
19247         * lib/stdint.in.h: Likewise.
19248         * lib/stdio.in.h: Likewise.
19249         * lib/stdlib.in.h: Likewise.
19250         * lib/string.in.h: Likewise.
19251         * lib/strings.in.h: Likewise.
19252         * lib/sys_file.in.h: Likewise.
19253         * lib/sys_ioctl.in.h: Likewise.
19254         * lib/sys_select.in.h: Likewise.
19255         * lib/sys_socket.in.h: Likewise.
19256         * lib/sys_stat.in.h: Likewise.
19257         * lib/sys_time.in.h: Likewise.
19258         * lib/sys_times.in.h: Likewise.
19259         * lib/sys_utsname.in.h: Likewise.
19260         * lib/sys_wait.in.h: Likewise.
19261         * lib/sysexits.in.h: Likewise.
19262         * lib/termios.in.h: Likewise.
19263         * lib/time.in.h: Likewise.
19264         * lib/unistd.in.h: Likewise.
19265         * lib/wchar.in.h: Likewise.
19266         * lib/wctype.in.h: Likewise.
19267         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19268         * modules/ctype (Makefile.am): Likewise.
19269         * modules/dirent (Makefile.am): Likewise.
19270         * modules/errno (Makefile.am): Likewise.
19271         * modules/fcntl-h (Makefile.am): Likewise.
19272         * modules/float (Makefile.am): Likewise.
19273         * modules/getopt-posix (Makefile.am): Likewise.
19274         * modules/iconv-h (Makefile.am): Likewise.
19275         * modules/inttypes (Makefile.am): Likewise.
19276         * modules/langinfo (Makefile.am): Likewise.
19277         * modules/locale (Makefile.am): Likewise.
19278         * modules/math (Makefile.am): Likewise.
19279         * modules/netdb (Makefile.am): Likewise.
19280         * modules/netinet_in (Makefile.am): Likewise.
19281         * modules/poll-h (Makefile.am): Likewise.
19282         * modules/pthread (Makefile.am): Likewise.
19283         * modules/pty (Makefile.am): Likewise.
19284         * modules/sched (Makefile.am): Likewise.
19285         * modules/search (Makefile.am): Likewise.
19286         * modules/selinux-h (Makefile.am): Likewise.
19287         * modules/signal (Makefile.am): Likewise.
19288         * modules/spawn (Makefile.am): Likewise.
19289         * modules/stdarg (Makefile.am): Likewise.
19290         * modules/stddef (Makefile.am): Likewise.
19291         * modules/stdint (Makefile.am): Likewise.
19292         * modules/stdio (Makefile.am): Likewise.
19293         * modules/stdlib (Makefile.am): Likewise.
19294         * modules/string (Makefile.am): Likewise.
19295         * modules/strings (Makefile.am): Likewise.
19296         * modules/sys_file (Makefile.am): Likewise.
19297         * modules/sys_ioctl (Makefile.am): Likewise.
19298         * modules/sys_select (Makefile.am): Likewise.
19299         * modules/sys_socket (Makefile.am): Likewise.
19300         * modules/sys_stat (Makefile.am): Likewise.
19301         * modules/sys_time (Makefile.am): Likewise.
19302         * modules/sys_times (Makefile.am): Likewise.
19303         * modules/sys_utsname (Makefile.am): Likewise.
19304         * modules/sys_wait (Makefile.am): Likewise.
19305         * modules/sysexits (Makefile.am): Likewise.
19306         * modules/termios (Makefile.am): Likewise.
19307         * modules/time (Makefile.am): Likewise.
19308         * modules/unistd (Makefile.am): Likewise.
19309         * modules/wchar (Makefile.am): Likewise.
19310         * modules/wctype (Makefile.am): Likewise.
19311
19312 2010-10-04  Bruno Haible  <bruno@clisp.org>
19313
19314         read-file tests: Avoid a test failure on NonStop Kernel.
19315         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19316         a regular file.
19317         Reported by Joachim Schmitz <schmitz@hp.com>.
19318
19319 2010-10-03  Bruno Haible  <bruno@clisp.org>
19320
19321         gnulib-tool: Fixes for --create-testdir with --libtool.
19322         * gnulib-tool (func_get_automake_snippet): Don't augment
19323         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19324         an executable.
19325         (func_create_testdir): Handle module 'alloca' like func_import.
19326         Reported by Bruce Korb <bruce.korb@gmail.com>.
19327
19328 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19329
19330         Avoid some lines longer than 80 characters.
19331         * lib/stdint.in.h: Break long comment lines.
19332         * lib/math.in.h: Likewise.
19333         (_GL_NUM_UINT_WORDS): New macro, for readability.
19334         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19335         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19336         * lib/stdlib.in.h: Likewise.
19337         * lib/spawn.in.h: Likewise.
19338         * lib/sys_socket.in.h: Update an URL.
19339         * lib/sys_stat.in.h: Break long line.
19340
19341 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19342
19343         Improve pmccabe2html.
19344         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19345         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19346         when the sources change. Remove the line in the HTML about "Used
19347         ranges" (which implied that there might be other unused ranges),
19348         rename "Resume" to "Summary" (easier to understand for more users).
19349         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19350         styles, and some unnecessary blank lines.
19351
19352 2010-10-03  Bruno Haible  <bruno@clisp.org>
19353             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19354
19355         acl: Add support for ACLs on NonStop Kernel.
19356         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19357         Check whether the function aclsort() exists.
19358         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19359         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19360         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19361         (acl_nontrivial [HAVE_ACLSORT]: New function.
19362         (file_has_acl): Implement for NonStop Kernel.
19363         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19364         (qset_acl): Implement for NonStop Kernel.
19365         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19366         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19367         (main): Implement for NonStop Kernel.
19368         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19369         Kernel. Handle this flavor.
19370         * tests/test-set-mode-acl.sh: Likewise.
19371         * tests/test-copy-acl.sh: Likewise.
19372         * tests/test-copy-file.sh: Likewise.
19373
19374 2010-10-03  Bruno Haible  <bruno@clisp.org>
19375
19376         Info about ACLs on NonStop Kernel.
19377         * doc/acl-resources.txt: Add info about NonStop Kernel.
19378         References by Joachim Schmitz <schmitz@hp.com>.
19379
19380 2010-10-02  Bruno Haible  <bruno@clisp.org>
19381
19382         Define missing EDQUOT on NonStop Kernel.
19383         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19384         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19386         missing.
19387         * doc/posix-headers/errno.texi: Mention the NSK bug.
19388         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19389         Reported by Joachim Schmitz <schmitz@hp.com>.
19390
19391 2010-10-02  Bruno Haible  <bruno@clisp.org>
19392
19393         Update doc for POSIX:2008.
19394         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19395         Update URL of POSIX specification.
19396
19397 2010-10-02  Bruno Haible  <bruno@clisp.org>
19398
19399         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19400         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19401         from gnulib, not from Automake.
19402
19403 2010-10-02  Bruno Haible  <bruno@clisp.org>
19404
19405         New module 'system-posix'.
19406         * modules/system-posix: New file.
19407         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19408         module is present.
19409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19410         GNULIB_SYSTEM_POSIX.
19411         * modules/stdlib (Depends-on): Remove sys_wait.
19412         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19413         * doc/posix-functions/system.texi: Mention the new module.
19414         * doc/posix-headers/stdlib.texi: Likewise.
19415         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19416         define test_sys_wait_macros to a no-op.
19417         Reported by Sam Steingold <sds@gnu.org>.
19418
19419 2010-09-30  Bruno Haible  <bruno@clisp.org>
19420
19421         More renaming from 'getdate' to 'get_date'.
19422         * doc/get_date.texi: Renamed from doc/getdate.texi.
19423         * modules/get_date (Files): Update.
19424         * MODULES.html.sh (Date and time <time.h>): Update.
19425         * DEPENDENCIES: Update.
19426         * gnulib-tool: Update comment.
19427         * m4/bison.m4 (gl_BISON): Likewise.
19428         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19429
19430 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19431
19432         bootstrap: support ACLOCAL_FLAGS during aclocal
19433         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19434         can add additional -I dir for third-party .m4 files.
19435
19436 2010-09-30  Eric Blake  <eblake@redhat.com>
19437
19438         bootstrap: use glibtoolize on MacOS
19439         * build-aux/bootstrap (check_versions): Convert libtool into
19440         libtoolize.
19441         (tool search): Move libtool check earlier, and look for
19442         glibtoolize for MacOS.
19443         (gnulib_tool_options): Auto-add --libtool when appropriate.
19444         Reported by Justin Clift.
19445
19446         poll: fix typo that broke test on MacOS
19447         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19448         Reported by Justin Clift.
19449
19450         getdate: rename to get_date
19451         Note: getdate.h is not renamed, to minimize client impact.
19452         * modules/getdate: Mark obsolete.  Move old contents...
19453         * modules/get_date: ...to new module name.
19454         * modules/getdate-tests: Move...
19455         * modules/get_date-tests: ...here.
19456         * m4/getdate.m4: Move...
19457         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19458         * lib/getdate.y: Move...
19459         * lib/get_date.y: ...here.
19460         * tests/test-getdate.c: Move...
19461         * tests/test-get_date.c: ...here.
19462         * doc/posix-functions/getdate.texi (getdate): Update name.
19463         * NEWS: Mention the change.
19464
19465 2010-09-29  Bruno Haible  <bruno@clisp.org>
19466
19467         Separate the module 'waitpid' from the module 'sys_wait'.
19468         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19469         present.
19470         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19471         gl_MODULE_INDICATOR_FOR_TESTS.
19472         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19473         * modules/sys_wait (Depends-on): Remove waitpid.
19474         (Makefile.am): Substitute GNULIB_WAITPID.
19475         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19476         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19477         signature only if the 'waitpid' module is present.
19478         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19479         * NEWS: Mention the change.
19480         * modules/grantpt (Depends-on): Add waitpid.
19481         * modules/wait-process (Depends-on): Likewise.
19482
19483 2010-09-29  Bruno Haible  <bruno@clisp.org>
19484
19485         More tests for module 'sys_wait'.
19486         * modules/sys_wait-c++-tests: New file.
19487         * tests/test-sys_wait-c++.cc: New file.
19488         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19489         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19490
19491 2010-09-29  Bruno Haible  <bruno@clisp.org>
19492
19493         New module 'waitpid'.
19494         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19495         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19496         Don't include <process.h>.
19497         (waitpid): Declare only, using modern idiom.
19498         * m4/waitpid.m4: New file.
19499         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19500         * modules/waitpid: New file.
19501         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19502         (Makefile.am): Update.
19503         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19504
19505 2010-09-28  Bruno Haible  <bruno@clisp.org>
19506
19507         poll: Assume ANSI C.
19508         * lib/poll.c (poll): Use an ANSI C declaration.
19509
19510 2010-09-28  Bruno Haible  <bruno@clisp.org>
19511
19512         poll-h: Create poll.h on all platforms.
19513         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19514         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19515         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19516         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19517         (gl_REPLACE_POLL_H): Don't set POLL_H.
19518         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19519         * modules/poll-h (Depends-on): Add include_next.
19520         (Makefile.am): Create poll.h unconditionally. Substitute also
19521         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19522
19523 2010-09-28  Bruno Haible  <bruno@clisp.org>
19524
19525         Tests for module 'poll-h'.
19526         * modules/poll-h-c++-tests: New file.
19527         * tests/test-poll-h-c++.cc: New file.
19528
19529         Tests for module 'poll-h'.
19530         * modules/poll-h-tests: New file.
19531         * tests/test-poll-h.c: New file.
19532
19533 2010-09-28  Bruno Haible  <bruno@clisp.org>
19534
19535         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19536         * modules/poll-h (Depends-on): Add 'extensions'.
19537
19538 2010-09-28  Bruno Haible  <bruno@clisp.org>
19539
19540         New module 'poll-h'.
19541         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19542         (poll): Use modern idiom.
19543         * modules/poll-h: New file.
19544         * modules/poll (Files): Remove lib/poll.in.h.
19545         (Depends-on): Add poll-h.
19546         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19547         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19548         * m4/poll_h.m4: New file.
19549         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19550         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19551         and invoke gl_REPLACE_POLL_H.
19552         * lib/poll.c: Use common idiom.
19553         * tests/test-poll.c: Likewise.
19554         * doc/posix-headers/poll.texi: Mention the poll-h module.
19555         Suggested by Eric Blake.
19556
19557 2010-09-26  Bruno Haible  <bruno@clisp.org>
19558
19559         sys_wait: Implement WSTOPSIG.
19560         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19561         Reported by Simon Josefsson.
19562
19563 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19564
19565         stdlib, sys_wait: Avoid compilation error on mingw.
19566         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19567
19568 2010-09-26  Bruno Haible  <bruno@clisp.org>
19569
19570         stdlib tests: Avoid code duplication.
19571         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19572         * modules/sys_wait-tests (Files): Likewise.
19573         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19574         * tests/test-stdlib.c: Include test-sys_wait.h.
19575         (main): Invoke test_sys_wait_macros.
19576         * tests/test-sys_wait.c: Include test-sys_wait.h.
19577         (main): Invoke test_sys_wait_macros.
19578
19579 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19580
19581         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19582         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19583         sure Windows sockets are working before calling getaddrinfo.
19584         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19585         * doc/gnulib.texi (Windows sockets): Fix typo.
19586
19587 2010-09-25  Bruno Haible  <bruno@clisp.org>
19588
19589         Tests for module 'regex-quote'.
19590         * modules/regex-quote-tests: New file.
19591         * tests/test-regex-quote.c: New file.
19592
19593         New module 'regex-quote'.
19594         * lib/regex-quote.h: New file.
19595         * lib/regex-quote.c: New file.
19596         * modules/regex-quote: New file.
19597         Suggested by Reuben Thomas <rrt@sc3d.org>.
19598
19599 2010-09-24  Bruno Haible  <bruno@clisp.org>
19600
19601         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19602         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19603
19604 2010-09-23  Bruno Haible  <bruno@clisp.org>
19605
19606         setenv: Relax license.
19607         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19608         Blake.
19609         Requested by Eric Blake.
19610
19611 2010-09-22  Bruno Haible  <bruno@clisp.org>
19612
19613         termios: Relax license.
19614         * modules/termios (License): Change to LGPLv2+.
19615         Requested by Eric Blake.
19616
19617 2010-09-22  Bruno Haible  <bruno@clisp.org>
19618
19619         threadlib: Allow the package to change the default to 'no'.
19620         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19621         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19622         Reported by Paul Eggert.
19623
19624 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19625             Bruno Haible  <bruno@clisp.org>
19626
19627         Fix endless loop in mbmemcasecoll.
19628         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19629         byte.
19630         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19631
19632 2010-09-22  Bruno Haible  <bruno@clisp.org>
19633
19634         Tests for module 'memcoll'.
19635         * modules/memcoll-tests: New file.
19636         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19637
19638         memcoll, xmemcoll: Clarify size vs. length.
19639         * modules/memcoll.c (memcoll0): Clarify specification.
19640         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19641         passed to collate_error.
19642
19643 2010-09-22  Bruno Haible  <bruno@clisp.org>
19644
19645         Tests for module 'memcasecmp'.
19646         * modules/memcasecmp-tests: New file.
19647         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19648
19649 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19650
19651         * lib/pthread.in.h: Add split double-inclusion guard, and include
19652         system <pthread.h> if there is one.  Use @@-style as in other
19653         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19654         pthread.h doesn't.
19655         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19656         (pthread_mutexattr_settype, pthread_mutex_trylock):
19657         New static inline functions, if there's no system <pthread.h>.
19658         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19659         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19660         Approximate with mutexes if the system lacks spinlocks, as in
19661         MacOS.
19662         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19663         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19664         @@-style.  Check for spinlocks separately.
19665         (gl_PTHREAD_DEFAULTS): New macro.
19666         * modules/pthread: Redo to use a more typical style for in.h files.
19667
19668 2010-09-21  Eric Blake  <eblake@redhat.com>
19669
19670         net_if: enhance tests
19671         * tests/test-net_if.c (main): Move signature checks earlier.
19672         Print failures to stderr.
19673         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19674         Document the bug that we do not yet fix.
19675
19676 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19677
19678         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19679         about gnulib, not GSS.
19680
19681 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19682
19683         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19684         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19685         for Emacs.
19686         * build-aux/pmccabe2html: Make Makefile.am example code more
19687         cut-and-paste friendly.
19688
19689 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19690
19691         * tests/test-net_if.c: New file.
19692         * modules/net_if-tests: New file.
19693
19694 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         pthread: add pthread_spin_destroy
19697         * lib/pthread.in.h (pthread_spin_destroy): New function.
19698
19699 2010-09-19  Bruno Haible  <bruno@clisp.org>
19700
19701         gnulib-tool: Fix --help output.
19702         * gnulib-tool (func_usage): Fix help message.
19703         Reported by Reuben Thomas <rrt@sc3d.org>.
19704
19705 2010-09-18  Jim Meyering  <meyering@redhat.com>
19706
19707         maint.mk: avoid unexpanded \n in two diagnostics
19708         * top/maint.mk (sc_prohibit_always_true_header_tests):
19709         Don't use a literal \n in a halt=... assignment.  It would not be
19710         expanded, and the two \n bytes would appear in the diagnostic output
19711         rather than the desired newline.  Use halt=$$(printf ... instead.
19712         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19713
19714 2010-09-18  Bruno Haible  <bruno@clisp.org>
19715
19716         netinet_in: Doc tweak.
19717         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19718         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19719
19720 2010-09-18  Jim Meyering  <meyering@redhat.com>
19721
19722         init.sh: correct an outdated comment
19723         * tests/init.sh (create_exe_shims_):  s/function/alias/
19724
19725         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19726         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19727         a file named "*.exe" is removed between the glob expansion and the
19728         processing of that oddly named file.
19729
19730 2010-09-17  Eric Blake  <eblake@redhat.com>
19731
19732         mirbsd: add some more support
19733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19734         in BSD family.
19735         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19736         devices as OpenBSD.
19737         * m4/host-os.m4 (mirbsd): Add MirBSD.
19738
19739         tests: fix unportable assumption on sys/wait.h
19740         * tests/test-sys_wait.c (main): Relax test.
19741         * tests/test-stdlib.c (main): Likewise.
19742
19743         init.sh: accomodate directory with no .exes
19744         * tests/init.sh: Accomodate directory containing only scripts.
19745
19746         tests: avoid compiler warning
19747         * tests/test-stdlib.c (main): Use the variable.
19748
19749         fdutimens, fdutimensat: update signature, again
19750         * lib/utimens.h (gl_futimens): Delete, and move signature...
19751         (fdutimens): ...here.
19752         (fdutimensat): Rearrange signature.
19753         (lutimensat): Rename variable for clarity.
19754         * lib/fdutimensat.c (fdutimensat): Update signature.
19755         * lib/utimens.c (fdutimens): Likewise.
19756         (gl_futimens): Delete.
19757         (utimens, lutimens): Update callers.
19758         * lib/futimens.c (futimens): Likewise.
19759         * tests/test-fdutimensat.c: Likewise.
19760         * tests/test-utimens.c: Likewise.
19761         * tests/test-futimens.h: Update comment.
19762         * NEWS: Mention this.
19763         Suggested by Paul Eggert.
19764
19765 2010-09-17  Bruno Haible  <bruno@clisp.org>
19766
19767         Take over the maintenance of some older macros from Autoconf.
19768         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19769         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19770         GNU Autoconf.
19771         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19772         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19773
19774 2010-09-17  Eric Blake  <eblake@redhat.com>
19775
19776         fdutimensat: drop atflag validation
19777         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19778         with valid fd, to close a race scenario where futimens is
19779         unsupported and FILE was replaced by a symlink.
19780         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19781         accordingly.
19782         Suggested by Paul Eggert.
19783
19784 2010-09-16  Bruno Haible  <bruno@clisp.org>
19785
19786         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19787         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19788
19789 2010-09-16  Bruno Haible  <bruno@clisp.org>
19790
19791         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19792         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19793         login_tty exists.
19794         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19795
19796 2010-09-16  Bruno Haible  <bruno@clisp.org>
19797
19798         login_tty: Make the replacement code work on BSD systems.
19799         * lib/login_tty.c: Include <sys/ioctl.h>.
19800         (login_tty): Use ioctl TIOCSCTTY when available.
19801         * modules/login_tty (Depends-on): Add sys_ioctl.
19802         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19803
19804 2010-09-16  Bruno Haible  <bruno@clisp.org>
19805
19806         login_tty: Stricter unit test.
19807         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19808         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19809         and tcgetsid() after login_tty.
19810         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19811
19812 2010-09-16  Bruno Haible  <bruno@clisp.org>
19813
19814         New module 'tcgetsid'.
19815         * lib/tcgetsid.c: New file.
19816         * m4/tcgetsid.m4: New file.
19817         * modules/tcgetsid: New file.
19818         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19819         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19820         GNULIB_TCGETSID, HAVE_TCGETSID.
19821         * lib/termios.in.h: Include <sys/types.h>.
19822         (tcgetsid): New declaration.
19823         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19824         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19825         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19826         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19827
19828 2010-09-16  Bruno Haible  <bruno@clisp.org>
19829
19830         Tests for module 'termios'.
19831         * modules/termios-c++-tests: New file.
19832         * modules/termios-tests: New file.
19833         * tests/test-termios-c++.cc: New file.
19834         * tests/test-termios.c: New file.
19835
19836         New module 'termios'.
19837         * modules/termios: New file.
19838         * lib/termios.in.h: New file.
19839         * m4/termios_h.m4: New file.
19840         * doc/posix-headers/termios.texi: Mention the new module.
19841
19842 2010-09-16  Eric Blake  <eblake@redhat.com>
19843
19844         fdutimensat: add an atflag parameter
19845         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19846         * lib/utimens.h (fdutimensat): Update prototype.
19847         * tests/test-fdutimensat.c: Adjust test to match.
19848         * NEWS: Document the change.
19849         Suggested by Paul Eggert.
19850
19851 2010-09-16  Bruno Haible  <bruno@clisp.org>
19852
19853         Fix typos in comments.
19854         * lib/striconveh.h: Fix typo in comment.
19855         * lib/login_tty.c (login_tty): Likewise.
19856
19857 2010-09-15  Bruno Haible  <bruno@clisp.org>
19858
19859         stdlib: clarify MirBSD WEXITSTATUS bug
19860         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19861         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19862
19863 2010-09-15  Eric Blake  <eblake@redhat.com>
19864
19865         stdlib: work around MirBSD WEXITSTATUS bug
19866         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19867         * modules/stdlib (Depends-on): Add sys_wait.
19868         * tests/test-sys_wait.c (main): Enhance test.
19869         * tests/test-stdlib.c (main): Likewise.
19870         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19871
19872         docs: mention MacOS issue with WEXITSTATUS(constant)
19873         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19874         issue.
19875         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19876
19877         strnlen: add tests
19878         * modules/strnlen-tests: New file.
19879         * tests/test-strnlen.c: Likewise.
19880
19881 2010-09-14  Bruno Haible  <bruno@clisp.org>
19882
19883         unistr/base: Avoid link errors when module 'libunistring' is also used.
19884         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19885         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19886         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19887         Declare also when HAVE_LIBUNISTRING is set.
19888         Reported by Pádraig Brady <P@draigbrady.com>.
19889
19890 2010-09-14  Eric Blake  <eblake@redhat.com>
19891
19892         test-rawmemchr: make more robust
19893         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19894         (Depends-on, configure.ac): Add needed prerequisites to use it.
19895         * modules/memchr-tests (Files, Depends-on, configure.ac):
19896         Likewise, to avoid implicit reliance on memchr module prereqs.
19897         * tests/test-memchr.c (main): Ensure proper masking.
19898         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19899         reads.
19900
19901         memchr: detect glibc Alpha bug
19902         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19903         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19904         Alpha.
19905         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19906         * tests/test-memchr.c (main): Enhance test.
19907         Reported by Nelson H. F. Beebe.
19908
19909 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19910
19911         fts, getcwd, glob: audit for dirfd returning -1
19912         * lib/fts.c (opendir): Remove #define; no longer used.
19913         (opendirat): New arg PDIR_FD.  All callers changed.
19914         (fts_build, _opendir2): Use new opendirat to avoid the need for
19915         dirfd, or for checking whether dirfd returns a negative value.
19916         Don't use opendir; always use openat followed by fdopendir.
19917         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19918         it.
19919         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19920         returns -1 here.
19921         * modules/fts (Depends-on): Remove dirfd.
19922         * modules/getcwd (Depends-on): Likewise.
19923
19924 2010-09-13  Eric Blake  <eblake@redhat.com>
19925
19926         float: fix broken MirBSD header
19927         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19928         * doc/posix-headers/float.texi (float.h): Document it.
19929
19930 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19931
19932         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19933         * lib/fts.c (opendirat): New arg extra_flags.
19934         (__opendir2): Use it to avoid following symlinks when opening
19935         a directory, if symlinks are not supposed to be followed.  See
19936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19937
19938         fdopendir: preserve argument fd before returning
19939         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19940         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19941         (fdopendir): Use them, arranging for FD to be open to the same
19942         directory that it was when it started.  (It might be temporarily
19943         closed while fdopendir is running, so this not thread- or
19944         signal-safe.)  Be careful to do the right thing even when file
19945         descriptors are scarce and dup fails with errno == EMFILE.  See
19946         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19947
19948 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19949
19950         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19951         * NEWS: Document change.
19952         * m4/regex.m4: Disable test for regoff_t size.
19953
19954 2010-09-13  Jim Meyering  <meyering@redhat.com>
19955
19956         fts: don't operate on an invalid file descriptor after failed dup
19957         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19958         negative file descriptor.
19959
19960 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19961
19962         savedir: add streamsavedir, deprecate fdsavedir
19963         * NEWS: Mention deprecation of fdsavedir.
19964         * lib/savedir.c (streamsavedir): New extern function, whose name
19965         ends in "savedir" to be consistent with the others.  This differs
19966         from savedirstream in that it doesn't close its argument.  The
19967         next version of GNU tar will use this instead of fdsavedir, to
19968         avoid some race conditions and conserve file descriptors.
19969         (savedirstream): Reimplement as a wrapper around streamsavedir.
19970         (fdsavedir): Add a comment deprecating this function.  As far as
19971         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19972         * lib/savedir.h (streamsavedir): New decl.
19973         (fdsavedir): Add a comment deprecating this.
19974
19975 2010-09-10  Bruno Haible  <bruno@clisp.org>
19976
19977         langinfo: Fix last commit.
19978         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19979         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19981
19982 2010-09-10  Bruno Haible  <bruno@clisp.org>
19983
19984         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19985         * lib/progreloc.c (O_EXEC): Define fallback.
19986
19987 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19988
19989         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19990         * NEWS: Document recent changes to fcntl-h.
19991         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19992         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19993         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19994         Similarly for O_SEARCH; this last was already true, but not documented.
19995         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19996         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19997         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19998         Likewise.
19999         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20000         is zero, not whether it is defined.
20001         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20002         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20003         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20004
20005 2010-09-10  Bruno Haible  <bruno@clisp.org>
20006
20007         langinfo, nl_langinfo: Fix for IRIX 5.3.
20008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20009         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20010         HAVE_LANGINFO_YESEXPR.
20011         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20012         HAVE_LANGINFO_YESEXPR.
20013         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20014         HAVE_LANGINFO_T_FMT_AMPM is 0.
20015         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20016         HAVE_LANGINFO_YESEXPR is 0.
20017         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20018         NOEXPR.
20019         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20020         * doc/posix-functions/nl_langinfo.texi: Likewise.
20021         Reported by Eric Blake.
20022
20023 2010-09-10  Bruno Haible  <bruno@clisp.org>
20024
20025         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20026         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20027         on FreeBSD 8.0 and OpenBSD 4.6.
20028         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20029         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20030         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20031         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20032         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20033         ac_includes_default.
20034         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20035
20036 2010-09-09  Eric Blake  <eblake@redhat.com>
20037
20038         strsignal: work around NetBSD bug
20039         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20040         * lib/string.in.h (includes): Likewise.
20041         * doc/posix-functions/strsignal.texi (strsignal): Document the
20042         bug.
20043         Reported by Nelson H. F. Beebe.
20044
20045         gnulib-tool: work with NetBSD /bin/sh
20046         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20047         (func_get_description, func_get_comment, func_get_status)
20048         (func_get_notice, func_get_applicability, func_get_filelist)
20049         (func_get_dependencies, func_get_autoconf_early_snippet)
20050         (func_get_autoconf_snippet, func_get_automake_snippet)
20051         (func_get_include_directive, func_get_link_directive)
20052         (func_get_license, func_get_maintainer, func_import): Avoid
20053         shell syntax errors from parsing syntax extensions.
20054
20055 2010-09-09  Bruno Haible  <bruno@clisp.org>
20056
20057         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20058         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20059         a reliable way to determine whether the 'alias' command works.
20060
20061 2010-09-08  Jim Meyering  <meyering@redhat.com>
20062
20063         init.sh: penalize a set-x-impaired shell; don't disqualify it
20064         * tests/init.sh: Too many shells corrupt application stderr when
20065         you set -x, so we can't afford to disqualify them, since at least
20066         on Irix-6.5, that would disqualify all bourne shells.
20067         Instead, use a two-pass approach.
20068         On the first pass, try to find a shell that meets the stricter
20069         condition that set -x does not corrupt stderr.
20070         If no shell meets the stricter condition, retest each candidate
20071         shell, but without that extra condition.  Finally, when
20072         VERBOSE=yes is requested and set -x might cause trouble, simply
20073         issue a warning and refrain from enabling debug output.
20074
20075 2010-09-08  Eric Blake  <eblake@redhat.com>
20076
20077         unsetenv: fix OpenBSD bug
20078         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20079         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20080         documentation.
20081         Reported by Jim Meyering.
20082
20083         strtod: work around IRIX 6.5 bug
20084         * lib/strtod.c (strtod): Reparse number on shorter string if
20085         exponent parse was invalid.
20086         * tests/test-strtod.c (main): Add check for "0x1p 2".
20087         Reported by Tom G. Christensen.
20088
20089         getopt: optimize previous patch
20090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20091         empty variable.  Speed up awk script.
20092         Reported by Paolo Bonzini.
20093
20094 2010-09-08  Jim Meyering  <meyering@redhat.com>
20095
20096         test.sh: disqualify shells for which set -x corrupts stderr
20097         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20098         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20099         appear in stderr output.  For example, this command:
20100             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20101         prints "P=1" on those two systems:
20102
20103 2010-09-08  Bruno Haible  <bruno@clisp.org>
20104
20105         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20106         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20107         commands, because some shells ignore redirections when there is an
20108         error in the command lookup.
20109         Reported by Eric Blake.
20110
20111 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20112
20113         * lib/regex.h: Fix a mention of `regex_compile' (should be
20114         `re_compile_pattern').
20115         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20116         (re_set_registers): Correct name of parameter in comment.
20117
20118         * doc/regex.texi: Add documentation for missing syntax flags.
20119         Remove commented-out documentation of defunct syntax option
20120         RE_NO_EMPTY_ALTS.
20121         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20122         Add documentation of re_set_registers.
20123         Document trick to re-use a pattern buffer by setting fastmap manually.
20124         Update documentation of struct re_pattern_buffer per public members.
20125         Uncomment documentation of equivalence class operators and
20126         collating symbol operators, since they are now implemented,
20127         Explain leftmost-longest matching in relation to alternatives.
20128         Tidy documentation of substring matching.
20129         Remove POSIX documentation, which is done better in
20130         glibc, and refer the reader there. Keep BSD API documentation, as
20131         that is not readily available elsewhere.
20132
20133 2010-09-07  Eric Blake  <eblake@redhat.com>
20134
20135         getopt: handle POSIXLY_CORRECT set but not exported
20136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20137         export state of POSIXLY_CORRECT, due to bash set -o posix.
20138         Reported by Dustin J. Mitchell.
20139
20140 2010-09-05  Bruno Haible  <bruno@clisp.org>
20141
20142         gnulib-tool: Highlight the changed options.
20143         * gnulib-tool (func_usage): Display the --import, --add-import,
20144         --remove-import explanations in bold font.
20145
20146 2010-09-06  Karl Berry  <karl@gnu.org>
20147
20148         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20149
20150 2010-09-05  Bruno Haible  <bruno@clisp.org>
20151
20152         uniwidth/width: Update comment.
20153         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20154         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20155
20156 2010-09-05  Bruno Haible  <bruno@clisp.org>
20157
20158         isinf, isnan: Relax license.
20159         * modules/isinf (License): Change from GPL to LGPL, with consent from
20160         Ben Pfaff.
20161         * modules/isnan (License): Likewise.
20162         Requested by Ludovic Courtès.
20163
20164 2010-09-04  Bruno Haible  <bruno@clisp.org>
20165
20166         gnulib-tool: Help migration from --import to --add-import or --update.
20167         * gnulib-tool: Emit a verbose error message when --import is used
20168         without any module name.
20169
20170 2010-09-04  Bruno Haible  <bruno@clisp.org>
20171
20172         Update doc about gnulib-tool.
20173         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20174         'gnulib-tool --update' in more detail.
20175         Reported by Eric Blake.
20176
20177 2010-09-04  Bruno Haible  <bruno@clisp.org>
20178
20179         gnulib-tool: Change --import. New options --add/remove-import.
20180         * gnulib-tool: New options --add-import, --remove-import.
20181         (func_usage): Document them.
20182         (have_associative): Define always.
20183         (func_import): In import mode, don't merge the specified settings with
20184         the cached settings. Implement remove-import mode.
20185         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20186         Explain when to use them versus --import.
20187         (Simple update): Use --add-import instead of --import.
20188         * NEWS: Mention the change.
20189
20190 2010-09-04  Bruno Haible  <bruno@clisp.org>
20191
20192         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20193         separate gnulib.mk.
20194
20195 2010-09-04  Bruno Haible  <bruno@clisp.org>
20196
20197         gnulib-tool: Don't talk about CVS any more.
20198         * gnulib-tool (func_usage, func_import): Write "version control"
20199         instead of CVS.
20200
20201 2010-09-04  Jim Meyering  <meyering@redhat.com>
20202
20203         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20204         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20205         false positives (whose names may be ill-chosen) when searching
20206         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20207         would cause a false-positive.
20208
20209         avoid coreutils "make distcheck" failure
20210         Coreutils tests with an absolute build directory name that contains
20211         a space.  Not quoting this directory name caused a failure.
20212         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20213         * tests/test-vc-list-files-cvs.sh: Likewise.
20214
20215 2010-09-04  Bruno Haible  <bruno@clisp.org>
20216
20217         gnulib-tool: Avoid error when run in a package without Makefile.am.
20218         * gnulib-tool: When collecting the m4dirs in a package that does not
20219         have a Makefile.am, eliminate those directories that contain no
20220         gnulib-cache.m4. Fix expression that counts these directories.
20221
20222 2010-09-04  Bruno Haible  <bruno@clisp.org>
20223
20224         update-copyright test: Improve output when perl is missing or too old.
20225         * tests/test-update-copyright.sh: Move test of Perl version down after
20226         the test whether Perl exists. Provide an explanation relating Perl's
20227         error message to Automake's SKIP: message.
20228
20229 2010-09-04  Bruno Haible  <bruno@clisp.org>
20230
20231         Don't augment PATH in TESTS_ENVIRONMENT.
20232         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20233         set abs_aux_dir instead of augmenting PATH.
20234         * modules/vc-list-files-tests (Makefile.am): Likewise.
20235         * tests/test-update-copyright.sh: Augment PATH here.
20236         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20237         path_prepend_.
20238         * tests/test-vc-list-files-git.sh: Likewise.
20239
20240 2010-09-04  Jim Meyering  <meyering@redhat.com>
20241
20242         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20243         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20244
20245 2010-09-04  Bruno Haible  <bruno@clisp.org>
20246
20247         strdup: Fix compilation error in C++ mode.
20248         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20249         the macro.
20250
20251 2010-09-04  Bruno Haible  <bruno@clisp.org>
20252
20253         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20254         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20255         macro into a function.
20256         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20257
20258 2010-09-04  Bruno Haible  <bruno@clisp.org>
20259
20260         Set PATH_SEPARATOR the same way autoconf does.
20261         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20262         the value of PATH_SEPARATOR the same way autoconf-generated configure
20263         scripts do.
20264         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20265         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20266
20267 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20268
20269         Set PATH_SEPARATOR the same way autoconf does.
20270         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20271         the same way autoconf-generated configure scripts do.
20272         * posix-modules: Likewise.
20273
20274 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         hash: fix safe_hasher const typo
20277         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20278         const; otherwise, there is a type error later.
20279
20280 2010-09-02  Jim Meyering  <meyering@redhat.com>
20281
20282         test-update-copyright.sh: require perl 5.8.0
20283         * tests/test-update-copyright.sh: Require 5.8.0,
20284         which Tom G. Christensen has confirmed is adequate,
20285         while 5.6.1 is not.
20286
20287 2010-09-02  Eric Blake  <eblake@redhat.com>
20288
20289         tests: init.sh improvements for re-exec'ing with zsh
20290         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20291         -vx through shell re-exec.
20292         Reported by Tom G. Christensen.
20293
20294         wctype: fix typo in previous commit
20295         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20296         Reported by Ludovic Courtès.
20297
20298 2010-09-02  Jim Meyering  <meyering@redhat.com>
20299
20300         test-update-copyright.sh: skip test if Perl is too old
20301         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20302         Reported by Tom G. Christensen.
20303
20304 2010-09-02  Bruno Haible  <bruno@clisp.org>
20305
20306         wctype: Avoid compilation error on IRIX 6.5.30.
20307         * lib/wctype.in.h (iswblank): Declare with a replacement if
20308         REPLACE_ISWBLANK is set.
20309         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20310         declared. Set REPLACE_ISWBLANK.
20311         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20312         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20313         * doc/posix-headers/wctype.texi: Likewise.
20314         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20315
20316 2010-09-01  Bruno Haible  <bruno@clisp.org>
20317
20318         New module 'socketlib'.
20319         * modules/socketlib: New file.
20320         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20321         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20322         * modules/sockets (Depends-on): Add socketlib.
20323         Suggested by Sam Steingold <sds@gnu.org>.
20324
20325 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20326
20327         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20328
20329         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20330         when one needs search access to a directory but not read access.
20331         On systems where it is available, it works in some cases where
20332         O_RDONLY does not, namely on directories that are searchable but
20333         not readable, and which need only to be searchable.  If O_SEARCH
20334         is not available, fall back to the traditional method of using
20335         O_RDONLY.
20336
20337         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20338         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20339         when opening a directory that needs only to be searchable.
20340         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20341         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20342         * lib/openat-proc.c (openat_proc_name): Likewise.
20343         * lib/openat.c (openat_needs_fchdir): Likewise.
20344         * lib/save-cwd.c (save_cwd): Likewise.
20345         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20346
20347 2010-08-28  Bruno Haible  <bruno@clisp.org>
20348
20349         New module 'host-cpu-c-abi'.
20350         * modules/host-cpu-c-abi: New file.
20351         * m4/host-cpu-c-abi.m4: New file, based on part of
20352         clisp/src/m4/general.m4.
20353         Requested by Sam Steingold <sds@gnu.org>.
20354
20355 2010-08-31  Eric Blake  <eblake@redhat.com>
20356         and Jim Meyering  <meyering@redhat.com>
20357
20358         hash: factor, and guard against misbehaving hasher function
20359         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20360         of table->hasher's return value.  Also protect against a hash value
20361         so large that adding it to table->bucket results in a NULL pointer.
20362         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20363         Use it in place of open-coded check-and-abort.
20364
20365 2010-08-30  Bruno Haible  <bruno@clisp.org>
20366
20367         hash: silence spurious clang warning
20368         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20369         Reported by Eric Blake.
20370
20371 2010-08-30  Eric Blake  <eblake@redhat.com>
20372
20373         strstr, memmem, strcasestr: avoid leaked shell message
20374         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20375         FreeBSD.
20376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20378
20379         tests: silence clang warning
20380         * tests/test-malloca.c (do_allocation): Avoid dead store.
20381
20382 2010-08-29  Bruno Haible  <bruno@clisp.org>
20383
20384         gettext: Fix recent mistake.
20385         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20386
20387 2010-08-29  Bruno Haible  <bruno@clisp.org>
20388
20389         selinux-h: Offer a --without-selinux option.
20390         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20391         --without-selinux was specified, skip all tests and define
20392         HAVE_SELINUX_SELINUX_H to 0.
20393         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20394         set LIB_SELINUX to empty.
20395         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20396         gl_LIBSELINUX. If --without-selinux was specified, replace
20397         selinux/context.h.
20398         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20399
20400 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20401             Bruno Haible  <bruno@clisp.org>
20402
20403         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20404         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20405         of HAVE_REALLOC.
20406         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20407         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20408         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20409         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20410
20411 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20412             Bruno Haible  <bruno@clisp.org>
20413
20414         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20415         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20416         HAVE_CALLOC.
20417         * lib/xmalloc.c: Update accordingly.
20418         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20419         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20420         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20421
20422 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20423             Bruno Haible  <bruno@clisp.org>
20424
20425         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20426         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20427         HAVE_MALLOC.
20428         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20429         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20430         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20431
20432 2010-08-29  Bruno Haible  <bruno@clisp.org>
20433
20434         Update modules list.
20435         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20436         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20437         (String handling <string.h>): Add astrxfrm.
20438         (File system functions): Add readlinkat.
20439
20440 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20441
20442         Tests for module 'realloc-gnu'.
20443         * modules/realloc-gnu-tests: New file.
20444         * tests/test-realloc-gnu.c: New file.
20445
20446         Tests for module 'calloc-gnu'.
20447         * modules/calloc-gnu-tests: New file.
20448         * tests/test-calloc-gnu.c: New file.
20449
20450         Tests for module 'malloc-gnu'.
20451         * modules/malloc-gnu-tests: New file.
20452         * tests/test-malloc-gnu.c: New file.
20453
20454 2010-08-28  Bruno Haible  <bruno@clisp.org>
20455
20456         Rename module 'realloc' -> 'realloc-gnu'.
20457         * modules/realloc-gnu: New file, copied from modules/realloc.
20458         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20459         obsolete.
20460         * modules/mgetgroups (Depends-on): Update.
20461         * doc/posix-functions/realloc.texi: Update.
20462         * NEWS: Mention the change.
20463
20464         Rename module 'calloc' -> 'calloc-gnu'.
20465         * modules/calloc-gnu: New file, copied from modules/calloc.
20466         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20467         obsolete.
20468         * doc/posix-functions/calloc.texi: Update.
20469         * NEWS: Mention the change.
20470
20471         Rename module 'malloc' -> 'malloc-gnu'.
20472         * modules/malloc-gnu: New file, copied from modules/malloc.
20473         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20474         obsolete.
20475         * modules/argp (Depends-on): Update.
20476         * modules/regex (Depends-on): Update.
20477         * doc/posix-functions/malloc.texi: Update.
20478         * NEWS: Mention the change.
20479
20480 2010-08-28  Eric Blake  <eblake@redhat.com>
20481
20482         pread, pwrite: add missing dependency
20483         * modules/pread (Depends-on): Add extensions.
20484         * modules/pwrite (Depends-on): Likewise.
20485
20486 2010-08-28  Bruno Haible  <bruno@clisp.org>
20487
20488         unistr/u*-strchr: Fix tests dependencies.
20489         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20490         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20491         Reported by Ian Beckwith <ianb@erislabs.net>.
20492
20493 2010-08-28  Bruno Haible  <bruno@clisp.org>
20494
20495         read-file: Don't occupy too much unused memory.
20496         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20497
20498 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20499             Eric Blake  <eblake@redhat.com>
20500             Bruno Haible  <bruno@clisp.org>
20501
20502         read-file: Avoid memory reallocations with regular files.
20503         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20504         (fread_file): With regular files, use the remaining length as the
20505         initial buffer size.  Check against overflow.
20506         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20507         sys_stat.
20508
20509 2010-08-28  Bruno Haible  <bruno@clisp.org>
20510
20511         ftello: Relax license.
20512         * modules/ftello (License): Relax to LGPLv2+.
20513         Reported by Eric Blake.
20514
20515 2010-08-28  Bruno Haible  <bruno@clisp.org>
20516
20517         Avoid relocwrapper link errors due to gnulib replacement functions.
20518         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20519         function.
20520         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20521
20522 2010-08-28  Bruno Haible  <bruno@clisp.org>
20523
20524         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20525         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20526         defined.
20527         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20528         Suggested by Eric Blake.
20529
20530 2010-08-28  Bruno Haible  <bruno@clisp.org>
20531
20532         sys_socket, netdb: Ensure socklen_t gets defined.
20533         * modules/sys_socket (Depends-on): Add socklen.
20534         * modules/netdb (Depends-on): Likewise.
20535         * modules/getaddrinfo (Depends-on): Remove socklen.
20536         * modules/getsockopt (Depends-on): Likewise.
20537         * modules/setsockopt (Depends-on): Likewise.
20538         * tests/test-sys_socket.c: Check that socklen_t is defined.
20539         * tests/test-netdb.c: Likewise.
20540         * m4/socklen.m4: Update comments.
20541         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20542
20543 2010-08-27  Eric Blake  <eblake@redhat.com>
20544
20545         login_tty: add missing dependency
20546         * modules/login_tty (Depends-on): Add pty.
20547
20548 2010-08-26  Eric Blake  <eblake@redhat.com>
20549
20550         lib-symbol-versions: fix m4 quoting
20551         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20552         format for AC_LINK_IFELSE.
20553
20554         glob: fix compile test
20555         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20556
20557         btowc: fix missing file
20558         * modules/btowc (Files): Also ship locale-fr.m4.
20559
20560         lseek: fix link test
20561         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20562         AC_LINK_IFELSE.
20563
20564         include_next: silence autoconf 2.68 warning
20565         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20566         AC_COMPILE_IFELSE as special.
20567         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20568         autoconf < 2.68.
20569
20570         acl: fix compilation test
20571         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20572         AC_COMPILE_IFELSE.
20573
20574 2010-08-26  Bruno Haible  <bruno@clisp.org>
20575
20576         Modernize AC_TRY_RUN invocations.
20577         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20578         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20579         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20580         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20581         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20582         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20583         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20585         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20586         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20587         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20588         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20589         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20590         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20592         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20593         gl_MBRLEN_NUL_RETVAL): Likewise.
20594         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20595         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20596         Likewise.
20597         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20598         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20599         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20600         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20601         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20602         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20603         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20604         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20605         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20606         Likewise.
20607         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20608         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20609         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20610         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20612         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20613         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20614         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20615         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20617
20618 2010-08-26  Bruno Haible  <bruno@clisp.org>
20619
20620         Modernize AC_TRY_LINK invocations.
20621         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20622         AC_TRY_LINK.
20623         * m4/argp.m4 (gl_ARGP): Likewise.
20624         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20625         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20626         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20627         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20628         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20629         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20630         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20631         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20632         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20634         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20635         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20636         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20637         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20638         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20639         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20640         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20641         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20642         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20643         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20644         Likewise.
20645         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20646         Likewise.
20647         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20648         Likewise.
20649         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20651         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20652         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20653         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20654         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20655         * m4/servent.m4 (gl_SERVENT): Likewise.
20656         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20657         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20658         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20659         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20660         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20661         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20662         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20663         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20664         * modules/tsearch-tests (configure.ac): Likewise.
20665
20666 2010-08-26  Bruno Haible  <bruno@clisp.org>
20667
20668         Modernize AC_TRY_COMPILE invocations.
20669         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20670         AC_TRY_COMPILE.
20671         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20672         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20673         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20674         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20675         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20676         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20677         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20678         * m4/lock.m4 (gl_LOCK): Likewise.
20679         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20680         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20681         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20682         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20683         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20684         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20685         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20686         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20687         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20688         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20689         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20690         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20691         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20692         extraneous semicolon.
20693
20694 2010-08-26  Jim Meyering  <meyering@redhat.com>
20695
20696         stat-time: relax license LGPL
20697         * modules/stat-time (License): Change from GPL to LGPL,
20698         with consent from all contributors, for use in libguile.
20699         Requested by Ludovic Courtès.
20700
20701 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20702
20703         poll: return immediately on POLLHUP.
20704         * lib/poll.c (poll): Always set timeout before wait_timeout is
20705         computed.
20706
20707 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20708
20709         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20710         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20711         rmdir ("dir/.//"), unlinkat.
20712
20713 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         stdbool: avoid spurious failure with modern xlc
20716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20717
20718 2010-08-24  Bruno Haible  <bruno@clisp.org>
20719
20720         getloadavg: simplify code
20721         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20722         gl_have_func. Update comments.
20723
20724 2010-08-24  Eric Blake  <eblake@redhat.com>
20725
20726         getloadavg: don't define SVR4 on cygwin
20727         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20728         only define SVR4 when -lkvm is required.
20729         Reported by Yaakov Selkowitz.
20730
20731 2010-08-24  Bruno Haible  <bruno@clisp.org>
20732
20733         priv-set: fix comment
20734         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20735
20736 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20737
20738         priv-set: fix comments
20739         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20740         to match code, as suggested by David Bartley in:
20741         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20742
20743 2010-08-23  Eric Blake  <eblake@redhat.com>
20744
20745         stdbool: avoid rejecting clang
20746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20747         * tests/test-stdbool.c: Enable more tests if using the system
20748         <stdbool.h> instead of the gnulib replacement.
20749         (main): Move xlc bug test to a runtime test for all compilers.
20750         Reported by Anders Kaseorg.
20751
20752         argz: fix shell quoting issue
20753         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20754         Reported by Charles Wilson.
20755
20756 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20757             Erik Faye-Lund <kusmabite@gmail.com>
20758
20759         poll, select: handle ERROR_BROKEN_PIPE.
20760         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20761         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20762         * lib/select.c (win32_compute_revents): Do not mark a pipe
20763         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20764
20765 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20766
20767         fts: allow compilation with C++
20768         * lib/fts_.h: Specify extern "C" linkage with C++.
20769
20770 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20771
20772         Fix gnulib-tool sed script de-commentation for AIX sed.
20773         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20774         sed.
20775
20776 2010-08-17  Eric Blake  <eblake@redhat.com>
20777
20778         test-stddef: test for (some) offsetof bugs
20779         * tests/test-stddef.c: Enhance test to ensure correct type of
20780         offsetof.
20781         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20782         that we are not fixing at this time.
20783
20784 2010-08-15  Bruno Haible  <bruno@clisp.org>
20785
20786         stpncpy: Allow stpncpy to be defined as a macro.
20787         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20788         if it's already correctly declared.
20789         * lib/string.in.h (stpncpy): Undefine before redefining.
20790         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20791
20792 2010-08-14  Bruno Haible  <bruno@clisp.org>
20793
20794         Rename module 'memxfrm' to 'amemxfrm'.
20795         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20796         (amemxfrm): Renamed from memxfrm.
20797         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20798         (amemxfrm): Renamed from memxfrm.
20799         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20800         * NEWS: Mention the change.
20801         * MODULES.html.sh (String handling <string.h>): Update.
20802         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20803         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20804         * lib/unicase/u16-casexfrm.c: Likewise.
20805         * lib/unicase/u32-casexfrm.c: Likewise.
20806         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20807         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20808         * lib/uninorm/u16-normxfrm.c: Likewise.
20809         * lib/uninorm/u32-normxfrm.c: Likewise.
20810         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20811         memxfrm.
20812         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20813         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20814         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20815         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20816         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20817         Suggested by Paul Eggert.
20818
20819 2010-08-14  Bruno Haible  <bruno@clisp.org>
20820
20821         Tests for module 'astrxfrm'.
20822         * modules/astrxfrm-tests: New file.
20823         * tests/test-astrxfrm.c: New file.
20824
20825         New module 'astrxfrm'.
20826         * lib/astrxfrm.h: New file.
20827         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20828         * modules/astrxfrm: New file.
20829
20830 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20831
20832         regex: Tweak doc.
20833         * doc/regex.texi (Overview): Don't mention regex.c.
20834         (GNU Regular Expression Compiling): Likewise.
20835         (Match-end-of-line Operator): Mention 'not_eol'.
20836
20837 2010-08-14  Brian Gough  <bjg@gnu.org>
20838             Bruno Haible  <bruno@clisp.org>
20839
20840         git-merge-changelog: add doc relating to use with bzr and hg.
20841         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20842
20843 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20844
20845         pthread: fix pthread.h creation for srcdir != builddir
20846         * modules/pthread (Makefile.am): Fix the rule to work also in a
20847         non-srcdir build.
20848
20849 2010-08-13  Karl Berry  <karl@gnu.org>
20850
20851         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20852         * doc/posix-*/*: force line break before @url of POSIX
20853         specifications.
20854         Suggested by Werner Lemberg.
20855
20856 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20857
20858         strtod: fix const diagnostic
20859         * lib/strtod.c (strtod): Don't assign const char * to char *,
20860         as this elicits a warning from GCC when warnings are enabled.
20861
20862 2010-08-10  Pádraig Brady <P@draigbrady.com>
20863         and Eric Blake  <eblake@redhat.com>
20864
20865         copy-acl: ignore ENOTSUP on HP-UX
20866         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20867         so that it is available for HP-UX.
20868         * lib/copy-acl.c (qcopy_acl): Use it.
20869         Reported by Patrick M. Callahan.
20870
20871 2010-08-10  Eric Blake  <eblake@redhat.com>
20872
20873         open, chown: relax license
20874         * modules/open (License): Change to LGPLv2+, with consent by all
20875         authors, for use in augeas.
20876         * modules/chown (License): Likewise.
20877         * modules/lchown (Likewise): Likewise.
20878         Requested by Adam Stokes.
20879
20880 2010-08-09  Karl Berry  <karl@gnu.org>
20881
20882         * build-aux/ar-lib: new file, import from Automake.
20883         * config/srclist.txt: autocheck for updates.
20884
20885 2010-08-09  Eric Blake  <eblake@redhat.com>
20886
20887         readlinkat: adjust client modules
20888         * modules/areadlinkat (Depends-on): Use readlinkat, not
20889         symlinkat.
20890         * modules/areadlinkat-with-size (Depends-on): Likewise.
20891
20892         mknod: be more vocal about danger of running tests as root
20893         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20894         root, since that is just asking for problems.
20895         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20896
20897         readlinkat: split into its own module
20898         * modules/symlinkat: Split readlinkat...
20899         * modules/readlinkat: ...into separate module.
20900         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20901         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20902         * lib/symlinkat.c (readlinkat): Move...
20903         * lib/readlinkat.c: ...into new file.
20904         * modules/symlinkat-tests: Split readlinkat test...
20905         * modules/readlinkat-tests: ...into separate module.
20906         * tests/test-symlinkat.c: Split...
20907         * tests/test-readlinkat.c: ...into new file.
20908         * NEWS: Document the split.
20909         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20910         * lib/unistd.in.h (readlinkat): Likewise.
20911         Suggested by Bruno Haible.
20912
20913 2010-08-08  Bruno Haible  <bruno@clisp.org>
20914
20915         memxfrm: Speed up.
20916         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20917         that usually only one call to strxfrm is necessary for each string
20918         part.
20919         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20920
20921 2010-08-07  Karl Berry  <karl@gnu.org>
20922
20923         * doc/posix-headers/limits.texi,
20924         * doc/posix-functions/malloc.texi,
20925         * doc/posix-functions/strsignal.texi: missing @item.
20926         * doc/ld-version-script.texi: spurious leading i.
20927         * doc/regex.texi (Interval Operators): no commas inside @var.
20928
20929 2010-08-01  Bruno Haible  <bruno@clisp.org>
20930
20931         Integrate the regex documentation.
20932         * doc/gnulib.texi: Define 'cn' index.
20933         (Regular expressions): New a chapter that includes regex.texi and
20934         regexprops-generic.texi.
20935         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20936         syntax.
20937
20938         Whitespace cleanup.
20939         * doc/regex.texi: Remove trailing spaces.
20940
20941         Add regex documentation.
20942         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20943         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20944         Written by Kathy A. Hargreaves and Karl Berry.
20945
20946 2010-08-01  Bruno Haible  <bruno@clisp.org>
20947
20948         link: Update documentation.
20949         * doc/posix-functions/link.texi: Update regarding Solaris.
20950
20951 2010-07-31  Bruno Haible  <bruno@clisp.org>
20952
20953         Update modules list.
20954         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20955         (String handling <string.h>): Add memcmp2, memxfrm.
20956         (Container data structures): Add xlist, xsublist, xoset.
20957         (Core language properties): Add alignof, unused-parameter.
20958         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20959         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20960         (Unibyte characters <ctype.h>): New section.
20961         (String handling <string.h>): New section.
20962         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20963         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20964         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20965         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20966         tan, tanh, tanl, y0, y1, yn.
20967         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20968         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20969         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20970         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20971         unlockpt, vdprintf, vdprintf-posix.
20972         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20973         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20974         xconcat-filename.
20975         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20976         getdtablesize, pipe2, pipe2-safer.
20977         (Security): New section.
20978         (Networking functions): Add accept4.
20979         (Signal handling): Add sigpipe.
20980         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20981         mbmemcasecoll.
20982         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20983         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20984         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20985         pipe-filter-ii.
20986         (Misc): Add argp-version-etc, login_tty, parse-duration.
20987
20988 2010-07-31  Bruno Haible  <bruno@clisp.org>
20989
20990         Improve doc in MODULES.html.
20991         * modules/linkat (Description): Add the word "function".
20992         * modules/mkfifo (Description): Likewise.
20993         * modules/mknod (Description): Likewise.
20994         * modules/remove (Description): Likewise.
20995         * modules/renameat (Description): Likewise.
20996         * modules/stat (Description): Likewise.
20997         * modules/symlink (Description): Likewise.
20998         * modules/unlink (Description): Likewise.
20999
21000 2010-07-31  Bruno Haible  <bruno@clisp.org>
21001
21002         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21003         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21004         option --enable/disable-c++ instead of --enable/disable-cxx.
21005         * NEWS: Mention the change.
21006
21007 2010-07-31  Bruno Haible  <bruno@clisp.org>
21008
21009         readlink, areadlink: Relax test a bit.
21010         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21011         alternative to ENOTDIR.
21012         * tests/test-areadlink.h (test_areadlink): Likewise.
21013         Reported by Rainer Tammer.
21014
21015 2010-07-31  Bruno Haible  <bruno@clisp.org>
21016
21017         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21018         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21019         character, perform the search using U_STRCHR.
21020         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21021         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21022         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21023         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21024         Suggested by Paolo Bonzini.
21025
21026 2010-07-31  Bruno Haible  <bruno@clisp.org>
21027
21028         unistr/u*-strstr: Fix dependencies.
21029         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21030         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21031         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21032
21033 2010-07-31  Bruno Haible  <bruno@clisp.org>
21034
21035         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21036         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21037         the beginning of the loop.
21038         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21039         cases in 'switch' statement.
21040
21041         unistr/u8-strchr: Fix several bugs.
21042         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21043         the string. When not found, return NULL, not a pointer near the end.
21044
21045         More tests for unistr/u8-strchr.
21046         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21047         that the function does not read past the first occurrence of the byte
21048         being searched.
21049         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21050         * tests/unistr/test-u16-strchr.c (main): New function.
21051         * tests/unistr/test-u32-strchr.c (main): New function.
21052
21053 2010-07-31  Bruno Haible  <bruno@clisp.org>
21054
21055         posix-modules: Ignore backup files of documentation files.
21056         * posix-modules: grep only through files named *.texi.
21057
21058 2010-07-31  Bruno Haible  <bruno@clisp.org>
21059
21060         symlinkat: Fix documentation.
21061         * doc/posix-functions/readlinkat.texi: Fix module name.
21062
21063 2010-07-31  Bruno Haible  <bruno@clisp.org>
21064
21065         fchownat: Replace also when chown has the trailing slash bug.
21066         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21067         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21068         introduced on 2010-04-10.
21069         Reported by Rainer Tammer.
21070
21071 2010-07-31  Bruno Haible  <bruno@clisp.org>
21072
21073         linkat: Work around AIX 7.1 bug.
21074         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21075         whether linkat handles trailing slash correctly. If not, replace linkat
21076         and define LINKAT_TRAILING_SLASH_BUG.
21077         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21078         check whether (fd1,file1) points to a directory if file1 or file2 ends
21079         in a slash. Code taken from lib/link.c.
21080         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21081         Reported by Rainer Tammer.
21082
21083 2010-07-31  Bruno Haible  <bruno@clisp.org>
21084
21085         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21086         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21087         This disables an xlc optimization that was causing wrong test results.
21088         Reported by Rainer Tammer.
21089
21090 2010-07-31  Bruno Haible  <bruno@clisp.org>
21091
21092         iconv: Work around AIX 6.1..7.1 bug.
21093         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21094         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21095         cross-compiling, guess no on all versions of AIX.
21096         Reported by Rainer Tammer.
21097
21098 2010-07-31  Bruno Haible  <bruno@clisp.org>
21099
21100         readlink: Relax test a bit.
21101         * tests/test-readlink.h (test_readlink): Allow different errno value
21102         when readlink is called with a file name that ends in / and refers to
21103         a file.
21104         Suggested by Eric Blake.
21105         Reported by Rainer Tammer.
21106
21107 2010-07-31  Bruno Haible  <bruno@clisp.org>
21108
21109         copysign: Does not require -lm on glibc systems.
21110         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21111         gl_COMMON_DOUBLE_MATHFUNC.
21112         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21113
21114 2010-07-31  Bruno Haible  <bruno@clisp.org>
21115
21116         duplocale: Work around AIX 7.1 bug.
21117         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21118         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21119         * lib/duplocale.c (rpl_duplocale): Update comment.
21120         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21121         Reported by Rainer Tammer.
21122
21123 2010-07-30  Bruno Haible  <bruno@clisp.org>
21124
21125         dirfd: Avoid link error on AIX 7.1.
21126         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21127         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21128         exist, set REPLACE_DIRFD.
21129         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21130         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21131         * doc/posix-functions/dirfd.texi: Update.
21132         Reported by Rainer Tammer.
21133
21134 2010-07-30  Eric Blake  <eblake@redhat.com>
21135
21136         strtod: next round of AIX fixes
21137         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21138         exponent.
21139         * tests/test-strtod.c (main): Enhance tests.
21140         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21141         Reported by Rainer Tammer.
21142
21143         futimens: fix configure check
21144         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21145         Reported by Bruno Haible.
21146
21147 2010-07-30  Bruno Haible  <bruno@clisp.org>
21148
21149         getline: Update regarding AIX.
21150         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21151         Reported by Rainer Tammer.
21152
21153 2010-07-30  Bruno Haible  <bruno@clisp.org>
21154
21155         wcwidth: Drop replacement on AIX 7.
21156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21157         AIX 7.
21158         Reported by Rainer Tammer.
21159
21160 2010-07-30  Bruno Haible  <bruno@clisp.org>
21161
21162         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21163         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21164         a 'char *'.
21165         Reported by Rainer Tammer.
21166
21167 2010-07-30  Bruno Haible  <bruno@clisp.org>
21168
21169         unlink: Update regarding AIX.
21170         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21171         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21172         Reported by Rainer Tammer.
21173
21174 2010-07-30  Bruno Haible  <bruno@clisp.org>
21175
21176         symlink: Update regarding AIX.
21177         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21178         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21179         Reported by Rainer Tammer.
21180
21181 2010-07-30  Bruno Haible  <bruno@clisp.org>
21182
21183         strndup: Update regarding AIX.
21184         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21185         AIX 7.
21186         Reported by Rainer Tammer.
21187
21188 2010-07-30  Bruno Haible  <bruno@clisp.org>
21189
21190         stat: Update regarding AIX.
21191         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21192         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21193         Reported by Rainer Tammer.
21194
21195 2010-07-30  Bruno Haible  <bruno@clisp.org>
21196
21197         truncl: Fix autoconf test.
21198         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21199         whether truncl works.
21200         Reported by Rainer Tammer.
21201
21202 2010-07-30  Bruno Haible  <bruno@clisp.org>
21203
21204         round: Update regarding AIX.
21205         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21206         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21207         Reported by Rainer Tammer.
21208
21209 2010-07-30  Bruno Haible  <bruno@clisp.org>
21210
21211         rename: Update regarding AIX.
21212         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21213         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21214         Reported by Rainer Tammer.
21215
21216 2010-07-30  Bruno Haible  <bruno@clisp.org>
21217
21218         printf.m4: Update regarding AIX.
21219         * m4/printf.m4: Update comments regarding AIX.
21220         Reported by Rainer Tammer.
21221
21222 2010-07-30  Bruno Haible  <bruno@clisp.org>
21223
21224         iconv: Update regarding AIX.
21225         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21226         AIX 7.
21227         Reported by Rainer Tammer.
21228
21229 2010-07-30  Bruno Haible  <bruno@clisp.org>
21230
21231         getopt: Update regarding AIX.
21232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21233         no on AIX.
21234         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21235         Reported by Rainer Tammer.
21236
21237 2010-07-30  Bruno Haible  <bruno@clisp.org>
21238
21239         ldexpl; Update regarding AIX.
21240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21241         on AIX 7.
21242         Reported by Rainer Tammer.
21243
21244 2010-07-30  Bruno Haible  <bruno@clisp.org>
21245
21246         frexpl: Update regarding AIX.
21247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21248         on AIX 7.
21249         Reported by Rainer Tammer.
21250
21251 2010-07-30  Bruno Haible  <bruno@clisp.org>
21252
21253         open, fopen: Update regarding AIX.
21254         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21255         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21256         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21257         * doc/posix-functions/fopen.texi: Likewise.
21258         Reported by Rainer Tammer.
21259
21260 2010-07-30  Bruno Haible  <bruno@clisp.org>
21261
21262         chown: Update doc regarding AIX.
21263         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21264         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21265         Reported by Rainer Tammer.
21266
21267 2010-07-30  Eric Blake  <eblake@redhat.com>
21268
21269         strtod: fix bug in replacement function on AIX
21270         * lib/strtod.c (strtod): Special case broken "0x" parse in
21271         underlying strtod.
21272         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21273         * doc/posix-functions/strtod.texi (strtod): Likewise.
21274         Reported by Rainer Tammer.
21275
21276 2010-07-30  Bruno Haible  <bruno@clisp.org>
21277
21278         mbrlen: Fix cross-compilation guess for AIX.
21279         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21280         guess. Leftover from 2008-12-22.
21281
21282 2010-07-30  Bruno Haible  <bruno@clisp.org>
21283
21284         mbrtowc: Fix cross-compilation guess for AIX.
21285         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21286         guess. Leftover from 2008-12-21.
21287
21288 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21289
21290         init.sh: work around trap limitation of some shells
21291         * tests/init.sh (setup_): Move exit trap outside of shell function.
21292
21293 2010-07-29  Eric Blake  <eblake@redhat.com>
21294
21295         strtod: aid debugging
21296         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21297         understanding why strtod is rejected.
21298
21299 2010-07-28  Bruno Haible  <bruno@clisp.org>
21300
21301         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21302         * lib/unistr/u8-chr.c: Include <string.h>.
21303         * tests/unistr/test-u8-chr.c: Likewise.
21304         * tests/unistr/test-u16-chr.c: Likewise.
21305         * tests/unistr/test-u32-chr.c: Likewise.
21306         * tests/unistr/test-u8-strchr.c: Likewise.
21307         * tests/unistr/test-u16-strchr.c: Likewise.
21308         * tests/unistr/test-u32-strchr.c: Likewise.
21309         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21310         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21311         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21312         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21313
21314 2010-07-28  Bruno Haible  <bruno@clisp.org>
21315
21316         Use spaces for indentation, not tabs.
21317         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21318
21319 2010-07-27  Bruno Haible  <bruno@clisp.org>
21320
21321         mbspcasecmp: Fix function specification.
21322         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21323         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21324         Reported by Eric Blake <eblake@redhat.com>.
21325
21326 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21327
21328         timespec: use cast and not conditional, as truncation isn't possible
21329         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21330         instead of a conditional.  Comment about the situation in more detail.
21331         This undoes most of the 2009-10-29 patch.
21332
21333 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21334
21335         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21336         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21337         * lib/unistr/u8-strchr.c: Likewise.
21338         * modules/unistr/u8-chr: Depend on memchr.
21339
21340         unistr/u*-strchr: add tests
21341         * modules/unistr/u8-strchr-tests: New file.
21342         * modules/unistr/u16-strchr-tests: New file.
21343         * modules/unistr/u32-strchr-tests: New file.
21344         * tests/unistr/test-strchr.h: New file.
21345         * tests/unistr/test-u8-strchr.c: New file.
21346         * tests/unistr/test-u16-strchr.c: New file.
21347         * tests/unistr/test-u32-strchr.c: New file.
21348
21349         unistr/u*-chr: test multibyte sequences more
21350         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21351         test vector.
21352         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21353         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21354         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21355
21356         unistr/u*-chr: test multibyte sequences
21357         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21358
21359         unistr/u*-chr: prepare for multibyte tests
21360         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21361         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21362         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21363         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21364         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21365         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21366
21367 2010-07-18  Bruno Haible  <bruno@clisp.org>
21368
21369         unistr/u8-strchr: Optimize non-ASCII argument case.
21370         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21371         because the first byte often matches anyway.
21372         Reported by Pádraig Brady <P@draigbrady.com>.
21373
21374 2010-07-15  Karl Berry  <karl@gnu.org>
21375
21376         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21377
21378 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21379
21380         getcwd: on Solaris, work better if ancestors are inaccessible
21381         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21382         buffer and size, try again with a large buffer.  This works better
21383         on Solaris, since its getcwd succeeds even if the path to the root
21384         is inaccessible, and this is helpful in common cases such as .zfs
21385         hidden directories.  Problem reported by J Chapman Flack in
21386         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21387         Use system getcwd if it's declared, not merely if it's partly
21388         working; use the partly-working test only to avoid needless effort
21389         if the system getcwd fails.
21390         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21391         comment that was already obsolete and is now even more obsolete.
21392         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21393         now might call strdup.
21394
21395 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21396
21397         pthread: Add enough so that coreutils/src/sort.c compiles.
21398         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21399         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21400         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21401         Include <sys/types.h>, in case it defines pthread_t.
21402         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21403         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21404         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21405         (pthread_rwlockattr_t, pthread_spinlock_t):
21406         New typedefs, if HAVE_PTHREAD_T is not defined.
21407         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21408         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21409         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21410         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21411         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21412         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21413         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21414         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21415         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21416         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21417         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21418         New macros.
21419         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21420         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21421         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21422         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21423         (pthread_spin_unlock): New dummy functions.
21424         (pthread_create): Return EAGAIN; don't set errno.
21425         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21426         require AC_C_INLINE.
21427         * modules/pthread (Depends-on): Add sched, time.
21428         (pthread.h): Use AM_V_GEN.
21429
21430 2010-07-13  Bruno Haible  <bruno@clisp.org>
21431
21432         striconveh: Don't malloc memory if the result buffer is sufficient.
21433         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21434         buffer if its size is sufficient.
21435         Reported by Ludovic Courtès <ludo@gnu.org>.
21436
21437 2010-07-13  Bruno Haible  <bruno@clisp.org>
21438
21439         strtod: Add safety check.
21440         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21441
21442 2010-07-12  Bruno Haible  <bruno@clisp.org>
21443
21444         Unify tests that set gl_cv_func_ldexpl_no_libm.
21445         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21446         gl_FUNC_LDEXPL.
21447         (gl_FUNC_LDEXPL): Invoke it.
21448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21449
21450 2010-07-12  Bruno Haible  <bruno@clisp.org>
21451
21452         Unify tests that set gl_cv_func_ldexp_no_libm.
21453         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21454         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21455         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21456         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21457         * modules/strtod (Files): Add m4/ldexp.m4.
21458
21459 2010-07-12  Bruno Haible  <bruno@clisp.org>
21460
21461         Unify tests that set gl_cv_func_frexpl_no_libm.
21462         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21463         gl_FUNC_FREXPL_NO_LIBM.
21464         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21466
21467 2010-07-12  Bruno Haible  <bruno@clisp.org>
21468
21469         Unify tests that set gl_cv_func_frexp_no_libm.
21470         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21471         gl_FUNC_FREXP_NO_LIBM.
21472         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21473         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21474
21475 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21476
21477         memcoll: clarify sizes versus lengths, document better, and tweak perf
21478         * lib/memcoll.c (strcoll_loop, memcoll0):
21479         Improve quality of descriptive comments.  Name variables
21480         consistently as to whether they are lengths (which do not include
21481         terminating null) versus sizes (which do).
21482         * lib/xmemcoll.c (xmemcoll0): Likewise.
21483         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21484         returned when s1size == 0; this is easier to compile and saves
21485         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21486
21487 2010-07-12  Bruno Haible  <bruno@clisp.org>
21488
21489         Tests for module '_Exit'.
21490         * modules/_Exit-tests: New file.
21491         * tests/test-_Exit.sh: New file.
21492         * tests/test-_Exit.c: New file.
21493
21494         New module '_Exit'.
21495         * lib/stdlib.in.h (__attribute__): New macro.
21496         (_Exit): New declaration.
21497         * lib/_Exit.c: New file.
21498         * m4/_Exit.m4: New file.
21499         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21500         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21501         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21502         * modules/_Exit: New file.
21503         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21504         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21505
21506 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21507
21508         strtod: make it more-accurate typically, and don't require libm
21509         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21510         Include limits.h.  Don't include string.h.
21511         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21512         (locale_isspace): New function, so that no casts are needed to
21513         check whether *s is a space.
21514         (ldexp): Provide an unused dummy if not available.
21515         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21516         (strtod): Use them.  This implementation prefers to use the
21517         underlying strtod if available, falling back on our own code
21518         only to fix known bugs.  This is more likely to produce an
21519         accurate result.  Also, it avoids the use of libm functions.
21520         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21521         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21522         was absent, but it caused a test failure with coreutils.
21523         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21524         with libm.
21525         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21526         * modules/strtod-tests (Makefile.am): Likewise.
21527
21528 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21529             Bruno Haible  <bruno@clisp.org>
21530
21531         unistr/u8-strchr: Optimize ASCII argument case.
21532         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21533
21534 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21535
21536         (x)memcoll: minor tweaks
21537         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21538         is after the type that it qualifies.
21539         (memcoll0): Likewise.
21540         * lib/memcoll.h (memcoll0): Likewise.
21541         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21542         * lib/xmemcoll.h (xmemcoll0): Likewise.
21543         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21544         differs from memcoll in that the NUL byte is part of the argument.
21545         Omit the abort-checks, as performance is a real issue here.  Plus,
21546         the checks were wrong anyway (an off-by-one error).  Omit local
21547         variable 'diff', as it's a bit clearer that way.
21548         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21549         no longer needed.
21550
21551 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21552
21553         (x)memcoll: speedup when input is known to be NUL delimited
21554         * lib/memcoll.c: Include stdlib.
21555         (memcoll0): New function.
21556         (strcoll_loop): New function, refactored for use in both memcoll
21557         and memcoll0.
21558         * lib/memcoll.h (memcoll0): Add prototype.
21559         * lib/xmemcoll.c (xmemcoll0): New function.
21560         (collate_error): New function, refactored for use in both xmemcoll
21561         and xmemcoll0.
21562         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21563         * m4/memcoll.m4: add inline invocation.
21564
21565 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21566
21567         * build-aux/bootstrap: Remove any local translations
21568         from the translation project synchronization directory,
21569         so that local only translations are not distributed.
21570
21571 2010-07-04  Bruno Haible  <bruno@clisp.org>
21572
21573         fsusage: Clarify which code applies to which platforms.
21574         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21575         platform.
21576         * lib/fsusage.c (get_fs_usage): Likewise.
21577
21578 2010-07-04  Bruno Haible  <bruno@clisp.org>
21579
21580         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21581         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21582         Reported by Martin Lambers <marlam@marlam.de>.
21583
21584 2010-07-04  Jim Meyering  <meyering@redhat.com>
21585
21586         hash: once again explicitly disallow insertion of NULL
21587         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21588         inserting a NULL pointer cannot work with these functions.
21589         Add a comment with details.
21590         This reverts part of the 2010-07-01 commit, 5bef1a35
21591         "hash: extend module to deal with non-pointer keys".
21592
21593 2010-07-01  Bruno Haible  <bruno@clisp.org>
21594
21595         stdbool: Update doc.
21596         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21597         Info from Christian Weisgerber <naddy@mips.inka.de>.
21598
21599 2010-07-01  Jim Meyering  <meyering@redhat.com>
21600
21601         hash: extend module to deal with non-pointer keys
21602         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21603         but that allows insertion of non-pointer entries.
21604         Do not disallow an ENTRY value of NULL.
21605         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21606         * lib/hash.h (hash_insert0): Declare.
21607
21608 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21609
21610         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21611         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21612         not present (i.e. with autoconf 2.59 and when using gettextize, not
21613         gnulib), require AC_GNU_SOURCE instead.
21614
21615 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21616
21617         idpriv-drop: Fix tests.
21618         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21619         not to the test-idpriv-droptemp program.
21620
21621 2010-06-29  Bruno Haible  <bruno@clisp.org>
21622
21623         string: Fix syntax error with g++ 2.96.
21624         * lib/string.in.h (__pure__): Remove definition.
21625         (_GL_ATTRIBUTE_PURE): New macro.
21626         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21627         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21628         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21629
21630 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21631
21632         unitypes: Fix bug introduced on 2010-05-18.
21633         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21634
21635 2010-06-22  Eric Blake  <eblake@redhat.com>
21636
21637         memmem: slight optimization
21638         * lib/str-two-way.h (critical_factorization): Update comments.
21639         Reduce work during factorization phase.
21640         Reported by Carlos Bueno <carlos@bueno.org>.
21641
21642 2010-06-21  Bruno Haible  <bruno@clisp.org>
21643
21644         Fix HAVE_CALLOC_POSIX misnomer.
21645         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21646         !HAVE_CALLOC_POSIX.
21647         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21648         HAVE_CALLOC_POSIX.
21649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21650         instead of HAVE_CALLOC_POSIX.
21651         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21652         HAVE_CALLOC_POSIX.
21653
21654         Use modern idiom for calloc() replacement.
21655         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21656         AC_FUNC_CALLOC.
21657         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21658         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21659         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21660         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21661         (gl_REPLACE_CALLOC): New macro.
21662
21663 2010-06-21  Bruno Haible  <bruno@clisp.org>
21664
21665         Fix HAVE_REALLOC_POSIX misnomer.
21666         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21667         !HAVE_REALLOC_POSIX.
21668         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21669         HAVE_REALLOC_POSIX.
21670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21671         instead of HAVE_REALLOC_POSIX.
21672         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21673         HAVE_REALLOC_POSIX.
21674
21675         Use modern idiom for realloc() replacement.
21676         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21677         AC_FUNC_REALLOC.
21678         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21679         Autoconf's AC_FUNC_REALLOC.
21680         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21681         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21682         (gl_REPLACE_REALLOC): New macro.
21683         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21684
21685 2010-06-21  Bruno Haible  <bruno@clisp.org>
21686
21687         Fix HAVE_MALLOC_POSIX misnomer.
21688         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21689         !HAVE_MALLOC_POSIX.
21690         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21691         HAVE_MALLOC_POSIX.
21692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21693         instead of HAVE_MALLOC_POSIX.
21694         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21695         HAVE_MALLOC_POSIX.
21696
21697         Use modern idiom for malloc() replacement.
21698         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21699         AC_FUNC_MALLOC.
21700         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21701         Autoconf's AC_FUNC_MALLOC.
21702         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21703         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21704         (gl_REPLACE_MALLOC): New macro.
21705         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21706
21707 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21708
21709         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21710         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21711         This macro takes 3 arguments, not 4.
21712
21713 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21714
21715         ipv6: fix detection under mingw
21716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21717         in6_addr.
21718
21719 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21720
21721         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21722         that strtod() works when cross-compiling to a glibc version known
21723         to work.
21724
21725 2010-06-15  Bruno Haible  <bruno@clisp.org>
21726
21727         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21728
21729 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21730
21731         select: Correct timeout.
21732         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21733
21734 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21735
21736         git-version-gen: init shell var to avoid env var influence
21737         * build-aux/git-version-gen (v): Init shell var to empty.
21738
21739 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21740
21741         priv-set: Don't assume that priv.h exists merely because getppriv does.
21742         See Jan Andersen's bug report about AIX 5L in
21743         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21744         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21745         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21746         * lib/priv-set.h: Likewise.
21747         * tests/test-priv-set.c: Likewise.
21748
21749 2010-06-13  Bruno Haible  <bruno@clisp.org>
21750
21751         relocatable: Make it easier to test whether to install wrappers.
21752         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21753         RELOCATABLE_VIA_WRAPPER.
21754
21755 2010-06-13  Bruno Haible  <bruno@clisp.org>
21756
21757         gnulib-tool: Display specified modules and dependencies differently.
21758         * gnulib-tool (func_show_module_list): New function.
21759         (func_import, func_create_testdir): Invoke it.
21760         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21761
21762 2010-06-13  Bruno Haible  <bruno@clisp.org>
21763
21764         gnulib-tool: Align code of func_import and func_create_testdir.
21765         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21766         specified_modules.
21767
21768 2010-06-12  Jim Meyering  <meyering@redhat.com>
21769
21770         test-inttostr: avoid spurious failure on Solaris 9
21771         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21772         to accept "%ju".  Reported by Bruno Haible.
21773
21774 2010-06-11  Jim Meyering  <meyering@redhat.com>
21775
21776         test-sys_socket: mark variables as used more readably
21777         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21778         as "used" explicitly via (void) statement casts.  This is more
21779         readable than using them in an artificial return expression.
21780         Suggestion from Bruno Haible.
21781
21782 2010-06-11  Bruno Haible  <bruno@clisp.org>
21783
21784         Avoid some more warnings from "gcc -Wwrite-strings".
21785         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21786         to 'const char *'.
21787         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21788         * tests/test-c-strcasestr.c (main): Likewise.
21789         * tests/test-mbscasestr1.c (main): Likewise.
21790         * tests/test-mbscasestr2.c (main): Likewise.
21791         * tests/test-memmem.c (main): Likewise.
21792         * tests/test-strstr.c (main): Likewise.
21793         * tests/test-strcasestr.c (main): Likewise.
21794
21795 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21796
21797         init.sh: change framework_failure_ to fail with status 99, not 1
21798         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21799         automake's parallel-tests rule that this is an unexpected failure,
21800         even if the test is listed in XFAIL_TESTS.
21801
21802 2010-06-11  Jim Meyering  <meyering@redhat.com>
21803
21804         test-inttostr: avoid warnings about 4-6KB literal strings
21805         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21806         Include "macros.h", for its definition of ASSERT.
21807         (CK): s/assert/ASSERT/
21808         * modules/inttostr-tests (Files): Add macros.h.
21809
21810         init.sh: don't use $ME_ or skip_ before they are defined
21811         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21812         their first uses.  Also hoist their companions: warn_, fail_,
21813         framework_failure_, $stderr_fileno.  Prompted by a patch from
21814         Stefano Lattarini.
21815
21816         test-sys_socket: avoid set-but-not-used warnings from gcc
21817         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21818         avoid warning about set-but-not-used variables.
21819
21820         test-xvasprintf: avoid 'const' discard warnings
21821         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21822         "const" when assigning from literal strings.
21823         (test_xasprintf): Add "void" in function argument list to placate
21824         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21825
21826         tests: avoid compilation warnings in argmatch and exclude tests...
21827         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21828         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21829         Since it always exits, declare with the "noreturn" attribute.
21830         * tests/test-argmatch.c: Likewise.
21831
21832         tests: avoid 'const' discard warnings in mbsstr tests
21833         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21834         * tests/test-mbsstr2.c (main): Likewise.
21835
21836         test-verify: avoid warning from gcc's -Wmissing-declarations
21837         * tests/test-verify.c (function): Declare to be static.
21838
21839         test-inttostr.c: include <string.h> for use of strcmp
21840         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21841
21842         test-linkat: avoid failed assertion on "other" architectures
21843         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21844         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21845         sparc: https://bugs.launchpad.net/bugs/591968
21846
21847 2010-06-11  Jim Meyering  <meyering@redhat.com>
21848
21849         printf.m4: avoid autoconf's "Expanded Before Required" warning
21850         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21851         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21852         autoconf warning.
21853
21854 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21855
21856         Replacement header templates are now named with ".in", not "_".
21857         * doc/gnulib-intro.texi: Correct.
21858
21859 2010-06-10  Jim Meyering  <meyering@redhat.com>
21860
21861         inttostr-tests: depend on snprintf, not snprintf-posix
21862         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21863         snprintf-posix, to avoid this aclocal failure:
21864           missing file gnulib-tests/vasnprintf.c
21865           configure.ac:45: error: expected source file, required through \
21866           AC_LIBSOURCES, not found
21867
21868 2010-06-10  Jim Meyering  <meyering@redhat.com>
21869
21870         inttostr: add a new function, inttostr, and tests
21871         The namesake function was not available.  The existence of the
21872         template file, inttostr.c makes its addition nontrivial.
21873         * lib/anytostr.c: Rename from inttostr.c.
21874         (anytostr): Rename from inttostr.
21875         * lib/inttostr.c: New file.
21876         * modules/inttostr (Files): Add anytostr.c.
21877         (Makefile.am): Set lib_SOURCES instead of ...
21878         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21879         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21880         * lib/offtostr.c: Likewise.
21881         * lib/uinttostr.c: Likewise.
21882         * lib/umaxtostr.c: Likewise.
21883         * modules/inttostr-tests: New file.
21884         * tests/test-inttostr.c: New file.  Test these functions.
21885
21886 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21887             Bruno Haible  <bruno@clisp.org>
21888
21889         Add "Extending Gnulib" chapter to manual.
21890         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21891         chapter.
21892         (Extending Gnulib): New chapter.
21893         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21894         chapter.
21895
21896 2010-06-09  Bruno Haible  <bruno@clisp.org>
21897
21898         Avoid relocwrapper link errors due to gnulib replacement functions.
21899         * lib/areadlink.c: Use the system's malloc, realloc functions.
21900         (areadlink): Set errno to ENOMEM explicitly.
21901         * modules/areadlink (Depends-on): Remove malloc-posix.
21902         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21903
21904 2010-06-09  Bruno Haible  <bruno@clisp.org>
21905
21906         Avoid relocwrapper link errors due to gnulib replacement functions.
21907         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21908         * lib/malloca.c: Likewise.
21909         * lib/relocatable.c: Likewise.
21910         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21911         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21912         * lib/setenv.c: Use the system's malloc, realloc functions.
21913         * lib/strerror.c: Use the system's sprintf function.
21914         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21915
21916 2010-06-04  Bruno Haible  <bruno@clisp.org>
21917
21918         Prefer documented low-level autoconf macro names.
21919         * m4/lib-link.m4: Use m4_translit instead of translit.
21920         * m4/environ.m4: Likewise.
21921         * m4/mathfunc.m4: Likewise.
21922         * m4/onceonly.m4: Likewise.
21923         * m4/stdint.m4: Likewise.
21924         Suggested by Eric Blake.
21925
21926 2010-06-04  Martin Lambers  <marlam@marlam.de>
21927             Bruno Haible  <bruno@clisp.org>
21928
21929         havelib: Allow library names with '+' characters.
21930         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21931         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21932
21933 2010-06-09  Bruno Haible  <bruno@clisp.org>
21934
21935         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21936         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21937         realloc failed.
21938
21939 2010-06-08  Peter Simons  <simons@cryp.to>
21940
21941         maint.mk: make the news-check rule more configurable
21942         * top/maint.mk (news-check-lines-spec): New variable.
21943         (news-check): Use "sed -n 1,10p" in place of "head".
21944
21945 2010-06-07  Jim Meyering  <meyering@redhat.com>
21946
21947         do-release-commit-and-tag: fix typo in --help
21948         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21949
21950         regex: avoid new dead-code warning with gcc-4.6.0
21951         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21952         if-block containing a while-loop.  It's been unused for at least
21953         5 years.
21954
21955 2010-06-05  Bruno Haible  <bruno@clisp.org>
21956
21957         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21958         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21959
21960 2010-06-04  Bruno Haible  <bruno@clisp.org>
21961
21962         Update to GNU gettext 0.18.1.
21963         * modules/gettext (configure.ac): Require gettext infrastructure from
21964         version 0.18.1.
21965
21966 2010-06-03  Bruno Haible  <bruno@clisp.org>
21967
21968         Don't use AC_LIBOBJ with file names in subdirectories.
21969         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21970         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21971         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21972         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21973         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21974         gl_LIBUNISTRING_LIBSOURCE.
21975         (Makefile.am): Augment lib_SOURCES here, conditionally.
21976         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21977
21978 2010-06-03  Bruno Haible  <bruno@clisp.org>
21979
21980         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21981         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21982         expansion does not end with a newline.
21983         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21984         unnecessary newline.
21985
21986 2010-06-03  Bruno Haible  <bruno@clisp.org>
21987
21988         Reduce dependencies.
21989         * tests/test-quotearg.h: New file, extracted from
21990         tests/test-quotearg.c.
21991         * tests/test-quotearg-simple.c: New file, extracted from
21992         tests/test-quotearg.c.
21993         * tests/test-quotearg.c: Don't include <ctype.h>.
21994         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21995         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21996         use_quote_double_quotes, use_quotearg_colon): Moved to
21997         tests/test-quotearg.h.
21998         (results_g, flag_results, custom_quotes, custom_results): Moved
21999         to tests/test-quotearg-simple.c.
22000         (main): Moved the part that does not depend on gettext to
22001         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22002         performed.
22003         * modules/quotearg-simple: New file.
22004         * modules/quotearg-simple-tests: New file.
22005         * modules/quotearg (Depends-on): Add quotearg-simple.
22006         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22007         (Files): Add tests/test-quotearg.h.
22008         Reported by Paolo Bonzini.
22009
22010 2010-06-03  Bruno Haible  <bruno@clisp.org>
22011
22012         Reduce dependencies.
22013         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22014
22015 2010-06-03  Bruno Haible  <bruno@clisp.org>
22016
22017         time: Undefine more broken macros.
22018         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22019         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22020         Reported by Eric Blake.
22021
22022 2010-06-03  Bruno Haible  <bruno@clisp.org>
22023
22024         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22025         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22026         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22027         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22028         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22029         Reported by Ludovic Courtès <ludo@gnu.org>.
22030
22031 2010-06-02  Eric Blake  <eblake@redhat.com>
22032
22033         time: work with mingw + pthreads-win32 library
22034         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22035         if timespec is defined only in pthread.h.
22036         * modules/time (Makefile.am): Substitute it.
22037         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22038         <pthread.h>, when needed.
22039         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22040         from the library.
22041
22042 2010-05-31  Bruno Haible  <bruno@clisp.org>
22043
22044         Avoid expanding two macros in the wrong order.
22045         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22046         gl_LIBUNISTRING if it is defined.
22047         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22048         autoconf >= 2.64.
22049         Reported by Ludovic Courtès <ludo@gnu.org>.
22050
22051 2010-05-27  Jim Meyering  <meyering@redhat.com>
22052
22053         maint.mk: also prohibit "#undef" of always-defined symbols
22054         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22055         Allow more than one space before the symbol name.
22056         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22057         the regexp uses alternation.
22058
22059 2010-05-26  Eric Blake  <eblake@redhat.com>
22060
22061         maint.mk: avoid echo -e
22062         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22063         Convert all uses of echo -* to printf.
22064         Reported by Matthias Bolte.
22065
22066 2010-05-25  Bruno Haible  <bruno@clisp.org>
22067
22068         Update to GNU gettext 0.18, part 2.
22069         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22070         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22071
22072 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22073
22074         Add missing include in test-pwrite.c.
22075         * tests/test-pwrite.c: Include string.h, for strcmp.
22076
22077 2010-05-24  Bruno Haible  <bruno@clisp.org>
22078
22079         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22080
22081 2010-05-24  Bruno Haible  <bruno@clisp.org>
22082
22083         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22084         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22085         iconveh_error argument.
22086         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22087         U_STRCONV_TO_LOCALE.
22088         * lib/unistr/u16-strcoll.c: Likewise.
22089         * lib/unistr/u32-strcoll.c: Likewise.
22090         * modules/unistr/u8-strcoll (Depends-on): Add
22091         uniconv/u8-strconv-to-enc, localcharset. Remove
22092         uniconv/u8-strconv-to-locale.
22093         (configure.ac): Bump version number.
22094         * modules/unistr/u16-strcoll (Depends-on): Add
22095         uniconv/u16-strconv-to-enc, localcharset. Remove
22096         uniconv/u16-strconv-to-locale.
22097         (configure.ac): Bump version number.
22098         * modules/unistr/u32-strcoll (Depends-on): Add
22099         uniconv/u32-strconv-to-enc, localcharset. Remove
22100         uniconv/u32-strconv-to-locale.
22101         (configure.ac): Bump version number.
22102
22103 2010-05-24  Bruno Haible  <bruno@clisp.org>
22104
22105         Avoid a test failure on NetBSD 5.0.
22106         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22107         an iconv() bug.
22108
22109 2010-05-24  Bruno Haible  <bruno@clisp.org>
22110
22111         Adjust #include directive style.
22112         * modules/regex (Includes): Recommend to write <regex.h>.
22113
22114 2010-05-24  Bruno Haible  <bruno@clisp.org>
22115
22116         regex: Don't require alloca.
22117         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22118         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22119         only inside if (0).
22120
22121 2010-05-23  Jim Meyering  <meyering@redhat.com>
22122
22123         test-renameat.c: include <sys/stat.h>
22124         * tests/test-renameat.c: Include <sys/stat.h>; required for
22125         definition of S_IS* macros.
22126
22127 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22128
22129         Update maintainer documentation for 'relocatable-prog' module.
22130         * doc/relocatable-maint.texi: Update.
22131         Comments by Bruno Haible.
22132
22133 2010-05-23  Bruno Haible  <bruno@clisp.org>
22134
22135         git-merge-changelog: Enable --split-merged-entry by default.
22136         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22137         (usage): Don't mention this option any more.
22138         Reported by Ralf Wildenhues.
22139
22140 2010-05-23  Jim Meyering  <meyering@redhat.com>
22141
22142         test-pwrite: do not leave behind a test file named "out"
22143         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22144         The trivial-looking use of init.sh is really necessary.
22145         It ensures that the temporary file, "out", is created in
22146         a temporary directory, and removed upon termination.
22147         * tests/test-pwrite.sh: Re-add file.
22148         * modules/pwrite-tests: Reference it.
22149
22150 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22151
22152         Fix output redirection buglet in init.sh.
22153         * tests/init.sh: Fix redirection of stderr.
22154
22155 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22156
22157         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22158
22159 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22160
22161         * modules/valgrind-tests: New file.
22162         * m4/valgrind-tests.m4: New file.
22163         * doc/valgrind-tests.texi: New file.
22164         * doc/gnulib.texi (Running self-tests under valgrind): New
22165         section.
22166
22167 2010-05-19  Bruno Haible  <bruno@clisp.org>
22168
22169         Clean up dead code in recent commit.
22170         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22171         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22172         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22173         Suggested by Paolo Bonzini.
22174
22175 2010-05-19  Bruno Haible  <bruno@clisp.org>
22176
22177         Avoid valgrind error reports from libunistring.
22178         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22179         * modules/libunistring (Files): Add it.
22180         * modules/libunistring-optional (Files): Likewise.
22181
22182 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22183             Bruno Haible  <bruno@clisp.org>
22184
22185         New module 'libunistring-optional'.
22186         * modules/libunistring-optional: New file.
22187         * m4/libunistring-base.m4: New file.
22188         * m4/libunistring-optional.m4: New file.
22189         * lib/unicase.in.h: Renamed from lib/unicase.h.
22190         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22191         * lib/unictype.in.h: Renamed from lib/unictype.h.
22192         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22193         * lib/uniname.in.h: Renamed from lib/uniname.h.
22194         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22195         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22196         * lib/unistr.in.h: Renamed from lib/unistr.h.
22197         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22198         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22199         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22200         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22201         gl_LIBUNISTRING. If the library was found, determine the installed
22202         version and set LIBUNISTRING_VERSION.
22203         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22204         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22205         handle a configuration option --with-included-libunistring.
22206         * modules/libunistring (Files): Add m4/absolute-header.m4.
22207         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22208         Add m4/libunistring-base.m4.
22209         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22210         (Makefile.am): Build unicase.h from unicase.in.h.
22211         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22212         Add m4/libunistring-base.m4.
22213         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22214         (Makefile.am): Build uniconv.h from uniconv.in.h.
22215         * modules/unictype/base (Files): Use unictype.in.h instead of
22216         unictype.h. Add m4/libunistring-base.m4.
22217         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22218         (Makefile.am): Build unictype.h from unictype.in.h.
22219         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22220         Add m4/libunistring-base.m4.
22221         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22222         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22223         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22224         Add m4/libunistring-base.m4.
22225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22226         (Makefile.am): Build uniname.h from uniname.in.h.
22227         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22228         Add m4/libunistring-base.m4.
22229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22230         (Makefile.am): Build uninorm.h from uninorm.in.h.
22231         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22232         unistdio.h. Add m4/libunistring-base.m4.
22233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22234         (Makefile.am): Build unistdio.h from unistdio.in.h.
22235         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22236         Add m4/libunistring-base.m4.
22237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22238         (Makefile.am): Build unistr.h from unistr.in.h.
22239         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22240         Add m4/libunistring-base.m4.
22241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22242         (Makefile.am): Build unitypes.h from unitypes.in.h.
22243         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22244         Add m4/libunistring-base.m4.
22245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22246         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22247         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22248         uniwidth.h. Add m4/libunistring-base.m4.
22249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22250         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22251         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22252         instead of augmenting lib_SOURCES.
22253         * modules/unicase/empty-suffix-context: Likewise.
22254         * modules/unicase/locale-language: Likewise.
22255         * modules/unicase/tolower: Likewise.
22256         * modules/unicase/totitle: Likewise.
22257         * modules/unicase/toupper: Likewise.
22258         * modules/unicase/u8-casecmp: Likewise.
22259         * modules/unicase/u8-casecoll: Likewise.
22260         * modules/unicase/u8-casefold: Likewise.
22261         * modules/unicase/u8-casexfrm: Likewise.
22262         * modules/unicase/u8-ct-casefold: Likewise.
22263         * modules/unicase/u8-ct-tolower: Likewise.
22264         * modules/unicase/u8-ct-totitle: Likewise.
22265         * modules/unicase/u8-ct-toupper: Likewise.
22266         * modules/unicase/u8-is-cased: Likewise.
22267         * modules/unicase/u8-is-casefolded: Likewise.
22268         * modules/unicase/u8-is-lowercase: Likewise.
22269         * modules/unicase/u8-is-titlecase: Likewise.
22270         * modules/unicase/u8-is-uppercase: Likewise.
22271         * modules/unicase/u8-prefix-context: Likewise.
22272         * modules/unicase/u8-suffix-context: Likewise.
22273         * modules/unicase/u8-tolower: Likewise.
22274         * modules/unicase/u8-totitle: Likewise.
22275         * modules/unicase/u8-toupper: Likewise.
22276         * modules/unicase/u16-casecmp: Likewise.
22277         * modules/unicase/u16-casecoll: Likewise.
22278         * modules/unicase/u16-casefold: Likewise.
22279         * modules/unicase/u16-casexfrm: Likewise.
22280         * modules/unicase/u16-ct-casefold: Likewise.
22281         * modules/unicase/u16-ct-tolower: Likewise.
22282         * modules/unicase/u16-ct-totitle: Likewise.
22283         * modules/unicase/u16-ct-toupper: Likewise.
22284         * modules/unicase/u16-is-cased: Likewise.
22285         * modules/unicase/u16-is-casefolded: Likewise.
22286         * modules/unicase/u16-is-lowercase: Likewise.
22287         * modules/unicase/u16-is-titlecase: Likewise.
22288         * modules/unicase/u16-is-uppercase: Likewise.
22289         * modules/unicase/u16-prefix-context: Likewise.
22290         * modules/unicase/u16-suffix-context: Likewise.
22291         * modules/unicase/u16-tolower: Likewise.
22292         * modules/unicase/u16-totitle: Likewise.
22293         * modules/unicase/u16-toupper: Likewise.
22294         * modules/unicase/u32-casecmp: Likewise.
22295         * modules/unicase/u32-casecoll: Likewise.
22296         * modules/unicase/u32-casefold: Likewise.
22297         * modules/unicase/u32-casexfrm: Likewise.
22298         * modules/unicase/u32-ct-casefold: Likewise.
22299         * modules/unicase/u32-ct-tolower: Likewise.
22300         * modules/unicase/u32-ct-totitle: Likewise.
22301         * modules/unicase/u32-ct-toupper: Likewise.
22302         * modules/unicase/u32-is-cased: Likewise.
22303         * modules/unicase/u32-is-casefolded: Likewise.
22304         * modules/unicase/u32-is-lowercase: Likewise.
22305         * modules/unicase/u32-is-titlecase: Likewise.
22306         * modules/unicase/u32-is-uppercase: Likewise.
22307         * modules/unicase/u32-prefix-context: Likewise.
22308         * modules/unicase/u32-suffix-context: Likewise.
22309         * modules/unicase/u32-tolower: Likewise.
22310         * modules/unicase/u32-totitle: Likewise.
22311         * modules/unicase/u32-toupper: Likewise.
22312         * modules/unicase/ulc-casecmp: Likewise.
22313         * modules/unicase/ulc-casecoll: Likewise.
22314         * modules/unicase/ulc-casexfrm: Likewise.
22315         * modules/uniconv/u8-conv-from-enc: Likewise.
22316         * modules/uniconv/u8-conv-to-enc: Likewise.
22317         * modules/uniconv/u8-strconv-from-enc: Likewise.
22318         * modules/uniconv/u8-strconv-from-locale: Likewise.
22319         * modules/uniconv/u8-strconv-to-enc: Likewise.
22320         * modules/uniconv/u8-strconv-to-locale: Likewise.
22321         * modules/uniconv/u16-conv-from-enc: Likewise.
22322         * modules/uniconv/u16-conv-to-enc: Likewise.
22323         * modules/uniconv/u16-strconv-from-enc: Likewise.
22324         * modules/uniconv/u16-strconv-from-locale: Likewise.
22325         * modules/uniconv/u16-strconv-to-enc: Likewise.
22326         * modules/uniconv/u16-strconv-to-locale: Likewise.
22327         * modules/uniconv/u32-conv-from-enc: Likewise.
22328         * modules/uniconv/u32-conv-to-enc: Likewise.
22329         * modules/uniconv/u32-strconv-from-enc: Likewise.
22330         * modules/uniconv/u32-strconv-from-locale: Likewise.
22331         * modules/uniconv/u32-strconv-to-enc: Likewise.
22332         * modules/uniconv/u32-strconv-to-locale: Likewise.
22333         * modules/unictype/bidicategory-byname: Likewise.
22334         * modules/unictype/bidicategory-name: Likewise.
22335         * modules/unictype/bidicategory-of: Likewise.
22336         * modules/unictype/bidicategory-test: Likewise.
22337         * modules/unictype/block-list: Likewise.
22338         * modules/unictype/block-test: Likewise.
22339         * modules/unictype/category-C: Likewise.
22340         * modules/unictype/category-Cc: Likewise.
22341         * modules/unictype/category-Cf: Likewise.
22342         * modules/unictype/category-Cn: Likewise.
22343         * modules/unictype/category-Co: Likewise.
22344         * modules/unictype/category-Cs: Likewise.
22345         * modules/unictype/category-L: Likewise.
22346         * modules/unictype/category-Ll: Likewise.
22347         * modules/unictype/category-Lm: Likewise.
22348         * modules/unictype/category-Lo: Likewise.
22349         * modules/unictype/category-Lt: Likewise.
22350         * modules/unictype/category-Lu: Likewise.
22351         * modules/unictype/category-M: Likewise.
22352         * modules/unictype/category-Mc: Likewise.
22353         * modules/unictype/category-Me: Likewise.
22354         * modules/unictype/category-Mn: Likewise.
22355         * modules/unictype/category-N: Likewise.
22356         * modules/unictype/category-Nd: Likewise.
22357         * modules/unictype/category-Nl: Likewise.
22358         * modules/unictype/category-No: Likewise.
22359         * modules/unictype/category-P: Likewise.
22360         * modules/unictype/category-Pc: Likewise.
22361         * modules/unictype/category-Pd: Likewise.
22362         * modules/unictype/category-Pe: Likewise.
22363         * modules/unictype/category-Pf: Likewise.
22364         * modules/unictype/category-Pi: Likewise.
22365         * modules/unictype/category-Po: Likewise.
22366         * modules/unictype/category-Ps: Likewise.
22367         * modules/unictype/category-S: Likewise.
22368         * modules/unictype/category-Sc: Likewise.
22369         * modules/unictype/category-Sk: Likewise.
22370         * modules/unictype/category-Sm: Likewise.
22371         * modules/unictype/category-So: Likewise.
22372         * modules/unictype/category-Z: Likewise.
22373         * modules/unictype/category-Zl: Likewise.
22374         * modules/unictype/category-Zp: Likewise.
22375         * modules/unictype/category-Zs: Likewise.
22376         * modules/unictype/category-and: Likewise.
22377         * modules/unictype/category-and-not: Likewise.
22378         * modules/unictype/category-byname: Likewise.
22379         * modules/unictype/category-name: Likewise.
22380         * modules/unictype/category-none: Likewise.
22381         * modules/unictype/category-of: Likewise.
22382         * modules/unictype/category-or: Likewise.
22383         * modules/unictype/category-test: Likewise.
22384         * modules/unictype/combining-class: Likewise.
22385         * modules/unictype/ctype-alnum: Likewise.
22386         * modules/unictype/ctype-alpha: Likewise.
22387         * modules/unictype/ctype-blank: Likewise.
22388         * modules/unictype/ctype-cntrl: Likewise.
22389         * modules/unictype/ctype-digit: Likewise.
22390         * modules/unictype/ctype-graph: Likewise.
22391         * modules/unictype/ctype-lower: Likewise.
22392         * modules/unictype/ctype-print: Likewise.
22393         * modules/unictype/ctype-punct: Likewise.
22394         * modules/unictype/ctype-space: Likewise.
22395         * modules/unictype/ctype-upper: Likewise.
22396         * modules/unictype/ctype-xdigit: Likewise.
22397         * modules/unictype/decimal-digit: Likewise.
22398         * modules/unictype/digit: Likewise.
22399         * modules/unictype/mirror: Likewise.
22400         * modules/unictype/numeric: Likewise.
22401         * modules/unictype/property-alphabetic: Likewise.
22402         * modules/unictype/property-ascii-hex-digit: Likewise.
22403         * modules/unictype/property-bidi-arabic-digit: Likewise.
22404         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22405         * modules/unictype/property-bidi-block-separator: Likewise.
22406         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22407         * modules/unictype/property-bidi-common-separator: Likewise.
22408         * modules/unictype/property-bidi-control: Likewise.
22409         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22410         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22411         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22412         * modules/unictype/property-bidi-european-digit: Likewise.
22413         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22414         * modules/unictype/property-bidi-left-to-right: Likewise.
22415         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22416         * modules/unictype/property-bidi-other-neutral: Likewise.
22417         * modules/unictype/property-bidi-pdf: Likewise.
22418         * modules/unictype/property-bidi-segment-separator: Likewise.
22419         * modules/unictype/property-bidi-whitespace: Likewise.
22420         * modules/unictype/property-byname: Likewise.
22421         * modules/unictype/property-combining: Likewise.
22422         * modules/unictype/property-composite: Likewise.
22423         * modules/unictype/property-currency-symbol: Likewise.
22424         * modules/unictype/property-dash: Likewise.
22425         * modules/unictype/property-decimal-digit: Likewise.
22426         * modules/unictype/property-default-ignorable-code-point: Likewise.
22427         * modules/unictype/property-deprecated: Likewise.
22428         * modules/unictype/property-diacritic: Likewise.
22429         * modules/unictype/property-extender: Likewise.
22430         * modules/unictype/property-format-control: Likewise.
22431         * modules/unictype/property-grapheme-base: Likewise.
22432         * modules/unictype/property-grapheme-extend: Likewise.
22433         * modules/unictype/property-grapheme-link: Likewise.
22434         * modules/unictype/property-hex-digit: Likewise.
22435         * modules/unictype/property-hyphen: Likewise.
22436         * modules/unictype/property-id-continue: Likewise.
22437         * modules/unictype/property-id-start: Likewise.
22438         * modules/unictype/property-ideographic: Likewise.
22439         * modules/unictype/property-ids-binary-operator: Likewise.
22440         * modules/unictype/property-ids-trinary-operator: Likewise.
22441         * modules/unictype/property-ignorable-control: Likewise.
22442         * modules/unictype/property-iso-control: Likewise.
22443         * modules/unictype/property-join-control: Likewise.
22444         * modules/unictype/property-left-of-pair: Likewise.
22445         * modules/unictype/property-line-separator: Likewise.
22446         * modules/unictype/property-logical-order-exception: Likewise.
22447         * modules/unictype/property-lowercase: Likewise.
22448         * modules/unictype/property-math: Likewise.
22449         * modules/unictype/property-non-break: Likewise.
22450         * modules/unictype/property-not-a-character: Likewise.
22451         * modules/unictype/property-numeric: Likewise.
22452         * modules/unictype/property-other-alphabetic: Likewise.
22453         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22454         * modules/unictype/property-other-grapheme-extend: Likewise.
22455         * modules/unictype/property-other-id-continue: Likewise.
22456         * modules/unictype/property-other-id-start: Likewise.
22457         * modules/unictype/property-other-lowercase: Likewise.
22458         * modules/unictype/property-other-math: Likewise.
22459         * modules/unictype/property-other-uppercase: Likewise.
22460         * modules/unictype/property-paired-punctuation: Likewise.
22461         * modules/unictype/property-paragraph-separator: Likewise.
22462         * modules/unictype/property-pattern-syntax: Likewise.
22463         * modules/unictype/property-pattern-white-space: Likewise.
22464         * modules/unictype/property-private-use: Likewise.
22465         * modules/unictype/property-punctuation: Likewise.
22466         * modules/unictype/property-quotation-mark: Likewise.
22467         * modules/unictype/property-radical: Likewise.
22468         * modules/unictype/property-sentence-terminal: Likewise.
22469         * modules/unictype/property-soft-dotted: Likewise.
22470         * modules/unictype/property-space: Likewise.
22471         * modules/unictype/property-terminal-punctuation: Likewise.
22472         * modules/unictype/property-test: Likewise.
22473         * modules/unictype/property-titlecase: Likewise.
22474         * modules/unictype/property-unassigned-code-value: Likewise.
22475         * modules/unictype/property-unified-ideograph: Likewise.
22476         * modules/unictype/property-uppercase: Likewise.
22477         * modules/unictype/property-variation-selector: Likewise.
22478         * modules/unictype/property-white-space: Likewise.
22479         * modules/unictype/property-xid-continue: Likewise.
22480         * modules/unictype/property-xid-start: Likewise.
22481         * modules/unictype/property-zero-width: Likewise.
22482         * modules/unictype/scripts: Likewise.
22483         * modules/unictype/syntax-c-ident: Likewise.
22484         * modules/unictype/syntax-c-whitespace: Likewise.
22485         * modules/unictype/syntax-java-ident: Likewise.
22486         * modules/unictype/syntax-java-whitespace: Likewise.
22487         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22488         * modules/unilbrk/u8-width-linebreaks: Likewise.
22489         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22490         * modules/unilbrk/u16-width-linebreaks: Likewise.
22491         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22492         * modules/unilbrk/u32-width-linebreaks: Likewise.
22493         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22494         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22495         * modules/uniname/uniname: Likewise.
22496         * modules/uninorm/canonical-decomposition: Likewise.
22497         * modules/uninorm/composition: Likewise.
22498         * modules/uninorm/decomposing-form: Likewise.
22499         * modules/uninorm/decomposition: Likewise.
22500         * modules/uninorm/filter: Likewise.
22501         * modules/uninorm/nfc: Likewise.
22502         * modules/uninorm/nfd: Likewise.
22503         * modules/uninorm/nfkc: Likewise.
22504         * modules/uninorm/nfkd: Likewise.
22505         * modules/uninorm/u8-normalize: Likewise.
22506         * modules/uninorm/u8-normcmp: Likewise.
22507         * modules/uninorm/u8-normcoll: Likewise.
22508         * modules/uninorm/u8-normxfrm: Likewise.
22509         * modules/uninorm/u16-normalize: Likewise.
22510         * modules/uninorm/u16-normcmp: Likewise.
22511         * modules/uninorm/u16-normcoll: Likewise.
22512         * modules/uninorm/u16-normxfrm: Likewise.
22513         * modules/uninorm/u32-normalize: Likewise.
22514         * modules/uninorm/u32-normcmp: Likewise.
22515         * modules/uninorm/u32-normcoll: Likewise.
22516         * modules/uninorm/u32-normxfrm: Likewise.
22517         * modules/unistdio/u8-asnprintf: Likewise.
22518         * modules/unistdio/u8-asprintf: Likewise.
22519         * modules/unistdio/u8-snprintf: Likewise.
22520         * modules/unistdio/u8-sprintf: Likewise.
22521         * modules/unistdio/u8-u8-asnprintf: Likewise.
22522         * modules/unistdio/u8-u8-asprintf: Likewise.
22523         * modules/unistdio/u8-u8-snprintf: Likewise.
22524         * modules/unistdio/u8-u8-sprintf: Likewise.
22525         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22526         * modules/unistdio/u8-u8-vasprintf: Likewise.
22527         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22528         * modules/unistdio/u8-u8-vsprintf: Likewise.
22529         * modules/unistdio/u8-vasnprintf: Likewise.
22530         * modules/unistdio/u8-vasprintf: Likewise.
22531         * modules/unistdio/u8-vsnprintf: Likewise.
22532         * modules/unistdio/u8-vsprintf: Likewise.
22533         * modules/unistdio/u16-asnprintf: Likewise.
22534         * modules/unistdio/u16-asprintf: Likewise.
22535         * modules/unistdio/u16-snprintf: Likewise.
22536         * modules/unistdio/u16-sprintf: Likewise.
22537         * modules/unistdio/u16-u16-asnprintf: Likewise.
22538         * modules/unistdio/u16-u16-asprintf: Likewise.
22539         * modules/unistdio/u16-u16-snprintf: Likewise.
22540         * modules/unistdio/u16-u16-sprintf: Likewise.
22541         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22542         * modules/unistdio/u16-u16-vasprintf: Likewise.
22543         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22544         * modules/unistdio/u16-u16-vsprintf: Likewise.
22545         * modules/unistdio/u16-vasnprintf: Likewise.
22546         * modules/unistdio/u16-vasprintf: Likewise.
22547         * modules/unistdio/u16-vsnprintf: Likewise.
22548         * modules/unistdio/u16-vsprintf: Likewise.
22549         * modules/unistdio/u32-asnprintf: Likewise.
22550         * modules/unistdio/u32-asprintf: Likewise.
22551         * modules/unistdio/u32-snprintf: Likewise.
22552         * modules/unistdio/u32-sprintf: Likewise.
22553         * modules/unistdio/u32-u32-asnprintf: Likewise.
22554         * modules/unistdio/u32-u32-asprintf: Likewise.
22555         * modules/unistdio/u32-u32-snprintf: Likewise.
22556         * modules/unistdio/u32-u32-sprintf: Likewise.
22557         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22558         * modules/unistdio/u32-u32-vasprintf: Likewise.
22559         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22560         * modules/unistdio/u32-u32-vsprintf: Likewise.
22561         * modules/unistdio/u32-vasnprintf: Likewise.
22562         * modules/unistdio/u32-vasprintf: Likewise.
22563         * modules/unistdio/u32-vsnprintf: Likewise.
22564         * modules/unistdio/u32-vsprintf: Likewise.
22565         * modules/unistdio/ulc-asnprintf: Likewise.
22566         * modules/unistdio/ulc-asprintf: Likewise.
22567         * modules/unistdio/ulc-fprintf: Likewise.
22568         * modules/unistdio/ulc-snprintf: Likewise.
22569         * modules/unistdio/ulc-sprintf: Likewise.
22570         * modules/unistdio/ulc-vasnprintf: Likewise.
22571         * modules/unistdio/ulc-vasprintf: Likewise.
22572         * modules/unistdio/ulc-vfprintf: Likewise.
22573         * modules/unistdio/ulc-vsnprintf: Likewise.
22574         * modules/unistdio/ulc-vsprintf: Likewise.
22575         * modules/unistr/u8-check: Likewise.
22576         * modules/unistr/u8-chr: Likewise.
22577         * modules/unistr/u8-cmp: Likewise.
22578         * modules/unistr/u8-cmp2: Likewise.
22579         * modules/unistr/u8-cpy: Likewise.
22580         * modules/unistr/u8-cpy-alloc: Likewise.
22581         * modules/unistr/u8-endswith: Likewise.
22582         * modules/unistr/u8-mblen: Likewise.
22583         * modules/unistr/u8-mbsnlen: Likewise.
22584         * modules/unistr/u8-mbtouc: Likewise.
22585         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22586         * modules/unistr/u8-mbtoucr: Likewise.
22587         * modules/unistr/u8-move: Likewise.
22588         * modules/unistr/u8-next: Likewise.
22589         * modules/unistr/u8-prev: Likewise.
22590         * modules/unistr/u8-set: Likewise.
22591         * modules/unistr/u8-startswith: Likewise.
22592         * modules/unistr/u8-stpcpy: Likewise.
22593         * modules/unistr/u8-stpncpy: Likewise.
22594         * modules/unistr/u8-strcat: Likewise.
22595         * modules/unistr/u8-strchr: Likewise.
22596         * modules/unistr/u8-strcmp: Likewise.
22597         * modules/unistr/u8-strcoll: Likewise.
22598         * modules/unistr/u8-strcpy: Likewise.
22599         * modules/unistr/u8-strcspn: Likewise.
22600         * modules/unistr/u8-strdup: Likewise.
22601         * modules/unistr/u8-strlen: Likewise.
22602         * modules/unistr/u8-strmblen: Likewise.
22603         * modules/unistr/u8-strmbtouc: Likewise.
22604         * modules/unistr/u8-strncat: Likewise.
22605         * modules/unistr/u8-strncmp: Likewise.
22606         * modules/unistr/u8-strncpy: Likewise.
22607         * modules/unistr/u8-strnlen: Likewise.
22608         * modules/unistr/u8-strpbrk: Likewise.
22609         * modules/unistr/u8-strrchr: Likewise.
22610         * modules/unistr/u8-strspn: Likewise.
22611         * modules/unistr/u8-strstr: Likewise.
22612         * modules/unistr/u8-strtok: Likewise.
22613         * modules/unistr/u8-to-u16: Likewise.
22614         * modules/unistr/u8-to-u32: Likewise.
22615         * modules/unistr/u8-uctomb: Likewise.
22616         * modules/unistr/u16-check: Likewise.
22617         * modules/unistr/u16-chr: Likewise.
22618         * modules/unistr/u16-cmp: Likewise.
22619         * modules/unistr/u16-cmp2: Likewise.
22620         * modules/unistr/u16-cpy: Likewise.
22621         * modules/unistr/u16-cpy-alloc: Likewise.
22622         * modules/unistr/u16-endswith: Likewise.
22623         * modules/unistr/u16-mblen: Likewise.
22624         * modules/unistr/u16-mbsnlen: Likewise.
22625         * modules/unistr/u16-mbtouc: Likewise.
22626         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22627         * modules/unistr/u16-mbtoucr: Likewise.
22628         * modules/unistr/u16-move: Likewise.
22629         * modules/unistr/u16-next: Likewise.
22630         * modules/unistr/u16-prev: Likewise.
22631         * modules/unistr/u16-set: Likewise.
22632         * modules/unistr/u16-startswith: Likewise.
22633         * modules/unistr/u16-stpcpy: Likewise.
22634         * modules/unistr/u16-stpncpy: Likewise.
22635         * modules/unistr/u16-strcat: Likewise.
22636         * modules/unistr/u16-strchr: Likewise.
22637         * modules/unistr/u16-strcmp: Likewise.
22638         * modules/unistr/u16-strcoll: Likewise.
22639         * modules/unistr/u16-strcpy: Likewise.
22640         * modules/unistr/u16-strcspn: Likewise.
22641         * modules/unistr/u16-strdup: Likewise.
22642         * modules/unistr/u16-strlen: Likewise.
22643         * modules/unistr/u16-strmblen: Likewise.
22644         * modules/unistr/u16-strmbtouc: Likewise.
22645         * modules/unistr/u16-strncat: Likewise.
22646         * modules/unistr/u16-strncmp: Likewise.
22647         * modules/unistr/u16-strncpy: Likewise.
22648         * modules/unistr/u16-strnlen: Likewise.
22649         * modules/unistr/u16-strpbrk: Likewise.
22650         * modules/unistr/u16-strrchr: Likewise.
22651         * modules/unistr/u16-strspn: Likewise.
22652         * modules/unistr/u16-strstr: Likewise.
22653         * modules/unistr/u16-strtok: Likewise.
22654         * modules/unistr/u16-to-u32: Likewise.
22655         * modules/unistr/u16-to-u8: Likewise.
22656         * modules/unistr/u16-uctomb: Likewise.
22657         * modules/unistr/u32-check: Likewise.
22658         * modules/unistr/u32-chr: Likewise.
22659         * modules/unistr/u32-cmp: Likewise.
22660         * modules/unistr/u32-cmp2: Likewise.
22661         * modules/unistr/u32-cpy: Likewise.
22662         * modules/unistr/u32-cpy-alloc: Likewise.
22663         * modules/unistr/u32-endswith: Likewise.
22664         * modules/unistr/u32-mblen: Likewise.
22665         * modules/unistr/u32-mbsnlen: Likewise.
22666         * modules/unistr/u32-mbtouc: Likewise.
22667         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22668         * modules/unistr/u32-mbtoucr: Likewise.
22669         * modules/unistr/u32-move: Likewise.
22670         * modules/unistr/u32-next: Likewise.
22671         * modules/unistr/u32-prev: Likewise.
22672         * modules/unistr/u32-set: Likewise.
22673         * modules/unistr/u32-startswith: Likewise.
22674         * modules/unistr/u32-stpcpy: Likewise.
22675         * modules/unistr/u32-stpncpy: Likewise.
22676         * modules/unistr/u32-strcat: Likewise.
22677         * modules/unistr/u32-strchr: Likewise.
22678         * modules/unistr/u32-strcmp: Likewise.
22679         * modules/unistr/u32-strcoll: Likewise.
22680         * modules/unistr/u32-strcpy: Likewise.
22681         * modules/unistr/u32-strcspn: Likewise.
22682         * modules/unistr/u32-strdup: Likewise.
22683         * modules/unistr/u32-strlen: Likewise.
22684         * modules/unistr/u32-strmblen: Likewise.
22685         * modules/unistr/u32-strmbtouc: Likewise.
22686         * modules/unistr/u32-strncat: Likewise.
22687         * modules/unistr/u32-strncmp: Likewise.
22688         * modules/unistr/u32-strncpy: Likewise.
22689         * modules/unistr/u32-strnlen: Likewise.
22690         * modules/unistr/u32-strpbrk: Likewise.
22691         * modules/unistr/u32-strrchr: Likewise.
22692         * modules/unistr/u32-strspn: Likewise.
22693         * modules/unistr/u32-strstr: Likewise.
22694         * modules/unistr/u32-strtok: Likewise.
22695         * modules/unistr/u32-to-u16: Likewise.
22696         * modules/unistr/u32-to-u8: Likewise.
22697         * modules/unistr/u32-uctomb: Likewise.
22698         * modules/uniwbrk/u8-wordbreaks: Likewise.
22699         * modules/uniwbrk/u16-wordbreaks: Likewise.
22700         * modules/uniwbrk/u32-wordbreaks: Likewise.
22701         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22702         * modules/uniwbrk/wordbreak-property: Likewise.
22703         * modules/uniwidth/u8-strwidth: Likewise.
22704         * modules/uniwidth/u8-width: Likewise.
22705         * modules/uniwidth/u16-strwidth: Likewise.
22706         * modules/uniwidth/u16-width: Likewise.
22707         * modules/uniwidth/u32-strwidth: Likewise.
22708         * modules/uniwidth/u32-width: Likewise.
22709         * modules/uniwidth/width: Likewise.
22710         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22711         with $(LIBUNISTRING).
22712         * modules/unicase/ignorable-tests: Likewise.
22713         * modules/unicase/locale-language-tests: Likewise.
22714         * modules/unicase/tolower-tests: Likewise.
22715         * modules/unicase/totitle-tests: Likewise.
22716         * modules/unicase/toupper-tests: Likewise.
22717         * modules/unicase/u8-casecmp-tests: Likewise.
22718         * modules/unicase/u8-casecoll-tests: Likewise.
22719         * modules/unicase/u8-casefold-tests: Likewise.
22720         * modules/unicase/u8-is-cased-tests: Likewise.
22721         * modules/unicase/u8-is-casefolded-tests: Likewise.
22722         * modules/unicase/u8-is-lowercase-tests: Likewise.
22723         * modules/unicase/u8-is-titlecase-tests: Likewise.
22724         * modules/unicase/u8-is-uppercase-tests: Likewise.
22725         * modules/unicase/u8-tolower-tests: Likewise.
22726         * modules/unicase/u8-totitle-tests: Likewise.
22727         * modules/unicase/u8-toupper-tests: Likewise.
22728         * modules/unicase/u16-casecmp-tests: Likewise.
22729         * modules/unicase/u16-casecoll-tests: Likewise.
22730         * modules/unicase/u16-casefold-tests: Likewise.
22731         * modules/unicase/u16-is-cased-tests: Likewise.
22732         * modules/unicase/u16-is-casefolded-tests: Likewise.
22733         * modules/unicase/u16-is-lowercase-tests: Likewise.
22734         * modules/unicase/u16-is-titlecase-tests: Likewise.
22735         * modules/unicase/u16-is-uppercase-tests: Likewise.
22736         * modules/unicase/u16-tolower-tests: Likewise.
22737         * modules/unicase/u16-totitle-tests: Likewise.
22738         * modules/unicase/u16-toupper-tests: Likewise.
22739         * modules/unicase/u32-casecmp-tests: Likewise.
22740         * modules/unicase/u32-casecoll-tests: Likewise.
22741         * modules/unicase/u32-casefold-tests: Likewise.
22742         * modules/unicase/u32-is-cased-tests: Likewise.
22743         * modules/unicase/u32-is-casefolded-tests: Likewise.
22744         * modules/unicase/u32-is-lowercase-tests: Likewise.
22745         * modules/unicase/u32-is-titlecase-tests: Likewise.
22746         * modules/unicase/u32-is-uppercase-tests: Likewise.
22747         * modules/unicase/u32-tolower-tests: Likewise.
22748         * modules/unicase/u32-totitle-tests: Likewise.
22749         * modules/unicase/u32-toupper-tests: Likewise.
22750         * modules/unicase/ulc-casecmp-tests: Likewise.
22751         * modules/unicase/ulc-casecoll-tests: Likewise.
22752         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22753         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22754         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22755         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22756         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22757         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22758         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22759         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22760         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22761         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22762         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22763         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22764         * modules/unictype/bidicategory-byname-tests: Likewise.
22765         * modules/unictype/bidicategory-name-tests: Likewise.
22766         * modules/unictype/bidicategory-of-tests: Likewise.
22767         * modules/unictype/bidicategory-test-tests: Likewise.
22768         * modules/unictype/block-list-tests: Likewise.
22769         * modules/unictype/block-of-tests: Likewise.
22770         * modules/unictype/block-test-tests: Likewise.
22771         * modules/unictype/category-C-tests: Likewise.
22772         * modules/unictype/category-Cc-tests: Likewise.
22773         * modules/unictype/category-Cf-tests: Likewise.
22774         * modules/unictype/category-Cn-tests: Likewise.
22775         * modules/unictype/category-Co-tests: Likewise.
22776         * modules/unictype/category-Cs-tests: Likewise.
22777         * modules/unictype/category-L-tests: Likewise.
22778         * modules/unictype/category-Ll-tests: Likewise.
22779         * modules/unictype/category-Lm-tests: Likewise.
22780         * modules/unictype/category-Lo-tests: Likewise.
22781         * modules/unictype/category-Lt-tests: Likewise.
22782         * modules/unictype/category-Lu-tests: Likewise.
22783         * modules/unictype/category-M-tests: Likewise.
22784         * modules/unictype/category-Mc-tests: Likewise.
22785         * modules/unictype/category-Me-tests: Likewise.
22786         * modules/unictype/category-Mn-tests: Likewise.
22787         * modules/unictype/category-N-tests: Likewise.
22788         * modules/unictype/category-Nd-tests: Likewise.
22789         * modules/unictype/category-Nl-tests: Likewise.
22790         * modules/unictype/category-No-tests: Likewise.
22791         * modules/unictype/category-P-tests: Likewise.
22792         * modules/unictype/category-Pc-tests: Likewise.
22793         * modules/unictype/category-Pd-tests: Likewise.
22794         * modules/unictype/category-Pe-tests: Likewise.
22795         * modules/unictype/category-Pf-tests: Likewise.
22796         * modules/unictype/category-Pi-tests: Likewise.
22797         * modules/unictype/category-Po-tests: Likewise.
22798         * modules/unictype/category-Ps-tests: Likewise.
22799         * modules/unictype/category-S-tests: Likewise.
22800         * modules/unictype/category-Sc-tests: Likewise.
22801         * modules/unictype/category-Sk-tests: Likewise.
22802         * modules/unictype/category-Sm-tests: Likewise.
22803         * modules/unictype/category-So-tests: Likewise.
22804         * modules/unictype/category-Z-tests: Likewise.
22805         * modules/unictype/category-Zl-tests: Likewise.
22806         * modules/unictype/category-Zp-tests: Likewise.
22807         * modules/unictype/category-Zs-tests: Likewise.
22808         * modules/unictype/category-and-not-tests: Likewise.
22809         * modules/unictype/category-and-tests: Likewise.
22810         * modules/unictype/category-byname-tests: Likewise.
22811         * modules/unictype/category-name-tests: Likewise.
22812         * modules/unictype/category-none-tests: Likewise.
22813         * modules/unictype/category-of-tests: Likewise.
22814         * modules/unictype/category-or-tests: Likewise.
22815         * modules/unictype/category-test-withtable-tests: Likewise.
22816         * modules/unictype/combining-class-tests: Likewise.
22817         * modules/unictype/ctype-alnum-tests: Likewise.
22818         * modules/unictype/ctype-alpha-tests: Likewise.
22819         * modules/unictype/ctype-blank-tests: Likewise.
22820         * modules/unictype/ctype-cntrl-tests: Likewise.
22821         * modules/unictype/ctype-digit-tests: Likewise.
22822         * modules/unictype/ctype-graph-tests: Likewise.
22823         * modules/unictype/ctype-lower-tests: Likewise.
22824         * modules/unictype/ctype-print-tests: Likewise.
22825         * modules/unictype/ctype-punct-tests: Likewise.
22826         * modules/unictype/ctype-space-tests: Likewise.
22827         * modules/unictype/ctype-upper-tests: Likewise.
22828         * modules/unictype/ctype-xdigit-tests: Likewise.
22829         * modules/unictype/decimal-digit-tests: Likewise.
22830         * modules/unictype/digit-tests: Likewise.
22831         * modules/unictype/mirror-tests: Likewise.
22832         * modules/unictype/numeric-tests: Likewise.
22833         * modules/unictype/property-alphabetic-tests: Likewise.
22834         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22835         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22836         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22837         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22838         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22839         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22840         * modules/unictype/property-bidi-control-tests: Likewise.
22841         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22842         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22843         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22844         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22845         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22846         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22847         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22848         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22849         * modules/unictype/property-bidi-pdf-tests: Likewise.
22850         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22851         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22852         * modules/unictype/property-byname-tests: Likewise.
22853         * modules/unictype/property-combining-tests: Likewise.
22854         * modules/unictype/property-composite-tests: Likewise.
22855         * modules/unictype/property-currency-symbol-tests: Likewise.
22856         * modules/unictype/property-dash-tests: Likewise.
22857         * modules/unictype/property-decimal-digit-tests: Likewise.
22858         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22859         * modules/unictype/property-deprecated-tests: Likewise.
22860         * modules/unictype/property-diacritic-tests: Likewise.
22861         * modules/unictype/property-extender-tests: Likewise.
22862         * modules/unictype/property-format-control-tests: Likewise.
22863         * modules/unictype/property-grapheme-base-tests: Likewise.
22864         * modules/unictype/property-grapheme-extend-tests: Likewise.
22865         * modules/unictype/property-grapheme-link-tests: Likewise.
22866         * modules/unictype/property-hex-digit-tests: Likewise.
22867         * modules/unictype/property-hyphen-tests: Likewise.
22868         * modules/unictype/property-id-continue-tests: Likewise.
22869         * modules/unictype/property-id-start-tests: Likewise.
22870         * modules/unictype/property-ideographic-tests: Likewise.
22871         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22872         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22873         * modules/unictype/property-ignorable-control-tests: Likewise.
22874         * modules/unictype/property-iso-control-tests: Likewise.
22875         * modules/unictype/property-join-control-tests: Likewise.
22876         * modules/unictype/property-left-of-pair-tests: Likewise.
22877         * modules/unictype/property-line-separator-tests: Likewise.
22878         * modules/unictype/property-logical-order-exception-tests: Likewise.
22879         * modules/unictype/property-lowercase-tests: Likewise.
22880         * modules/unictype/property-math-tests: Likewise.
22881         * modules/unictype/property-non-break-tests: Likewise.
22882         * modules/unictype/property-not-a-character-tests: Likewise.
22883         * modules/unictype/property-numeric-tests: Likewise.
22884         * modules/unictype/property-other-alphabetic-tests: Likewise.
22885         * modules/unictype/property-other-default-ignorable-code-point-tests:
22886         Likewise.
22887         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22888         * modules/unictype/property-other-id-continue-tests: Likewise.
22889         * modules/unictype/property-other-id-start-tests: Likewise.
22890         * modules/unictype/property-other-lowercase-tests: Likewise.
22891         * modules/unictype/property-other-math-tests: Likewise.
22892         * modules/unictype/property-other-uppercase-tests: Likewise.
22893         * modules/unictype/property-paired-punctuation-tests: Likewise.
22894         * modules/unictype/property-paragraph-separator-tests: Likewise.
22895         * modules/unictype/property-pattern-syntax-tests: Likewise.
22896         * modules/unictype/property-pattern-white-space-tests: Likewise.
22897         * modules/unictype/property-private-use-tests: Likewise.
22898         * modules/unictype/property-punctuation-tests: Likewise.
22899         * modules/unictype/property-quotation-mark-tests: Likewise.
22900         * modules/unictype/property-radical-tests: Likewise.
22901         * modules/unictype/property-sentence-terminal-tests: Likewise.
22902         * modules/unictype/property-soft-dotted-tests: Likewise.
22903         * modules/unictype/property-space-tests: Likewise.
22904         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22905         * modules/unictype/property-test-tests: Likewise.
22906         * modules/unictype/property-titlecase-tests: Likewise.
22907         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22908         * modules/unictype/property-unified-ideograph-tests: Likewise.
22909         * modules/unictype/property-uppercase-tests: Likewise.
22910         * modules/unictype/property-variation-selector-tests: Likewise.
22911         * modules/unictype/property-white-space-tests: Likewise.
22912         * modules/unictype/property-xid-continue-tests: Likewise.
22913         * modules/unictype/property-xid-start-tests: Likewise.
22914         * modules/unictype/property-zero-width-tests: Likewise.
22915         * modules/unictype/scripts-tests: Likewise.
22916         * modules/unictype/syntax-c-ident-tests: Likewise.
22917         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22918         * modules/unictype/syntax-java-ident-tests: Likewise.
22919         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22920         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22921         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22922         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22923         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22924         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22925         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22926         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22927         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22928         * modules/uniname/uniname-tests: Likewise.
22929         * modules/uninorm/canonical-decomposition-tests: Likewise.
22930         * modules/uninorm/compat-decomposition-tests: Likewise.
22931         * modules/uninorm/composition-tests: Likewise.
22932         * modules/uninorm/decomposing-form-tests: Likewise.
22933         * modules/uninorm/decomposition-tests: Likewise.
22934         * modules/uninorm/filter-tests: Likewise.
22935         * modules/uninorm/nfc-tests: Likewise.
22936         * modules/uninorm/nfd-tests: Likewise.
22937         * modules/uninorm/nfkc-tests: Likewise.
22938         * modules/uninorm/nfkd-tests: Likewise.
22939         * modules/uninorm/u8-normcmp-tests: Likewise.
22940         * modules/uninorm/u8-normcoll-tests: Likewise.
22941         * modules/uninorm/u16-normcmp-tests: Likewise.
22942         * modules/uninorm/u16-normcoll-tests: Likewise.
22943         * modules/uninorm/u32-normcmp-tests: Likewise.
22944         * modules/uninorm/u32-normcoll-tests: Likewise.
22945         * modules/unistdio/u8-asnprintf-tests: Likewise.
22946         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22947         * modules/unistdio/u8-vasprintf-tests: Likewise.
22948         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22949         * modules/unistdio/u8-vsprintf-tests: Likewise.
22950         * modules/unistdio/u16-asnprintf-tests: Likewise.
22951         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22952         * modules/unistdio/u16-vasprintf-tests: Likewise.
22953         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22954         * modules/unistdio/u16-vsprintf-tests: Likewise.
22955         * modules/unistdio/u32-asnprintf-tests: Likewise.
22956         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22957         * modules/unistdio/u32-vasprintf-tests: Likewise.
22958         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22959         * modules/unistdio/u32-vsprintf-tests: Likewise.
22960         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22961         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22962         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22963         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22964         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22965         * modules/unistr/u8-check-tests: Likewise.
22966         * modules/unistr/u8-chr-tests: Likewise.
22967         * modules/unistr/u8-cmp-tests: Likewise.
22968         * modules/unistr/u8-cmp2-tests: Likewise.
22969         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22970         * modules/unistr/u8-cpy-tests: Likewise.
22971         * modules/unistr/u8-mblen-tests: Likewise.
22972         * modules/unistr/u8-mbsnlen-tests: Likewise.
22973         * modules/unistr/u8-mbtouc-tests: Likewise.
22974         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22975         * modules/unistr/u8-mbtoucr-tests: Likewise.
22976         * modules/unistr/u8-move-tests: Likewise.
22977         * modules/unistr/u8-next-tests: Likewise.
22978         * modules/unistr/u8-prev-tests: Likewise.
22979         * modules/unistr/u8-set-tests: Likewise.
22980         * modules/unistr/u8-stpcpy-tests: Likewise.
22981         * modules/unistr/u8-stpncpy-tests: Likewise.
22982         * modules/unistr/u8-strcat-tests: Likewise.
22983         * modules/unistr/u8-strcmp-tests: Likewise.
22984         * modules/unistr/u8-strcoll-tests: Likewise.
22985         * modules/unistr/u8-strcpy-tests: Likewise.
22986         * modules/unistr/u8-strdup-tests: Likewise.
22987         * modules/unistr/u8-strlen-tests: Likewise.
22988         * modules/unistr/u8-strmblen-tests: Likewise.
22989         * modules/unistr/u8-strmbtouc-tests: Likewise.
22990         * modules/unistr/u8-strncat-tests: Likewise.
22991         * modules/unistr/u8-strncmp-tests: Likewise.
22992         * modules/unistr/u8-strncpy-tests: Likewise.
22993         * modules/unistr/u8-strnlen-tests: Likewise.
22994         * modules/unistr/u8-to-u16-tests: Likewise.
22995         * modules/unistr/u8-to-u32-tests: Likewise.
22996         * modules/unistr/u8-uctomb-tests: Likewise.
22997         * modules/unistr/u16-check-tests: Likewise.
22998         * modules/unistr/u16-chr-tests: Likewise.
22999         * modules/unistr/u16-cmp-tests: Likewise.
23000         * modules/unistr/u16-cmp2-tests: Likewise.
23001         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23002         * modules/unistr/u16-cpy-tests: Likewise.
23003         * modules/unistr/u16-mblen-tests: Likewise.
23004         * modules/unistr/u16-mbsnlen-tests: Likewise.
23005         * modules/unistr/u16-mbtouc-tests: Likewise.
23006         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23007         * modules/unistr/u16-mbtoucr-tests: Likewise.
23008         * modules/unistr/u16-move-tests: Likewise.
23009         * modules/unistr/u16-next-tests: Likewise.
23010         * modules/unistr/u16-prev-tests: Likewise.
23011         * modules/unistr/u16-set-tests: Likewise.
23012         * modules/unistr/u16-stpcpy-tests: Likewise.
23013         * modules/unistr/u16-stpncpy-tests: Likewise.
23014         * modules/unistr/u16-strcat-tests: Likewise.
23015         * modules/unistr/u16-strcmp-tests: Likewise.
23016         * modules/unistr/u16-strcoll-tests: Likewise.
23017         * modules/unistr/u16-strcpy-tests: Likewise.
23018         * modules/unistr/u16-strdup-tests: Likewise.
23019         * modules/unistr/u16-strlen-tests: Likewise.
23020         * modules/unistr/u16-strmblen-tests: Likewise.
23021         * modules/unistr/u16-strmbtouc-tests: Likewise.
23022         * modules/unistr/u16-strncat-tests: Likewise.
23023         * modules/unistr/u16-strncmp-tests: Likewise.
23024         * modules/unistr/u16-strncpy-tests: Likewise.
23025         * modules/unistr/u16-strnlen-tests: Likewise.
23026         * modules/unistr/u16-to-u32-tests: Likewise.
23027         * modules/unistr/u16-to-u8-tests: Likewise.
23028         * modules/unistr/u16-uctomb-tests: Likewise.
23029         * modules/unistr/u32-check-tests: Likewise.
23030         * modules/unistr/u32-chr-tests: Likewise.
23031         * modules/unistr/u32-cmp-tests: Likewise.
23032         * modules/unistr/u32-cmp2-tests: Likewise.
23033         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23034         * modules/unistr/u32-cpy-tests: Likewise.
23035         * modules/unistr/u32-mblen-tests: Likewise.
23036         * modules/unistr/u32-mbsnlen-tests: Likewise.
23037         * modules/unistr/u32-mbtouc-tests: Likewise.
23038         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23039         * modules/unistr/u32-mbtoucr-tests: Likewise.
23040         * modules/unistr/u32-move-tests: Likewise.
23041         * modules/unistr/u32-next-tests: Likewise.
23042         * modules/unistr/u32-prev-tests: Likewise.
23043         * modules/unistr/u32-set-tests: Likewise.
23044         * modules/unistr/u32-stpcpy-tests: Likewise.
23045         * modules/unistr/u32-stpncpy-tests: Likewise.
23046         * modules/unistr/u32-strcat-tests: Likewise.
23047         * modules/unistr/u32-strcmp-tests: Likewise.
23048         * modules/unistr/u32-strcoll-tests: Likewise.
23049         * modules/unistr/u32-strcpy-tests: Likewise.
23050         * modules/unistr/u32-strdup-tests: Likewise.
23051         * modules/unistr/u32-strlen-tests: Likewise.
23052         * modules/unistr/u32-strmblen-tests: Likewise.
23053         * modules/unistr/u32-strmbtouc-tests: Likewise.
23054         * modules/unistr/u32-strncat-tests: Likewise.
23055         * modules/unistr/u32-strncmp-tests: Likewise.
23056         * modules/unistr/u32-strncpy-tests: Likewise.
23057         * modules/unistr/u32-strnlen-tests: Likewise.
23058         * modules/unistr/u32-to-u16-tests: Likewise.
23059         * modules/unistr/u32-to-u8-tests: Likewise.
23060         * modules/unistr/u32-uctomb-tests: Likewise.
23061         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23062         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23063         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23064         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23065         * modules/uniwidth/u8-strwidth-tests: Likewise.
23066         * modules/uniwidth/u8-width-tests: Likewise.
23067         * modules/uniwidth/u16-strwidth-tests: Likewise.
23068         * modules/uniwidth/u16-width-tests: Likewise.
23069         * modules/uniwidth/u32-strwidth-tests: Likewise.
23070         * modules/uniwidth/u32-width-tests: Likewise.
23071         * modules/uniwidth/width-tests: Likewise.
23072
23073 2010-05-18  Richard Jones  <rjones@redhat.com>
23074
23075         doc: users.txt: list hivex
23076         * users.txt: Add hivex.
23077
23078 2010-05-18  Richard Jones  <rjones@redhat.com>
23079
23080         doc: users.txt: list febootstrap
23081         * users.txt: Add febootstrap.
23082
23083 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23084
23085         bootstrap: fix an error when gnulib is not used as a git submodule
23086         * build-aux/bootstrap (gnulib_path): If its length is zero then
23087         assign "gnulib" to it.
23088         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23089
23090 2010-05-16  Bruno Haible  <bruno@clisp.org>
23091
23092         Avoid autoconf warnings about AM_ICONV.
23093         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23094         2.64.
23095
23096 2010-05-16  Bruno Haible  <bruno@clisp.org>
23097
23098         absolute-header: Make the macro usable in more situations.
23099         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23100         from gl_ABSOLUTE_HEADER.
23101         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23102
23103 2010-05-16  James Youngman  <jay@gnu.org>
23104
23105         doc: update users.txt
23106         * users.txt: Add CSSC.
23107
23108 2010-05-16  Jim Meyering  <meyering@redhat.com>
23109
23110         init.sh: fix an error in the previous change; add more comments
23111         * tests/init.sh: Compare exit code in loop against 9, not 2.
23112         Patch by Bruno Haible.
23113         Make the two tests more similar by adding an empty "then" clause.
23114         Add comments.
23115
23116         init.sh: avoid unnecessary shell re-exec
23117         * tests/init.sh: Improve the re-exec-required check to first test the
23118         current shell.  If it passes the test, do not search for a shell that
23119         does pass, and do not re-exec.  This test is particularly contorted to
23120         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23121         of $(...) evokes a syntax error and causes immediate shell exit with
23122         status 2.  Bruno Haible reported that the re-exec made it impossible
23123         to single-step through any init.sh-using script.
23124
23125 2010-05-16  Bruno Haible  <bruno@clisp.org>
23126
23127         Fix collision between gnulib's and libintl's printf replacements.
23128         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23129         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23130         (printf): When using GNU C, map the __printf__ function to rpl_printf
23131         via __asm__. When not using GNU C, define rpl_printf instead of
23132         __printf__.
23133         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23134         commit.
23135         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23136         commit.
23137         * m4/asm-underscore.m4: New file.
23138         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23139         * modules/stdio (Files): Add m4/asm-underscore.m4.
23140         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23141         Reported by Ben Pfaff.
23142
23143 2010-05-16  Bruno Haible  <bruno@clisp.org>
23144
23145         verify: Avoid skipping the test on openSUSE 11.0.
23146         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23147
23148 2010-05-13  Bruno Haible  <bruno@clisp.org>
23149
23150         Avoid useless warnings from G++.
23151         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23152         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23153         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23154
23155 2010-05-11  Jim Meyering  <meyering@redhat.com>
23156
23157         maint.mk: tweak preceding change
23158         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23159         regexps tighter by anchoring at EOL, and make the new group "shy"
23160         for slightly decreased overhead.
23161
23162 2010-05-11  Eric Blake  <eblake@redhat.com>
23163
23164         maint.mk: gnulib doesn't guarantee NSIG
23165         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23166
23167 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23168
23169         test-pwrite.c: Remove unused variable declaration.
23170         * tests/test-pwrite.c (main): Remove read_buf declaration.
23171
23172         Remove useless test-pwrite.sh file.
23173         * tests/test-pwrite.sh: Delete file.
23174         * modules/pwrite-tests: Remove references.
23175         Reported by Bruno Haible.
23176
23177 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23178
23179         init.sh: fix a typo
23180         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23181
23182 2010-05-10  Jim Meyering  <meyering@redhat.com>
23183
23184         maint.mk: avoid using a temporary file in the always-defined-macros check
23185         * top/maint.mk (.re-defmac): Remove rule.
23186         (gl_trap_): Remove definition.
23187         (sc_prohibit_always-defined_macros): Rewrite not to create and
23188         depend on a temporary file.  Instead, depend on GNU grep's ability
23189         to read a list of regular expressions from stdin when given "-f -".
23190
23191 2010-05-09  Bruno Haible  <bruno@clisp.org>
23192
23193         Update to GNU gettext 0.18, part 1.
23194         * m4/gettext.m4: Update to GNU gettext 0.18.
23195         * m4/intl.m4: Likewise.
23196         * m4/po.m4: Likewise.
23197         * modules/gettext (Files): Add m4/fcntl-o.m4.
23198         (configure.ac): Require gettext infrastructure from version 0.18.
23199
23200 2010-05-09  Jim Meyering  <meyering@redhat.com>
23201
23202         init.sh: enable MALLOC_PERTURB_
23203         * tests/init.sh: Enable glibc's malloc-perturbing option.
23204
23205         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23206         With my recent change in init.sh from the two-line form:
23207             -#   : ${srcdir=.}
23208             -#   . "$srcdir/init.sh"; path_prepend_ .
23209             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23210         I noticed that using the one-line form would cause this test
23211         to fail with a false-positive, or to stop working altogether,
23212         depending on whether help-version changed or all the tests did.
23213         * top/maint.mk (_hv_regex): Remove this definition.
23214         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23215         (_hv_regex_strong): Use a stronger regex to check for conformance.
23216         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23217         Give a separate diagnostic for lack of conforming use.
23218
23219         maint.mk: prohibit definition of symbols defined by gnulib
23220         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23221         definition of symbols defined by gnulib.
23222
23223 2010-05-09  Bruno Haible  <bruno@clisp.org>
23224
23225         acl: Avoid test failure on Cygwin-hosted mingw.
23226         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23227
23228 2010-05-09  Bruno Haible  <bruno@clisp.org>
23229
23230         error: Use system's fcntl function.
23231         * lib/error.c (fcntl): Undefine.
23232
23233 2010-05-09  Jim Meyering  <meyering@redhat.com>
23234
23235         verify: adjust formatting to be more consistent
23236         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23237         argument-list '('s, and after one comma.
23238
23239 2010-05-09  Bruno Haible  <bruno@clisp.org>
23240
23241         error: More reliable output on mingw.
23242         * lib/error.c: Include <windows.h>.
23243         (is_open): New function.
23244         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23245         defined.
23246
23247 2010-05-09  Bruno Haible  <bruno@clisp.org>
23248
23249         vasnprintf: Fix syntax errors in libintl build on mingw.
23250         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23251         pad_ourselves and prec_ourselves after use.
23252
23253 2010-05-08  Bruno Haible  <bruno@clisp.org>
23254
23255         * lib/config.charset: Update comments for Cygwin 1.7.
23256         * lib/localcharset.c: Likewise.
23257
23258 2010-05-07  Jim Meyering  <meyering@redhat.com>
23259
23260         init.sh: improve comments
23261         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23262         . "${srcdir=.}/init.sh"; path_prepend_ .
23263         Add a note about path_prepend_ and the alternative of using
23264         TESTS_ENVIRONMENT.
23265
23266 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23267
23268         exclude: Unescape hashed patterns in wildcard mode.
23269         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23270         to the hash list.
23271         * tests/test-exclude8.sh: New test case.
23272         * modules/exclude-tests: Add new test.
23273
23274 2010-05-05  Eric Blake  <eblake@redhat.com>
23275
23276         verify: automate tests
23277         * modules/verify-tests: New module.
23278         * tests/test-verify.sh: New file.
23279         * tests/test-verify.c: Guard each negative test with a unique id.
23280         Also avoid warning about unused left hand of comma expressions.
23281
23282 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23283
23284         Further improvements to verify.h, suggested by Eric Blake.
23285         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23286         the GL_* versions, to avoid collision with OpenGL.
23287         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23288         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23289         than testing merely whether it's defined.
23290
23291         Modify verify.h to pacify gcc -Wredundant_decls.
23292         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23293         These use the prefix "GL_" since they're likely to be useful elsewhere.
23294         We may need to break them out into a different .h file.
23295         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23296         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23297         of verify_function__.
23298
23299 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23300
23301         Tests for module pwrite.
23302         * modules/pwrite-tests: New file.
23303         * tests/test-pwrite.sh: New file.
23304         * tests/test-pwrite.c: New file.
23305
23306         New module pwrite.
23307         * lib/unistd.in.h (pwrite): New declaration.
23308         * lib/pwrite.c: New file, from glibc with modifications.
23309         * m4/pwrite.m4: New file.
23310         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23311         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23312         REPLACE_PWRITE.
23313         * modules/pwrite: New file.
23314         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23315         REPLACE_PWRITE.
23316         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23317         * doc/posix-functions/pwrite.texi: Mention the new module.
23318
23319 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23320
23321         pread: Update documentation.
23322         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23323
23324 2010-05-04  Eric Blake  <eblake@redhat.com>
23325
23326         docs: update cygwin progress
23327         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23328         this bug.
23329         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23330         Added in cygwin 1.7.2.
23331         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23332         Likewise.
23333         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23334         Likewise.
23335         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23336         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23337         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23338         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23339         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23340         Mention nproc module.
23341         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23342         bug in cygwin 1.7.5 addition.
23343         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23344         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23345         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23346         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23347         1.7.5.
23348         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23349         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23350         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23351         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23352         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23353         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23354         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23355         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23356         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23357         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23358         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23359         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23360         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23361         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23362         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23363         Likewise.
23364         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23365         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23366         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23367         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23368         Likewise.
23369         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23370         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23371         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23372         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23373         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23374         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23375         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23376         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23377         Likewise.
23378         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23379         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23380         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23381         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23382         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23383         Likewise.
23384         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23385         Likewise.
23386         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23387         Likewise.
23388         * doc/glibc-functions/xdrrec_endofrecord.texi
23389         (xdrrec_endofrecord): Likewise.
23390         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23391         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23392         Likewise.
23393         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23394         Likewise.
23395
23396 2010-05-04  Jim Meyering  <meyering@redhat.com>
23397
23398         gendocs.sh: make its "-s FILE" option more useful
23399         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23400         $PACKAGE to reflect the probably-different basename of "FILE".
23401
23402 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23403
23404         bootstrap: don't ignore download_po_files failure
23405         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23406         failure.
23407
23408 2010-05-03  Jim Meyering  <meyering@redhat.com>
23409
23410         maint.mk: allow to pass options to gendocs.sh
23411         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23412         (gendocs_options_): New overridable variable.
23413
23414         gnu-web-doc-update: don't ignore configure or build failure
23415         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23416
23417         announce-gen: backslash-escape '@'s in --help output
23418         * build-aux/announce-gen: Fix syntax errors.
23419
23420         maint.mk, announce-gen: allow project-specific announcement mail headers
23421         * top/maint.mk (translation_project_): Define default.
23422         (announcement_Cc_, announcement_mail_headers_): Likewise.
23423         (announcement): Invoke announce-gen with new --mail-headers option.
23424         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23425
23426         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23427         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23428         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23429         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23430         line in the "err2" output file when running "make check" in verbose
23431         mode (i.e., with set -x enabled).
23432
23433 2010-05-03  Bruno Haible  <bruno@clisp.org>
23434
23435         wctob: Fix for weird platforms.
23436         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23437         argument value.
23438
23439 2010-05-03  Jim Meyering  <meyering@redhat.com>
23440
23441         maint.mk: prohibit unwarranted use of <strings.h>
23442         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23443         strings.h in a file that does not also use strcasecmp, strncasecmp,
23444         ffs or ffsll.
23445
23446         maint.mk: remove obsolete comments
23447         * top/maint.mk: Remove stale, commented-out rules.
23448
23449 2010-05-02  Bruno Haible  <bruno@clisp.org>
23450
23451         wcwidth: Declare also when it's aliased.
23452         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23453         macro.
23454
23455 2010-05-02  Bruno Haible  <bruno@clisp.org>
23456
23457         Fix regression from 2010-04-25.
23458         * gnulib-tool (func_modules_transitive_closure): Check the status of
23459         all modules, not only of the tests that are of the form foo-tests where
23460         foo is a module.
23461
23462 2010-05-02  Bruno Haible  <bruno@clisp.org>
23463
23464         wctob: Work around nasty Cygwin 1.7.2 bug.
23465         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23466         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23467
23468 2010-05-01  Bruno Haible  <bruno@clisp.org>
23469
23470         fpurge: Sharper test.
23471         * tests/test-fpurge.c (main): Add one more ftell check.
23472         * modules/fpurge-tests (Depends-on): Add ftell.
23473         Suggested by Eric Blake.
23474
23475 2010-05-01  Bruno Haible  <bruno@clisp.org>
23476
23477         ftello: Another test.
23478         * tests/test-ftello3.c: New file.
23479         * modules/ftello-tests (Files): Add it.
23480         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23481         MOSTLYCLEANFILES.
23482
23483         ftell: Another test.
23484         * tests/test-ftell3.c: New file.
23485         * modules/ftell-tests (Files): Add it.
23486         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23487         MOSTLYCLEANFILES.
23488
23489 2010-05-01  Bruno Haible  <bruno@clisp.org>
23490
23491         ftell, ftello: Work around Solaris bug.
23492         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23493         * lib/ftello.c: Include stdio-impl.h.
23494         (ftello): On Solaris, when _IOWRT is set, compute the result without
23495         looking at _IOREAD.
23496         * modules/ftello (Files): Add lib/stdio-impl.h.
23497         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23498         * doc/posix-functions/ftello.texi: Likewise.
23499         Reported by Eric Blake.
23500
23501 2010-05-01  Bruno Haible  <bruno@clisp.org>
23502
23503         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23504         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23505         the _IOWRT flag is also set.
23506
23507 2010-05-01  Bruno Haible  <bruno@clisp.org>
23508
23509         Fix doc about a HP-UX stdio bug.
23510         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23511         * doc/posix-functions/ftello.texi: Likewise.
23512
23513 2010-05-01  Bruno Haible  <bruno@clisp.org>
23514
23515         lseek test: Fix failure on Solaris.
23516         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23517         output.
23518
23519 2010-04-30  Jim Meyering  <meyering@redhat.com>
23520
23521         bootstrap: don't ignore failure to generate po*/Makevars
23522         * build-aux/bootstrap (with_gettext): Don't ignore failure
23523         to create po/Makevars or runtime-po/Makevars.
23524
23525 2010-04-29  Eric Blake  <eblake@redhat.com>
23526
23527         headers: relax license to LGPLv2+
23528         * modules/fcntl-h (License): Relax license.
23529         * modules/getopt-posix (License): Likewise.
23530         * modules/locale (License): Likewise.
23531         * modules/math (License): Likewise.
23532         * modules/pty (License): Likewise.
23533         * modules/sched (License): Likewise.
23534         * modules/search (License): Likewise.
23535         * modules/spawn (License): Likewise.
23536         * modules/stdarg (License): Likewise.
23537         * modules/sysexits (License): Likewise.
23538
23539 2010-04-29  Jim Meyering  <meyering@redhat.com>
23540
23541         inttypes: relax license to LGPLv2+
23542         * modules/inttypes (License): Relax license.
23543
23544 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23545
23546         * top/maint.mk (indent): Run twice to produce idempotent results.
23547
23548 2010-04-28  Bruno Haible  <bruno@clisp.org>
23549
23550         getdate: Generate getdate.c in the source directory.
23551         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23552         MOSTLYCLEANFILES.
23553         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23554
23555 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23556
23557         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23558         is not declared as a const *; avoid warnings in that case.
23559
23560 2010-04-28  Eric Blake  <eblake@redhat.com>
23561
23562         canonicalize-lgpl: avoid compiler warning
23563         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23564         declaration' / 'extraneous semicolon' warning with some compilers.
23565         Reported by Andreas Gruenbacher.
23566
23567 2010-04-28  Jim Meyering  <meyering@redhat.com>
23568
23569         init.sh: ensure a more reliable exit status when exiting via trap
23570         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23571         Inspired by patches from Dmitry V. Levin.
23572         Also trap on signal 3 (SIGQUIT).
23573
23574 2010-04-27  Bruno Haible  <bruno@clisp.org>
23575
23576         Update doc about utimes().
23577         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23578         'utimens' module.
23579         Reported by Andreas Gruenbacher <agruen@suse.de>.
23580
23581 2010-04-27  Eric Blake  <eblake@redhat.com>
23582
23583         full-read, full-write: relax license
23584         * modules/full-read (License): Drop to LGPLv2+.
23585         * modules/full-write (License): Likewise.
23586         * modules/safe-read (License): Likewise.
23587         * modules/safe-write (License): Likewise.
23588
23589         pthread: mention library for linking
23590         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23591
23592 2010-04-27  Jim Meyering  <meyering@redhat.com>
23593
23594         maint.mk: fix a bug introduced in last change
23595         * top/maint.mk (gl_assured_headers_): Now that all names are on
23596         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23597         is not anchored to end of word, it should be adequate.
23598
23599         maint.mk: avoid side-effect in latest syntax-check
23600         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23601         to run commands via $(shell...), and hence to incur cost only when
23602         the new rule is actually run.
23603
23604         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23605         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23606         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23607         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23608         (gl_assured_headers_, az_, AZ_): Define.
23609         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23610
23611 2010-04-26  Jim Meyering  <jim@meyering.net>
23612             Bruno Haible  <bruno@clisp.org>
23613
23614         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23615         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23616         Prompted by an exchange with Gilles Espinasse.
23617
23618 2010-04-26  Jim Meyering  <meyering@redhat.com>
23619
23620         git-version-gen: aesthetic tweak
23621         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23622         so that the command remains on a single line.
23623
23624 2010-04-26  Eric Blake  <eblake@redhat.com>
23625
23626         git-version-gen: allow use on EBCDIC hosts
23627         * build-aux/git-version-gen (dirty): Use literal rather than tying
23628         ourselves to ascii.
23629         Reported by Steve Goetze.
23630
23631 2010-04-25  Bruno Haible  <bruno@clisp.org>
23632
23633         netdb: Add support for GNULIB_POSIXCHECK.
23634         * lib/netdb.in.h: Include warn-on-use.h.
23635         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23636         functions are used when GNULIB_POSIXCHECK is defined and the
23637         getaddrinfo module is not in use.
23638         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23639         freeaddrinfo, gai_strerror, getnameinfo are declared.
23640         * modules/netdb (Depends-on): Add warn-on-use.
23641         (Makefile.am): Include warn-on-use.h in netdb.h.
23642
23643 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23644
23645         build: avoid "make check" failure without .git/ directory
23646         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23647         there is no .git/ directory.
23648
23649 2010-04-25  Bruno Haible  <bruno@clisp.org>
23650
23651         ptsname: Fix misuse of ttyname_r.
23652         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23653         of errno.
23654
23655 2010-04-25  Bruno Haible  <bruno@clisp.org>
23656
23657         ttyname_r: Make it work on Solaris 10.
23658         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23659         if the system function has the POSIX declaration. Test whether the
23660         function fails if the buffer is less than 128 bytes large.
23661         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23662         system's ttyname_r function. Provide a reasonably large buffer.
23663         * modules/ttyname_r (Depends-on): Add extensions.
23664         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23665
23666 2010-04-25  Bruno Haible  <bruno@clisp.org>
23667
23668         Use the 'extensions' module for some more functions on Solaris.
23669         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23670         module.
23671         * doc/posix-functions/ctime_r.texi: Likewise.
23672         * doc/posix-functions/getgrgid_r.texi: Likewise.
23673         * doc/posix-functions/getgrnam_r.texi: Likewise.
23674         * doc/posix-functions/getpwnam_r.texi: Likewise.
23675         * doc/posix-functions/getpwuid_r.texi: Likewise.
23676         * doc/posix-functions/readdir_r.texi: Likewise.
23677         * doc/posix-functions/sigwait.texi: Likewise.
23678         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23679         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23680
23681 2010-04-25  Bruno Haible  <bruno@clisp.org>
23682
23683         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23684         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23685         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23686         * lib/ttyname_r.c: Include <limits.h>.
23687         (ttyname_r): Define using the system's ttyname_r function, if it exists
23688         and not on Solaris.
23689         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23690         set.
23691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23692         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23693         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23694         Reported by Simon Josefsson.
23695
23696 2010-04-25  Bruno Haible  <bruno@clisp.org>
23697
23698         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23699         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23700         * doc/posix-functions/ctime_r.texi: Likewise.
23701         * doc/posix-functions/getgrgid_r.texi: Likewise.
23702         * doc/posix-functions/getgrnam_r.texi: Likewise.
23703         * doc/posix-functions/getlogin_r.texi: Likewise.
23704         * doc/posix-functions/getpwnam_r.texi: Likewise.
23705         * doc/posix-functions/getpwuid_r.texi: Likewise.
23706         * doc/posix-functions/readdir_r.texi: Likewise.
23707         * doc/posix-functions/sigwait.texi: Likewise.
23708         * doc/posix-functions/ttyname_r.texi: Likewise.
23709         Reported by Simon Josefsson.
23710
23711 2010-04-25  Bruno Haible  <bruno@clisp.org>
23712
23713         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23714         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23715         also to --create-testdir.
23716         (func_acceptable): Don't consider the status of *-tests modules here.
23717         (func_modules_transitive_closure): Consider it here, before including a
23718         test module.
23719         (func_import, func_create_testdir): Set inc_all_direct_tests,
23720         inc_all_indirect_tests.
23721         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23722         --create-testdir and --create-megatestdir.
23723
23724 2010-04-25  Bruno Haible  <bruno@clisp.org>
23725
23726         gnulib-tool: Add --without-*-tests options.
23727         * gnulib-tool (func_usage): Document the --without-*-tests options.
23728         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23729         excl_unportable_tests): New variables.
23730         Fail if they are specified with --import or --update.
23731         (func_acceptable): Respect the excl_*_tests variables.
23732         (func_import): Set the excl_*_tests variables to empty.
23733
23734 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23735             Bruno Haible  <bruno@clisp.org>
23736
23737         Work around a MacOS X 10.4 bug with openpty.
23738         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23739         * tests/test-openpty.c (main): Close the master side explicitly.
23740
23741 2010-04-25  Bruno Haible  <bruno@clisp.org>
23742
23743         strnlen: Fix a C++ test error on MacOS X and Solaris.
23744         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23745         the function is not declared.
23746         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23747         Simon Josefsson.
23748
23749 2010-04-24  Bruno Haible  <bruno@clisp.org>
23750
23751         Avoid a gcc warning.
23752         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23753         of correct type for %08lx directive.
23754         Reported by Eric Blake.
23755
23756 2010-04-24  Bruno Haible  <bruno@clisp.org>
23757
23758         vasnprintf: Correct errno value in case of out-of-memory.
23759         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23760         or sprintf. Use the errno value from SNPRINTF or sprintf.
23761         Reported by Ian Beckwith <ianb@erislabs.net>.
23762
23763 2010-04-24  Bruno Haible  <bruno@clisp.org>
23764
23765         ansi-c++-opt: Find correct compiler when cross-compiling.
23766         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23767         AC_CHECK_PROGS.
23768         Reported by Simon Josefsson.
23769
23770 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23771
23772         vc-list-files: Add support for subversion
23773         * build-aux/vc-list-files: Use "svn list" to generate the list of
23774         files controlled by subversion.
23775
23776 2010-04-23  Jim Meyering  <meyering@redhat.com>
23777
23778         vc-list-files tests: convert to use init.sh
23779         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23780         path_prepend_.
23781         Use Exit, not exit.
23782         Use skip_ rather than open coding it.
23783         Remove trap set-up and compare definitions.
23784         * tests/test-vc-list-files-git.sh: Likewise.
23785         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23786
23787 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23788
23789         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23790         backup files.
23791
23792 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23793
23794         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23795
23796 2010-04-20  Eric Blake  <eblake@redhat.com>
23797
23798         tests: be robust to ignored SIGPIPE
23799         * tests/test-select-in.sh: Consume all output.
23800         * tests/test-lseek.sh: Check correct exit status, while avoiding
23801         EPIPE.
23802
23803 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23804             Bruno Haible  <bruno@clisp.org>
23805
23806         visibility: Don't use -fvisibility if it leads to a warning.
23807         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23808         yes, don't pretend that visibility works if it leads to a warning.
23809         Reported by Mike Gran <spk121@yahoo.com>.
23810
23811 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23812
23813         * build-aux/bootstrap: Use "git -h" for testing for supported options
23814         instead of "git --help".  The short-form option only shows a summary,
23815         and doesn't layout the full man page.  Grep for the full option name
23816         in the summary, too.
23817
23818 2010-04-19  Bruno Haible  <bruno@clisp.org>
23819
23820         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23821         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23822         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23823         mention of RELOCATABLE_STRIP.
23824         Reported by Sylvain Beucler <beuc@beuc.net>.
23825
23826 2010-04-19  Bruno Haible  <bruno@clisp.org>
23827
23828         * lib/diffseq.h: Fix typo in comment.
23829         Reported by Eric Blake.
23830
23831 2010-04-19  Bruno Haible  <bruno@clisp.org>
23832
23833         ioctl: Move autoconf macro to a .m4 file.
23834         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23835         * modules/ioctl (Files): Add it.
23836         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23837         Reported by Ian Beckwith <ianb@erislabs.net>.
23838
23839 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23840             Bruno Haible  <bruno@clisp.org>
23841
23842         diffseq: Accommodate use-case with abstract arrays.
23843         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23844         is not defined.
23845         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23846         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23847
23848 2010-04-18  Bruno Haible  <bruno@clisp.org>
23849
23850         * doc/posix-headers/stdbool.texi: More precise wording.
23851
23852 2010-04-17  Jim Meyering  <meyering@redhat.com>
23853
23854         maint.mk: use gnu-style indentation in an embedded perl script
23855         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23856         Rename variable: s/two/last_two_bytes/
23857
23858 2010-04-16  Eric Blake  <eblake@redhat.com>
23859
23860         test-stdbool: skip test that fails with Solaris CC
23861         * tests/test-stdbool.c (f): Skip test that causes compilation
23862         error under buggy C++ compiler.
23863         * lib/stdbool.in.h: Document the limitation.
23864         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23865
23866         setenv: allow compilation with C++
23867         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23868         register keyword.
23869
23870         stdint: allow test to pass with C++
23871         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23872
23873         getopt: allow compilation with C++
23874         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23875         struct.
23876         * lib/getopt.c (_getopt_internal_r): Use correct type.
23877         Reported by Dagobert Michelson, via Joel E. Denny.
23878
23879 2010-04-16  Bruno Haible  <bruno@clisp.org>
23880
23881         Override netdb.h always.
23882         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23883         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23884         Reported by Ludovic Courtès <ludo@gnu.org>.
23885
23886 2010-04-15  Bruno Haible  <bruno@clisp.org>
23887
23888         openpty: Fix mistake from 2010-03-21.
23889         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23890         Reported by Simon Josefsson.
23891
23892 2010-04-15  Eric Blake  <eblake@redhat.com>
23893
23894         test-forkpty: fix expected signature
23895         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23896         Reported by Simon Josefsson.
23897
23898 2010-04-15  Jim Meyering  <meyering@redhat.com>
23899
23900         maint.mk: texinfo_suffix_re_: correct the default regexp
23901         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23902
23903         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23904         make it configurable via texinfo_suffix_re_.
23905
23906 2010-04-14  Eric Blake  <eblake@redhat.com>
23907
23908         strtok_r: relax license to LGPLv2+
23909         * modules/strtok_r (License): Relax license.
23910         Reported by Matthias Bolte.
23911
23912 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23913
23914         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23915         version 1.4.4 by default instead of requiring the libgcrypt
23916         version used during build.  This makes it possible to use the
23917         application with older but still binary compatible libgcrypt
23918         versions.
23919
23920 2010-04-13  Eric Blake  <eblake@redhat.com>
23921
23922         getopt-gnu: match recent glibc fixes and posix ruling
23923         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23924         '+' handling, when requesting extensions.
23925         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23926         'W;' handling.
23927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23928         * doc/posix-functions/getopt.texi (getopt): Document this.
23929         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23930         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23931         Likewise.
23932
23933         getopt: merge bug fixes from glibc
23934         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23935         diagnostics.  Honor '+:' correctly.  Reject ';'.
23936
23937         getopt-posix: detect MacOS bug
23938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23939         optind when missing a required argument.
23940         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23941         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23942         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23943         Likewise.
23944
23945         getopt-posix: avoid spurious failure on Solaris
23946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23947         an indicator that setting optind=1 is sufficient for reset.
23948
23949         getopt-posix: avoid spurious failure on FreeBSD
23950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23951         in POSIX mode, since the m4 test uses it.
23952
23953         gnulib-tool: silence warning on BSD sh
23954         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23955
23956 2010-04-13  Jim Meyering  <meyering@redhat.com>
23957
23958         doc: users.txt: GNU patch now uses gnulib
23959         * users.txt: Add patch.
23960
23961 2010-04-12  Jim Meyering  <meyering@redhat.com>
23962
23963         maint.mk: generate more concise timing data for syntax-check rules
23964         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23965         " done" from each line that reports a syntax-check test duration.
23966
23967 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23968
23969         git-version-gen: use "git update-index..." rather than "git status"
23970         * build-aux/git-version-gen: Use git update-index --refresh, not
23971         "git status".  With some versions of git, "git status" would fail
23972         to update the index and result in an unwarranted "-dirty" suffix.
23973
23974 2010-04-11  Jim Meyering  <meyering@redhat.com>
23975
23976         openat: correct formatting (no semantic change)
23977         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23978         Suggested by Bruno Haible.
23979
23980 2010-04-11  Bruno Haible  <bruno@clisp.org>
23981
23982         Stricter declaration checking in testdirs.
23983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23984         If for_tests is true, augment AM_CPPFLAGS to define
23985         GNULIB_STRICT_CHECKING.
23986         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23987         GNULIB_STRICT_CHECKING is defined, verify that the function is
23988         declared.
23989
23990 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23991             Bruno Haible  <bruno@clisp.org>
23992
23993         libunistring: Improve configure output.
23994         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23995         Don't say "consider installing GNU libunistring" when checking again
23996         with libiconv.
23997
23998 2010-04-11  Bruno Haible  <bruno@clisp.org>
23999
24000         libunistring: Correct value of $LTLIBUNISTRING.
24001         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24002         correct the value of $LTLIBUNISTRING.
24003
24004 2010-04-11  Bruno Haible  <bruno@clisp.org>
24005
24006         havelib: Add static libraries to LIBS in the right order.
24007         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24008         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24009
24010 2010-04-11  Bruno Haible  <bruno@clisp.org>
24011
24012         libunistring: Detect libunistring also when it depends on libiconv.
24013         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24014         the second AC_LIB_HAVE_LINKFLAGS invocation.
24015
24016 2010-04-11  James Youngman  <jay@gnu.org>
24017
24018         close-stream: declare local scalars to be "const"
24019         * lib/close-stream.c (close_stream): Make boolean variables const
24020         to document the fact that we set but do not change them.
24021
24022 2010-04-11  Bruno Haible  <bruno@clisp.org>
24023
24024         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24025
24026 2010-04-11  Jim Meyering  <meyering@redhat.com>
24027
24028         maint.mk: don't include dist-check.mk
24029         * top/maint.mk: Remove bogus include directive.
24030
24031         maint.mk: improve empty-line-at-EOF check
24032         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24033         solution, rather than tail+Perl-based one.  The latter would read
24034         a few kilobytes from the end of each file, and did not handle empty
24035         files properly.
24036
24037         maint.mk: print the elapsed time for each syntax-check rule
24038         * top/maint.mk (sc_m_rules_): Save start time in a file.
24039         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24040         (local-check): Interpose the .z rules
24041
24042 2010-04-11  Jim Meyering  <meyering@redhat.com>
24043
24044         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24045         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24046         empty file with one that ends in an empty line.
24047
24048 2010-04-10  Bruno Haible  <bruno@clisp.org>
24049
24050         mkdir: Make it work on mingw64.
24051         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24052         * lib/mkdir.c: Update comment.
24053         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24054
24055 2010-04-10  Bruno Haible  <bruno@clisp.org>
24056
24057         Don't override improved macro from newer autoconf.
24058         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24059         autoconf >= 2.62.
24060         Reported by Joel E. Denny <jdenny@clemson.edu>.
24061
24062 2010-04-10  Jim Meyering  <meyering@redhat.com>
24063
24064         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24065         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24066
24067         maint.mk: correct a diagnostic
24068         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24069         in diagnostic; now use $prohibit.
24070
24071 2010-04-10  Bruno Haible  <address@hidden>
24072
24073         fchownat: Fix a C++ test error on Solaris 8.
24074         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24075         the function does not exist.
24076
24077 2010-04-10  Bruno Haible  <bruno@clisp.org>
24078
24079         vasnprintf: Add more tests.
24080         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24081         (test_function): Test converting an invalid wide string.
24082
24083         vasnprintf: Correct handling of unconvertible wide string arguments.
24084         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24085         VASNPRINTF.
24086         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24087         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24088         smaller than the expected maximum need for the directive. Set errno to
24089         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24090         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24092         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24093         * modules/vasnprintf (Files): Add m4/printf.m4.
24094         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24095
24096 2010-04-10  Bruno Haible  <bruno@clisp.org>
24097
24098         vasnprintf: Fix crash in %ls directive.
24099         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24100         string is passed as argument to %ls, with no precision and no width.
24101         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24102
24103 2010-04-10  Bruno Haible  <bruno@clisp.org>
24104
24105         vasnprintf: Fix multiple test failures on mingw.
24106         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24107         _snprintf, or snwprintf, not _snwprintf.
24108
24109 2010-04-10  Bruno Haible  <bruno@clisp.org>
24110
24111         write: Fix a C++ test error on mingw.
24112         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24113
24114 2010-04-10  Bruno Haible  <bruno@clisp.org>
24115
24116         vasnprintf test: Reduce code duplication.
24117         * tests/test-vasnprintf.c (test_function): New function, extracted from
24118         test_vasnprintf.
24119         (test_vasnprintf, test_asnprintf): Invoke it.
24120
24121 2010-04-10  Bruno Haible  <bruno@clisp.org>
24122
24123         strnlen: Fix warning in C++ mode on MacOS X.
24124         * lib/string.in.h (strnlen): Use the modern idiom.
24125         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24126         defining strnlen as a macro already in <config.h>.
24127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24128         REPLACE_STRNLEN.
24129         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24130         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24131
24132 2010-04-08  James Youngman  <jay@gnu.org>
24133
24134         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24135         the example.
24136
24137 2010-04-09  Jim Meyering  <meyering@redhat.com>
24138
24139         maint.mk: print better diagnostic when there is no $(_hv_file)
24140         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24141         announce that when $(_hv_file) (aka help-version) does not exist.
24142
24143         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24144         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24145         not try to interpret its random input bytes.  Jarno Rajahalme reported
24146         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24147         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24148         (mktempd_): Likewise, just in case.
24149
24150         ftruncate: add two years to projected module removal date: 2012
24151         * m4/ftruncate.m4: Adjust comments.
24152
24153         ftruncate: mark module as obsolete; even MinGW provides it, now
24154         * modules/ftruncate (Status): Obsolete.
24155         (Notice): Say that.
24156         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24157         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24158
24159 2010-04-08  Bruno Haible  <bruno@clisp.org>
24160
24161         Fix side effects from tests-related modules.
24162         * modules/dprintf-posix (Comment): New section.
24163         * modules/fprintf-posix (Comment): Likewise.
24164         * modules/obstack-printf-posix (Comment): Likewise.
24165         * modules/printf-posix (Comment): Likewise.
24166         * modules/snprintf-posix (Comment): Likewise.
24167         * modules/sprintf-posix (Comment): Likewise.
24168         * modules/vasnprintf-posix (Comment): Likewise.
24169         * modules/vasprintf-posix (Comment): Likewise.
24170         * modules/vdprintf-posix (Comment): Likewise.
24171         * modules/vfprintf-posix (Comment): Likewise.
24172         * modules/vprintf-posix (Comment): Likewise.
24173         * modules/vsnprintf-posix (Comment): Likewise.
24174         * modules/vsprintf-posix (Comment): Likewise.
24175         * modules/xprintf-posix (Comment): Likewise.
24176         * modules/xvasprintf-posix (Comment): Likewise.
24177         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24178         * modules/floorf-tests (Depends-on): Likewise.
24179         * modules/round-tests (Depends-on): Likewise.
24180         * modules/roundf-tests (Depends-on): Likewise.
24181         * modules/trunc-tests (Depends-on): Likewise.
24182         * modules/truncf-tests (Depends-on): Likewise.
24183         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24184         'fprintf-posix' module is not present.
24185         * tests/test-floorf2.c (check): Likewise.
24186         * tests/test-trunc2.c (check): Likewise.
24187         * tests/test-truncf2.c (check): Likewise.
24188         * tests/test-round2.c (equal): Likewise.
24189         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24190
24191 2010-04-07  Karl Berry  <karl@gnu.org>
24192
24193         * config/srclist.txt,
24194         * config/srclistvars.sh,
24195         * config/srclist-update: doc fixes.
24196
24197 2010-04-07  Jim Meyering  <meyering@redhat.com>
24198
24199         maint.mk: add a PATH crosschecking syntax-check rule
24200         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24201         Useful if you use a test like the one in help-version (coreutils,
24202         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24203         printed by prog --version.
24204
24205 2010-04-06  Bruno Haible  <bruno@clisp.org>
24206
24207         Fix link error on mingw.
24208         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24209         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24210
24211 2010-04-06  Bruno Haible  <bruno@clisp.org>
24212
24213         Assume rmdir exists.
24214         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24215
24216 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24217
24218         doc: update users.txt
24219         * users.txt: Add gcal.
24220
24221 2010-04-06  Jim Meyering  <meyering@redhat.com>
24222
24223         init.sh: simply unset TMPDIR rather than risking env -i
24224         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24225         although it probably works fine on all Unix-based systems, some
24226         systems (Cygwin?) cannot tolerate a totally cleared environment.
24227         Suggestion from Eric Blake.
24228
24229 2010-04-06  Jim Meyering  <meyering@redhat.com>
24230
24231         init.sh: portability fix: use env's POSIX-specified -i option not -u
24232         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24233         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24234
24235 2010-04-05  Bruno Haible  <bruno@clisp.org>
24236
24237         btowc: Work around Cygwin 1.7.2 bug.
24238         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24239         does not map NUL to 0.
24240         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24241
24242 2010-04-05  Bruno Haible  <bruno@clisp.org>
24243
24244         Make the multithread modules work on Cygwin 1.7.2.
24245         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24246         imported symbols can be declared weak, so that it returns "no" on
24247         Cygwin 1.7.2.
24248
24249 2010-04-05  Bruno Haible  <bruno@clisp.org>
24250
24251         Use the module 'strncat'.
24252         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24253
24254         Tests for module 'strncat'.
24255         * modules/strncat-tests: New file.
24256         * tests/test-strncat.c: New file.
24257
24258         New module 'strncat'.
24259         * lib/string.in.h (strncat): New declaration.
24260         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24261         * m4/strncat.m4: New file, based on m4/memchr.m4.
24262         * modules/strncat: New file.
24263         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24264         is declared.
24265         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24266         REPLACE_STRNCAT.
24267         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24268         REPLACE_STRNCAT.
24269         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24270         module.
24271         * tests/test-string-c++.cc: Check signature of strncat.
24272
24273 2010-04-05  Jim Meyering  <meyering@redhat.com>
24274
24275         xstrtoumax-tests: convert to use init.sh
24276         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24277         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24278         Use Exit, not exit.
24279         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24280
24281         xstrtoimax-tests: convert to use init.sh
24282         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24283         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24284         Use Exit, not exit.
24285         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24286
24287 2010-04-05  Bruno Haible  <bruno@clisp.org>
24288
24289         sys_socket: Avoid #define replacements in C++ mode.
24290         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24291         warning to the function if possible, rather than #defining the symbol
24292         to a dysfunctional alias.
24293
24294 2010-04-05  Bruno Haible  <bruno@clisp.org>
24295
24296         fseeko: Fix C++ test error on mingw.
24297         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24298         gl_FUNC_FSEEKO.
24299         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24300         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24301         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24302         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24303
24304 2010-04-05  Bruno Haible  <bruno@clisp.org>
24305
24306         duplocale: Improve test output.
24307         * tests/test-duplocale.c (main): Print reason for skipped test.
24308
24309 2010-04-05  Bruno Haible  <bruno@clisp.org>
24310
24311         Assume rmdir exists.
24312         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24313         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24314
24315 2010-04-05  Bruno Haible  <bruno@clisp.org>
24316
24317         Fix link error on Solaris 8 with cc.
24318         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24319
24320 2010-04-05  Bruno Haible  <bruno@clisp.org>
24321
24322         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24323         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24324
24325 2010-04-05  Bruno Haible  <bruno@clisp.org>
24326
24327         vasprintf: Update documentation.
24328         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24329
24330 2010-04-05  Bruno Haible  <bruno@clisp.org>
24331
24332         ptsname: Improve test.
24333         * tests/test-ptsname.c (main): Also try the various master names of BSD
24334         systems.
24335
24336 2010-04-05  Bruno Haible  <bruno@clisp.org>
24337
24338         memchr: Avoid a possible C++ test error.
24339         * lib/string.in.h (memchr): Provide declaration if function is missing.
24340         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24341         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24343         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24344
24345 2010-04-05  Bruno Haible  <bruno@clisp.org>
24346
24347         strtok_r: Improve idiom.
24348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24349         AC_LIBOBJ is used.
24350
24351 2010-04-05  Bruno Haible  <bruno@clisp.org>
24352
24353         strdup: Improve idiom.
24354         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24355         AC_LIBOBJ is used.
24356         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24357         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24358         when AC_LIBOBJ is used.
24359
24360 2010-04-05  Bruno Haible  <bruno@clisp.org>
24361
24362         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24363         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24364         don't set REPLACE_MBSINIT to 1.
24365         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24366         don't set REPLACE_MBRTOWC to 1.
24367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24368         exist, don't set REPLACE_MBSRTOWCS to 1.
24369         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24370         exist, don't set REPLACE_MBSNRTOWCS to 1.
24371         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24372         don't set REPLACE_WCRTOMB to 1.
24373         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24374         exist, don't set REPLACE_WCSRTOMBS to 1.
24375         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24376         exist, don't set REPLACE_WCSNRTOMBS to 1.
24377
24378 2010-04-05  Bruno Haible  <bruno@clisp.org>
24379
24380         ldexpl: Improve idiom.
24381         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24382         make sure to set HAVE_DECL_LDEXPL to 0.
24383
24384 2010-04-05  Jim Meyering  <meyering@redhat.com>
24385
24386         xstrtol-tests: convert to use init.sh
24387         * modules/xstrtol-tests (Files): Add tests/init.sh.
24388         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24389         Use Exit, not exit.
24390         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24391
24392         atexit-tests: convert to use init.sh
24393         * modules/atexit-tests (Files): Add tests/init.sh.
24394         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24395         Use Exit, not exit.
24396         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24397
24398         init.sh: fix typo
24399         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24400
24401         init.sh: make it easier for a test script to write to the tty, ...
24402         when using automake's parallel-tests mode.
24403         * tests/init.sh (stderr_fileno_): Define overridable variable.
24404         (warn_): New function, to use it.
24405         (fail_, skip_, framework_failure_): Use warn_.
24406
24407 2010-04-04  Bruno Haible  <bruno@clisp.org>
24408
24409         btowc: Avoid warning.
24410         * lib/btowc.c: Include <stdlib.h>.
24411         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24412
24413 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24414             Bruno Haible  <bruno@clisp.org>
24415
24416         wchar: Port to NetBSD 1.5.
24417         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24418         * lib/wctype.in.h (WEOF): Likewise.
24419
24420 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24421             Bruno Haible  <bruno@clisp.org>
24422
24423         Port extended stdio to NetBSD 1.5.
24424         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24425         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24426         older.
24427
24428 2010-04-04  Bruno Haible  <bruno@clisp.org>
24429
24430         string: Remove unused substitution.
24431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24432         HAVE_DECL_STRERROR.
24433         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24434
24435 2010-04-04  Bruno Haible  <bruno@clisp.org>
24436
24437         strtod: Avoid a possible C++ test error.
24438         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24439         set REPLACE_STRTOD.
24440
24441 2010-04-04  Bruno Haible  <bruno@clisp.org>
24442
24443         strerror: Update documentation.
24444         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24445
24446 2010-04-04  Bruno Haible  <bruno@clisp.org>
24447
24448         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24449         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24450         _GL_CXXALIAS_SYS_CAST.
24451
24452 2010-04-04  Bruno Haible  <bruno@clisp.org>
24453
24454         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24455         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24456         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24457         REPLACE_FREXPL to 1.
24458         * doc/posix-functions/frexpl.texi: Update documentation.
24459
24460 2010-04-04  Bruno Haible  <bruno@clisp.org>
24461
24462         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24463         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24464
24465 2010-04-04  Bruno Haible  <bruno@clisp.org>
24466
24467         Implement nanosleep for native Windows.
24468         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24469
24470 2010-04-04  Bruno Haible  <bruno@clisp.org>
24471
24472         math: Fix some C++ test errors on Solaris 8.
24473         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24474
24475 2010-04-04  Bruno Haible  <bruno@clisp.org>
24476
24477         math: Fix some C++ test errors on Cygwin.
24478         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24479         truncl): Provide declaration if the system does not have it.
24480         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24481         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24482         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24483         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24484         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24485         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24486         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24487         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24488         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24489         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24490         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24491         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24492         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24493         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24494         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24495         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24497         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24498         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24499         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24500         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24501         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24502
24503 2010-04-04  Bruno Haible  <bruno@clisp.org>
24504
24505         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24506         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24507         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24508         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24509         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24510         * m4/isinf.m4 (gl_ISINF): Likewise.
24511         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24512
24513 2010-04-04  Bruno Haible  <bruno@clisp.org>
24514
24515         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24516         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24517
24518 2010-04-04  Bruno Haible  <bruno@clisp.org>
24519
24520         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24521         * modules/tmpfile (configure.ac): Update.
24522
24523         tmpfile: Fix C++ test error on mingw.
24524         * lib/stdio.in.h (tmpfile): New declaration.
24525         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24526         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24527         * modules/tmpfile (Depends-on): Add stdio.
24528         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24529         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24530         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24531         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24532         REPLACE_TMPFILE.
24533         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24534
24535 2010-04-04  Bruno Haible  <bruno@clisp.org>
24536
24537         ioctl: Fix C++ test error on mingw.
24538         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24539         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24540         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24541
24542 2010-04-03  Bruno Haible  <bruno@clisp.org>
24543
24544         wcwidth: Fix C++ test error on mingw.
24545         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24547         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24548
24549 2010-04-03  Bruno Haible  <bruno@clisp.org>
24550
24551         nanosleep: Fix C++ test error on mingw.
24552         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24553         * lib/time.in.h (nanosleep): Use modern idiom.
24554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24555         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24556         REPLACE_NANOSLEEP to 1.
24557         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24558         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24559
24560 2010-04-03  Bruno Haible  <bruno@clisp.org>
24561
24562         strptime: Fix C++ test error on mingw.
24563         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24564         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24565         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24566         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24567         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24568         not REPLACE_STRPTIME.
24569         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24570         REPLACE_STRPTIME.
24571
24572 2010-04-03  Bruno Haible  <bruno@clisp.org>
24573
24574         timegm: Fix C++ test error on mingw.
24575         * lib/time.in.h (timegm): Use modern idiom.
24576         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24577         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24578         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24579         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24580
24581 2010-04-03  Bruno Haible  <bruno@clisp.org>
24582
24583         timegm: Assume declaration if function exists.
24584         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24585         if it exists. Don't clobber ac_cv_func_timegm.
24586
24587 2010-04-03  Bruno Haible  <bruno@clisp.org>
24588
24589         time_r: Fix C++ test error on mingw.
24590         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24591         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24592         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24593         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24594         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24595
24596 2010-04-03  Bruno Haible  <bruno@clisp.org>
24597
24598         time_r: Minor updates.
24599         * modules/time_r (Description): Mention the provided functions.
24600         * lib/time_r.c: Don't include <string.h>.
24601         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24602         * doc/posix-functions/localtime_r.texi: Likewise.
24603
24604 2010-04-03  Bruno Haible  <bruno@clisp.org>
24605
24606         time: Fix regression introduced on 2010-03-08.
24607         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24608         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24609
24610 2010-04-03  Jim Meyering  <meyering@redhat.com>
24611
24612         maint.mk: don't silently disable project-specific syntax-check rules
24613         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24614         that they need to convert their project-specific syntax-check rules
24615         to use the new _sc_search_regexp.
24616
24617 2010-04-03  Bruno Haible  <bruno@clisp.org>
24618
24619         fchdir: Fix regression introduced on 2010-03-08.
24620         * lib/unistd.in.h (fchdir): Fix declaration.
24621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24623         REPLACE_FCHDIR.
24624         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24625         REPLACE_FCHDIR.
24626
24627 2010-04-03  Bruno Haible  <bruno@clisp.org>
24628
24629         getpagesize: Fix C++ test error on mingw.
24630         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24631         system does not declare the function.
24632         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24633         declared.
24634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24635         HAVE_DECL_GETPAGESIZE.
24636         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24637
24638 2010-04-03  Bruno Haible  <bruno@clisp.org>
24639
24640         stdio: Make C++ tests work on mingw.
24641         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24642         does not declare the function.
24643
24644 2010-04-03  Bruno Haible  <bruno@clisp.org>
24645
24646         ftello: Fix C++ test error on mingw.
24647         * lib/stdio.in.h (ftello): Use modern idiom.
24648         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24649         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24650         is missing and that it needs to be replaced.
24651         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24653         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24654
24655 2010-04-03  Bruno Haible  <bruno@clisp.org>
24656
24657         fseeko: Fix C++ test error on mingw.
24658         * lib/stdio.in.h (fseeko): Use modern idiom.
24659         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24661         is missing and that it needs to be replaced.
24662         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24664         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24665
24666 2010-04-03  Bruno Haible  <bruno@clisp.org>
24667
24668         mkstemp: Fix C++ test error on mingw.
24669         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24670         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24671         function is missing and that it needs to be replaced.
24672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24673         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24674
24675 2010-04-03  Bruno Haible  <bruno@clisp.org>
24676
24677         stpncpy: Fix C++ test error on mingw.
24678         * lib/string.in.h (stpncpy): Use modern idiom.
24679         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24680         function is missing and that it needs to be replaced.
24681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24682         REPLACE_STPNCPY.
24683         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24684
24685 2010-04-03  Bruno Haible  <bruno@clisp.org>
24686
24687         sys_stat: Fix C++ test error on mingw.
24688         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24689         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24690
24691 2010-04-03  Bruno Haible  <bruno@clisp.org>
24692
24693         pty: Update doc.
24694         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24695
24696 2010-04-03  Bruno Haible  <bruno@clisp.org>
24697
24698         unistd: Fix C++ test error on mingw.
24699         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24700
24701 2010-04-03  Bruno Haible  <bruno@clisp.org>
24702
24703         Update doc regarding mingw.
24704         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24705         * doc/glibc-functions/login_tty.texi: Likewise.
24706         * doc/glibc-functions/forkpty.texi: Likewise.
24707
24708 2010-04-03  Bruno Haible  <bruno@clisp.org>
24709
24710         stdlib: Avoid compilation failure of c-strtold on mingw.
24711         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24712
24713 2010-04-03  Bruno Haible  <bruno@clisp.org>
24714
24715         locale: Make C++ tests work on Cygwin and mingw.
24716         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24717         cannot provide the function.
24718         Reported by Simon Josefsson.
24719
24720 2010-04-03  Bruno Haible  <bruno@clisp.org>
24721
24722         localename: Port to MacOS X 10.6.
24723         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24724         memory layout of the locales in MacOS X 10.6 as well.
24725         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24726
24727 2010-04-02  Bruno Haible  <bruno@clisp.org>
24728
24729         gnulib-tool: Ensure that long-running tests are executed last.
24730         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24731         running tests after the one for the other tests.
24732
24733 2010-04-02  Bruno Haible  <bruno@clisp.org>
24734
24735         gnulib-tool: Ensure the tests in the main directory are executed first.
24736         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24737         start with the current directory.
24738
24739 2010-04-02  Bruno Haible  <bruno@clisp.org>
24740
24741         Tests for module 'havelib', moved here from GNU gettext.
24742         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24743         modifications.
24744         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24745         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24746         with modifications.
24747         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24748         modifications.
24749         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24750         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24751         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24752         with modifications.
24753         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24754         with modifications.
24755         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24756         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24757         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24758         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24759         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24760         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24761         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24762         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24763         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24764         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24765         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24766         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24767         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24768         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24769         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24770         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24771         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24772         with modifications.
24773         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24774         with modifications.
24775         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24776         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24777         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24778         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24779         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24780         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24781         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24782         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24783         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24784         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24785         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24786         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24787         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24788         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24789         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24790         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24791         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24792         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24793         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24794         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24795         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24796         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24797         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24798         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24799         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24800         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24801         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24802         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24803         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24804         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24805         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24806         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24807         * tests/havelib/rpathx/rpathx.c: New file, from
24808         gettext/autoconf-lib-link.
24809         * tests/havelib/rpathx/Makefile.am: New file, from
24810         gettext/autoconf-lib-link.
24811         * tests/havelib/rpathx/configure.ac: New file, from
24812         gettext/autoconf-lib-link with modifications.
24813         * tests/havelib/rpathy/rpathy.c: New file, from
24814         gettext/autoconf-lib-link.
24815         * tests/havelib/rpathy/Makefile.am: New file, from
24816         gettext/autoconf-lib-link.
24817         * tests/havelib/rpathy/configure.ac: New file, from
24818         gettext/autoconf-lib-link with modifications.
24819         * tests/havelib/rpathz/rpathz.c: New file, from
24820         gettext/autoconf-lib-link.
24821         * tests/havelib/rpathz/Makefile.am: New file, from
24822         gettext/autoconf-lib-link.
24823         * tests/havelib/rpathz/configure.ac: New file, from
24824         gettext/autoconf-lib-link with modifications.
24825         * tests/havelib/rpathlx/usex.c: New file, from
24826         gettext/autoconf-lib-link.
24827         * tests/havelib/rpathlx/Makefile.am: New file, from
24828         gettext/autoconf-lib-link.
24829         * tests/havelib/rpathlx/configure.ac: New file, from
24830         gettext/autoconf-lib-link with modifications.
24831         * tests/havelib/rpathly/usey.c: New file, from
24832         gettext/autoconf-lib-link.
24833         * tests/havelib/rpathly/Makefile.am: New file, from
24834         gettext/autoconf-lib-link.
24835         * tests/havelib/rpathly/configure.ac: New file, from
24836         gettext/autoconf-lib-link with modifications.
24837         * tests/havelib/rpathlz/usez.c: New file, from
24838         gettext/autoconf-lib-link.
24839         * tests/havelib/rpathlz/Makefile.am: New file, from
24840         gettext/autoconf-lib-link.
24841         * tests/havelib/rpathlz/configure.ac: New file, from
24842         gettext/autoconf-lib-link with modifications.
24843         * tests/havelib/rpathlyx/usey.c: New file, from
24844         gettext/autoconf-lib-link.
24845         * tests/havelib/rpathlyx/Makefile.am: New file, from
24846         gettext/autoconf-lib-link.
24847         * tests/havelib/rpathlyx/configure.ac: New file, from
24848         gettext/autoconf-lib-link with modifications.
24849         * tests/havelib/rpathlzyx/usez.c: New file, from
24850         gettext/autoconf-lib-link.
24851         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24852         gettext/autoconf-lib-link.
24853         * tests/havelib/rpathlzyx/configure.ac: New file, from
24854         gettext/autoconf-lib-link with modifications.
24855         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24856         with modifications.
24857
24858 2010-04-02  Bruno Haible  <bruno@clisp.org>
24859
24860         gnulib-tool: Create distributed built sources also for the tests.
24861         * gnulib-tool (func_create_testdir): Also generate distributed built
24862         sources in the tests directory.
24863
24864 2010-04-02  Bruno Haible  <bruno@clisp.org>
24865
24866         gnulib-tool: Obey user's environment variables.
24867         * gnulib-tool (func_create_testdir): When creating built sources,
24868         respect the environment variables for autoconf, automake, etc. given by
24869         the user.
24870
24871 2010-04-02  Bruno Haible  <bruno@clisp.org>
24872
24873         gnulib-tool: Provide the value of --m4-base to modules.
24874         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24875         of gl_m4_base.
24876
24877 2010-04-02  Eric Blake  <eblake@redhat.com>
24878
24879         maint.mk: fix some fallout
24880         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24881         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24882
24883 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24884
24885         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24886         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24887         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24888         (sc_cast_of_x_alloc_return_value): Likewise.
24889         (sc_cast_of_alloca_return_value): Likewise.
24890         (sc_space_tab): Likewise.
24891         (sc_prohibit_atoi_atof): Likewise.
24892         (sc_prohibit_magic_number_exit): Likewise.
24893         (sc_error_exit_success): Likewise.
24894         (sc_file_system): Likewise.
24895         (sc_prohibit_have_config_h): Likewise.
24896         (sc_require_config_h): Likewise.
24897         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24898         (sc_obsolete_symbols): Likewise.
24899         (sc_changelog): Likewise.
24900         (sc_program_name): Likewise.
24901         (sc_the_the): Likewise.
24902         (sc_trailing_blank): Likewise.
24903         (sc_two_space_separator_in_usage): Likewise.
24904         (sc_useless_cpp_parens): Likewise.
24905         (sc_GPL_version): Likewise.
24906         (sc_GFDL_version): Likewise.
24907         (sc_texinfo_acronym): Likewise.
24908         (sc_prohibit_cvs_keyword): Likewise.
24909         (sc_prohibit_stat_st_blocks): Likewise.
24910         (sc_prohibit_S_IS_definition): Likewise.
24911         (sc_redundant_const): Likewise.
24912         (sc_makefile_TAB_only_indentation): Likewise.
24913         (sc_m4_quote_check): Likewise.
24914         (sc_makefile_path_separator_check): Likewise.
24915         (sc_copyright_check): Likewise.
24916         (sc_Wundef_boolean): Likewise.
24917         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24918
24919         maint.mk: match 0 or more whitespace-before-function-call '('
24920         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24921         that have zero or two-and-more spaces between the function name
24922         and the open parenthesis.
24923         (sc_error_message_warn_fatal): Likewise.
24924         (sc_error_message_uppercase): Likewise.
24925         (sc_error_message_period): Likewise.
24926
24927 2010-03-31  Eric Blake  <eblake@redhat.com>
24928
24929         maint.mk: check for [ as well as test
24930         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24931         Based on a libvirt report by Matthias Bolte.
24932
24933         gnumakefile: don't squelch _version output
24934         * top/GNUmakefile (_version): Create one-shot dependency rather
24935         than using $(shell) when version must be regenerated.
24936         (_autoreconf): Run verbosely, by default.
24937
24938         sys_time: avoid compiler warnings
24939         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24940         unconditional, fixing regression from 2010-03-29.
24941         Reported by Simon Josefsson.
24942
24943 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24944
24945         maint.mk: s/_header_without_use/_sc_header_without_use/
24946         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24947         (sc_prohibit_assert_without_use): Use the new name.
24948         (sc_prohibit_close_stream_without_use): Likewise.
24949         (sc_prohibit_getopt_without_use): Likewise.
24950         (sc_prohibit_quotearg_without_use): Likewise.
24951         (sc_prohibit_quote_without_use): Likewise.
24952         (sc_prohibit_long_options_without_use): Likewise.
24953         (sc_prohibit_inttostr_without_use): Likewise.
24954         (sc_prohibit_ignore_value_without_use): Likewise.
24955         (sc_prohibit_error_without_use): Likewise.
24956         (sc_prohibit_xalloc_without_use): Likewise.
24957         (sc_prohibit_hash_without_use): Likewise.
24958         (sc_prohibit_hash_pjw_without_use): Likewise.
24959         (sc_prohibit_safe_read_without_use): Likewise.
24960         (sc_prohibit_argmatch_without_use): Likewise.
24961         (sc_prohibit_canonicalize_without_use): Likewise.
24962         (sc_prohibit_root_dev_ino_without_use): Likewise.
24963         (sc_prohibit_openat_without_use): Likewise.
24964         (sc_prohibit_c_ctype_without_use): Likewise.
24965         (sc_prohibit_signal_without_use): Likewise.
24966         (sc_prohibit_intprops_without_use): Likewise.
24967
24968 2010-03-30  Eric Blake  <eblake@redhat.com>
24969
24970         maint: improve module indicators
24971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24972         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24973         columns, and avoid extra macro expansion.
24974
24975         fdopendir: work around FreeBSD bug
24976         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24977         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24978         * modules/dirent (Makefile.am): Substitute it.
24979         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24980         declaration.
24981         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24982         fix.
24983         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24984
24985 2010-03-29  Bruno Haible  <bruno@clisp.org>
24986
24987         Emit #pragma system_header after the inclusion guard, not before.
24988         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24989         guard that spans the entire file, not before. This enables an
24990         optimization in GCC's preprocessor.
24991         * lib/ctype.in.h: Likewise.
24992         * lib/dirent.in.h: Likewise.
24993         * lib/errno.in.h: Likewise.
24994         * lib/float.in.h: Likewise.
24995         * lib/getopt.in.h: Likewise.
24996         * lib/iconv.in.h: Likewise.
24997         * lib/langinfo.in.h: Likewise.
24998         * lib/locale.in.h: Likewise.
24999         * lib/math.in.h: Likewise.
25000         * lib/netdb.in.h: Likewise.
25001         * lib/netinet_in.in.h: Likewise.
25002         * lib/pty.in.h: Likewise.
25003         * lib/sched.in.h: Likewise.
25004         * lib/se-selinux.in.h: Likewise.
25005         * lib/search.in.h: Likewise.
25006         * lib/spawn.in.h: Likewise.
25007         * lib/stdarg.in.h: Likewise.
25008         * lib/stdint.in.h: Likewise.
25009         * lib/string.in.h: Likewise.
25010         * lib/strings.in.h: Likewise.
25011         * lib/sys_file.in.h: Likewise.
25012         * lib/sys_ioctl.in.h: Likewise.
25013         * lib/sys_time.in.h: Likewise.
25014         * lib/sys_times.in.h: Likewise.
25015         * lib/sys_utsname.in.h: Likewise.
25016         * lib/sys_wait.in.h: Likewise.
25017         * lib/sysexits.in.h: Likewise.
25018         * lib/wctype.in.h: Likewise.
25019
25020 2010-03-28  James Youngman  <jay@gnu.org>
25021
25022         save-cwd: don't leak a file descriptor when the caller execs.
25023         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25024         saved file descriptor.
25025         * modules/save-cwd (Depends-on): Depend on cloexec.
25026
25027 2010-03-29  Bruno Haible  <bruno@clisp.org>
25028
25029         Remove vestiges of fts-lgpl module.
25030         * lib/fts_.h: Assume GNULIB_FTS is 1.
25031         * lib/fts.c: Likewise.
25032         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25033
25034 2010-03-28  Bruno Haible  <bruno@clisp.org>
25035
25036         Fix definition of tests witness macro.
25037         * gnulib-tool (func_import): Fix definition of witness macro.
25038
25039 2010-03-28  Bruno Haible  <bruno@clisp.org>
25040
25041         Fix ioctl's protoype on glibc systems.
25042         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25043         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25044         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25045         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25046         signature. If not, arrange to replace the ioctl function.
25047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25048         REPLACE_IOCTL.
25049         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25050         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25051         Reported by Ludovic Courtès <ludo@gnu.org>.
25052
25053 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25054
25055         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25056         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25057         made it so grep -r --include=GLOB* ... did not work.
25058
25059 2010-03-26  Jim Meyering  <meyering@redhat.com>
25060             Eric Blake  <eblake@redhat.com>
25061
25062         maint.mk: prohibit use of test's -o and -a operators
25063         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25064
25065 2010-03-28  Bruno Haible  <bruno@clisp.org>
25066
25067         Remove unused GNULIB_XYZ macro definitions.
25068         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25069         invocation.
25070
25071 2010-03-28  Bruno Haible  <bruno@clisp.org>
25072
25073         Mark privileged tests modules.
25074         * modules/idpriv-drop-tests (Status): New section.
25075         * modules/idpriv-droptemp-tests (Status): New section.
25076
25077 2010-03-28  Bruno Haible  <bruno@clisp.org>
25078
25079         Split C++ tests into separate tests modules.
25080         * modules/dirent-c++-tests: New file, extracted from
25081         modules/dirent-tests.
25082         * modules/dirent-tests: Depend on it.
25083         * modules/fcntl-h-c++-tests: New file, extracted from
25084         modules/fcntl-h-tests.
25085         * modules/fcntl-h-tests: Depend on it.
25086         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25087         * modules/glob-tests: Depend on it.
25088         * modules/iconv-h-c++-tests: New file, extracted from
25089         modules/iconv-h-tests.
25090         * modules/iconv-h-tests: Depend on it.
25091         * modules/langinfo-c++-tests: New file, extracted from
25092         modules/langinfo-tests.
25093         * modules/langinfo-tests: Depend on it.
25094         * modules/locale-c++-tests: New file, extracted from
25095         modules/locale-tests.
25096         * modules/locale-tests: Depend on it.
25097         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25098         * modules/math-tests: Depend on it.
25099         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25100         * modules/pty-tests: Depend on it.
25101         * modules/search-c++-tests: New file, extracted from
25102         modules/search-tests.
25103         * modules/search-tests: Depend on it.
25104         * modules/signal-c++-tests: New file, extracted from
25105         modules/signal-tests.
25106         * modules/signal-tests: Depend on it.
25107         * modules/spawn-c++-tests: New file, extracted from
25108         modules/spawn-tests.
25109         * modules/spawn-tests: Depend on it.
25110         * modules/stdio-c++-tests: New file, extracted from
25111         modules/stdio-tests.
25112         * modules/stdio-tests: Depend on it.
25113         * modules/stdlib-c++-tests: New file, extracted from
25114         modules/stdlib-tests.
25115         * modules/stdlib-tests: Depend on it.
25116         * modules/string-c++-tests: New file, extracted from
25117         modules/string-tests.
25118         * modules/string-tests: Depend on it.
25119         * modules/sys_ioctl-c++-tests: New file, extracted from
25120         modules/sys_ioctl-tests.
25121         * modules/sys_ioctl-tests: Depend on it.
25122         * modules/sys_select-c++-tests: New file, extracted from
25123         modules/sys_select-tests.
25124         * modules/sys_select-tests: Depend on it.
25125         * modules/sys_socket-c++-tests: New file, extracted from
25126         modules/sys_socket-tests.
25127         * modules/sys_socket-tests: Depend on it.
25128         * modules/sys_stat-c++-tests: New file, extracted from
25129         modules/sys_stat-tests.
25130         * modules/sys_stat-tests: Depend on it.
25131         * modules/sys_time-c++-tests: New file, extracted from
25132         modules/sys_time-tests.
25133         * modules/sys_time-tests: Depend on it.
25134         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25135         * modules/time-tests: Depend on it.
25136         * modules/unistd-c++-tests: New file, extracted from
25137         modules/unistd-tests.
25138         * modules/unistd-tests: Depend on it.
25139         * modules/wchar-c++-tests: New file, extracted from
25140         modules/wchar-tests.
25141         * modules/wchar-tests: Depend on it.
25142         * modules/wctype-c++-tests: New file, extracted from
25143         modules/wctype-tests.
25144         * modules/wctype-tests: Depend on it.
25145         Reported by Simon Josefsson.
25146
25147 2010-03-28  Bruno Haible  <bruno@clisp.org>
25148
25149         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25150         * gnulib-tool (func_exists_module): New function, extracted from
25151         func_verify_module.
25152         (func_verify_module): Use it.
25153         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25154         'foo' only if 'foo' exists.
25155         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25156         module.
25157
25158 2010-03-28  Bruno Haible  <bruno@clisp.org>
25159
25160         gnulib-tool: Add support for special categories of tests.
25161         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25162         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25163         (func_usage): Document them.
25164         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25165         inc_unportable_tests, inc_all_tests): New variables.
25166         (func_acceptable): Consider these variables.
25167         (func_modules_transitive_closure): Make it work when the 'Status' field
25168         consists of multiple words.
25169         (func_import): Store and restore the values of inc_cxx_tests,
25170         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25171         inc_all_tests in gnulib-comp.m4.
25172         (func_create_testdir): Set inc_all_tests to true.
25173         * doc/gnulib.texi (Extra tests modules): New section.
25174         Suggested by Jim Meyering.
25175
25176 2010-03-28  Bruno Haible  <bruno@clisp.org>
25177
25178         ansi-c++-opt: Allow turning off the C++ build by default.
25179         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25180         gl_CXX_CHOICE_DEFAULT_NO is defined.
25181         Requested by Eric Blake.
25182
25183 2010-03-28  Bruno Haible  <bruno@clisp.org>
25184
25185         unistd: Avoid #define replacements in C++ mode.
25186         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25187         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25188         setsockopt, shutdown, select): In C++, attach a warning to the function
25189         if possible, rather than #defining the symbol to a dysfunctional alias.
25190         Reported by John W. Eaton <jwe@gnu.org>.
25191
25192 2010-03-28  Bruno Haible  <bruno@clisp.org>
25193
25194         Fix link errors on mingw.
25195         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25196         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25197         $(LIBSOCKET).
25198         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25199         $(LIBSOCKET).
25200
25201 2010-03-28  Bruno Haible  <bruno@clisp.org>
25202             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25203
25204         lib-ignore: Determine different options for different compilers.
25205         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25206         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25207         Add comments.
25208         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25209         * NEWS: Mention the change.
25210
25211 2010-03-27  Bruno Haible  <bruno@clisp.org>
25212
25213         Remove unused GNULIB_XYZ macro definitions.
25214         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25215         * modules/fseek (configure.ac): Likewise.
25216         * modules/ioctl (configure.ac): Likewise.
25217         * modules/open (configure.ac): Likewise.
25218         * modules/stdlib-safer (configure.ac): Likewise.
25219
25220 2010-03-27  Bruno Haible  <bruno@clisp.org>
25221
25222         Add a remark about certain modules.
25223         * modules/malloc (Comment): New section.
25224         * modules/realloc (Comment): Likewise.
25225         * modules/sigpipe (Comment): Likewise.
25226
25227 2010-03-27  Bruno Haible  <bruno@clisp.org>
25228
25229         Resolve conflict between the two kinds of module indicators.
25230         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25231         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25232         * modules/canonicalize (configure.ac): Invoke
25233         gl_MODULE_INDICATOR_FOR_TESTS.
25234         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25235         GNULIB_XYZ.
25236         * tests/test-dirent-c++.cc: Likewise.
25237         * tests/test-dirent-safer.c: Likewise.
25238         * tests/test-dup2.c: Likewise.
25239         * tests/test-fchdir.c: Likewise.
25240         * tests/test-fcntl-h-c++.cc: Likewise.
25241         * tests/test-getopt.c: Likewise.
25242         * tests/test-getopt.h: Likewise.
25243         * tests/test-langinfo-c++.cc: Likewise.
25244         * tests/test-locale-c++.cc: Likewise.
25245         * tests/test-math-c++.cc: Likewise.
25246         * tests/test-pty-c++.cc: Likewise.
25247         * tests/test-search-c++.cc: Likewise.
25248         * tests/test-signal-c++.cc: Likewise.
25249         * tests/test-spawn-c++.cc: Likewise.
25250         * tests/test-stdio-c++.cc: Likewise.
25251         * tests/test-stdlib-c++.cc: Likewise.
25252         * tests/test-string-c++.cc: Likewise.
25253         * tests/test-sys_ioctl-c++.cc: Likewise.
25254         * tests/test-sys_select-c++.cc: Likewise.
25255         * tests/test-sys_socket-c++.cc: Likewise.
25256         * tests/test-sys_stat-c++.cc: Likewise.
25257         * tests/test-sys_time-c++.cc: Likewise.
25258         * tests/test-time-c++.cc: Likewise.
25259         * tests/test-unistd-c++.cc: Likewise.
25260         * tests/test-wchar-c++.cc: Likewise.
25261         * tests/uninorm/test-u8-nfc.c: Likewise.
25262         * tests/uninorm/test-u8-nfd.c: Likewise.
25263         * tests/uninorm/test-u8-nfkc.c: Likewise.
25264         * tests/uninorm/test-u8-nfkd.c: Likewise.
25265         * tests/uninorm/test-u16-nfc.c: Likewise.
25266         * tests/uninorm/test-u16-nfd.c: Likewise.
25267         * tests/uninorm/test-u16-nfkc.c: Likewise.
25268         * tests/uninorm/test-u16-nfkd.c: Likewise.
25269         * tests/uninorm/test-u32-nfc.c: Likewise.
25270         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25271         * tests/uninorm/test-u32-nfd.c: Likewise.
25272         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25273         * tests/uninorm/test-u32-nfkc.c: Likewise.
25274         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25275         * tests/uninorm/test-u32-nfkd.c: Likewise.
25276         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25277         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25278
25279 2010-03-27  Bruno Haible  <bruno@clisp.org>
25280
25281         Distinguish two kinds of module indicators.
25282         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25283         gl_MODULE_INDICATOR.
25284         (gl_MODULE_INDICATOR): New macro.
25285         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25286         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25287         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25288         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25289         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25290         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25291         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25292         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25293         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25294         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25295         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25296         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25298         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25299         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25300         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25301         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25302         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25303         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25304         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25305         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25306         * modules/cloexec (configure.ac): Likewise.
25307         * modules/getopt-gnu (configure.ac): Likewise.
25308         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25309         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25310         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25311         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25312
25313 2010-03-27  Bruno Haible  <bruno@clisp.org>
25314
25315         New module description field 'Comment'.
25316         * gnulib-tool: New option --extract-comment.
25317         (func_usage): Document it.
25318         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25319         (func_get_comment): New function.
25320         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25321
25322 2010-03-27  Bruno Haible  <bruno@clisp.org>
25323
25324         Addendum to 2010-02-07 commit.
25325         * gnulib-tool (func_usage): Document --extract-applicability option.
25326
25327 2010-03-27  Bruno Haible  <bruno@clisp.org>
25328
25329         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25330         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25331         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25332         rather than link errors.
25333
25334 2010-03-27  Bruno Haible  <bruno@clisp.org>
25335
25336         Avoid side effects from tests-related modules on the compilation of lib.
25337         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25338         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25339         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25340         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25341         macro.
25342         (func_import): Define a witness macro. Assign it a value that depends
25343         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25344         tests-related modules.
25345         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25346         Reported by Jim Meyering.
25347
25348 2010-03-27  Bruno Haible  <bruno@clisp.org>
25349
25350         Factorize common .m4 code.
25351         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25352         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25353         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25354         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25355         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25356         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25357         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25358         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25359         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25360         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25361         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25362         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25363         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25364         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25365         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25366         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25367         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25368         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25370         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25371         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25372         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25373         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25374         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25375         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25376         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25377         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25379         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25380         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25381         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25382         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25383
25384 2010-03-27  Bruno Haible  <bruno@clisp.org>
25385
25386         Fix a compilation error on Cygwin with g++ >= 4.3.
25387         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25388         if it is undefined or if we alias it to chmod.
25389         (lstat): Don't warn about the use of this function if it is undefined
25390         or if we alias it to stat.
25391         Reported by Simon Josefsson.
25392
25393 2010-03-27  Bruno Haible  <bruno@clisp.org>
25394
25395         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25396         * modules/getlogin (configure.ac): Update.
25397
25398         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25399         * modules/getlogin_r (configure.ac): Update.
25400
25401         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25403         * modules/inet_ntop (configure.ac): Update.
25404
25405         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25406         * modules/inet_pton (configure.ac): Update.
25407
25408         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25409         * modules/mbslen (configure.ac): Update.
25410
25411         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25412         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25413         * modules/forkpty (configure.ac): Update.
25414         * modules/openpty (configure.ac): Update.
25415
25416 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25417
25418         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25419         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25420
25421 2010-03-25  Eric Blake  <eblake@redhat.com>
25422
25423         maint: use pragma consistently across replacement headers
25424         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25425         * lib/dirent.in.h (system_header): Likewise.
25426         * lib/errno.in.h (system_header): Likewise.
25427         * lib/float.in.h (system_header): Likewise.
25428         * lib/getopt.in.h (system_header): Likewise.
25429         * lib/iconv.in.h (system_header): Likewise.
25430         * lib/inttypes.in.h (system_header): Likewise.
25431         * lib/langinfo.in.h (system_header): Likewise.
25432         * lib/locale.in.h (system_header): Likewise.
25433         * lib/math.in.h (system_header): Likewise.
25434         * lib/netdb.in.h (system_header): Likewise.
25435         * lib/netinet_in.in.h (system_header): Likewise.
25436         * lib/pty.in.h (system_header): Likewise.
25437         * lib/sched.in.h (system_header): Likewise.
25438         * lib/se-selinux.in.h (system_header): Likewise.
25439         * lib/search.in.h (system_header): Likewise.
25440         * lib/spawn.in.h (system_header): Likewise.
25441         * lib/stdarg.in.h (system_header): Likewise.
25442         * lib/stdint.in.h (system_header): Likewise.
25443         * lib/string.in.h (system_header): Likewise.
25444         * lib/strings.in.h (system_header): Likewise.
25445         * lib/sys_file.in.h (system_header): Likewise.
25446         * lib/sys_ioctl.in.h (system_header): Likewise.
25447         * lib/sys_socket.in.h (system_header): Likewise.
25448         * lib/sys_times.in.h (system_header): Likewise.
25449         * lib/sys_utsname.in.h (system_header): Likewise.
25450         * lib/sys_wait.in.h (system_header): Likewise.
25451         * lib/sysexits.in.h (system_header): Likewise.
25452         * lib/unistd.in.h (system_header): Likewise.
25453         * lib/wctype.in.h (system_header): Likewise.
25454
25455         arpa/inet: fix mingw compilation warning
25456         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25457         Reported by Matthew Bolte.
25458
25459 2010-03-25  Bruno Haible  <bruno@clisp.org>
25460
25461         Avoid collision between gnulib wrapper and libintl wrapper.
25462         * lib/printf.c (printf): Don't define if a printf wrapper is already
25463         defined in intl/printf.c.
25464         Reported by Michel Boaventura <michel@michelboaventura.com>.
25465
25466 2010-03-25  Bruno Haible  <bruno@clisp.org>
25467
25468         Use ANSI C.
25469         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25470
25471 2010-03-25  Bruno Haible  <bruno@clisp.org>
25472
25473         Minor formatting changes.
25474         * lib/acosl.c: Insert space before function argument list.
25475         * lib/argz.c: Likewise.
25476         * lib/asinl.c: Likewise.
25477         * lib/expl.c: Likewise.
25478         * lib/gen-uni-tables.c: Likewise.
25479         * lib/gettext.h: Likewise.
25480         * lib/glthread/lock.h: Likewise.
25481         * lib/tanl.c: Likewise.
25482         * lib/uniname/uniname.c: Likewise.
25483         * tests/test-idpriv-drop.c: Likewise.
25484         * tests/test-idpriv-droptemp.c: Likewise.
25485         * tests/test-lock.c: Likewise.
25486         * tests/test-tls.c: Likewise.
25487         * lib/argp-help.c: Insert space before function-like macro argument
25488         list.
25489         * lib/memcmp.c: Likewise.
25490         * tests/test-base64.c: Likewise.
25491         * lib/localename.c: Insert space before sizeof's argument list.
25492         * lib/safe-alloc.h: Likewise.
25493         * lib/file-set.h: Insert space before macro argument list.
25494         * tests/test-argp.c: Likewise.
25495         * lib/argp-namefrob.h: Insert space before function parameter list.
25496         * lib/getaddrinfo.c: Likewise.
25497         * lib/netdb.in.h: Likewise.
25498         * lib/parse-duration.h: Likewise.
25499         * lib/parse-duration.c: Likewise.
25500         * lib/poll.c: Likewise.
25501         * lib/select.c: Likewise.
25502         * lib/trim.h: Likewise.
25503         * tests/test-usleep.c: Likewise.
25504         * lib/ldexpl.c: Insert space before function parameter list and before
25505         function argument list.
25506         * lib/logl.c: Likewise.
25507         * lib/sqrtl.c: Likewise.
25508         * lib/trim.c: Likewise.
25509         * lib/cosl.c: Use GNU style indentation. Insert space before function
25510         argument list.
25511         * lib/sinl.c: Likewise.
25512         * lib/tsearch.c: Insert space after 'for'.
25513         Reported by Jim Meyering.
25514
25515 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25516
25517         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25518         config header before grepping, as it's not present before
25519         autoreconf/configure are run.  Reported by Simon Josefsson.
25520
25521 2010-03-23  Bruno Haible  <bruno@clisp.org>
25522
25523         pt_chown: Make it work with automake < 1.11.
25524         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25525         Reported by Simon Josefsson.
25526
25527 2010-03-23  Bruno Haible  <bruno@clisp.org>
25528
25529         pt_chown: Don't depend on GPLed modules.
25530         * lib/pt_chown.c: Don't include idpriv.h.
25531         (main): Don't drop privileges.
25532         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25533         Reported by Simon Josefsson.
25534
25535 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25536
25537         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25538         suggestions from karl@freefriends.org (Karl Berry).
25539
25540 2010-03-22  Eric Blake  <eblake@redhat.com>
25541
25542         gethostname: further tweaks
25543         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25544         are overriding gethostname.
25545         Suggested by Bruno Haible.
25546
25547 2010-03-21  Bruno Haible  <bruno@clisp.org>
25548
25549         Fix comments.
25550         * lib/forkpty.c (rpl_forkpty): Fix comment.
25551         * lib/openpty.c (rpl_openpty): Likewise.
25552         Reported by Eric Blake.
25553
25554 2010-03-22  Eric Blake  <eblake@redhat.com>
25555
25556         gethostname: fix build on mingw
25557         * lib/unistd.in.h (includes): Work around fact that mingw
25558         <winsock2.h> re-includes <unistd.h>, by avoiding any
25559         redeclarations if we are being included by <winsock2.h>.
25560         Reported by Matthias Bolte.
25561
25562 2010-03-21  Bruno Haible  <bruno@clisp.org>
25563
25564         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25565         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25566         modifications.
25567         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25568         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25569         provide the replacement.
25570         * modules/forkpty (Depends-on): Add openpty, login_tty.
25571         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25572         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25573         * doc/glibc-functions/forkpty.texi: More supported platforms.
25574         * config/srclist.txt: Add forkpty.c (commented).
25575
25576 2010-03-21  Bruno Haible  <bruno@clisp.org>
25577
25578         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25579         (Makefile.am): Verify that PTY_LIB is defined.
25580
25581         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25582
25583 2010-03-21  Bruno Haible  <bruno@clisp.org>
25584
25585         Tests for module 'login_tty'.
25586         * modules/login_tty-tests: New file.
25587         * tests/test-login_tty.c: New file.
25588
25589         New module 'login_tty'.
25590         * lib/login_tty.c: New file.
25591         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25592         * modules/login_tty: New file.
25593         * doc/glibc-functions/login_tty.texi: Mention the new module.
25594
25595 2010-03-21  Bruno Haible  <bruno@clisp.org>
25596
25597         login_tty: Documentation.
25598         * doc/glibc-functions/login_tty.texi: New file.
25599         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25600
25601 2010-03-21  Bruno Haible  <bruno@clisp.org>
25602
25603         pty: Consistent macro naming.
25604         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25605         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25606         * modules/pty (configure.ac): Update.
25607
25608 2010-03-21  Bruno Haible  <bruno@clisp.org>
25609
25610         Tests for openpty: Make stricter.
25611         * tests/test-openpty.c (main): Add test of canonical processing and
25612         erase.
25613         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25614
25615         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25616         * lib/openpty.c (openpty): New replacement function.
25617         * lib/pty.in.h: Include <termios.h>.
25618         (openpty): Update declaration. Add comments.
25619         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25620         is not declared, arrange to provide the replacement. Check for _getpty
25621         and posix_openpt.
25622         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25623         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25624         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25625         * modules/pty-tests (test_pty_c___LDADD): New variable.
25626         * doc/glibc-functions/openpty.texi: More supported platforms.
25627
25628 2010-03-21  Bruno Haible  <bruno@clisp.org>
25629
25630         setenv: Tweaks.
25631         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25632         the test program.
25633         * doc/posix-functions/setenv.texi: Update platforms list.
25634
25635 2010-03-21  Bruno Haible  <bruno@clisp.org>
25636
25637         New module 'unlockpt'.
25638         * lib/unlockpt.c: New file, from glibc with modifications.
25639         * m4/unlockpt.m4: New file.
25640         * modules/unlockpt: New file.
25641         * lib/stdlib.in.h (unlockpt): New declaration.
25642         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25643         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25644         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25645         HAVE_UNLOCKPT.
25646         * doc/posix-functions/unlockpt.texi: Mention the new module.
25647         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25648         * config/srclist.txt: Add unlockpt.c (commented).
25649
25650 2010-03-21  Jim Meyering  <meyering@redhat.com>
25651
25652         maint.mk: prohibit inclusion of "intprops.h" without use
25653         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25654
25655 2010-03-21  Bruno Haible  <bruno@clisp.org>
25656
25657         New module 'grantpt'.
25658         * lib/grantpt.c: New file, from glibc with modifications.
25659         * m4/grantpt.m4: New file.
25660         * modules/grantpt: New file.
25661         * lib/stdlib.in.h (grantpt): New declaration.
25662         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25663         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25664         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25665         HAVE_GRANTPT.
25666         * doc/posix-functions/grantpt.texi: Mention the new module.
25667         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25668         * config/srclist.txt: Add grantpt.c (commented).
25669
25670 2010-03-21  Bruno Haible  <bruno@clisp.org>
25671
25672         New module 'pt_chown'.
25673         * lib/pt_chown.c: New file, from glibc with modifications.
25674         * lib/pty-private.h: New file, from glibc with modifications.
25675         * modules/pt_chown: New file.
25676         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25677
25678 2010-03-21  Bruno Haible  <bruno@clisp.org>
25679
25680         Tests for module 'ptsname'.
25681         * modules/ptsname-tests: New file.
25682         * tests/test-ptsname.c: New file.
25683
25684         New module 'ptsname'.
25685         * lib/ptsname.c: New file, from glibc with modifications.
25686         * m4/ptsname.m4: New file.
25687         * modules/ptsname: New file.
25688         * lib/stdlib.in.h (ptsname): New declaration.
25689         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25690         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25691         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25692         HAVE_PTSNAME.
25693         * doc/posix-functions/ptsname.texi: Mention the new module.
25694         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25695         * config/srclist.txt: Add ptsname.c (commented).
25696
25697 2010-03-21  Bruno Haible  <bruno@clisp.org>
25698
25699         Tests for module 'ttyname_r'.
25700         * modules/ttyname_r-tests: New file.
25701         * tests/test-ttyname_r.c: New file.
25702
25703         New module 'ttyname_r'.
25704         * lib/ttyname_r.c: New file.
25705         * m4/ttyname_r.m4: New file.
25706         * modules/ttyname_r: New file.
25707         * lib/unistd.in.h (ttyname_r): New declaration.
25708         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25709         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25710         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25711         HAVE_TTYNAME_R.
25712         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25713         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25714
25715 2010-03-20  Bruno Haible  <bruno@clisp.org>
25716
25717         signal: Undefine macro definitions in C++ mode.
25718         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25719         sigfillset): Undefine macro definitions from the system header in C++
25720         mode.
25721         Reported by John W. Eaton <jwe@gnu.org>.
25722
25723 2010-03-20  Bruno Haible  <bruno@clisp.org>
25724
25725         Ensure no #include statements inside extern "C" { ... }.
25726         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25727         contain #include statements.
25728         * lib/time.in.h: Likewise.
25729
25730 2010-03-20  Bruno Haible  <bruno@clisp.org>
25731
25732         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25733         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25734         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25735         Reported by John W. Eaton <jwe@gnu.org>.
25736
25737 2010-03-20  Bruno Haible  <bruno@clisp.org>
25738
25739         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25740         Reported by Jim Meyering.
25741
25742 2010-03-20  Bruno Haible  <bruno@clisp.org>
25743
25744         pipe: Set errno upon failure.
25745         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25746         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25747         errno value in error message.
25748
25749 2010-03-20  Bruno Haible  <bruno@clisp.org>
25750             Jim Meyering  <meyering@redhat.com>
25751
25752         lchown: Avoid "unused variable" warning.
25753         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25754
25755 2010-03-20  Bruno Haible  <bruno@clisp.org>
25756
25757         Work around unlink() bug on MacOS X 10.5.6.
25758         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25759         attempting to unlink a parent directory.
25760         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25761         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25762         activate for the replacement function.
25763         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25764
25765 2010-03-20  Bruno Haible  <bruno@clisp.org>
25766
25767         Fix link errors on Solaris 8.
25768         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25769         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25770
25771 2010-03-19  Jim Meyering  <meyering@redhat.com>
25772
25773         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25774         The _LIBC implementation of build_range_exp correctly honors the
25775         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25776         However, the non-_LIBC implementation would ignore that syntax-bit
25777         flag and return REG_ERANGE unconditionally.
25778         This change makes it honor that flag.
25779         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25780         Make two pointer parameters "const".
25781         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25782         (parse_bracket_exp): Update caller.
25783
25784         regex.m4: correct the reversed range endpoint ([b-a]) test
25785         * m4/regex.m4: When requiring that [b-a] evoke failure,
25786         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25787         test pass once again for x86-based systems.
25788
25789 2010-03-19  Bruno Haible  <bruno@clisp.org>
25790
25791         scandir: Fix link error on Solaris 8.
25792         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25793         macros.
25794
25795 2010-03-19  Bruno Haible  <bruno@clisp.org>
25796
25797         getusershell: Fix documentation.
25798         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25799         module.
25800         * doc/glibc-functions/setusershell.texi: Likewise.
25801
25802         getusershell: Provide declaration, missing on Solaris 9.
25803         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25804         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25805         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25806         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25808         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25809         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25810         HAVE_GETUSERSHELL.
25811         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25812
25813 2010-03-19  Bruno Haible  <bruno@clisp.org>
25814
25815         wctype: Provide iswblank function.
25816         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25817         exists and is fine.
25818         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25819         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25820         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25821         * doc/posix-functions/iswblank.texi: Update.
25822
25823 2010-03-19  Bruno Haible  <bruno@clisp.org>
25824
25825         Tests of module 'pty' in C++ mode.
25826         * modules/pty-tests: New file.
25827         * tests/test-pty-c++.cc: New file.
25828         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25829
25830 2010-03-19  Eric Blake  <eblake@redhat.com>
25831
25832         logb: fix documentation
25833         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25834         1.5 declaration bug.
25835
25836         forkpty, openpty: prefer glibc's const-safe prototype
25837         * lib/forkpty.c (rpl_forkpty): New file.
25838         * lib/openpty.c (rpl_openpty): Likewise.
25839         * modules/forkpty (Files): Distribute it.
25840         * modules/openpty (Files): Likewise.
25841         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25842         check...
25843         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25844         replacement for for non-const BSD signature.
25845         * modules/pty (Makefile.am): Substitute witnesses.
25846         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25847         * tests/test-forkpty.c: Update signature check.
25848         * tests/test-openpty.c: Likewise.
25849         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25850         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25851
25852         forkpty, openpty: split functions into new modules
25853         * modules/pty (Makefile.am): Substitute new witnesses.
25854         (Libraries): Move library detection...
25855         * modules/forkpty: ...into new module.
25856         * modules/openpty: Another new module.
25857         * modules/pty-tests: Rename and split...
25858         * modules/forkpty-tests: ...to this...
25859         * modules/openpty-tests: ...and this.
25860         * tests/test-pty.c: Rename and split...
25861         * tests/test-forkpty.c: ...to this...
25862         * tests/test-openpty.c: ...and this.
25863         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25864         (gl_PTY): Split library searching...
25865         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25866         (gl_FORKPTY, gl_OPENPTY): New macros.
25867         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25868         * NEWS: Mention the split.
25869         * MODULES.html.sh (Misc): Document the modules.
25870         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25871         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25872
25873         pty: improve replacement header
25874         * lib/pty.in.h: New file.
25875         * modules/pty (Files): Ship it.
25876         (Makefile.am): Always build replacement.
25877         * m4/pty.m4: Rename...
25878         * m4/pty_h.m4: ...to this.
25879         (gl_PTY): Modernize setting of witness macros; update check of
25880         forkpty to take proper advantage of cache.
25881         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25882
25883         getopt: avoid compiler warning
25884         * lib/getopt.c (attribute_hidden): Remove unused macro.
25885
25886 2010-03-18  Bruno Haible  <bruno@clisp.org>
25887
25888         Fix link errors on Solaris 8.
25889         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25890         * modules/search-tests (test_search_c___LDADD): Likewise.
25891         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25892         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25893         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25894         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25895         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25896         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25897         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25898
25899 2010-03-18  Bruno Haible  <bruno@clisp.org>
25900
25901         Fix bug introduced on 2010-03-14.
25902         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25903         (gl_SPAWN_H): Require it.
25904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25905         Reported by Simon Josefsson.
25906
25907 2010-03-18  Bruno Haible  <bruno@clisp.org>
25908
25909         Fix typo introduced on 2009-12-31.
25910         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25911         posix_spawn_file_actions_adddup2.
25912
25913 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25914         and Eric Blake  <eblake@redhat.com>
25915
25916         test-vc-list-files-git: make more robust
25917         * tests/test-vc-list-files-git.sh: Unset problematic environment
25918         variables.  Chain commands together.
25919
25920 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25921
25922         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25923         `AC_CHECK_DECL' invocation.
25924
25925 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25926
25927         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25928         appears before executable statements. Suggested by Petr Sumbera
25929         <Petr.Sumbera@Sun.COM>.
25930
25931 2010-03-14  Bruno Haible  <bruno@clisp.org>
25932
25933         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25934         portability problems. Instead use a simpler test.
25935         (main): Check that invalid arguments are rejected only on Linux.
25936
25937 2010-03-14  Bruno Haible  <bruno@clisp.org>
25938
25939         Fix bug introduced on 2009-12-31.
25940         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25941         gl_PREREQ_SYS_H_WINSOCK2 always.
25942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25943         SYS_SOCKET_H variable.
25944         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25945         Update comments.
25946         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25947         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25948         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25949         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25950         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25951
25952 2010-03-14  Bruno Haible  <bruno@clisp.org>
25953
25954         Fix values returned by sinl, cosl.
25955         * lib/trigl.h: Add specification comments.
25956         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25957         that combines the values from the precomputed table with the values of
25958         the Chebyshev polynomials.
25959
25960 2010-03-14  Bruno Haible  <bruno@clisp.org>
25961
25962         Fix compilation error when modules 'posix_spawn[p]' are not used.
25963         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25964         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25965
25966 2010-03-14  Bruno Haible  <bruno@clisp.org>
25967
25968         Fix compilation error on mingw when module 'time_r' is not used.
25969         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25970         is 1.
25971         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25972         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25973         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25974         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25975
25976 2010-03-14  Bruno Haible  <bruno@clisp.org>
25977
25978         Fix compilation error with Sun C.
25979         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25980         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25981         instead of GCC specific ULONG_LONG_MAX.
25982         * lib/xstrtoll.c: Likewise.
25983         * lib/xstrtoull.c: Likewise.
25984
25985 2010-03-13  Bruno Haible  <bruno@clisp.org>
25986
25987         Allow the user to disable C++ code and tests.
25988         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25989         (gl_PROG_ANSI_CXX): Require it.
25990
25991 2010-03-13  Bruno Haible  <bruno@clisp.org>
25992
25993         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25994         cases.
25995
25996 2010-03-13  Bruno Haible  <bruno@clisp.org>
25997
25998         Test that gnulib does not break the standard C++ headers.
25999         * tests/test-locale-c++2.cc: New file.
26000         * modules/locale-tests (Files): Add it.
26001         (Makefile.am): Compile it for test-locale-c++.
26002         * tests/test-math-c++2.cc: New file.
26003         * modules/math-tests (Files): Add it.
26004         (Makefile.am): Compile it for test-math-c++.
26005         * tests/test-signal-c++2.cc: New file.
26006         * modules/signal-tests (Files): Add it.
26007         (Makefile.am): Compile it for test-signal-c++.
26008         * tests/test-stdio-c++2.cc: New file.
26009         * modules/stdio-tests (Files): Add it.
26010         (Makefile.am): Compile it for test-stdio-c++.
26011         * tests/test-stdlib-c++2.cc: New file.
26012         * modules/stdlib-tests (Files): Add it.
26013         (Makefile.am): Compile it for test-stdlib-c++.
26014         * tests/test-string-c++2.cc: New file.
26015         * modules/string-tests (Files): Add it.
26016         (Makefile.am): Compile it for test-string-c++.
26017         * tests/test-time-c++2.cc: New file.
26018         * modules/time-tests (Files): Add it.
26019         (Makefile.am): Compile it for test-time-c++.
26020         Reported by John W. Eaton <jwe@gnu.org>.
26021
26022 2010-03-13  Bruno Haible  <bruno@clisp.org>
26023
26024         * gnulib-tool (func_usage): Clarify which options are available for
26025         --create-testdir and --create-megatestdir.
26026
26027 2010-03-13  Bruno Haible  <bruno@clisp.org>
26028
26029         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26030         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26031         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26032         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26033         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26034         when appropriate.
26035         Reported by Jim Meyering.
26036
26037 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26038
26039         * gnulib-tool (func_import): Explain origin of code.
26040
26041 2010-03-12  Bruno Haible  <bruno@clisp.org>
26042
26043         Fix problem with automake's definition of CXXLINK.
26044         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26045         Reported by Simon Josefsson and Ludovic Courtès.
26046
26047 2010-03-12  Bruno Haible  <bruno@clisp.org>
26048
26049         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26050         stable releases.
26051
26052 2010-03-11  Bruno Haible  <bruno@clisp.org>
26053
26054         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26055         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26056         whether the system provides one variant or multiple variants of the
26057         function.
26058         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26059         C++ compilers.
26060         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26061         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26062         Reported by Jim Meyering.
26063
26064 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26065
26066         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26067
26068 2010-03-08  Bruno Haible  <bruno@clisp.org>
26069
26070         gnulib-tool: Add support for --libtool in --create-testdir.
26071         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26072         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26073
26074 2010-03-08  Eric Blake  <eblake@redhat.com>
26075
26076         gnulib-tool.texi: mention possibility of git submodule
26077         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26078         submodules.
26079         * doc/.gitignore: Ignore another generated file.
26080
26081 2010-03-08  Karl Berry  <karl@gnu.org>
26082
26083         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26084         of committing gnulib files while skipping others.
26085
26086 2010-03-07  Bruno Haible  <bruno@clisp.org>
26087
26088         Tests of module 'wctype' in C++ mode.
26089         * tests/test-wctype-c++.cc: New file.
26090         * modules/wctype-tests (Files): Add it and tests/signature.h.
26091         (Depends-on): Add ansi-c++-opt.
26092         (Makefile.am): Arrange to compile and run test-wctype-c++.
26093
26094         Tests of module 'wchar' in C++ mode.
26095         * tests/test-wchar-c++.cc: New file.
26096         * modules/wchar-tests (Files): Add it and tests/signature.h.
26097         (Depends-on): Add ansi-c++-opt.
26098         (Makefile.am): Arrange to compile and run test-wchar-c++.
26099         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26100         gl_MODULE_INDICATOR.
26101
26102         Tests of module 'unistd' in C++ mode.
26103         * tests/test-unistd-c++.cc: New file.
26104         * modules/unistd-tests (Files): Add it and tests/signature.h.
26105         (Depends-on): Add ansi-c++-opt.
26106         (Makefile.am): Arrange to compile and run test-unistd-c++.
26107         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26108         gl_MODULE_INDICATOR.
26109
26110         Tests of module 'time' in C++ mode.
26111         * tests/test-time-c++.cc: New file.
26112         * modules/time-tests (Files): Add it and tests/signature.h.
26113         (Depends-on): Add ansi-c++-opt.
26114         (Makefile.am): Arrange to compile and run test-time-c++.
26115         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26116
26117         Tests of module 'sys_time' in C++ mode.
26118         * tests/test-sys_time-c++.cc: New file.
26119         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26120         (Depends-on): Add ansi-c++-opt.
26121         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26122         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26123         gl_MODULE_INDICATOR.
26124
26125         Tests of module 'sys_stat' in C++ mode.
26126         * tests/test-sys_stat-c++.cc: New file.
26127         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26128         (Depends-on): Add ansi-c++-opt.
26129         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26130         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26131         gl_MODULE_INDICATOR.
26132
26133         Tests of module 'sys_socket' in C++ mode.
26134         * tests/test-sys_socket-c++.cc: New file.
26135         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26136         (Depends-on): Add ansi-c++-opt.
26137         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26138         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26139         gl_MODULE_INDICATOR.
26140
26141         Tests of module 'sys_select' in C++ mode.
26142         * tests/test-sys_select-c++.cc: New file.
26143         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26144         (Depends-on): Add ansi-c++-opt.
26145         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26146         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26147         gl_MODULE_INDICATOR.
26148
26149         Tests of module 'sys_ioctl' in C++ mode.
26150         * tests/test-sys_ioctl-c++.cc: New file.
26151         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26152         (Depends-on): Add ansi-c++-opt.
26153         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26154         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26155         gl_MODULE_INDICATOR.
26156
26157         Tests of module 'string' in C++ mode.
26158         * tests/test-string-c++.cc: New file.
26159         * modules/string-tests (Files): Add it and tests/signature.h.
26160         (Depends-on): Add ansi-c++-opt.
26161         (Makefile.am): Arrange to compile and run test-string-c++.
26162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26163         gl_MODULE_INDICATOR.
26164
26165         Tests of module 'stdlib' in C++ mode.
26166         * tests/test-stdlib-c++.cc: New file.
26167         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26168         (Depends-on): Add ansi-c++-opt.
26169         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26170         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26171         gl_MODULE_INDICATOR.
26172
26173         Tests of module 'stdio' in C++ mode.
26174         * tests/test-stdio-c++.cc: New file.
26175         * modules/stdio-tests (Files): Add it and tests/signature.h.
26176         (Depends-on): Add ansi-c++-opt.
26177         (Makefile.am): Arrange to compile and run test-stdio-c++.
26178         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26179         gl_MODULE_INDICATOR.
26180
26181         Tests of module 'spawn' in C++ mode.
26182         * tests/test-spawn-c++.cc: New file.
26183         * modules/spawn-tests (Files): Add it and tests/signature.h.
26184         (Depends-on): Add ansi-c++-opt.
26185         (Makefile.am): Arrange to compile and run test-spawn-c++.
26186         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26187         gl_MODULE_INDICATOR.
26188
26189         Tests of module 'signal' in C++ mode.
26190         * tests/test-signal-c++.cc: New file.
26191         * modules/signal-tests (Files): Add it and tests/signature.h.
26192         (Depends-on): Add ansi-c++-opt.
26193         (Makefile.am): Arrange to compile and run test-signal-c++.
26194         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26195         gl_MODULE_INDICATOR.
26196
26197         Tests of module 'search' in C++ mode.
26198         * tests/test-search-c++.cc: New file.
26199         * modules/search-tests (Files): Add it and tests/signature.h.
26200         (Depends-on): Add ansi-c++-opt.
26201         (Makefile.am): Arrange to compile and run test-search-c++.
26202         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26203         gl_MODULE_INDICATOR.
26204
26205         Tests of module 'math' in C++ mode.
26206         * tests/test-math-c++.cc: New file.
26207         * modules/math-tests (Files): Add it and tests/signature.h.
26208         (Depends-on): Add ansi-c++-opt.
26209         (Makefile.am): Arrange to compile and run test-math-c++.
26210         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26211
26212         Tests of module 'locale' in C++ mode.
26213         * tests/test-locale-c++.cc: New file.
26214         * modules/locale-tests (Files): Add it and tests/signature.h.
26215         (Depends-on): Add ansi-c++-opt.
26216         (Makefile.am): Arrange to compile and run test-locale-c++.
26217         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26218         gl_MODULE_INDICATOR.
26219
26220         Tests of module 'langinfo' in C++ mode.
26221         * tests/test-langinfo-c++.cc: New file.
26222         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26223         (Depends-on): Add ansi-c++-opt.
26224         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26225         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26226         gl_MODULE_INDICATOR.
26227
26228         Tests of module 'iconv-h' in C++ mode.
26229         * tests/test-iconv-h-c++.cc: New file.
26230         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26231         (Depends-on): Add ansi-c++-opt.
26232         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26233
26234         Tests of module 'glob' in C++ mode.
26235         * tests/test-glob-c++.cc: New file.
26236         * modules/glob-tests (Files): Add it.
26237         (Depends-on): Add ansi-c++-opt.
26238         (Makefile.am): Arrange to compile and run test-glob-c++.
26239
26240         Tests of module 'fcntl-h' in C++ mode.
26241         * tests/test-fcntl-h-c++.cc: New file.
26242         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26243         (Depends-on): Add ansi-c++-opt.
26244         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26245         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26246         gl_MODULE_INDICATOR.
26247
26248         Tests of module 'dirent' in C++ mode.
26249         * tests/test-dirent-c++.cc: New file.
26250         * modules/dirent-tests (Files): Add it and tests/signature.h.
26251         (Depends-on): Add ansi-c++-opt.
26252         (Makefile.am): Arrange to compile and run test-dirent-c++.
26253         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26254         gl_MODULE_INDICATOR.
26255
26256         New module 'ansi-c++-opt'.
26257         * modules/ansi-c++-opt: New file.
26258         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26259
26260         Document C++ namespace mode.
26261         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26262
26263         wctype: Avoid #define replacements in C++ mode.
26264         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26265         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26266         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26267         In C++, define a namespaced alias symbol.
26268         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26269         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26270         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26271         rule.
26272
26273         wchar: Avoid #define replacements in C++ mode.
26274         * lib/wchar.in.h: Include c++defs.h.
26275         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26276         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26277         symbol.
26278         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26279         * modules/wchar (Depends-on): Add c++defs.
26280         (Makefile.am): Update wchar.h rule.
26281
26282         unistd: Avoid #define replacements in C++ mode.
26283         * lib/unistd.in.h: Include c++defs.h.
26284         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26285         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26286         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26287         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26288         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26289         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26290         symbol.
26291         (environ): Update.
26292         * modules/unistd (Depends-on): Add c++defs.
26293         (Makefile.am): Update unistd.h rule.
26294
26295         time: Avoid #define replacements in C++ mode.
26296         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26297         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26298         define a namespaced alias symbol.
26299         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26300         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26301         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26302         * modules/time (Depends-on): Add c++defs, warn-on-use.
26303         (Makefile.am): Update time.h rule.
26304         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26305         * modules/nanosleep (configure.ac): Likewise.
26306         * modules/strptime (configure.ac): Likewise.
26307         * modules/timegm (configure.ac): Likewise.
26308
26309         sys_time: Avoid #define replacements in C++ mode.
26310         * lib/sys_time.in.h: Include c++defs.h.
26311         (gettimeofday): In C++, define a namespaced alias symbol.
26312         * modules/sys_time (Depends-on): Add c++defs.
26313         (Makefile.am): Update sys/time.h rule.
26314
26315         sys_stat: Avoid #define replacements in C++ mode.
26316         * lib/sys_stat.in.h: Include c++defs.h.
26317         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26318         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26319         namespaced alias symbol.
26320         In C++, define a namespaced alias symbol.
26321         * modules/sys_stat (Depends-on): Add c++defs.
26322         (Makefile.am): Update sys/stat.h rule.
26323
26324         sys_socket: Avoid #define replacements in C++ mode.
26325         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26326         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26327         definitions also when the system has a <sys/socket.h>.
26328         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26329         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26330         In C++, define a namespaced alias symbol.
26331         * modules/sys_socket (Depends-on): Add c++defs.
26332         (Makefile.am): Update sys/socket.h rule.
26333
26334         sys_select: Avoid #define replacements in C++ mode.
26335         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26336         definitions also when the system has a <sys/select.h>.
26337         (select): In C++, define a namespaced alias symbol.
26338         * modules/sys_select (Depends-on): Add c++defs.
26339         (Makefile.am): Update sys/select.h rule.
26340
26341         sys_ioctl: Avoid #define replacements in C++ mode.
26342         * lib/sys_ioctl.in.h: Include c++defs.h.
26343         (ioctl): In C++, define a namespaced alias symbol.
26344         * modules/sys_ioctl (Depends-on): Add c++defs.
26345         (Makefile.am): Update sys/ioctl.h rule.
26346
26347         string: Avoid #define replacements in C++ mode.
26348         * lib/string.in.h: Include c++defs.h.
26349         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26350         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26351         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26352         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26353         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26354         * modules/string (Depends-on): Add c++defs.
26355         (Makefile.am): Update string.h rule.
26356
26357         stdlib: Avoid #define replacements in C++ mode.
26358         * lib/stdlib.in.h: Include c++defs.h.
26359         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26360         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26361         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26362         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26363         symbol.
26364         * modules/stdlib (Depends-on): Add c++defs.
26365         (Makefile.am): Update stdlib.h rule.
26366
26367         stdio: Avoid #define replacements in C++ mode.
26368         * lib/stdio.in.h: Include c++defs.h.
26369         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26370         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26371         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26372         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26373         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26374         namespaced alias symbol.
26375         * modules/stdio (Depends-on): Add c++defs.
26376         (Makefile.am): Update stdio.h rule.
26377
26378         spawn: Avoid #define replacements in C++ mode.
26379         * lib/spawn.in.h: Include c++defs.h.
26380         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26381         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26382         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26383         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26384         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26385         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26386         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26387         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26388         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26389         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26390         In C++, define a namespaced alias symbol.
26391         * modules/spawn (Depends-on): Add c++defs.
26392         (Makefile.am): Update spawn.h rule.
26393
26394         signal: Avoid #define replacements in C++ mode.
26395         * lib/signal.in.h: Include c++defs.h.
26396         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26397         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26398         namespaced alias symbol.
26399         * modules/signal (Depends-on): Add c++defs.
26400         (Makefile.am): Update signal.h rule.
26401
26402         search: Avoid #define replacements in C++ mode.
26403         * lib/search.in.h: Include c++defs.h.
26404         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26405         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26406         symbol.
26407         * modules/search (Depends-on): Add c++defs.
26408         (Makefile.am): Update search.h rule.
26409
26410         math: Avoid #define replacements in C++ mode.
26411         * lib/math.in.h: Include c++defs.h.
26412         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26413         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26414         trunc, truncl): In C++, define a namespaced alias symbol.
26415         * modules/math (Depends-on): Add c++defs.
26416         (Makefile.am): Update math.h rule.
26417
26418         locale: Avoid #define replacements in C++ mode.
26419         * lib/locale.in.h: Include c++defs.h.
26420         (duplocale): In C++, define a namespaced alias symbol.
26421         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26422         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26423         * modules/locale (Depends-on): Add c++defs.
26424         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26425
26426         langinfo: Avoid #define replacements in C++ mode.
26427         * lib/langinfo.in.h: Include c++defs.h.
26428         (nl_langinfo): In C++, define a namespaced alias symbol.
26429         * modules/langinfo (Depends-on): Add c++defs.
26430         (Makefile.am): Update langinfo.h rule.
26431
26432         iconv-h: Avoid #define replacements in C++ mode.
26433         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26434         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26435         symbol.
26436         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26437         whenever iconv is present.
26438         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26439         (Makefile.am): Update iconv.h rule.
26440
26441         glob: Avoid #define replacements in C++ mode.
26442         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26443         (_gl_glob_errfunc_fn): New type.
26444         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26445         symbol.
26446         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26447         (Makefile.am): Update glob.h rule.
26448
26449         fcntl-h: Avoid #define replacements in C++ mode.
26450         * lib/fcntl.in.h: Include c++defs.h.
26451         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26452         * modules/fcntl-h (Depends-on): Add c++defs.
26453         (Makefile.am): Update fcntl.h rule.
26454
26455         dirent: Avoid #define replacements in C++ mode.
26456         * lib/dirent.in.h: Include c++defs.h.
26457         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26458         namespaced alias symbol.
26459         (dirfd): Update declaration.
26460         * modules/dirent (Depends-on): Add c++defs.
26461         (Makefile.am): Update dirent.h rule.
26462
26463         ctype: Make it usable in C++ code.
26464         * lib/ctype.in.h: Include c++defs.h.
26465         (isblank): Declare as extern "C".
26466         * modules/ctype (Depends-on): Add c++defs.
26467         (Makefile.am): Update ctype.h rule.
26468
26469         New module 'c++defs'.
26470         * modules/c++defs: New file.
26471         * build-aux/c++defs.h: New file.
26472         Reported by John W. Eaton <jwe@gnu.org>.
26473
26474 2010-03-07  Bruno Haible  <bruno@clisp.org>
26475
26476         logb: Provide missing declaration for Cygwin.
26477         * lib/math.in.h (logb): New declaration.
26478         * m4/logb.m4: New file.
26479         * modules/logb (Files): Add m4/logb.m4.
26480         (Depends-on): Add math.
26481         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26482         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26484         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26485         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26486
26487 2010-03-07  Bruno Haible  <bruno@clisp.org>
26488
26489         Fix test-cond link error.
26490         * tests/test-cond.c: Include <stdio.h>.
26491
26492 2010-03-07  Bruno Haible  <bruno@clisp.org>
26493
26494         Fix test-dirent-safer link error.
26495         * modules/dirent-safer-tests (Makefile.am): Define
26496         test_dirent_safer_LDADD.
26497
26498 2010-03-07  Bruno Haible  <bruno@clisp.org>
26499
26500         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26501         among default module list.
26502
26503 2010-03-07  Bruno Haible  <bruno@clisp.org>
26504
26505         Fix link error on platforms with GNU libiconv.
26506         * modules/unistr/u8-strcoll-tests (Makefile): Define
26507         test_u8_strcoll_LDADD.
26508         * modules/unistr/u16-strcoll-tests (Makefile): Define
26509         test_u16_strcoll_LDADD.
26510         * modules/unistr/u32-strcoll-tests (Makefile): Define
26511         test_u32_strcoll_LDADD.
26512
26513 2010-03-07  Bruno Haible  <bruno@clisp.org>
26514
26515         Use POSIX declarations for socket functions.
26516         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26517         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26518         rpl_sendto): Change declaration to match POSIX.
26519         * lib/connect.c (rpl_connect): Likewise.
26520         * lib/accept.c (rpl_accept): Likewise.
26521         * lib/bind.c (rpl_bind): Likewise.
26522         * lib/getpeername.c (rpl_getpeername): Likewise.
26523         * lib/getsockname.c (rpl_getsockname): Likewise.
26524         * lib/recv.c (rpl_recv): Likewise.
26525         * lib/send.c (rpl_send): Likewise.
26526         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26527         * lib/sendto.c (rpl_sendto): Likewise.
26528
26529 2010-03-06  Bruno Haible  <bruno@clisp.org>
26530
26531         Clarify access, euidaccess, faccessat.
26532         * doc/posix-functions/faccessat.texi: Mention security problem under
26533         "Other problems", not "Portability problems".
26534         * doc/posix-functions/access.texi: Likewise. Mention a related security
26535         problem.
26536         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26537         * lib/euidaccess.c: Add comments about platforms.
26538         * lib/unistd.in.h (access, euidaccess): Add warnings.
26539
26540 2010-03-07  Bruno Haible  <bruno@clisp.org>
26541
26542         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26543         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26544         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26545         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26546         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26547         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26548         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26549         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26550         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26551         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26552         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26553         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26554         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26555         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26556         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26557         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26558         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26559         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26560         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26561         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26562         Likewise.
26563         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26564         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26565         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26566         Likewise.
26567         * tests/test-spawn.c (main): Make it work when
26568         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26569
26570 2010-03-07  Bruno Haible  <bruno@clisp.org>
26571
26572         Fix incorrect Makefile.am generation in German locale.
26573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26574         Execute sed command with character range in C locale.
26575
26576 2010-03-06  Bruno Haible  <bruno@clisp.org>
26577
26578         Tests for module 'iconv-h'.
26579         * modules/iconv-h-tests: New file.
26580         * tests/test-iconv-h.c: New file.
26581
26582         New module 'iconv-h'.
26583         * modules/iconv-h: New file.
26584         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26585         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26586         (configure.ac): Remove gl_ICONV_H.
26587         (Makefile.am): Remove rule for iconv.h.
26588
26589 2010-03-06  Bruno Haible  <bruno@clisp.org>
26590
26591         More consistent naming of *.m4 files.
26592         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26593         * modules/wctype (Files): Update.
26594
26595         More consistent naming of *.m4 files.
26596         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26597         * modules/wchar (Files): Update.
26598
26599 2010-03-06  Jim Meyering  <meyering@redhat.com>
26600
26601         euidaccess: relax license to LGPLv2+
26602         * modules/euidaccess (License): Relax to LGPLv2+.
26603
26604 2010-03-06  Bruno Haible  <bruno@clisp.org>
26605
26606         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26607         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26608         (Makefile.am): Augment lib_SOURCES instead.
26609
26610 2010-03-04  Jim Meyering  <meyering@redhat.com>
26611
26612         utime: remove obsolete module
26613         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26614         unnecessary for years, and has been marked as obsolete for 10 months.
26615         * modules/utime: Remove file.
26616         * lib/utime.c: Remove file.
26617         * m4/utime.m4: Remove file.
26618         * m4/utimes-null.m4: Remove file.
26619         * doc/posix-functions/utime.texi (utime): Remove reference to
26620         the module.  Move the sole "fixed by gnulib" item into the
26621         "problems not fixed by Gnulib" list.
26622         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26623
26624 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26625
26626         * modules/exit (License): Relax license to LGPLv2+.
26627         (Status): Mark as obsolete.
26628         * NEWS: Mention deprecated 'exit' module.
26629         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26630         of now obsolete 'exit'.
26631
26632 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26633
26634         fts-lgpl: remove unused module
26635         * modules/fts-lgpl: Remove.
26636         * MODULES.html.sh (func_all_modules): Adjust.
26637         * check-module (find_included_lib_files): Adjust.
26638         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26639
26640 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26641
26642         copy-acl: enhance Solaris ACL error handling
26643         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26644         * lib/set-mode-acl.c (qset_acl): Likewise.
26645
26646 2010-03-02  Bruno Haible  <bruno@clisp.org>
26647
26648         spawn: Don't override the system defined values on FreeBSD 8.
26649         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26650         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26651         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26652         if HAVE_POSIX_SPAWN is 1.
26653         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26654
26655 2010-03-01  Bruno Haible  <bruno@clisp.org>
26656
26657         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26658         regarding Automake.
26659
26660 2010-02-25  Bruno Haible  <bruno@clisp.org>
26661
26662         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26663         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26664         setting, not afterwards.
26665         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26666
26667 2010-02-24  Eric Blake  <eblake@redhat.com>
26668
26669         bootstrap, git-version-gen: use timestamp
26670         * build-aux/git-version-gen (scriptversion): Force UTC.
26671         * build-aux/bootstrap (scriptversion): New variable.
26672
26673         bootstrap: allow older git
26674         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26675         older than 1.6.4.  Requested by the libvirt project.
26676
26677 2010-02-23  Eric Blake  <eblake@redhat.com>
26678
26679         warn-on-use: work with old autoconf
26680         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26681         AS_VAR semantics of autoconf 2.60.
26682         Reported by Bruno Haible.
26683
26684         bootstrap: improve some comments
26685         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26686         clarification comments.
26687
26688         gettimeofday: provide correct function
26689         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26690         when replacement is declared, otherwise provide gettimeofday.
26691         Reported by Michael Goffioul.
26692
26693 2010-02-23  Jim Meyering  <meyering@redhat.com>
26694
26695         lib-ignore: relax license to "unlimited", not LGPLv2+
26696         * modules/lib-ignore (License): Relax to "unlimited".
26697
26698 2010-02-23  Jim Meyering  <meyering@redhat.com>
26699
26700         lib-ignore: relax license to LGPLv2+
26701         * modules/lib-ignore (License): Relax to LGPLv2+.
26702
26703 2010-02-22  Eric Blake  <eblake@redhat.com>
26704
26705         lseek: avoid bash 3.2 broken pipe bug
26706         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26707         warning from bash 3.2.
26708         Reported by Ben Pfaff, with analysis from Bruno Haible.
26709
26710         bootstrap: support non-FSF copyright holder
26711         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26712         bootstrap.conf override of COPYRIGHT_HOLDER.
26713         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26714
26715         bootstrap: interoperate with gettext 0.14.1
26716         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26717
26718         bootstrap: allow for alternate submodule location
26719         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26720         hardcoding submodule location.
26721         (gnulib_mk): Allow direct use of Makefile.am.
26722
26723         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26724         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26725         rather than reconfiguring where the submodule points.
26726
26727         gettimeofday: restore support for platforms that lack function
26728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26729         replacement if function is missing.
26730         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26731         * modules/sys_time (Makefile.am): Substitute it.
26732         * lib/sys_time.in.h (gettimeofday): Check it.
26733         Reported by Michael Goffioul.
26734
26735 2010-02-21  Bruno Haible  <bruno@clisp.org>
26736
26737         * lib/stdio.in.h (obstack_printf): Fix typo.
26738
26739 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26740
26741         vc-list-files: use bzr ls's -R option
26742         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26743         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26744
26745 2010-02-21  Jim Meyering  <meyering@redhat.com>
26746
26747         init.sh: fix EXEEXT shims to work also for names like test-prog
26748         * tests/init.sh: Re-exec a better shell, when needed.
26749         If the current shell lacks support for posix $(...), an init.sh-using
26750         test will now try to find a shell that supports that.  If EXEEXT is
26751         nonempty, we also require support for hyphen-in-alias-name and shell
26752         substitutions like ${var#glob}.  Failure to find such a shell results
26753         in a skipped test.
26754
26755 2010-02-21  Bruno Haible  <bruno@clisp.org>
26756
26757         Really work around around "broken pipe" error message from bash 3.2.
26758         * gnulib-tool (func_reset_sigpipe): Remove function.
26759         (echo): In bash 3.2, define to a function that uses printf.
26760         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26761
26762 2010-02-20  Bruno Haible  <bruno@clisp.org>
26763
26764         Restore support for automake 1.9.6 with autoconf 2.61.
26765         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26766         Reported by James Youngman <jay@gnu.org>.
26767
26768 2010-02-20  Bruno Haible  <bruno@clisp.org>
26769
26770         Improve *printf warning condition.
26771         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26772         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26773         and the function is overridden due to SIGPIPE emulation.
26774
26775 2010-02-20  Bruno Haible  <bruno@clisp.org>
26776
26777         * lib/stdio.in.h: Tweak comments.
26778
26779 2010-02-19  Bruno Haible  <bruno@clisp.org>
26780
26781         Make it easier to find modules. New gnulib-tool option '--find'.
26782         * gnulib-tool: New option --find.
26783         (func_usage): Document it.
26784         (func_sanitize_modulelist): New function, extracted from
26785         func_all_modules.
26786         (func_all_modules): Invoke it.
26787         * doc/gnulib-tool.texi (Which modules?): New node.
26788
26789 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26790
26791         * lib/sys_select.in.h: Provide select replacement even if
26792         sys/select.h exists on a system, for Interix.
26793
26794 2010-02-18  Jim Meyering  <meyering@redhat.com>
26795
26796         init.sh: don't use $(...) just yet
26797         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26798         to accommodate e.g., Solaris' /bin/sh.
26799
26800 2010-02-17  Bruno Haible  <bruno@clisp.org>
26801
26802         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26803         Reported by Ludovic Courtès <ludo@gnu.org>.
26804
26805 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26806
26807         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26808         linking with -lintl.
26809
26810 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26811
26812         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26813         if not provided by the system's netdb.h.  Reported by
26814         ludo@gnu.org (Ludovic Courtès).
26815
26816 2010-02-15  Jim Meyering  <meyering@redhat.com>
26817
26818         init.sh: improve portability and efficiency
26819         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26820         "dummy" in a for loop.
26821         Use '!', not '^' to select the complement of a character set used
26822         in a "case" statement.
26823         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26824         Suggestions from Eric Blake.
26825
26826         init.sh: automatically accommodate programs with the .exe suffix
26827         Automatically arrange for an invocation of "prog" to execute the
26828         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26829         may use the simpler "prog", yet still work when built on a system
26830         that requires specifying the added suffix.
26831         Do this by constructing a function named "prog" that invokes
26832         "prog.exe" for each .exe file in selected directories.
26833         * tests/init.sh (find_exe_basenames_): New function.
26834         (create_exe_shim_functions_): New function.
26835         (path_prepend_): Use it.
26836
26837         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26838         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26839         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26840
26841 2010-02-14  Jim Meyering  <meyering@redhat.com>
26842
26843         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26844         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26845         (sc_prohibit_hash_pjw_without_use): New rule.
26846
26847         maint.mk: allow the default upload destination dir to be overridden
26848         * top/maint.mk (upload_dest_dir_): Define with a default that
26849         preserves the status quo.
26850         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26851         Reported by Peter Simons.
26852
26853         maint.mk: prohibit inclusion of "hash.h" without_use
26854         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26855
26856 2010-02-10  Jim Meyering  <meyering@redhat.com>
26857
26858         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26859         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26860
26861 2010-02-09  Eric Blake  <ebb9@byu.net>
26862         and Bruno Haible  <bruno@clisp.org>
26863
26864         obstack-printf-posix: ensure declaration
26865         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26866         extracted from gl_FUNC_OBSTACK_PRINTF.
26867         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26868         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26869         Likewise.
26870         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26871         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26872         0.
26873
26874 2010-02-08  Bruno Haible  <bruno@clisp.org>
26875
26876         gnulib-tool: Fix typo in 2010-02-07 commit.
26877         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26878         Reported by Eric Blake.
26879
26880 2010-02-07  Bruno Haible  <bruno@clisp.org>
26881
26882         gnulib-tool: Fix up caching patches.
26883         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26884         option --no-cache. Use associative arrays when supported by the shell.
26885         (sed_comments): New variable.
26886         (modcache): Renamed from do_cache.
26887         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26888         abbreviate unnecessarily.
26889         (have_associative): New variable.
26890         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26891         way also for ksh and zsh.
26892         (func_init_sed_convert_to_cache_statements): New function, extracted
26893         from func_cache_lookup_module. Add support for associative arrays.
26894         Don't set the c_MODULE_cached variable here. Ignore all lines before
26895         the first field header. Remove only the final newline, not all trailing
26896         newlines. Support empty fields correctly. Limit the use of 'eval' to
26897         assignments.
26898         (func_get_description, func_get_status, func_get_notice,
26899         func_get_applicability, func_get_filelist, func_get_dependencies,
26900         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26901         func_get_automake_snippet, func_get_include_directive,
26902         func_get_link_directive, func_get_license, func_get_maintainer):
26903         Update documentation. List the unoptimized code first. Add support for
26904         associative arrays. Limit the use of 'eval' to assignments.
26905         (func_get_applicability): Undo stylistic pessimisations.
26906         (func_get_automake_snippet, func_get_include_directive): Reduce code
26907         duplication.
26908         (func_modules_transitive_closure, func_modules_add_dummy,
26909         func_modules_notice, func_modules_to_filelist, func_add_file,
26910         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26911         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26912         func_create_testdir, func_create_megatestdir): Update documentation.
26913
26914 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26915
26916         * gnulib-tool (func_cache_lookup_module): Store the module name
26917         belonging to the cache variable; error out if two different
26918         module names map to the same cache variable name.
26919
26920 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26921
26922         gnulib-tool: Make caching optional.
26923         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26924         Update matching short versions of --no-changelog.
26925         (func_usage): Update.
26926         (sed_extract_cache_prog): Renamed from ...
26927         (sed_extract_prog): ... this; revert to old extraction script.
26928         (func_get_description, func_get_status)
26929         (func_get_notice, func_get_applicability, func_get_filelist)
26930         (func_get_dependencies, func_get_autoconf_early_snippet)
26931         (func_get_autoconf_snippet, func_get_automake_snippet)
26932         (func_get_include_directive, func_get_link_directive)
26933         (func_get_license, func_get_maintainer): If $do_cache is false,
26934         use old, non-caching extraction scripts.
26935         Suggestion by Bruno Haible.
26936
26937 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26938
26939         gnulib-tool: cache module metainformation.
26940         * gnulib-tool (sed_extract_prog): Match newline before each
26941         header, and rewrite header to a shell variable suffix.
26942         (func_cache_var, func_cache_lookup_module): New functions,
26943         to turn a module name into a cache variable prefix, and to
26944         look up and cache module metainformation.
26945         (func_get_description, func_get_status)
26946         (func_get_notice, func_get_applicability, func_get_filelist)
26947         (func_get_dependencies, func_get_autoconf_early_snippet)
26948         (func_get_autoconf_snippet, func_get_automake_snippet)
26949         (func_get_include_directive, func_get_link_directive)
26950         (func_get_license, func_get_maintainer): Use
26951         func_cache_lookup_module.
26952
26953 2010-02-07  Bruno Haible  <bruno@clisp.org>
26954
26955         fnctl: Fix missing dependency.
26956         * modules/fcntl (Depends-on): Add getdtablesize.
26957         Reported by John W. Eaton <jwe@gnu.org>.
26958
26959 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26960
26961         Argp: fix recognition of short alias options.
26962
26963         * lib/argp-parse.c (convert_options): Fix improper use of
26964         `|' between character values.
26965         * tests/test-argp.c (group1_option): New alias option
26966         --read (-r).
26967         (group1_parser): Special handling for 'r'.
26968         (test15): New test case.
26969         (test_fun): Add test15.
26970         * tests/test-argp-2.sh: Update expected --help and --usage
26971         outputs.
26972
26973 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26974
26975         * tests/test-argp.c: Fix indentation.
26976
26977 2010-02-04  Eric Blake  <ebb9@byu.net>
26978
26979         gettimeofday: expose type of second argument
26980         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26981         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26982         * tests/test-gettimeofday.c: Use it to silence warning.
26983         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26984         the issue.
26985
26986 2010-02-03  Jim Meyering  <meyering@redhat.com>
26987
26988         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26989         * lib/regcomp.c (TYPE_SIGNED): Define.
26990         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26991
26992         regcomp.c: avoid a new -Wshadow warning
26993         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26994
26995 2010-02-01  Jim Meyering  <meyering@redhat.com>
26996
26997         removing useless parentheses in cpp #define directives
26998         For motivation, see commit c0221df4, "define STREQ(a,b)
26999         consistently, removing useless parentheses"
27000         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27001         * lib/mountlist.c (MNT_IGNORE): Likewise.
27002         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27003
27004 2010-02-01  Eric Blake  <ebb9@byu.net>
27005
27006         sys_time: use link-warning
27007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27008         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27009         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27010         * modules/sys_time (Depends-on): Add warn-on-use.
27011         (Makefile.am): Always build replacement.
27012         (configure.ac): Update substitutions.
27013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27014         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27015         bother with SYS_TIME_H.
27016         * modules/gettimeofday (configure.ac): Declare indicator.
27017         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27018         in use.
27019
27020         closein-tests: silence compiler warning
27021         * tests/test-closein.c (main): Ignore fread result.
27022         * modules/closein-tests (Depends-on): Add ignore-value.
27023
27024         tests: silence warning about system return
27025         * tests/test-areadlink-with-size.c (main): Ignore system result.
27026         * tests/test-areadlink.c (main): Likewise.
27027         * tests/test-areadlinkat-with-size.c (main): Likewise.
27028         * tests/test-areadlinkat.c (main): Likewise.
27029         * tests/test-canonicalize-lgpl.c (main): Likewise.
27030         * tests/test-canonicalize.c (main): Likewise.
27031         * tests/test-chown.c (main): Likewise.
27032         * tests/test-fchownat.c (main): Likewise.
27033         * tests/test-fdutimensat.c (main): Likewise.
27034         * tests/test-fstatat.c (main): Likewise.
27035         * tests/test-futimens.c (main): Likewise.
27036         * tests/test-lchown.c (main): Likewise.
27037         * tests/test-link.c (main): Likewise.
27038         * tests/test-linkat.c (main): Likewise.
27039         * tests/test-lstat.c (main): Likewise.
27040         * tests/test-mkdir.c (main): Likewise.
27041         * tests/test-mkdirat.c (main): Likewise.
27042         * tests/test-mkfifo.c (main): Likewise.
27043         * tests/test-mkfifoat.c (main): Likewise.
27044         * tests/test-mknod.c (main): Likewise.
27045         * tests/test-readlink.c (main): Likewise.
27046         * tests/test-remove.c (main): Likewise.
27047         * tests/test-rename.c (main): Likewise.
27048         * tests/test-renameat.c (main): Likewise.
27049         * tests/test-rmdir.c (main): Likewise.
27050         * tests/test-symlink.c (main): Likewise.
27051         * tests/test-symlinkat.c (main): Likewise.
27052         * tests/test-unlink.c (main): Likewise.
27053         * tests/test-unlinkat.c (main): Likewise.
27054         * tests/test-utimens.c (main): Likewise.
27055         * tests/test-utimensat.c (main): Likewise.
27056         * modules/areadlink-tests (Depends-on): Add ignore-value.
27057         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27058         * modules/areadlinkat-tests (Depends-on): Likewise.
27059         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27060         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27061         * modules/canonicalize-tests (Depends-on): Likewise.
27062         * modules/chown-tests (Depends-on): Likewise.
27063         * modules/fdutimensat-tests (Depends-on): Likewise.
27064         * modules/futimens-tests (Depends-on): Likewise.
27065         * modules/lchown-tests (Depends-on): Likewise.
27066         * modules/link-tests (Depends-on): Likewise.
27067         * modules/linkat-tests (Depends-on): Likewise.
27068         * modules/lstat-tests (Depends-on): Likewise.
27069         * modules/mkdir-tests (Depends-on): Likewise.
27070         * modules/mkfifo-tests (Depends-on): Likewise.
27071         * modules/mkfifoat-tests (Depends-on): Likewise.
27072         * modules/mknod-tests (Depends-on): Likewise.
27073         * modules/openat-tests (Depends-on): Likewise.
27074         * modules/readlink-tests (Depends-on): Likewise.
27075         * modules/remove-tests (Depends-on): Likewise.
27076         * modules/rename-tests (Depends-on): Likewise.
27077         * modules/renameat-tests (Depends-on): Likewise.
27078         * modules/rmdir-tests (Depends-on): Likewise.
27079         * modules/symlink-tests (Depends-on): Likewise.
27080         * modules/symlinkat-tests (Depends-on): Likewise.
27081         * modules/unlink-tests (Depends-on): Likewise.
27082         * modules/utimens-tests (Depends-on): Likewise.
27083         * modules/utimensat-tests (Depends-on): Likewise.
27084
27085 2010-01-31  Bruno Haible  <bruno@clisp.org>
27086
27087         Perform the same test for many <math.h> functions.
27088         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27089         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27090         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27091         of gl_MATHFUNC.
27092         * modules/acos (configure.ac): Likewise.
27093         * modules/asin (configure.ac): Likewise.
27094         * modules/atan (configure.ac): Likewise.
27095         * modules/atan2 (configure.ac): Likewise.
27096         * modules/cbrt (configure.ac): Likewise.
27097         * modules/copysign (configure.ac): Likewise.
27098         * modules/cos (configure.ac): Likewise.
27099         * modules/cosh (configure.ac): Likewise.
27100         * modules/erf (configure.ac): Likewise.
27101         * modules/erfc (configure.ac): Likewise.
27102         * modules/exp (configure.ac): Likewise.
27103         * modules/fmod (configure.ac): Likewise.
27104         * modules/hypot (configure.ac): Likewise.
27105         * modules/j0 (configure.ac): Likewise.
27106         * modules/j1 (configure.ac): Likewise.
27107         * modules/jn (configure.ac): Likewise.
27108         * modules/lgamma (configure.ac): Likewise.
27109         * modules/log (configure.ac): Likewise.
27110         * modules/log10 (configure.ac): Likewise.
27111         * modules/log1p (configure.ac): Likewise.
27112         * modules/pow (configure.ac): Likewise.
27113         * modules/remainder (configure.ac): Likewise.
27114         * modules/sin (configure.ac): Likewise.
27115         * modules/sinh (configure.ac): Likewise.
27116         * modules/tan (configure.ac): Likewise.
27117         * modules/tanh (configure.ac): Likewise.
27118         * modules/y0 (configure.ac): Likewise.
27119         * modules/y1 (configure.ac): Likewise.
27120         * modules/yn (configure.ac): Likewise.
27121         Suggested by Paolo Bonzini.
27122
27123 2010-01-31  Bruno Haible  <bruno@clisp.org>
27124
27125         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27126
27127 2010-01-31  Bruno Haible  <bruno@clisp.org>
27128
27129         Work around getdelim() bug on FreeBSD 8.0.
27130         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27131         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27132         not work.
27133         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27134         is 1.
27135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27136         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27137         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27138         a non-zero size.
27139         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27140
27141 2010-01-31  Bruno Haible  <bruno@clisp.org>
27142
27143         Work around getline() bug on FreeBSD 8.0.
27144         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27145         and a non-zero size.
27146         * tests/test-getline.c (main): Likewise.
27147         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27148         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27149
27150 2010-01-28  Eric Blake  <ebb9@byu.net>
27151
27152         regex: fix build failure
27153         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27154         platforms.
27155
27156 2010-01-28  Jim Meyering  <meyering@redhat.com>
27157
27158         regex: do not ignore memory allocation failure
27159         * lib/regex_internal.c (create_cd_newstate): Detect
27160         re_node_set_init_copy failure.   Extracted from glibc commit
27161         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27162
27163         regex: sync more white-space changes from libc
27164         * lib/regex_internal.c: White-space only changes.
27165         * lib/regexec.c: Likewise.
27166
27167         regex: add many uses of __attribute_warn_unused_result__
27168         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27169         * lib/regexec.c: Likewise.
27170         Extracted from a messy glibc commit.
27171
27172         regcomp.c: spelling and merge-artifact from glibc
27173         * lib/regcomp.c: Merge remainder of glibc's
27174         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27175
27176         regcomp.c: sync white-space changes from glibc
27177         * lib/regcomp.c: Merge to accommodate white space
27178         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27179
27180         regcomp.c: do not ignore internal return values
27181         * lib/regcomp.c: Do not ignore internal return values.
27182         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27183         but without its white-space changes and spelling fixes.
27184
27185         regex_internal.h: define __attribute_warn_unused_result__
27186         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27187
27188         maint: add a syntax-check rule to check for vulnerable Makefile.in
27189         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27190
27191 2010-01-27  Jim Meyering  <meyering@redhat.com>
27192
27193         ncftpput-ftp: clean up spaces
27194         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27195         Remove trailing blanks.
27196
27197 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27198
27199         * build-aux/git-version-gen: Fix copyright statement.
27200         * build-aux/gnupload: Likewise.
27201         * tests/test-arcfour.c: Likewise.
27202         * tests/test-arctwo.c: Likewise.
27203         * tests/test-count-one-bits.c: Likewise.
27204         * tests/test-crc.c: Likewise.
27205         * tests/test-des.c: Likewise.
27206         * tests/test-gc-arcfour.c: Likewise.
27207         * tests/test-gc-arctwo.c: Likewise.
27208         * tests/test-gc-des.c: Likewise.
27209         * tests/test-gc-hmac-md5.c: Likewise.
27210         * tests/test-gc-hmac-sha1.c: Likewise.
27211         * tests/test-gc-md2.c: Likewise.
27212         * tests/test-gc-md4.c: Likewise.
27213         * tests/test-gc-md5.c: Likewise.
27214         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27215         * tests/test-gc-rijndael.c: Likewise.
27216         * tests/test-gc-sha1.c: Likewise.
27217         * tests/test-gc.c: Likewise.
27218         * tests/test-gethostname.c: Likewise.
27219         * tests/test-gettimeofday.c: Likewise.
27220         * tests/test-hash.c: Likewise.
27221         * tests/test-hmac-md5.c: Likewise.
27222         * tests/test-hmac-sha1.c: Likewise.
27223         * tests/test-md2.c: Likewise.
27224         * tests/test-md4.c: Likewise.
27225         * tests/test-md5.c: Likewise.
27226         * tests/test-memchr.c: Likewise.
27227         * tests/test-memchr2.c: Likewise.
27228         * tests/test-memcmp.c: Likewise.
27229         * tests/test-memmem.c: Likewise.
27230         * tests/test-memrchr.c: Likewise.
27231         * tests/test-rawmemchr.c: Likewise.
27232         * tests/test-read-file.c: Likewise.
27233         * tests/test-rijndael.c: Likewise.
27234         * tests/test-sockets.c: Likewise.
27235         * tests/test-strchrnul.c: Likewise.
27236         * tests/test-strstr.c: Likewise.
27237         * tests/test-strtod.c: Likewise.
27238         * build-aux/ncftpput-ftp: Likewise.
27239
27240 2010-01-26  Eric Blake  <ebb9@byu.net>
27241
27242         ignore-value: update recommended header name
27243         * modules/ignore-value (Include): Only use <> for headers that
27244         exist in glibc.
27245
27246 2010-01-26  Jim Meyering  <meyering@redhat.com>
27247
27248         test-userspec.c: avoid compiler warnings
27249         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27250         and "initialization discards qualifiers..." warnings.
27251         Put the first "uid" in its own scope, and make char* members "const".
27252
27253 2010-01-25  Bruno Haible  <bruno@clisp.org>
27254
27255         gnulib-tool: Make warning diagnostics consistent.
27256         * gnulib-tool (func_warning): New function.
27257         Use it everywhere where gnulib-tool produces output to stderr and it is
27258         not a fatal error.
27259
27260 2010-01-25  Bruno Haible  <bruno@clisp.org>
27261
27262         Fix test dependencies.
27263         * modules/xstrtol-tests (Depends-on): Add inttypes.
27264         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27265
27266 2010-01-25 Pádraig Brady <P@draigBrady.com>
27267
27268         syntax-check: detect incorrect boolean macro values in config.h
27269         * modules/maintainer-makefile (configure.ac): Parameterize the location
27270         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27271         The logic is from Eric Blake and the location indicated by Jim Meyering.
27272         Note the more natural CONFIG_HEADER name is prohibited by automake
27273         for backwards compatibility reasons.
27274         * top/maint.mk (sc_Wundef_boolean): New rule.
27275
27276 2010-01-25  Jim Meyering  <meyering@redhat.com>
27277
27278         bootstrap: detect MacOS 10.6's shasum, too
27279         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27280         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27281
27282 2010-01-23  Jim Meyering  <meyering@redhat.com>
27283
27284         xstrtoll: new module
27285         * modules/xstrtoll: New file.
27286         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27287         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27288         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27289         ./configure fails if you use this module and lack "long long".
27290         * modules/xstrtoll-tests: New module.
27291         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27292         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27293         new init.sh-based test framework.
27294
27295 2010-01-24  Bruno Haible  <bruno@clisp.org>
27296
27297         Tests for module 'yn'.
27298         * modules/yn-tests: New file.
27299         * tests/test-yn.c: New file.
27300
27301         Tests for module 'y1'.
27302         * modules/y1-tests: New file.
27303         * tests/test-y1.c: New file.
27304
27305         Tests for module 'y0'.
27306         * modules/y0-tests: New file.
27307         * tests/test-y0.c: New file.
27308
27309         Tests for module 'tanh'.
27310         * modules/tanh-tests: New file.
27311         * tests/test-tanh.c: New file.
27312
27313         Tests for module 'tan'.
27314         * modules/tan-tests: New file.
27315         * tests/test-tan.c: New file.
27316
27317         Tests for module 'sqrt'.
27318         * modules/sqrt-tests: New file.
27319         * tests/test-sqrt.c: New file.
27320
27321         Tests for module 'sinh'.
27322         * modules/sinh-tests: New file.
27323         * tests/test-sinh.c: New file.
27324
27325         Tests for module 'sin'.
27326         * modules/sin-tests: New file.
27327         * tests/test-sin.c: New file.
27328
27329         Tests for module 'rint'.
27330         * modules/rint-tests: New file.
27331         * tests/test-rint.c: New file.
27332
27333         Tests for module 'remainder'.
27334         * modules/remainder-tests: New file.
27335         * tests/test-remainder.c: New file.
27336
27337         Tests for module 'pow'.
27338         * modules/pow-tests: New file.
27339         * tests/test-pow.c: New file.
27340
27341         Tests for module 'nextafter'.
27342         * modules/nextafter-tests: New file.
27343         * tests/test-nextafter.c: New file.
27344
27345         Tests for module 'modf'.
27346         * modules/modf-tests: New file.
27347         * tests/test-modf.c: New file.
27348
27349         Tests for module 'logb'.
27350         * modules/logb-tests: New file.
27351         * tests/test-logb.c: New file.
27352
27353         Tests for module 'log1p'.
27354         * modules/log1p-tests: New file.
27355         * tests/test-log1p.c: New file.
27356
27357         Tests for module 'log10'.
27358         * modules/log10-tests: New file.
27359         * tests/test-log10.c: New file.
27360
27361         Tests for module 'log'.
27362         * modules/log-tests: New file.
27363         * tests/test-log.c: New file.
27364
27365         Tests for module 'lgamma'.
27366         * modules/lgamma-tests: New file.
27367         * tests/test-lgamma.c: New file.
27368
27369         Tests for module 'ldexp'.
27370         * modules/ldexp-tests: New file.
27371         * tests/test-ldexp.c: New file.
27372
27373         Tests for module 'jn'.
27374         * modules/jn-tests: New file.
27375         * tests/test-jn.c: New file.
27376
27377         Tests for module 'j1'.
27378         * modules/j1-tests: New file.
27379         * tests/test-j1.c: New file.
27380
27381         Tests for module 'j0'.
27382         * modules/j0-tests: New file.
27383         * tests/test-j0.c: New file.
27384
27385         Tests for module 'hypot'.
27386         * modules/hypot-tests: New file.
27387         * tests/test-hypot.c: New file.
27388
27389         Tests for module 'fmod'.
27390         * modules/fmod-tests: New file.
27391         * tests/test-fmod.c: New file.
27392
27393         Tests for module 'fabs'.
27394         * modules/fabs-tests: New file.
27395         * tests/test-fabs.c: New file.
27396
27397         Tests for module 'exp'.
27398         * modules/exp-tests: New file.
27399         * tests/test-exp.c: New file.
27400
27401         Tests for module 'erfc'.
27402         * modules/erfc-tests: New file.
27403         * tests/test-erfc.c: New file.
27404
27405         Tests for module 'erf'.
27406         * modules/erf-tests: New file.
27407         * tests/test-erf.c: New file.
27408
27409         Tests for module 'cosh'.
27410         * modules/cosh-tests: New file.
27411         * tests/test-cosh.c: New file.
27412
27413         Tests for module 'cos'.
27414         * modules/cos-tests: New file.
27415         * tests/test-cos.c: New file.
27416
27417         Tests for module 'copysign'.
27418         * modules/copysign-tests: New file.
27419         * tests/test-copysign.c: New file.
27420
27421         Tests for module 'cbrt'.
27422         * modules/cbrt-tests: New file.
27423         * tests/test-cbrt.c: New file.
27424
27425         Tests for module 'atan2'.
27426         * modules/atan2-tests: New file.
27427         * tests/test-atan2.c: New file.
27428
27429         Tests for module 'atan'.
27430         * modules/atan-tests: New file.
27431         * tests/test-atan.c: New file.
27432
27433         Tests for module 'asin'.
27434         * modules/asin-tests: New file.
27435         * tests/test-asin.c: New file.
27436
27437         Tests for module 'acos'.
27438         * modules/acos-tests: New file.
27439         * tests/test-acos.c: New file.
27440
27441 2010-01-24  Bruno Haible  <bruno@clisp.org>
27442
27443         Fix tests for common <math.h> functions.
27444         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27445         code snippet that references the function pointer, rather than merely
27446         calling the function. Substitute the FUNC_LIBM variable.
27447         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27448         * modules/acos (configure.ac): Likewise.
27449         * modules/asin (configure.ac): Likewise.
27450         * modules/atan (configure.ac): Likewise.
27451         * modules/atan2 (configure.ac): Likewise.
27452         * modules/cbrt (configure.ac): Likewise.
27453         * modules/copysign (configure.ac): Likewise.
27454         * modules/cos (configure.ac): Likewise.
27455         * modules/cosh (configure.ac): Likewise.
27456         * modules/erf (configure.ac): Likewise.
27457         * modules/erfc (configure.ac): Likewise.
27458         * modules/exp (configure.ac): Likewise.
27459         * modules/fabs (configure.ac): Likewise.
27460         * modules/fmod (configure.ac): Likewise.
27461         * modules/hypot (configure.ac): Likewise.
27462         * modules/j0 (configure.ac): Likewise.
27463         * modules/j1 (configure.ac): Likewise.
27464         * modules/jn (configure.ac): Likewise.
27465         * modules/ldexp (configure.ac): Likewise.
27466         * modules/lgamma (configure.ac): Likewise.
27467         * modules/log (configure.ac): Likewise.
27468         * modules/log10 (configure.ac): Likewise.
27469         * modules/log1p (configure.ac): Likewise.
27470         * modules/logb (configure.ac): Likewise.
27471         * modules/modf (configure.ac): Likewise.
27472         * modules/nextafter (configure.ac): Likewise.
27473         * modules/pow (configure.ac): Likewise.
27474         * modules/remainder (configure.ac): Likewise.
27475         * modules/rint (configure.ac): Likewise.
27476         * modules/sin (configure.ac): Likewise.
27477         * modules/sinh (configure.ac): Likewise.
27478         * modules/tan (configure.ac): Likewise.
27479         * modules/tanh (configure.ac): Likewise.
27480         * modules/y0 (configure.ac): Likewise.
27481         * modules/y1 (configure.ac): Likewise.
27482         * modules/yn (configure.ac): Likewise.
27483
27484 2010-01-24  Bruno Haible  <bruno@clisp.org>
27485
27486         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27487         * tests/test-acosl.c (x): New variable.
27488         (main): Store argument in x and fetch it from x.
27489         * tests/test-asinl.c (x): New variable.
27490         (main): Store argument in x and fetch it from x.
27491         * tests/test-atanl.c (x): New variable.
27492         (main): Store argument in x and fetch it from x.
27493         * tests/test-cosl.c (x): New variable.
27494         (main): Store argument in x and fetch it from x.
27495         * tests/test-expl.c (x): New variable.
27496         (main): Store argument in x and fetch it from x.
27497         * tests/test-logl.c (x): New variable.
27498         (main): Store argument in x and fetch it from x.
27499         * tests/test-sinl.c (x): New variable.
27500         (main): Store argument in x and fetch it from x.
27501         * tests/test-sqrtl.c (x): New variable.
27502         (main): Store argument in x and fetch it from x.
27503         * tests/test-tanl.c (x): New variable.
27504         (main): Store argument in x and fetch it from x.
27505
27506 2010-01-24  Bruno Haible  <bruno@clisp.org>
27507
27508         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27509         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27510         assignments to the initial TESTS_ENVIRONMENT.
27511         * doc/gnulib.texi (Unit test modules): Document it.
27512         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27513         TESTS_ENVIRONMENT.
27514         * modules/btowc-tests (Makefile.am): Likewise.
27515         * modules/c-stack-tests (Makefile.am): Likewise.
27516         * modules/c-strcase-tests (Makefile.am): Likewise.
27517         * modules/copy-file-tests (Makefile.am): Likewise.
27518         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27519         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27520         * modules/mbrtowc-tests (Makefile.am): Likewise.
27521         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27522         * modules/mbscasestr-tests (Makefile.am): Likewise.
27523         * modules/mbschr-tests (Makefile.am): Likewise.
27524         * modules/mbscspn-tests (Makefile.am): Likewise.
27525         * modules/mbsinit-tests (Makefile.am): Likewise.
27526         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27527         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27528         * modules/mbspbrk-tests (Makefile.am): Likewise.
27529         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27530         * modules/mbsrchr-tests (Makefile.am): Likewise.
27531         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27532         * modules/mbsspn-tests (Makefile.am): Likewise.
27533         * modules/mbsstr-tests (Makefile.am): Likewise.
27534         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27535         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27536         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27537         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27538         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27539         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27540         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27541         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27542         * modules/wcrtomb-tests (Makefile.am): Likewise.
27543         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27544         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27545         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27546         assignments from TESTS_ENVIRONMENT.
27547         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27548         augmentation.
27549         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27550         * modules/atexit-tests (Makefile.am): Likewise.
27551         * modules/binary-io-tests (Makefile.am): Likewise.
27552         * modules/closein-tests (Makefile.am): Likewise.
27553         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27554         * modules/exclude-tests (Makefile.am): Likewise.
27555         * modules/fflush-tests (Makefile.am): Likewise.
27556         * modules/fpending-tests (Makefile.am): Likewise.
27557         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27558         * modules/freadahead-tests (Makefile.am): Likewise.
27559         * modules/freadptr-tests (Makefile.am): Likewise.
27560         * modules/freadseek-tests (Makefile.am): Likewise.
27561         * modules/fseek-tests (Makefile.am): Likewise.
27562         * modules/fseeko-tests (Makefile.am): Likewise.
27563         * modules/ftell-tests (Makefile.am): Likewise.
27564         * modules/ftello-tests (Makefile.am): Likewise.
27565         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27566         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27567         * modules/lseek-tests (Makefile.am): Likewise.
27568         * modules/parse-duration-tests (Makefile.am): Likewise.
27569         * modules/perror-tests (Makefile.am): Likewise.
27570         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27571         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27572         * modules/pipe-tests (Makefile.am): Likewise.
27573         * modules/pread-tests (Makefile.am): Likewise.
27574         * modules/printf-posix-tests (Makefile.am): Likewise.
27575         * modules/select-tests (Makefile.am): Likewise.
27576         * modules/sigpipe-tests (Makefile.am): Likewise.
27577         * modules/tsearch-tests (Makefile.am): Likewise.
27578         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27579         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27580         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27581         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27582         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27583         * modules/version-etc-tests (Makefile.am): Likewise.
27584         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27585         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27586         * modules/xalloc-die-tests (Makefile.am): Likewise.
27587         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27588         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27589         * modules/xstrtol-tests (Makefile.am): Likewise.
27590         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27591         * modules/yesno-tests (Makefile.am): Likewise.
27592         Suggested by Jim Meyering.
27593
27594 2010-01-24  Bruno Haible  <bruno@clisp.org>
27595
27596         More documentation.
27597         * doc/gnulib.texi (Writing modules): New chapter.
27598         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27599         the new chapter.
27600
27601 2010-01-24  Jim Meyering  <meyering@redhat.com>
27602
27603         maint.mk: do not prepend "./" after filtering
27604         * top/maint.mk (_prepend_srcdir_prefix): New variable
27605         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27606         "./" when $(srcdir) is ".".
27607
27608         define STREQ(a,b) consistently, removing useless parentheses
27609         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27610         since the only risk is that "a" or "b" contains an unparenthesized
27611         comma, but if either did that, STREQ would have 3 or more arguments.
27612         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27613         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27614         * lib/hash-triple.c (STREQ): Likewise.
27615         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27616         * lib/getugroups.c (STREQ): Likewise.
27617
27618 2010-01-23  Jim Meyering  <meyering@redhat.com>
27619
27620         maint.mk: fix syntax-check in a non-srcdir build directory
27621         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27622         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27623
27624 2010-01-22  Jim Meyering  <meyering@redhat.com>
27625
27626         userspec: add unit tests
27627         * tests/test-userspec.c: New file.
27628         * modules/userspec-tests: Likewise.
27629
27630 2010-01-21  Jim Meyering  <meyering@redhat.com>
27631
27632         maint.mk: handle source file names containing "." robustly
27633         * top/maint.mk (_dot_escaped_srcdir): Define.
27634         (VC_LIST): Use it in LHS of sed substitution.
27635
27636 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27637
27638         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27639         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27640         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27641         from a non-srcdir build.
27642
27643 2010-01-20  Eric Blake  <ebb9@byu.net>
27644
27645         warn-on-use: use instead of link-warning
27646         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27647         * modules/unistd (Depends-on, Makefile.am): Likewise.
27648         * modules/arpa_inet (Depends-on): Replace link-warning with
27649         warn-on-use.
27650         (Makefile.am): Update rules accordingly.
27651         * modules/ctype (Depends-on, Makefile.am): Likewise.
27652         * modules/dirent (Depends-on, Makefile.am): Likewise.
27653         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27654         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27655         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27656         * modules/locale (Depends-on, Makefile.am): Likewise.
27657         * modules/math (Depends-on, Makefile.am): Likewise.
27658         * modules/search (Depends-on, Makefile.am): Likewise.
27659         * modules/signal (Depends-on, Makefile.am): Likewise.
27660         * modules/spawn (Depends-on, Makefile.am): Likewise.
27661         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27662         * modules/string (Depends-on, Makefile.am): Likewise.
27663         * modules/strings (Depends-on, Makefile.am): Likewise.
27664         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27665         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27666         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27667         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27668         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27669         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27670         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27671         * modules/wchar (Depends-on, Makefile.am): Likewise.
27672         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27673         should be poisoned.
27674         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27675         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27676         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27677         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27678         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27679         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27680         * m4/math_h.m4 (gl_MATH_H): Likewise.
27681         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27682         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27683         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27684         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27685         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27686         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27687         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27688         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27689         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27693         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27694         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27695         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27696         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27697         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27698         GL_LINK_WARNING.
27699         * lib/ctype.in.h: Likewise.
27700         * lib/dirent.in.h: Likewise.
27701         * lib/fcntl.in.h: Likewise.
27702         * lib/inttypes.in.h: Likewise.
27703         * lib/langinfo.in.h: Likewise.
27704         * lib/locale.in.h: Likewise.
27705         * lib/math.in.h: Likewise.
27706         * lib/search.in.h: Likewise.
27707         * lib/signal.in.h: Likewise.
27708         * lib/spawn.in.h: Likewise.
27709         * lib/stdio.in.h: Likewise.
27710         * lib/stdlib.in.h: Likewise.
27711         * lib/string.in.h: Likewise.
27712         * lib/strings.in.h: Likewise.
27713         * lib/sys_file.in.h: Likewise.
27714         * lib/sys_ioctl.in.h: Likewise.
27715         * lib/sys_select.in.h: Likewise.
27716         * lib/sys_socket.in.h: Likewise.
27717         * lib/sys_stat.in.h: Likewise.
27718         * lib/sys_times.in.h: Likewise.
27719         * lib/sys_utsname.in.h: Likewise.
27720         * lib/unistd.in.h: Likewise.
27721         * lib/wchar.in.h: Likewise.
27722
27723 2010-01-20  Bruno Haible  <bruno@clisp.org>
27724
27725         Avoid duplicate -lm.
27726         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27727         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27729         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27730         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27731         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27732         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27733         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27734         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27735         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27736         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27737         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27738         Reported by Paolo Bonzini.
27739
27740 2010-01-19  Bruno Haible  <bruno@clisp.org>
27741
27742         langinfo, nl_langinfo: Relicense under LGPLv2+.
27743         * modules/langinfo (License): Change to LGPLv2+.
27744         * modules/nl_langinfo (License): Likewise.
27745         Patch by David Lutterkort <lutter@redhat.com>.
27746
27747 2010-01-19  Bruno Haible  <bruno@clisp.org>
27748
27749         Avoid compilation error with cc on OSF/1 5.1.
27750         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27751         statement, not before.
27752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27753
27754 2010-01-18  Bruno Haible  <bruno@clisp.org>
27755
27756         Avoid a link error due to the __printf__ symbol.
27757         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27758         and 2.6.x.
27759         (__format__, __printf__): Remove definitions.
27760         * lib/argp-fmtstream.h: Likewise.
27761         * lib/argp.h: Likewise.
27762         * lib/error.h: Likewise.
27763         * lib/vasnprintf.h: Likewise.
27764         * lib/xprintf.h: Likewise.
27765         * lib/xvasprintf.h: Likewise.
27766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27767
27768 2010-01-18  Bruno Haible  <bruno@clisp.org>
27769
27770         Tests for module 'tanl'.
27771         * modules/tanl-tests: New file.
27772         * tests/test-tanl.c: New file.
27773
27774         Tests for module 'sqrtl'.
27775         * modules/sqrtl-tests: New file.
27776         * tests/test-sqrtl.c: New file.
27777
27778         Tests for module 'sinl'.
27779         * modules/sinl-tests: New file.
27780         * tests/test-sinl.c: New file.
27781
27782         Tests for module 'logl'.
27783         * modules/logl-tests: New file.
27784         * tests/test-logl.c: New file.
27785
27786         Tests for module 'expl'.
27787         * modules/expl-tests: New file.
27788         * tests/test-expl.c: New file.
27789
27790         Tests for module 'cosl'.
27791         * modules/cosl-tests: New file.
27792         * tests/test-cosl.c: New file.
27793
27794         Tests for module 'atanl'.
27795         * modules/atanl-tests: New file.
27796         * tests/test-atanl.c: New file.
27797
27798         Tests for module 'asinl'.
27799         * modules/asinl-tests: New file.
27800         * tests/test-asinl.c: New file.
27801
27802         Tests for module 'acosl'.
27803         * modules/acosl-tests: New file.
27804         * tests/test-acosl.c: New file.
27805
27806         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27807         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27808         tanl): Use the standard gnulib idiom.
27809         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27810         * lib/sinl.c: Likewise.
27811         * lib/tanl.c: Don't include trigl.c.
27812         (kernel_tanl): Make static.
27813         * lib/sincosl.c: Include trigl.h first.
27814         * lib/trigl.c: Likewise.
27815         * m4/acosl.m4: New file.
27816         * m4/asinl.m4: New file.
27817         * m4/atanl.m4: New file.
27818         * m4/cosl.m4: New file.
27819         * m4/expl.m4: New file.
27820         * m4/logl.m4: New file.
27821         * m4/sinl.m4: New file.
27822         * m4/sqrtl.m4: New file.
27823         * m4/tanl.m4: New file.
27824         * m4/mathl.m4: Remove file.
27825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27826         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27827         Don't initialize GNULIB_MATHL.
27828         * modules/acosl: New file.
27829         * modules/asinl: New file.
27830         * modules/atanl: New file.
27831         * modules/cosl: New file.
27832         * modules/expl: New file.
27833         * modules/logl: New file.
27834         * modules/sinl: New file.
27835         * modules/sqrtl: New file.
27836         * modules/tanl: New file.
27837         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27838         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27839         substitute GNULIB_MATHL.
27840         * modules/mathl: Rewritten.
27841         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27842         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27843         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27844         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27845         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27846         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27847         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27848         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27849         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27850
27851 2010-01-18  Bruno Haible  <bruno@clisp.org>
27852
27853         sqrt: Make gl_FUNC_SQRT requirable.
27854         * m4/sqrt.m4: New file.
27855         * modules/sqrt (Files): Add it.
27856         (configure.ac): Invoke gl_FUNC_SQRT.
27857
27858 2010-01-18  Bruno Haible  <bruno@clisp.org>
27859
27860         New modules for common <math.h> functions.
27861         * m4/mathfunc.m4: New file.
27862         * modules/acos: New file.
27863         * modules/asin: New file.
27864         * modules/atan: New file.
27865         * modules/atan2: New file.
27866         * modules/cbrt: New file.
27867         * modules/copysign: New file.
27868         * modules/cos: New file.
27869         * modules/cosh: New file.
27870         * modules/erf: New file.
27871         * modules/erfc: New file.
27872         * modules/exp: New file.
27873         * modules/fabs: New file.
27874         * modules/fmod: New file.
27875         * modules/hypot: New file.
27876         * modules/j0: New file.
27877         * modules/j1: New file.
27878         * modules/jn: New file.
27879         * modules/ldexp: New file.
27880         * modules/lgamma: New file.
27881         * modules/log: New file.
27882         * modules/log10: New file.
27883         * modules/log1p: New file.
27884         * modules/logb: New file.
27885         * modules/modf: New file.
27886         * modules/nextafter: New file.
27887         * modules/pow: New file.
27888         * modules/remainder: New file.
27889         * modules/rint: New file.
27890         * modules/sin: New file.
27891         * modules/sinh: New file.
27892         * modules/sqrt: New file.
27893         * modules/tan: New file.
27894         * modules/tanh: New file.
27895         * modules/y0: New file.
27896         * modules/y1: New file.
27897         * modules/yn: New file.
27898         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27899         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27900         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27901         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27902         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27903         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27904         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27905         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27906         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27907         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27908         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27909         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27910         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27911         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27912         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27913         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27914         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27915         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27916         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27917         * doc/posix-functions/log.texi: Mention the 'log' module.
27918         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27919         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27920         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27921         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27922         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27923         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27924         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27925         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27926         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27927         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27928         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27929         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27930         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27931         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27932         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27933         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27934
27935 2010-01-18  Jim Meyering  <meyering@redhat.com>
27936
27937         ignore-value: relax license to LGPLv2+
27938         * modules/ignore-value (License): Relax to LGPLv2+.
27939
27940         getdate: don't leak when TZ contains two or more '"'s
27941         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27942         double quote in TZ after the first one.
27943
27944         readtokens: do not leak internal token_lengths buffer
27945         * lib/readtokens.c (readtokens): Free the local, lengths,
27946         when the supplied "token_lengths" parameter is NULL.
27947
27948 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27949
27950         Fix a couple of missing LIBTHREAD link failures on AIX.
27951         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27952         $(LIBTHREAD).
27953         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27954
27955         Link test-poll against INET_PTON_LIB.
27956         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27957         for inet_pton on Solaris 10.
27958
27959 2010-01-17  Bruno Haible  <bruno@clisp.org>
27960
27961         unistdio/*-sprintf: Fix typo in module description.
27962         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27963         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27964         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27965         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27966         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27967         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27968         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27970
27971 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27972
27973         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27974         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27975         variables in shell case patterns, for AIX and HP-UX ksh.
27976
27977         Split large sed scripts, for HP-UX sed.
27978         * modules/stdio: Split sed scripts around 50 sed commands,
27979         to avoid HP-UX limit of 99 commands, in the near future.
27980         * modules/string: Likewise.
27981         * modules/unistd: Likewise.
27982
27983         gnulib-tool: avoid writing in the current directory.
27984         * gnulib-tool (func_emit_lib_Makefile_am)
27985         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27986         not in the current directory, so concurrent gnulib-tool
27987         instances do not interfere.
27988
27989 2010-01-16  Jim Meyering  <meyering@redhat.com>
27990
27991         doc: update users.txt
27992         * users.txt: Add grep.
27993         (diffutils, gzip): Update URLs.
27994
27995 2010-01-12  Bruno Haible  <bruno@clisp.org>
27996
27997         posix_spawn: Avoid test failure on Cygwin.
27998         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27999         characters.
28000         Reported by Simon Josefsson.
28001
28002 2010-01-12  Bruno Haible  <bruno@clisp.org>
28003
28004         * tests/test-cond.c (main): When skipping the test, show the reason.
28005
28006 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28007
28008         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28009
28010 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28011
28012         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28013         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28014
28015 2010-01-12  Eric Blake  <ebb9@byu.net>
28016
28017         build: guarantee AS_VAR_IF
28018         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28019         (gl_AS_VAR_IF): Move...
28020         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28021         Reported by Simon Josefsson.
28022
28023 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28024
28025         * lib/stdio.in.h: Fix typo.
28026
28027 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28028
28029         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28030         libgpg-error.
28031
28032 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28033
28034         * tests/test-xalloc-die.sh: Use $EXEEXT.
28035
28036 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28037             Bruno Haible  <bruno@clisp.org>
28038
28039         getlogin, getlogin_r: Avoid test failure.
28040         * tests/test-getlogin.c: Include <stdio.h>.
28041         (main): Skip the test when the function fails because stdin is not a
28042         tty.
28043         * tests/test-getlogin_r.c: Include <stdio.h>.
28044         (main): Skip the test when the function fails because stdin is not a
28045         tty.
28046
28047 2010-01-11  Eric Blake  <ebb9@byu.net>
28048
28049         tests: avoid more large file warnings
28050         * tests/test-fflush.c: Avoid warning about ftell use.
28051         * tests/test-fseek.c: Avoid warning about fseek use.
28052
28053 2010-01-10  Bruno Haible  <bruno@clisp.org>
28054
28055         nproc: Work better on Linux when /proc and /sys are not mounted.
28056         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28057         as lower bound when, on glibc/Linux systems,
28058         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28059         Suggested by Pádraig Brady <P@draigbrady.com>.
28060         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28061
28062         nproc: Refactor.
28063         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28064         extracted from num_processors.
28065         (num_processors): Call it.
28066
28067 2010-01-11  Jim Meyering  <meyering@redhat.com>
28068
28069         utimecmp: avoid new warning from upcoming gcc-4.5.0
28070         * lib/utimecmp.c (BILLION): Define using #define rather than an
28071         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28072
28073 2010-01-11  Eric Blake  <ebb9@byu.net>
28074
28075         math: add portability warnings for classification macros
28076         * modules/math (Depends-on): Add warn-on-use.
28077         (Makefile.am): Provide new substitutions.
28078         * m4/math_h.m4 (gl_MATH_H): Require inline.
28079         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28080         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28081         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28082         implement warnings.
28083
28084         unistd: warn on use of environ without module
28085         * modules/unistd (Depends-on): Add warn-on-use.
28086         (Makefile.am): Provide new substitutions.
28087         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28088         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28089
28090         stdio: warn on suspicious uses
28091         * modules/stdio (Depends-on): Add warn-on-use.
28092         (Makefile.am): Provide new substitutions.
28093         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28094         fseeko.
28095         * lib/stdio.in.h (gets): Always warn on use.
28096         (fseek, ftell): Adjust when warnings are issued, and honor
28097         _GL_NO_LARGE_FILES as a way to silence the warning.
28098         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28099         any warning about large file offsets.
28100         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28101         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28102         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28103         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28104         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28105         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28106         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28107         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28108
28109         warn-on-use: new module
28110         * modules/warn-on-use: New file.
28111         * build-aux/warn-on-use.h: Likewise.
28112         * m4/warn-on-use.m4: Likewise.
28113         * MODULES.html.sh (Support for building): Mention it.
28114
28115 2010-01-10  Bruno Haible  <bruno@clisp.org>
28116
28117         Tests for module 'unistr/u32-strdup'.
28118         * modules/unistr/u32-strdup-tests: New file.
28119         * tests/unistr/test-u32-strdup.c: New file.
28120
28121         Tests for module 'unistr/u16-strdup'.
28122         * modules/unistr/u16-strdup-tests: New file.
28123         * tests/unistr/test-u16-strdup.c: New file.
28124
28125         Tests for module 'unistr/u8-strdup'.
28126         * modules/unistr/u8-strdup-tests: New file.
28127         * tests/unistr/test-u8-strdup.c: New file.
28128         * tests/unistr/test-strdup.h: New file.
28129
28130         Tests for module 'unistr/u32-strncmp'.
28131         * modules/unistr/u32-strncmp-tests: New file.
28132         * tests/unistr/test-u32-strncmp.c: New file.
28133
28134         Tests for module 'unistr/u16-strncmp'.
28135         * modules/unistr/u16-strncmp-tests: New file.
28136         * tests/unistr/test-u16-strncmp.c: New file.
28137
28138         Tests for module 'unistr/u8-strncmp'.
28139         * modules/unistr/u8-strncmp-tests: New file.
28140         * tests/unistr/test-u8-strncmp.c: New file.
28141         * tests/unistr/test-strncmp.h: New file.
28142
28143         Tests for module 'unistr/u32-strcoll'.
28144         * modules/unistr/u32-strcoll-tests: New file.
28145         * tests/unistr/test-u32-strcoll.c: New file.
28146
28147         Tests for module 'unistr/u16-strcoll'.
28148         * modules/unistr/u16-strcoll-tests: New file.
28149         * tests/unistr/test-u16-strcoll.c: New file.
28150
28151         Tests for module 'unistr/u8-strcoll'.
28152         * modules/unistr/u8-strcoll-tests: New file.
28153         * tests/unistr/test-u8-strcoll.c: New file.
28154
28155         Tests for module 'unistr/u32-strcmp'.
28156         * modules/unistr/u32-strcmp-tests: New file.
28157         * tests/unistr/test-u32-strcmp.c: New file.
28158         * tests/unistr/test-u32-strcmp.h: New file.
28159
28160         Tests for module 'unistr/u16-strcmp'.
28161         * modules/unistr/u16-strcmp-tests: New file.
28162         * tests/unistr/test-u16-strcmp.c: New file.
28163         * tests/unistr/test-u16-strcmp.h: New file.
28164
28165         Tests for module 'unistr/u8-strcmp'.
28166         * modules/unistr/u8-strcmp-tests: New file.
28167         * tests/unistr/test-u8-strcmp.c: New file.
28168         * tests/unistr/test-u8-strcmp.h: New file.
28169         * tests/unistr/test-strcmp.h: New file.
28170
28171         Tests for module 'unistr/u32-strncat'.
28172         * modules/unistr/u32-strncat-tests: New file.
28173         * tests/unistr/test-u32-strncat.c: New file.
28174
28175         Tests for module 'unistr/u16-strncat'.
28176         * modules/unistr/u16-strncat-tests: New file.
28177         * tests/unistr/test-u16-strncat.c: New file.
28178
28179         Tests for module 'unistr/u8-strncat'.
28180         * modules/unistr/u8-strncat-tests: New file.
28181         * tests/unistr/test-u8-strncat.c: New file.
28182         * tests/unistr/test-strncat.h: New file.
28183
28184         Tests for module 'unistr/u32-strcat'.
28185         * modules/unistr/u32-strcat-tests: New file.
28186         * tests/unistr/test-u32-strcat.c: New file.
28187
28188         Tests for module 'unistr/u16-strcat'.
28189         * modules/unistr/u16-strcat-tests: New file.
28190         * tests/unistr/test-u16-strcat.c: New file.
28191
28192         Tests for module 'unistr/u8-strcat'.
28193         * modules/unistr/u8-strcat-tests: New file.
28194         * tests/unistr/test-u8-strcat.c: New file.
28195         * tests/unistr/test-strcat.h: New file.
28196
28197         Tests for module 'unistr/u32-stpncpy'.
28198         * modules/unistr/u32-stpncpy-tests: New file.
28199         * tests/unistr/test-u32-stpncpy.c: New file.
28200
28201         Tests for module 'unistr/u16-stpncpy'.
28202         * modules/unistr/u16-stpncpy-tests: New file.
28203         * tests/unistr/test-u16-stpncpy.c: New file.
28204
28205         Tests for module 'unistr/u8-stpncpy'.
28206         * modules/unistr/u8-stpncpy-tests: New file.
28207         * tests/unistr/test-u8-stpncpy.c: New file.
28208         * tests/unistr/test-stpncpy.h: New file.
28209
28210         Tests for module 'unistr/u32-strncpy'.
28211         * modules/unistr/u32-strncpy-tests: New file.
28212         * tests/unistr/test-u32-strncpy.c: New file.
28213
28214         Tests for module 'unistr/u16-strncpy'.
28215         * modules/unistr/u16-strncpy-tests: New file.
28216         * tests/unistr/test-u16-strncpy.c: New file.
28217
28218         Tests for module 'unistr/u8-strncpy'.
28219         * modules/unistr/u8-strncpy-tests: New file.
28220         * tests/unistr/test-u8-strncpy.c: New file.
28221         * tests/unistr/test-strncpy.h: New file.
28222
28223         Tests for module 'unistr/u32-stpcpy'.
28224         * modules/unistr/u32-stpcpy-tests: New file.
28225         * tests/unistr/test-u32-stpcpy.c: New file.
28226
28227         Tests for module 'unistr/u16-stpcpy'.
28228         * modules/unistr/u16-stpcpy-tests: New file.
28229         * tests/unistr/test-u16-stpcpy.c: New file.
28230
28231         Tests for module 'unistr/u8-stpcpy'.
28232         * modules/unistr/u8-stpcpy-tests: New file.
28233         * tests/unistr/test-u8-stpcpy.c: New file.
28234         * tests/unistr/test-stpcpy.h: New file.
28235
28236         Tests for module 'unistr/u32-strcpy'.
28237         * modules/unistr/u32-strcpy-tests: New file.
28238         * tests/unistr/test-u32-strcpy.c: New file.
28239
28240         Tests for module 'unistr/u16-strcpy'.
28241         * modules/unistr/u16-strcpy-tests: New file.
28242         * tests/unistr/test-u16-strcpy.c: New file.
28243
28244         Tests for module 'unistr/u8-strcpy'.
28245         * modules/unistr/u8-strcpy-tests: New file.
28246         * tests/unistr/test-u8-strcpy.c: New file.
28247         * tests/unistr/test-strcpy.h: New file.
28248
28249         Tests for module 'unistr/u32-strnlen'.
28250         * modules/unistr/u32-strnlen-tests: New file.
28251         * tests/unistr/test-u32-strnlen.c: New file.
28252
28253         Tests for module 'unistr/u16-strnlen'.
28254         * modules/unistr/u16-strnlen-tests: New file.
28255         * tests/unistr/test-u16-strnlen.c: New file.
28256
28257         Tests for module 'unistr/u8-strnlen'.
28258         * modules/unistr/u8-strnlen-tests: New file.
28259         * tests/unistr/test-u8-strnlen.c: New file.
28260         * tests/unistr/test-strnlen.h: New file.
28261
28262         Tests for module 'unistr/u32-strlen'.
28263         * modules/unistr/u32-strlen-tests: New file.
28264         * tests/unistr/test-u32-strlen.c: New file.
28265
28266         Tests for module 'unistr/u16-strlen'.
28267         * modules/unistr/u16-strlen-tests: New file.
28268         * tests/unistr/test-u16-strlen.c: New file.
28269
28270         Tests for module 'unistr/u8-strlen'.
28271         * modules/unistr/u8-strlen-tests: New file.
28272         * tests/unistr/test-u8-strlen.c: New file.
28273
28274         Tests for module 'unistr/u32-prev'.
28275         * modules/unistr/u32-prev-tests: New file.
28276         * tests/unistr/test-u32-prev.c: New file.
28277
28278         Tests for module 'unistr/u16-prev'.
28279         * modules/unistr/u16-prev-tests: New file.
28280         * tests/unistr/test-u16-prev.c: New file.
28281
28282         Tests for module 'unistr/u8-prev'.
28283         * modules/unistr/u8-prev-tests: New file.
28284         * tests/unistr/test-u8-prev.c: New file.
28285
28286         Tests for module 'unistr/u32-next'.
28287         * modules/unistr/u32-next-tests: New file.
28288         * tests/unistr/test-u32-next.c: New file.
28289
28290         Tests for module 'unistr/u16-next'.
28291         * modules/unistr/u16-next-tests: New file.
28292         * tests/unistr/test-u16-next.c: New file.
28293
28294         Tests for module 'unistr/u8-next'.
28295         * modules/unistr/u8-next-tests: New file.
28296         * tests/unistr/test-u8-next.c: New file.
28297
28298         Tests for module 'unistr/u32-strmbtouc'.
28299         * modules/unistr/u32-strmbtouc-tests: New file.
28300         * tests/unistr/test-u32-strmbtouc.c: New file.
28301
28302         Tests for module 'unistr/u16-strmbtouc'.
28303         * modules/unistr/u16-strmbtouc-tests: New file.
28304         * tests/unistr/test-u16-strmbtouc.c: New file.
28305
28306         Tests for module 'unistr/u8-strmbtouc'.
28307         * modules/unistr/u8-strmbtouc-tests: New file.
28308         * tests/unistr/test-u8-strmbtouc.c: New file.
28309
28310         Tests for module 'unistr/u32-strmblen'.
28311         * modules/unistr/u32-strmblen-tests: New file.
28312         * tests/unistr/test-u32-strmblen.c: New file.
28313
28314         Tests for module 'unistr/u16-strmblen'.
28315         * modules/unistr/u16-strmblen-tests: New file.
28316         * tests/unistr/test-u16-strmblen.c: New file.
28317
28318         Tests for module 'unistr/u8-strmblen'.
28319         * modules/unistr/u8-strmblen-tests: New file.
28320         * tests/unistr/test-u8-strmblen.c: New file.
28321
28322         Tests for module 'unistr/u32-cpy-alloc'.
28323         * modules/unistr/u32-cpy-alloc-tests: New file.
28324         * tests/unistr/test-u32-cpy-alloc.c: New file.
28325
28326         Tests for module 'unistr/u16-cpy-alloc'.
28327         * modules/unistr/u16-cpy-alloc-tests: New file.
28328         * tests/unistr/test-u16-cpy-alloc.c: New file.
28329
28330         Tests for module 'unistr/u8-cpy-alloc'.
28331         * modules/unistr/u8-cpy-alloc-tests: New file.
28332         * tests/unistr/test-u8-cpy-alloc.c: New file.
28333         * tests/unistr/test-cpy-alloc.h: New file.
28334
28335         Tests for module 'unistr/u32-mbsnlen'.
28336         * modules/unistr/u32-mbsnlen-tests: New file.
28337         * tests/unistr/test-u32-mbsnlen.c: New file.
28338
28339         Tests for module 'unistr/u16-mbsnlen'.
28340         * modules/unistr/u16-mbsnlen-tests: New file.
28341         * tests/unistr/test-u16-mbsnlen.c: New file.
28342
28343         Tests for module 'unistr/u8-mbsnlen'.
28344         * modules/unistr/u8-mbsnlen-tests: New file.
28345         * tests/unistr/test-u8-mbsnlen.c: New file.
28346
28347         Tests for module 'unistr/u32-chr'.
28348         * modules/unistr/u32-chr-tests: New file.
28349         * tests/unistr/test-u32-chr.c: New file.
28350
28351         Tests for module 'unistr/u16-chr'.
28352         * modules/unistr/u16-chr-tests: New file.
28353         * tests/unistr/test-u16-chr.c: New file.
28354
28355         Tests for module 'unistr/u8-chr'.
28356         * modules/unistr/u8-chr-tests: New file.
28357         * tests/unistr/test-u8-chr.c: New file.
28358         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28359
28360         Tests for module 'unistr/u32-cmp2'.
28361         * modules/unistr/u32-cmp2-tests: New file.
28362         * tests/unistr/test-u32-cmp2.c: New file.
28363
28364         Tests for module 'unistr/u16-cmp2'.
28365         * modules/unistr/u16-cmp2-tests: New file.
28366         * tests/unistr/test-u16-cmp2.c: New file.
28367
28368         Tests for module 'unistr/u8-cmp2'.
28369         * modules/unistr/u8-cmp2-tests: New file.
28370         * tests/unistr/test-u8-cmp2.c: New file.
28371         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28372
28373         Tests for module 'unistr/u32-cmp'.
28374         * modules/unistr/u32-cmp-tests: New file.
28375         * tests/unistr/test-u32-cmp.c: New file.
28376
28377         Tests for module 'unistr/u16-cmp'.
28378         * modules/unistr/u16-cmp-tests: New file.
28379         * tests/unistr/test-u16-cmp.c: New file.
28380
28381         Tests for module 'unistr/u8-cmp'.
28382         * modules/unistr/u8-cmp-tests: New file.
28383         * tests/unistr/test-u8-cmp.c: New file.
28384         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28385
28386         Tests for module 'unistr/u32-set'.
28387         * modules/unistr/u32-set-tests: New file.
28388         * tests/unistr/test-u32-set.c: New file.
28389
28390         Tests for module 'unistr/u16-set'.
28391         * modules/unistr/u16-set-tests: New file.
28392         * tests/unistr/test-u16-set.c: New file.
28393
28394         Tests for module 'unistr/u8-set'.
28395         * modules/unistr/u8-set-tests: New file.
28396         * tests/unistr/test-u8-set.c: New file.
28397         * tests/unistr/test-set.h: New file.
28398
28399         Tests for module 'unistr/u32-move'.
28400         * modules/unistr/u32-move-tests: New file.
28401         * tests/unistr/test-u32-move.c: New file.
28402
28403         Tests for module 'unistr/u16-move'.
28404         * modules/unistr/u16-move-tests: New file.
28405         * tests/unistr/test-u16-move.c: New file.
28406
28407         Tests for module 'unistr/u8-move'.
28408         * modules/unistr/u8-move-tests: New file.
28409         * tests/unistr/test-u8-move.c: New file.
28410         * tests/unistr/test-move.h: New file.
28411
28412         Tests for module 'unistr/u32-cpy'.
28413         * modules/unistr/u32-cpy-tests: New file.
28414         * tests/unistr/test-u32-cpy.c: New file.
28415
28416         Tests for module 'unistr/u16-cpy'.
28417         * modules/unistr/u16-cpy-tests: New file.
28418         * tests/unistr/test-u16-cpy.c: New file.
28419
28420         Tests for module 'unistr/u8-cpy'.
28421         * modules/unistr/u8-cpy-tests: New file.
28422         * tests/unistr/test-u8-cpy.c: New file.
28423         * tests/unistr/test-cpy.h: New file.
28424
28425 2010-01-09  Bruno Haible  <bruno@clisp.org>
28426
28427         Tests for module 'unistr/u32-uctomb'.
28428         * modules/unistr/u32-uctomb-tests: New file.
28429         * tests/unistr/test-u32-uctomb.c: New file.
28430
28431         Tests for module 'unistr/u16-uctomb'.
28432         * modules/unistr/u16-uctomb-tests: New file.
28433         * tests/unistr/test-u16-uctomb.c: New file.
28434
28435         Tests for module 'unistr/u8-uctomb'.
28436         * modules/unistr/u8-uctomb-tests: New file.
28437         * tests/unistr/test-u8-uctomb.c: New file.
28438
28439         Tests for module 'unistr/u32-mbtoucr'.
28440         * modules/unistr/u32-mbtoucr-tests: New file.
28441         * tests/unistr/test-u32-mbtoucr.c: New file.
28442
28443         Tests for module 'unistr/u16-mbtoucr'.
28444         * modules/unistr/u16-mbtoucr-tests: New file.
28445         * tests/unistr/test-u16-mbtoucr.c: New file.
28446
28447         Tests for module 'unistr/u8-mbtoucr'.
28448         * modules/unistr/u8-mbtoucr-tests: New file.
28449         * tests/unistr/test-u8-mbtoucr.c: New file.
28450
28451         Tests for module 'unistr/u32-mbtouc'.
28452         * modules/unistr/u32-mbtouc-tests: New file.
28453         * tests/unistr/test-u32-mbtouc.c: New file.
28454
28455         Tests for module 'unistr/u16-mbtouc'.
28456         * modules/unistr/u16-mbtouc-tests: New file.
28457         * tests/unistr/test-u16-mbtouc.c: New file.
28458
28459         Tests for module 'unistr/u8-mbtouc'.
28460         * modules/unistr/u8-mbtouc-tests: New file.
28461         * tests/unistr/test-u8-mbtouc.c: New file.
28462
28463         Tests for module 'unistr/u32-mbtouc-unsafe'.
28464         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28465         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28466         * tests/unistr/test-u32-mbtouc.h: New file.
28467
28468         Tests for module 'unistr/u16-mbtouc-unsafe'.
28469         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28470         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28471         * tests/unistr/test-u16-mbtouc.h: New file.
28472
28473         Tests for module 'unistr/u8-mbtouc-unsafe'.
28474         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28475         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28476         * tests/unistr/test-u8-mbtouc.h: New file.
28477
28478         Tests for module 'unistr/u32-mblen'.
28479         * modules/unistr/u32-mblen-tests: New file.
28480         * tests/unistr/test-u32-mblen.c: New file.
28481
28482         Tests for module 'unistr/u16-mblen'.
28483         * modules/unistr/u16-mblen-tests: New file.
28484         * tests/unistr/test-u16-mblen.c: New file.
28485
28486         Tests for module 'unistr/u8-mblen'.
28487         * modules/unistr/u8-mblen-tests: New file.
28488         * tests/unistr/test-u8-mblen.c: New file.
28489
28490         Tests for module 'unistr/u32-to-u16'.
28491         * modules/unistr/u32-to-u16-tests: New file.
28492         * tests/unistr/test-u32-to-u16.c: New file.
28493
28494         Tests for module 'unistr/u32-to-u8'.
28495         * modules/unistr/u32-to-u8-tests: New file.
28496         * tests/unistr/test-u32-to-u8.c: New file.
28497
28498         Tests for module 'unistr/u16-to-u32'.
28499         * modules/unistr/u16-to-u32-tests: New file.
28500         * tests/unistr/test-u16-to-u32.c: New file.
28501
28502         Tests for module 'unistr/u16-to-u8'.
28503         * modules/unistr/u16-to-u8-tests: New file.
28504         * tests/unistr/test-u16-to-u8.c: New file.
28505
28506         Tests for module 'unistr/u8-to-u32'.
28507         * modules/unistr/u8-to-u32-tests: New file.
28508         * tests/unistr/test-u8-to-u32.c: New file.
28509
28510         Tests for module 'unistr/u8-to-u16'.
28511         * modules/unistr/u8-to-u16-tests: New file.
28512         * tests/unistr/test-u8-to-u16.c: New file.
28513
28514         Tests for module 'unistr/u32-check'.
28515         * modules/unistr/u32-check-tests: New file.
28516         * tests/unistr/test-u32-check.c: New file.
28517
28518         Tests for module 'unistr/u16-check'.
28519         * modules/unistr/u16-check-tests: New file.
28520         * tests/unistr/test-u16-check.c: New file.
28521
28522         Tests for module 'unistr/u8-check'.
28523         * modules/unistr/u8-check-tests: New file.
28524         * tests/unistr/test-u8-check.c: New file.
28525
28526         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28527         (category_equals): New function.
28528         (main): Add more tests.
28529         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28530
28531         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28532
28533 2010-01-10  Bruno Haible  <bruno@clisp.org>
28534
28535         unistr/u*-strcoll: Try harder to distinguish different strings.
28536         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28537         compare s1 and s2 to see if they are different.
28538
28539 2010-01-10  Bruno Haible  <bruno@clisp.org>
28540
28541         unistr/u*-stpncpy: Fix the return value.
28542         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28543         description of the return value consistent with stpncpy in glibc.
28544         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28545         written non-NUL unit.
28546
28547 2010-01-10  Bruno Haible  <bruno@clisp.org>
28548
28549         unistr/u*-next: Add missing dependencies.
28550         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28551         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28552         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28553
28554 2010-01-10  Bruno Haible  <bruno@clisp.org>
28555
28556         unistr/u8-mbsnlen: Fix return value for incomplete character.
28557         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28558         u8_mblen.
28559         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28560         Remove unistr/u8-mblen.
28561         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28562         u16_mblen.
28563         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28564         Remove unistr/u16-mblen.
28565
28566 2010-01-10  Bruno Haible  <bruno@clisp.org>
28567
28568         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28569         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28570         Reported by Brian Gough <bjg@gnu.org> and
28571         Chris Clayton <chris2553@googlemail.com> via
28572         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28573
28574 2010-01-09  Bruno Haible  <bruno@clisp.org>
28575
28576         unistr/u16-to-u32: Reject invalid input.
28577         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28578         u16_mbtouc.
28579         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28580         Remove unistr/u16-mbtouc.
28581
28582         unistr/u16-to-u8: Reject invalid input.
28583         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28584         u16_mbtouc.
28585         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28586         Remove unistr/u16-mbtouc.
28587
28588         unistr/u8-to-u32: Reject invalid input.
28589         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28590         u8_mbtouc.
28591         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28592         Remove unistr/u8-mbtouc.
28593
28594         unistr/u8-to-u16: Reject invalid input.
28595         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28596         u8_mbtouc.
28597         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28598         Remove unistr/u8-mbtouc.
28599
28600 2010-01-09  Bruno Haible  <bruno@clisp.org>
28601
28602         Tests for module 'getlogin'.
28603         * modules/getlogin-tests: New file.
28604         * tests/test-getlogin.c: New file.
28605
28606         New module 'getlogin'.
28607         * lib/unistd.in.h (getlogin): New declaration.
28608         * lib/getlogin.c: New file.
28609         * m4/getlogin.m4: New file.
28610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28611         HAVE_GETLOGIN.
28612         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28613         HAVE_GETLOGIN.
28614         * modules/getlogin: New file.
28615         * doc/posix-functions/getlogin.texi: Mention the new module.
28616         Reported by John W. Eaton <jwe@gnu.org>.
28617
28618 2010-01-09  Bruno Haible  <bruno@clisp.org>
28619
28620         getlogin_r: Support for native Windows.
28621         * lib/getlogin_r.c: Include <windows.h>
28622         (getlogin_r): Implement for native Windows.
28623         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28624         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28625         via John W. Eaton <jwe@gnu.org>.
28626
28627 2010-01-09  Bruno Haible  <bruno@clisp.org>
28628
28629         getlogin_r: Small fixes.
28630         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28631         succeeds.
28632         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28633         before testing whether getlogin_r is declared. No need to set
28634         HAVE_DECL_GETLOGIN_R to 1.
28635         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28636
28637 2010-01-09  Bruno Haible  <bruno@clisp.org>
28638
28639         * lib/unistd.in.h (getlogin_r): Add comment.
28640
28641 2010-01-09  Bruno Haible  <bruno@clisp.org>
28642
28643         Tests for module 'getlogin_r'.
28644         * modules/getlogin_r-tests: New file.
28645         * tests/test-getlogin_r.c: New file.
28646
28647 2010-01-09  Jim Meyering  <meyering@redhat.com>
28648
28649         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28650         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28651         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28652
28653 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28654
28655         * lib/dup2.c (rpl_dup2): Improve comment.
28656
28657 2010-01-08  Eric Blake  <ebb9@byu.net>
28658
28659         maint.mk: allow packages to add makefile @@ exceptions
28660         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28661         (sc_makefile_check): Rename...
28662         (sc_makefile_at_at_check): ...to this, and use hook.
28663
28664         dup2: work around mingw bug
28665         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28666         Reported by Simon Josefsson.
28667
28668 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28669
28670         glob: Fix C++ compilation.
28671         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28672         C++.
28673
28674 2010-01-07  Bruno Haible  <bruno@clisp.org>
28675
28676         Fix indentation of wctype.in.h, broken since 2007-01-06.
28677         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28678
28679 2010-01-07  Bruno Haible  <bruno@clisp.org>
28680
28681         mbslen: Avoid collision with system function.
28682         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28683         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28684         * m4/mbslen.m4: New file.
28685         * modules/mbslen (Files): Add it.
28686         (configure.ac): Invoke gl_MBSLEN.
28687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28688         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28689         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28690         via Ian Beckwith <ianb@erislabs.net>.
28691
28692 2010-01-07  Bruno Haible  <bruno@clisp.org>
28693
28694         dirent: Document the last fix.
28695         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28696
28697 2010-01-07  Bruno Haible  <bruno@clisp.org>
28698
28699         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28700         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28701         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28702         va_list are defined.
28703         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28704         Reported by Eric Blake.
28705
28706 2010-01-07  Bruno Haible  <bruno@clisp.org>
28707
28708         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28709         * modules/xlist (Depends-on): Add 'list',
28710         * modules/xoset (Depends-on): Add 'oset'.
28711         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28712
28713 2010-01-07  Bruno Haible  <bruno@clisp.org>
28714
28715         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28716         * doc/posix-functions/strncasecmp.texi: Likewise.
28717
28718 2010-01-07  Bruno Haible  <bruno@clisp.org>
28719
28720         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28721
28722 2010-01-07  John W. Eaton  <jwe@octave.org>
28723
28724         wctype: allow C++ use
28725         * lib/wctype.in.h: Add extern "C" block for C++.
28726
28727 2010-01-06  Eric Blake  <ebb9@byu.net>
28728
28729         maint.mk: detect incorrect GFDL usage
28730         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28731
28732 2010-01-06  Jim Meyering  <meyering@redhat.com>
28733         and Eric Blake  <ebb9@byu.net>
28734
28735         maint.mk: ignore multi-line copyright in NEWS
28736         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28737
28738 2010-01-06  Eric Blake  <ebb9@byu.net>
28739
28740         select: add missing dependency
28741         * modules/select-tests (Depends-on): Move sockets dependency...
28742         * modules/select (Depends-on): ...here.
28743         Reported by Ian Beckwith.
28744
28745         doc: regenerate INSTALL
28746         * doc/INSTALL: Reflect recent autoconf update.
28747         * doc/INSTALL.ISO: Likewise.
28748         * doc/INSTALL.UTF-8: Likewise.
28749
28750         pread: fix compilation on glibc
28751         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28752         Reported by Ralf Wildenhues.
28753
28754         dirent: fix test failure
28755         * lib/dirent.in.h (includes): Guarantee ino_t.
28756         Reported by Ralf Wildenhues.
28757
28758 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28759
28760         linkat, renameat: avoid bad free
28761         * lib/at-func2.c (at_func2): Fix typo.
28762         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28763
28764 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28765
28766         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28767         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28768         to avoid failure of symlink test later.
28769
28770 2010-01-06  Eric Blake  <ebb9@byu.net>
28771
28772         stdio, unistd: guarantee ssize_t
28773         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28774         2008 are exposed when needed.
28775         * lib/stdio.in.h (includes): Likewise.
28776         Reported by Ralf Wildenhues.
28777
28778 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28779
28780         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28781         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28782         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28783
28784 2010-01-06  Jim Meyering  <meyering@redhat.com>
28785
28786         readtokens: this module *does* require xalloc.h
28787         It uses only functions that were omitted by the old syntax-check rule.
28788         * lib/readtokens.c: Include "xalloc.h" once again.
28789         * modules/readtokens (Depends-on): Add xalloc.
28790         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28791
28792 2010-01-05  Eric Blake  <ebb9@byu.net>
28793
28794         maint: support 'make announcement' from a VPATH build
28795         * top/maint.mk (announcement): Look for correct NEWS file.
28796
28797 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28798
28799         utimens (fdutimens): ignore a negative FD, per contract
28800         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28801         when we have a valid file descriptor.  Otherwise, using a brand
28802         new glibc (with just-patched futimens that now fails with EBADF)
28803         would cause this function to fail with ENOSYS.
28804         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28805         See also http://bugzilla.redhat.com/552320.
28806
28807 2010-01-05  Eric Blake  <ebb9@byu.net>
28808
28809         strcase: document what it provides
28810         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28811         gnulib module.
28812         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28813         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28814
28815 2010-01-05  Jim Meyering  <meyering@redhat.com>
28816
28817         maint: remove useless inclusions of "xalloc.h"
28818         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28819         * lib/readtokens.c: Likewise.
28820         * lib/same.c: Likewise.
28821         * modules/getloadavg (Depends-on): Remove xalloc.
28822         * modules/readtokens: Likewise.
28823         * modules/same: Likewise.
28824
28825         maint.mk: include 4 more function names in alloca.h-checking regexp
28826         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28827         regexp.  Before, we would give a false-positive (saying alloca.h
28828         is included unnecessarily) when the only uses involved omitted symbols.
28829
28830         xalloc.h: use consistent formatting
28831         * lib/xalloc.h: Move declarations to start in the first column.
28832
28833 2010-01-05  Eric Blake  <ebb9@byu.net>
28834
28835         mkdir: avoid xalloc
28836         * lib/mkdir.c (includes): Drop unused header.
28837         Reported by John W. Eaton.
28838
28839 2010-01-04  Jim Meyering  <meyering@redhat.com>
28840
28841         nl_langinfo: avoid configure-time syntax error
28842         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28843         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28844         the empty string.  Don't let that provoke a shell syntax error.
28845
28846         regcomp, regexec, fnmatch: avoid array bounds read error
28847         * lib/regcomp.c (build_equiv_class): From glibc:
28848         Use only the low 24 bits of a findidx return value as an index
28849         into the weights array.  Patch by Ulrich Drepper:
28850         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28851         * lib/regexec.c (check_node_accept_bytes): Likewise.
28852         * lib/fnmatch_loop.c (FCT): Likewise.
28853
28854         regcomp: skip collseq lookup when there are no rules
28855         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28856         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28857
28858         regcomp: recognize ill-formed { } expressions
28859         * lib/regcomp.c (parse_dup_op): From glibc:
28860         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28861
28862         regcomp: fix typo in comment
28863         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28864         s/satisfy/satisfies/.
28865
28866         regcomp: sync from glibc: remove dead store
28867         * lib/regcomp.c (duplicate_node_closure): Remove useless
28868         search_duplicated_node call and dead store.
28869
28870         regcomp: sync from glibc; always use nl_langinfo
28871         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28872         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28873         * modules/regex (Depends-on): Add nl_langinfo.
28874
28875 2010-01-04  Eric Blake  <ebb9@byu.net>
28876
28877         fdopendir: fix configure test
28878         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28879
28880 2010-01-01  Bruno Haible  <bruno@clisp.org>
28881
28882         wchar: Remove unused configure check.
28883         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28884
28885 2010-01-01  Eric Blake  <ebb9@byu.net>
28886
28887         headers: make check of system header explicit
28888         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28889         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28890         ourselves.
28891         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28893         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28894         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28895         internals.
28896         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28897         missing.
28898         Suggested by Bruno Haible.
28899
28900 2010-01-01  Jim Meyering  <meyering@redhat.com>
28901
28902         ChangeLog: tweak to eliminate unnecessary copyright line
28903         * ChangeLog: Remove a copyright line that was mistakenly updated
28904         by today's update-copyright run.  Reported by Eric Blake.
28905
28906         test-update-copyright: don't let envvar setting cause test failure
28907         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28908
28909 2010-01-01  Bruno Haible  <bruno@clisp.org>
28910
28911         localename: Avoid gcc warning.
28912         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28913         function if it is not used.
28914
28915 2010-01-01  Jim Meyering  <meyering@redhat.com>
28916
28917         update nearly all FSF copyright year lists to include 2010
28918         Use the same procedure as for 2009, outlined in
28919         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28920
28921         version-etc: set COPYRIGHT_YEAR to 2010
28922         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28923
28924 2009-12-31  Eric Blake  <ebb9@byu.net>
28925
28926         doc: correct availability of cygwin 1.5.x getopt
28927         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28928         variables.
28929         * doc/posix-functions/opterr.texi (opterr): Likewise.
28930         * doc/posix-functions/optind.texi (optind): Likewise.
28931         * doc/posix-functions/optopt.texi (optopt): Likewise.
28932         * doc/posix-functions/tzname.texi (tzname): Likewise.
28933
28934         openat: update maintainer
28935         * modules/openat (Maintainer): Add myself.
28936
28937         utimens: avoid shadowing warning
28938         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28939         buffers into one, to avoid shadowing, as well as avoiding a
28940         redundant stat.
28941         Reported by Jim Meyering.
28942
28943         test-dup2: avoid compiler warning
28944         * tests/test-dup2.c (is_inheritable): Only define if used.
28945
28946 2010-01-01  Bruno Haible  <bruno@clisp.org>
28947
28948         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28949         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28950         defined, use wctomb instead of wcrtomb.
28951
28952 2010-01-01  Bruno Haible  <bruno@clisp.org>
28953
28954         iconv: Reject native Solaris iconv.
28955         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28956         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28957
28958 2009-12-31  Bruno Haible  <bruno@clisp.org>
28959
28960         * tests/test-signal.c (main): Remove test of 'SIG'.
28961
28962 2009-12-31  Bruno Haible  <bruno@clisp.org>
28963
28964         spawn: Fix incomplete fix.
28965         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28966         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28967         warnings for GNULIB_POSIXCHECK again.
28968         Reported by Eric Blake.
28969
28970 2009-12-31  Bruno Haible  <bruno@clisp.org>
28971
28972         Avoid namespace pollution on glibc systems.
28973         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28974         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28975         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28976         glibc systems.
28977
28978 2009-12-31  Bruno Haible  <bruno@clisp.org>
28979
28980         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28981         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28982         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28983         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28984         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28985         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28986         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28987
28988 2009-12-31  Bruno Haible  <bruno@clisp.org>
28989
28990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28991         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28992         afterwards.
28993
28994 2009-12-31  Bruno Haible  <bruno@clisp.org>
28995
28996         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28997         SYS_UTSNAME_H.
28998
28999 2009-12-31  Bruno Haible  <bruno@clisp.org>
29000
29001         spawn: Fix misapplied patch.
29002         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29003         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29004         warnings for GNULIB_POSIXCHECK.
29005
29006 2009-12-31  Bruno Haible  <bruno@clisp.org>
29007
29008         times: Update after sys_times changed.
29009         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29010         * modules/times (Files): Add it.
29011         (configure.ac): Invoke gl_FUNC_TIMES.
29012
29013 2009-12-31  Bruno Haible  <bruno@clisp.org>
29014
29015         Use AC_C_INLINE where necessary.
29016         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29017         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29019         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29020         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29021         * m4/mbiter.m4 (gl_MBITER): Likewise.
29022         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29023         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29024         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29025         * modules/u64 (configure.ac): Likewise.
29026
29027 2009-12-31  Bruno Haible  <bruno@clisp.org>
29028
29029         Use AC_C_INLINE instead of module 'inline' where possible.
29030         * modules/inline (Description): Clarify purpose.
29031         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29032         * modules/count-one-bits (Depends-on): Remove inline.
29033         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29034         * modules/openat (Depends-on): Remove inline.
29035         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29036         instead of depending on module 'inline'.
29037         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29038         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29039         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29040         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29041         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29042         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29043         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29044         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29045         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29046         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29047         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29048         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29049         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29050         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29051         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29052         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29053         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29054         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29055         Likewise.
29056         * modules/unictype/property-ascii-hex-digit (Depends-on,
29057         configure.ac): Likewise.
29058         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29059         configure.ac): Likewise.
29060         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29061         configure.ac): Likewise.
29062         * modules/unictype/property-bidi-block-separator (Depends-on,
29063         configure.ac): Likewise.
29064         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29065         configure.ac): Likewise.
29066         * modules/unictype/property-bidi-common-separator (Depends-on,
29067         configure.ac): Likewise.
29068         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29069         Likewise.
29070         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29071         configure.ac): Likewise.
29072         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29073         configure.ac): Likewise.
29074         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29075         configure.ac): Likewise.
29076         * modules/unictype/property-bidi-european-digit (Depends-on,
29077         configure.ac): Likewise.
29078         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29079         configure.ac): Likewise.
29080         * modules/unictype/property-bidi-left-to-right (Depends-on,
29081         configure.ac): Likewise.
29082         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29083         configure.ac): Likewise.
29084         * modules/unictype/property-bidi-other-neutral (Depends-on,
29085         configure.ac): Likewise.
29086         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29087         Likewise.
29088         * modules/unictype/property-bidi-segment-separator (Depends-on,
29089         configure.ac): Likewise.
29090         * modules/unictype/property-bidi-whitespace (Depends-on,
29091         configure.ac): Likewise.
29092         * modules/unictype/property-combining (Depends-on, configure.ac):
29093         Likewise.
29094         * modules/unictype/property-composite (Depends-on, configure.ac):
29095         Likewise.
29096         * modules/unictype/property-currency-symbol (Depends-on,
29097         configure.ac): Likewise.
29098         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29099         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29100         Likewise.
29101         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29102         configure.ac): Likewise.
29103         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29104         Likewise.
29105         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29106         Likewise.
29107         * modules/unictype/property-extender (Depends-on, configure.ac):
29108         Likewise.
29109         * modules/unictype/property-format-control (Depends-on, configure.ac):
29110         Likewise.
29111         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29112         Likewise.
29113         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29114         Likewise.
29115         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29116         Likewise.
29117         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29118         Likewise.
29119         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29120         Likewise.
29121         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29122         Likewise.
29123         * modules/unictype/property-id-start (Depends-on, configure.ac):
29124         Likewise.
29125         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29126         Likewise.
29127         * modules/unictype/property-ids-binary-operator (Depends-on,
29128         configure.ac): Likewise.
29129         * modules/unictype/property-ids-trinary-operator (Depends-on,
29130         configure.ac): Likewise.
29131         * modules/unictype/property-ignorable-control (Depends-on,
29132         configure.ac): Likewise.
29133         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29134         Likewise.
29135         * modules/unictype/property-join-control (Depends-on, configure.ac):
29136         Likewise.
29137         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29138         Likewise.
29139         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29140         Likewise.
29141         * modules/unictype/property-logical-order-exception (Depends-on,
29142         configure.ac): Likewise.
29143         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29144         Likewise.
29145         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29146         * modules/unictype/property-non-break (Depends-on, configure.ac):
29147         Likewise.
29148         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29149         Likewise.
29150         * modules/unictype/property-numeric (Depends-on, configure.ac):
29151         Likewise.
29152         * modules/unictype/property-other-alphabetic (Depends-on,
29153         configure.ac): Likewise.
29154         * modules/unictype/property-other-default-ignorable-code-point
29155         (Depends-on, configure.ac): Likewise.
29156         * modules/unictype/property-other-grapheme-extend (Depends-on,
29157         configure.ac): Likewise.
29158         * modules/unictype/property-other-id-continue (Depends-on,
29159         configure.ac): Likewise.
29160         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29161         Likewise.
29162         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29163         Likewise.
29164         * modules/unictype/property-other-math (Depends-on, configure.ac):
29165         Likewise.
29166         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29167         Likewise.
29168         * modules/unictype/property-paired-punctuation (Depends-on,
29169         configure.ac): Likewise.
29170         * modules/unictype/property-paragraph-separator (Depends-on,
29171         configure.ac): Likewise.
29172         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29173         Likewise.
29174         * modules/unictype/property-pattern-white-space (Depends-on,
29175         configure.ac): Likewise.
29176         * modules/unictype/property-private-use (Depends-on, configure.ac):
29177         Likewise.
29178         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29179         Likewise.
29180         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29181         Likewise.
29182         * modules/unictype/property-radical (Depends-on, configure.ac):
29183         Likewise.
29184         * modules/unictype/property-sentence-terminal (Depends-on,
29185         configure.ac): Likewise.
29186         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29187         Likewise.
29188         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29189         * modules/unictype/property-terminal-punctuation (Depends-on,
29190         configure.ac): Likewise.
29191         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29192         Likewise.
29193         * modules/unictype/property-unassigned-code-value (Depends-on,
29194         configure.ac): Likewise.
29195         * modules/unictype/property-unified-ideograph (Depends-on,
29196         configure.ac): Likewise.
29197         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29198         Likewise.
29199         * modules/unictype/property-variation-selector (Depends-on,
29200         configure.ac): Likewise.
29201         * modules/unictype/property-white-space (Depends-on, configure.ac):
29202         Likewise.
29203         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29204         Likewise.
29205         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29206         Likewise.
29207         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29208         Likewise.
29209         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29210         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29211         Likewise.
29212
29213 2009-12-31  Bruno Haible  <bruno@clisp.org>
29214
29215         Remove unnecessary AC_C_INLINE invocation.
29216         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29217         since 2009-08-21.
29218
29219 2009-12-31  Jim Meyering  <meyering@redhat.com>
29220
29221         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29222         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29223         With this change, we can all remove the gpg_key_ID = ... definition
29224         from our respective cfg.mk files.
29225
29226         maint.mk: create announcement template in ~/, not in /tmp
29227         * top/maint.mk (emit_upload_commands): Adjust.
29228         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29229         Remove temporary file, .ci-msg.
29230
29231 2009-12-31  Eric Blake  <ebb9@byu.net>
29232
29233         link-warning: always build headers with link warnings
29234         * modules/arpa_inet (Makefile.am): Always build replacement
29235         header.
29236         * modules/ctype (Makefile.am): Likewise.
29237         * modules/dirent (Makefile.am): Likewise.
29238         * modules/inttypes (Makefile.am): Likewise.
29239         * modules/langinfo (Makefile.am): Likewise.
29240         * modules/locale (Makefile.am): Likewise.
29241         * modules/spawn (Makefile.am): Likewise.
29242         * modules/sys_file (Makefile.am): Likewise.
29243         * modules/sys_ioctl (Makefile.am): Likewise.
29244         * modules/sys_select (Makefile.am): Likewise.
29245         * modules/sys_socket (Makefile.am): Likewise.
29246         * modules/sys_times (Makefile.am): Likewise.
29247         * modules/sys_utsname (Makefile.am): Likewise.
29248         * modules/sys_wait (Makefile.am): Likewise.
29249         * modules/wchar (Makefile.am): Likewise.
29250         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29251         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29252         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29253         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29254         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29255         Likewise.
29256         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29257         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29258         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29259         Likewise.
29260         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29261         Likewise.
29262         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29264         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29266         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29268         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29269         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29270         (gl_WCHAR_H_DEFAULTS): Likewise.
29271
29272 2009-12-31  Eric Blake  <ebb9@byu.net>
29273
29274         signal, spawn: use link warnings
29275         * lib/signal.in.h (sigset_t): Make unconditional.
29276         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29277         (sigpending, sigprocmask, sigaction): Add link warnings.
29278         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29279         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29280         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29281         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29282         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29283         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29284         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29285         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29286         (posix_spawn_file_actions_destroy)
29287         (posix_spawn_file_actions_addopen)
29288         (posix_spawn_file_actions_addclose)
29289         (posix_spawn_file_actions_adddup2): Likewise.
29290         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29291         * tests/test-signal.c (main): Enhance test.
29292
29293         spawn: improve wrapper support
29294         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29295         (gl_SPAWN_H_DEFAULTS): New defaults.
29296         * modules/spawn (Makefile.am): Substitute them.
29297         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29298         Only declare if missing or broken.
29299
29300         sys_times, sys_utsname: use include_next
29301         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29302         header.
29303         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29304         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29305         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29306         * modules/sys_times (Depends-on): Add include_next.
29307         (Makefile.am): Substitute additional values.
29308         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29309         * lib/sys_times.in.h (includes): Include native header, if
29310         available.
29311         * lib/sys_utsname.in.h (includes): Likewise.
29312         * tests/test-sys_times.c (main): Enhance test.
29313
29314         fdutimensat: revert prior patch
29315         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29316         utimens.h.
29317         Reported by Bruno Haible.
29318
29319 2009-12-30  Eric Blake  <ebb9@byu.net>
29320
29321         sys_wait: drop link-warning dependency
29322         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29323         link-warning efforts.
29324         * lib/sys_wait.in.h: Likewise.
29325
29326         fdutimensat: remove bogus dependency
29327         * modules/fdutimensat (Depends-on): Drop inline.
29328
29329         unistd: fix typo
29330         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29331
29332 2009-12-30  Bruno Haible  <bruno@clisp.org>
29333
29334         Fix compilation error with Solaris cc.
29335         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29336         * lib/unicase/u16-is-invariant.c: Likewise.
29337         * lib/unicase/u32-is-invariant.c: Likewise.
29338         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29339
29340 2009-12-30  Bruno Haible  <bruno@clisp.org>
29341
29342         Fix test crash.
29343         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29344         locales.
29345         Reported by Simon Josefsson <simon@josefsson.org>.
29346
29347 2009-12-30  Bruno Haible  <bruno@clisp.org>
29348
29349         Fix compilation error on most platforms.
29350         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29351         Reported by Simon Josefsson <simon@josefsson.org>
29352         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29353
29354 2009-12-30  Eric Blake  <ebb9@byu.net>
29355
29356         futimens, utimensat: work around ntfs-3g bug
29357         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29358         a ctime bug is present, and expand workaround to cover ntfs-3g.
29359         * lib/utimens.c (fdutimens, lutimens): Likewise.
29360         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29361         (validate_timespec): Adjust return value.
29362         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29363         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29364         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29365
29366 2009-12-29  Eric Blake  <ebb9@byu.net>
29367
29368         link-warning: make usage consistent
29369         * modules/ctype (Depends-on): Add link-warning.
29370         (Makefile.am): Update rules accordingly.
29371         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29372         * modules/locale (Depends-on, Makefile.am): Likewise.
29373         * modules/sys_file (Makefile.am): Likewise.
29374         * modules/getopt-posix (Makefile.am): Delete unused link warning
29375         efforts.
29376         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29377         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29378         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29379         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29380
29381         stdio: remove unused variables
29382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29384         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29385
29386         tests: test more substitute headers
29387         * modules/ctype-tests: New file.
29388         * modules/dirent-tests: Likewise.
29389         * modules/spawn-tests: Likewise.
29390         * modules/sys_file-tests: Likewise.
29391         * modules/sys_ioctl-tests: Likewise.
29392         * modules/sys_wait-tests: Likewise.
29393         * tests/test-ctype.c: Likewise.
29394         * tests/test-dirent.c: Likewise.
29395         * tests/test-spawn.c: Likewise.
29396         * tests/test-sys_file.c: Likewise.
29397         * tests/test-sys_ioctl.c: Likewise.
29398         * tests/test-sys_wait.c: Likewise.
29399         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29400         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29401         whether or not flock is in use.
29402
29403         tests: remove License section from module
29404         * modules/arpa_inet-tests: Remove unneeded section.
29405         * modules/byteswap-tests: Likewise.
29406         * modules/ceilf-tests: Likewise.
29407         * modules/ceill-tests: Likewise.
29408         * modules/crypto/des-tests: Likewise.
29409         * modules/crypto/gc-arcfour-tests: Likewise.
29410         * modules/crypto/gc-arctwo-tests: Likewise.
29411         * modules/crypto/gc-des-tests: Likewise.
29412         * modules/crypto/gc-hmac-md5-tests: Likewise.
29413         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29414         * modules/crypto/gc-md2-tests: Likewise.
29415         * modules/crypto/gc-md4-tests: Likewise.
29416         * modules/crypto/gc-md5-tests: Likewise.
29417         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29418         * modules/crypto/gc-rijndael-tests: Likewise.
29419         * modules/crypto/gc-sha1-tests: Likewise.
29420         * modules/crypto/gc-tests: Likewise.
29421         * modules/crypto/md2-tests: Likewise.
29422         * modules/crypto/md4-tests: Likewise.
29423         * modules/fcntl-h-tests: Likewise.
29424         * modules/floorf-tests: Likewise.
29425         * modules/floorl-tests: Likewise.
29426         * modules/frexp-nolibm-tests: Likewise.
29427         * modules/frexp-tests: Likewise.
29428         * modules/frexpl-nolibm-tests: Likewise.
29429         * modules/frexpl-tests: Likewise.
29430         * modules/getaddrinfo-tests: Likewise.
29431         * modules/inttypes-tests: Likewise.
29432         * modules/isfinite-tests: Likewise.
29433         * modules/isinf-tests: Likewise.
29434         * modules/ldexpl-tests: Likewise.
29435         * modules/locale-tests: Likewise.
29436         * modules/math-tests: Likewise.
29437         * modules/netdb-tests: Likewise.
29438         * modules/netinet_in-tests: Likewise.
29439         * modules/printf-frexp-tests: Likewise.
29440         * modules/printf-frexpl-tests: Likewise.
29441         * modules/priv-set-tests: Likewise.
29442         * modules/random_r-tests: Likewise.
29443         * modules/round-tests: Likewise.
29444         * modules/roundf-tests: Likewise.
29445         * modules/roundl-tests: Likewise.
29446         * modules/search-tests: Likewise.
29447         * modules/select-tests: Likewise.
29448         * modules/signal-tests: Likewise.
29449         * modules/stdbool-tests: Likewise.
29450         * modules/stddef-tests: Likewise.
29451         * modules/stdint-tests: Likewise.
29452         * modules/stdio-tests: Likewise.
29453         * modules/stdlib-tests: Likewise.
29454         * modules/string-tests: Likewise.
29455         * modules/strings-tests: Likewise.
29456         * modules/sys_select-tests: Likewise.
29457         * modules/sys_socket-tests: Likewise.
29458         * modules/sys_stat-tests: Likewise.
29459         * modules/sys_time-tests: Likewise.
29460         * modules/sys_utsname-tests: Likewise.
29461         * modules/sysexits-tests: Likewise.
29462         * modules/time-tests: Likewise.
29463         * modules/trunc-tests: Likewise.
29464         * modules/truncf-tests: Likewise.
29465         * modules/truncl-tests: Likewise.
29466         * modules/tsearch-tests: Likewise.
29467         * modules/unistd-tests: Likewise.
29468         * modules/wchar-tests: Likewise.
29469         * modules/wctype-tests: Likewise.
29470
29471         tests: fix license on several tests
29472         * tests/test-des.c: Update to GPLv3+.
29473         * tests/test-flock.c: Likewise.
29474         * tests/test-fsync.c: Likewise.
29475         * tests/test-futimens.h: Likewise.
29476         * tests/test-gc-arcfour.c: Likewise.
29477         * tests/test-gc-arctwo.c: Likewise.
29478         * tests/test-gc-des.c: Likewise.
29479         * tests/test-gc-hmac-md5.c: Likewise.
29480         * tests/test-gc-hmac-sha1.c: Likewise.
29481         * tests/test-gc-md2.c: Likewise.
29482         * tests/test-gc-md4.c: Likewise.
29483         * tests/test-gc-md5.c: Likewise.
29484         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29485         * tests/test-gc-rijndael.c: Likewise.
29486         * tests/test-gc-sha1.c: Likewise.
29487         * tests/test-gc.c: Likewise.
29488         * tests/test-getcwd.c: Likewise.
29489         * tests/test-link.c: Likewise.
29490         * tests/test-link.h: Likewise.
29491         * tests/test-lutimens.h: Likewise.
29492         * tests/test-md2.c: Likewise.
29493         * tests/test-md4.c: Likewise.
29494         * tests/test-mkdir.h: Likewise.
29495         * tests/test-rename.c: Likewise.
29496         * tests/test-rename.h: Likewise.
29497         * tests/test-safe-alloc.c: Likewise.
29498         * tests/test-utimens-common.h: Likewise.
29499         * tests/test-utimens.h: Likewise.
29500
29501         maint: sync license texts
29502         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29503         * doc/gpl-3.0.texi: Revert copyright year update.
29504         * doc/lgpl-3.0.texi: Likewise.
29505
29506 2009-12-29  Jim Meyering  <meyering@redhat.com>
29507
29508         update nearly all FSF copyright year lists to include 2009
29509         The files named by the following are exempted:
29510             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29511               test -f "$dst" && { echo "$dst"; continue; }
29512               test -d "$dst" || continue
29513               echo "$dst"/$(basename "$src")
29514             done > exempt
29515             git ls-files tests/unictype >> exempt
29516         In the remaining files, convert to all-interval notation if
29517         - there is already at least one year interval like 2000-2003
29518         - the file is maintained by me
29519         - the file is in lib/uni*/, where that style already prevails
29520         Otherwise, use update-copyright's default.
29521
29522 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29523         and Eric Blake  <ebb9@byu.net>
29524
29525         tests: don't require debug system() to pass
29526         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29527         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29528         * tests/test-unlink.h (test_unlink_func): Likewise.
29529         * tests/test-fstatat.c (main): ...into callers.
29530         * tests/test-lstat.c (main): Likewise.
29531         * tests/test-rmdir.c (main): Likewise.
29532         * tests/test-unlink.c (main): Likewise.
29533         * tests/test-unlinkat.c (main): Likewise.
29534         * tests/test-areadlink-with-size.c (main): Don't require a
29535         debug-only system call to pass, aiding cross-testing to mingw.
29536         * tests/test-areadlink.c (main): Likewise.
29537         * tests/test-areadlinkat-with-size.c (main): Likewise.
29538         * tests/test-areadlinkat.c (main): Likewise.
29539         * tests/test-canonicalize-lgpl.c (main): Likewise.
29540         * tests/test-canonicalize.c (main): Likewise.
29541         * tests/test-chown.c (main): Likewise.
29542         * tests/test-fchownat.c (main): Likewise.
29543         * tests/test-lchown.c (main): Likewise.
29544         * tests/test-fdutimensat.c (main): Likewise.
29545         * tests/test-futimens.c (main): Likewise.
29546         * tests/test-link.c (main): Likewise.
29547         * tests/test-linkat.c (main): Likewise.
29548         * tests/test-mkdir.c (main): Likewise.
29549         * tests/test-mkdirat.c (main): Likewise.
29550         * tests/test-mkfifo.c (main): Likewise.
29551         * tests/test-mkfifoat.c (main): Likewise.
29552         * tests/test-mknod.c (main): Likewise.
29553         * tests/test-readlink.c (main): Likewise.
29554         * tests/test-remove.c (main): Likewise.
29555         * tests/test-rename.c (main): Likewise.
29556         * tests/test-renameat.c (main): Likewise.
29557         * tests/test-symlink.c (main): Likewise.
29558         * tests/test-symlinkat.c (main): Likewise.
29559         * tests/test-utimens.c (main): Likewise.
29560         * tests/test-utimensat.c (main): Likewise.
29561
29562 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29563
29564         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29565         on $(UNUSED_PARAMETER_H) to avoid build failure.
29566
29567 2009-12-28  Jim Meyering  <meyering@redhat.com>
29568
29569         update-copyright: you may specify a max. line length other than 72
29570         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29571
29572         maint: use consistent FSF copyright line syntax
29573         * lib/posixtm.c: Add missing comma in FSF copyright line.
29574         * lib/posixtm.h: Likewise.
29575         * lib/getugroups.c: Add missing ", Inc.".
29576
29577         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29578         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29579         FSF copyright line.  Remove trailing blanks.
29580
29581 2009-12-28  Eric Blake  <ebb9@byu.net>
29582
29583         test-dup2: reduce dependencies
29584         * modules/cloexec (Configure.ac): Set witness.
29585         * modules/dup2-tests (Depends-on): Drop cloexec.
29586         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29587         not present.
29588         Suggested by Bruno Haible.
29589
29590 2009-12-26  Bruno Haible  <bruno@clisp.org>
29591
29592         Remove an unneeded dependency.
29593         * modules/fseterr (Depends-on): Remove dup2.
29594
29595 2009-12-26  Eric Blake  <ebb9@byu.net>
29596
29597         tests: use macros.h in more places
29598         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29599         (ASSERT_STREAM): Provide default of stderr.
29600         * tests/test-dirent-safer.c: Include macros.h, using alternate
29601         stream for assertions.
29602         * tests/test-dup-safer.c: Likewise.
29603         * tests/test-freopen-safer.c: Likewise.
29604         * tests/test-getopt.c: Likewise.
29605         * tests/test-openat-safer.c: Likewise.
29606         * tests/test-pipe.c: Likewise.
29607         * tests/test-popen-safer.c: Likewise.
29608         * modules/dirent-safer-tests (Files): Include macros.h.
29609         * modules/unistd-safer-tests (Files): Likewise.
29610         * modules/freopen-safer-tests (Files): Likewise.
29611         * modules/getopt-posix-tests (Files): Likewise.
29612         * modules/openat-safer-tests (Files): Likewise.
29613         * modules/pipe-tests (Files): Likewise.
29614
29615 2009-12-26  Bruno Haible  <bruno@clisp.org>
29616
29617         javacomp: Portability fix.
29618         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29619         that it also works on Solaris.
29620
29621 2009-12-26  Bruno Haible  <bruno@clisp.org>
29622
29623         localename: Fix storage allocation of gl_locale_name_thread's result.
29624         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29625         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29626         all platforms that have 'uselocale'.
29627         (gl_locale_name_thread_unsafe): New function, extracted from
29628         gl_locale_name_thread.
29629         (gl_locale_name_thread): Call struniq on all platforms that have
29630         'uselocale'.
29631         * tests/test-localename.c (test_locale_name_thread): Check that the
29632         resulting strings are permanently allocated.
29633         * modules/localename-tests (Depends-on): Add strdup.
29634
29635 2009-12-26  Bruno Haible  <bruno@clisp.org>
29636
29637         * tests/test-localename.c (categories): Fill in the strings.
29638
29639 2009-12-26  Jim Meyering  <meyering@redhat.com>
29640
29641         isdir: complete the removal of m4/isdir.m4
29642         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29643
29644         isdir: clean up, since at least grep still uses it
29645         * lib/isdir.c: Include "isdir.h".
29646         (S_ISDIR): Remove now-unneeded definition.
29647         * modules/isdir (Files): Add lib/isdir.h.
29648         * lib/isdir.h: New file, with declaration.
29649         * m4/isdir.m4: Remove file -- unneeded.
29650
29651 2009-12-25  Bruno Haible  <bruno@clisp.org>
29652
29653         selinux-h: Make generated .h files standalone.
29654         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29655         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29656         * lib/se-selinux.in.h: Likewise.
29657         * modules/selinux-h (Depends-on): Add unused-parameter.
29658         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29659         selinux/selinux.h and selinux/context.h.
29660         Suggested by Eric Blake.
29661
29662 2009-12-25  Bruno Haible  <bruno@clisp.org>
29663
29664         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29665         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29666         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29667         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29668         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29669
29670 2009-12-24  Bruno Haible  <bruno@clisp.org>
29671
29672         openat: Fix warning.
29673         * lib/openat-proc.c: Include <unistd.h>.
29674
29675 2009-12-24  Bruno Haible  <bruno@clisp.org>
29676
29677         New module 'unused-parameter'.
29678         * build-aux/unused-parameter.h: New file, extracted from earlier
29679         gnulib-common.m4.
29680         * modules/unused-parameter: New file.
29681         * lib/unistr.h: Include unused-parameter.h.
29682         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29683         _GL_UNUSED.
29684         * modules/unistr/base (Depends-on): Add unused-parameter.
29685
29686 2009-12-24  Bruno Haible  <bruno@clisp.org>
29687
29688         Add missing dependencies to 'extensions' module.
29689         * m4/extensions.m4: Add comment.
29690         * modules/accept4 (Depends-on): Add extensions.
29691         * modules/dup3 (Depends-on): Likewise.
29692         * modules/fcntl (Depends-on): Likewise.
29693         * modules/futimens (Depends-on): Likewise.
29694         * modules/mknod (Depends-on): Likewise.
29695         * modules/pipe2 (Depends-on): Likewise.
29696         * modules/stat-time (Depends-on): Likewise.
29697         * modules/strcasestr-simple (Depends-on): Likewise.
29698         * modules/strsignal (Depends-on): Likewise.
29699         * modules/utimensat (Depends-on): Likewise.
29700         * modules/localcharset (Depends-on): Likewise. Needed because of
29701         gl_FCNTL_O_FLAGS.
29702         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29703         AC_TYPE_MBSTATE_T.
29704         * modules/wcsnrtombs (Depends-on): Likewise.
29705         * modules/wcsrtombs (Depends-on): Likewise.
29706
29707 2009-12-24  Bruno Haible  <bruno@clisp.org>
29708
29709         binary-io: Avoid gcc warning due to SET_BINARY.
29710         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29711         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29712
29713 2009-12-24  Bruno Haible  <bruno@clisp.org>
29714
29715         Avoid future namespace pollution on glibc systems.
29716         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29717         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29718         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29719         glibc systems.
29720
29721 2009-12-24  Bruno Haible  <bruno@clisp.org>
29722
29723         Refactor common macros used in tests.
29724         * tests/macros.h: New file.
29725         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29726         and/or <stdlib.h>, if appropriate.
29727         (ASSERT, SIZEOF): Remove macros.
29728         * tests/test-areadlink-with-size.c: Likewise.
29729         * tests/test-areadlinkat.c: Likewise.
29730         * tests/test-areadlinkat-with-size.c: Likewise.
29731         * tests/test-argmatch.c: Likewise.
29732         * tests/test-argv-iter.c: Likewise.
29733         * tests/test-array-mergesort.c: Likewise.
29734         * tests/test-array_list.c: Likewise.
29735         * tests/test-array_oset.c: Likewise.
29736         * tests/test-avltree_list.c: Likewise.
29737         * tests/test-avltree_oset.c: Likewise.
29738         * tests/test-avltreehash_list.c: Likewise.
29739         * tests/test-base64.c: Likewise.
29740         * tests/test-binary-io.c: Likewise.
29741         * tests/test-bitrotate.c: Likewise.
29742         * tests/test-btowc.c: Likewise.
29743         * tests/test-byteswap.c: Likewise.
29744         * tests/test-c-ctype.c: Likewise.
29745         * tests/test-c-stack.c: Likewise.
29746         * tests/test-c-strcasecmp.c: Likewise.
29747         * tests/test-c-strcasestr.c: Likewise.
29748         * tests/test-c-strncasecmp.c: Likewise.
29749         * tests/test-c-strstr.c: Likewise.
29750         * tests/test-canonicalize-lgpl.c: Likewise.
29751         * tests/test-canonicalize.c: Likewise.
29752         * tests/test-carray_list.c: Likewise.
29753         * tests/test-ceilf1.c: Likewise.
29754         * tests/test-ceilf2.c: Likewise.
29755         * tests/test-ceill.c: Likewise.
29756         * tests/test-chown.c: Likewise.
29757         * tests/test-cloexec.c: Likewise.
29758         * tests/test-copy-acl.c: Likewise.
29759         * tests/test-copy-file.c: Likewise.
29760         * tests/test-count-one-bits.c: Likewise.
29761         * tests/test-dprintf-posix.c: Likewise.
29762         * tests/test-dup2.c: Likewise.
29763         * tests/test-dup3.c: Likewise.
29764         * tests/test-duplocale.c: Likewise.
29765         * tests/test-fbufmode.c: Likewise.
29766         * tests/test-fchdir.c: Likewise.
29767         * tests/test-fchownat.c: Likewise.
29768         * tests/test-fcntl-safer.c: Likewise.
29769         * tests/test-fcntl.c: Likewise.
29770         * tests/test-fdopendir.c: Likewise.
29771         * tests/test-fdutimensat.c: Likewise.
29772         * tests/test-fflush2.c: Likewise.
29773         * tests/test-file-has-acl.c: Likewise.
29774         * tests/test-filevercmp.c: Likewise.
29775         * tests/test-flock.c: Likewise.
29776         * tests/test-floorf1.c: Likewise.
29777         * tests/test-floorf2.c: Likewise.
29778         * tests/test-floorl.c: Likewise.
29779         * tests/test-fnmatch.c: Likewise.
29780         * tests/test-fopen.h: Likewise.
29781         * tests/test-fpending.c: Likewise.
29782         * tests/test-fprintf-posix.c: Likewise.
29783         * tests/test-fpurge.c: Likewise.
29784         * tests/test-freadable.c: Likewise.
29785         * tests/test-freadahead.c: Likewise.
29786         * tests/test-freading.c: Likewise.
29787         * tests/test-freadptr.c: Likewise.
29788         * tests/test-freadptr2.c: Likewise.
29789         * tests/test-freadseek.c: Likewise.
29790         * tests/test-freopen.c: Likewise.
29791         * tests/test-frexp.c: Likewise.
29792         * tests/test-frexpl.c: Likewise.
29793         * tests/test-fseek.c: Likewise.
29794         * tests/test-fseeko.c: Likewise.
29795         * tests/test-fstatat.c: Likewise.
29796         * tests/test-fstrcmp.c: Likewise.
29797         * tests/test-fsync.c: Likewise.
29798         * tests/test-ftell.c: Likewise.
29799         * tests/test-ftello.c: Likewise.
29800         * tests/test-func.c: Likewise.
29801         * tests/test-futimens.c: Likewise.
29802         * tests/test-fwritable.c: Likewise.
29803         * tests/test-fwriting.c: Likewise.
29804         * tests/test-getcwd.c: Likewise.
29805         * tests/test-getdate.c: Likewise.
29806         * tests/test-getdelim.c: Likewise.
29807         * tests/test-getdtablesize.c: Likewise.
29808         * tests/test-getgroups.c: Likewise.
29809         * tests/test-getline.c: Likewise.
29810         * tests/test-getndelim2.c: Likewise.
29811         * tests/test-glob.c: Likewise.
29812         * tests/test-hash.c: Likewise.
29813         * tests/test-i-ring.c: Likewise.
29814         * tests/test-iconv-utf.c: Likewise.
29815         * tests/test-iconv.c: Likewise.
29816         * tests/test-idpriv-drop.c: Likewise.
29817         * tests/test-idpriv-droptemp.c: Likewise.
29818         * tests/test-inet_ntop.c: Likewise.
29819         * tests/test-inet_pton.c: Likewise.
29820         * tests/test-isblank.c: Likewise.
29821         * tests/test-isfinite.c: Likewise.
29822         * tests/test-isinf.c: Likewise.
29823         * tests/test-isnan.c: Likewise.
29824         * tests/test-isnand.h: Likewise.
29825         * tests/test-isnanf.h: Likewise.
29826         * tests/test-isnanl.h: Likewise.
29827         * tests/test-lchown.c: Likewise.
29828         * tests/test-ldexpl.c: Likewise.
29829         * tests/test-link.c: Likewise.
29830         * tests/test-linkat.c: Likewise.
29831         * tests/test-linked_list.c: Likewise.
29832         * tests/test-linkedhash_list.c: Likewise.
29833         * tests/test-localename.c: Likewise.
29834         * tests/test-lseek.c: Likewise.
29835         * tests/test-lstat.c: Likewise.
29836         * tests/test-mbmemcasecmp.c: Likewise.
29837         * tests/test-mbmemcasecoll.c: Likewise.
29838         * tests/test-mbrtowc.c: Likewise.
29839         * tests/test-mbscasecmp.c: Likewise.
29840         * tests/test-mbscasestr1.c: Likewise.
29841         * tests/test-mbscasestr2.c: Likewise.
29842         * tests/test-mbscasestr3.c: Likewise.
29843         * tests/test-mbscasestr4.c: Likewise.
29844         * tests/test-mbschr.c: Likewise.
29845         * tests/test-mbscspn.c: Likewise.
29846         * tests/test-mbsinit.c: Likewise.
29847         * tests/test-mbsncasecmp.c: Likewise.
29848         * tests/test-mbsnrtowcs.c: Likewise.
29849         * tests/test-mbspbrk.c: Likewise.
29850         * tests/test-mbspcasecmp.c: Likewise.
29851         * tests/test-mbsrchr.c: Likewise.
29852         * tests/test-mbsrtowcs.c: Likewise.
29853         * tests/test-mbsspn.c: Likewise.
29854         * tests/test-mbsstr1.c: Likewise.
29855         * tests/test-mbsstr2.c: Likewise.
29856         * tests/test-mbsstr3.c: Likewise.
29857         * tests/test-memchr.c: Likewise.
29858         * tests/test-memchr2.c: Likewise.
29859         * tests/test-memcmp.c: Likewise.
29860         * tests/test-memmem.c: Likewise.
29861         * tests/test-memrchr.c: Likewise.
29862         * tests/test-mkdir.c: Likewise.
29863         * tests/test-mkdirat.c: Likewise.
29864         * tests/test-mkfifo.c: Likewise.
29865         * tests/test-mkfifoat.c: Likewise.
29866         * tests/test-mknod.c: Likewise.
29867         * tests/test-nanosleep.c: Likewise.
29868         * tests/test-nl_langinfo.c: Likewise.
29869         * tests/test-obstack-printf.c: Likewise.
29870         * tests/test-open.c: Likewise.
29871         * tests/test-openat.c: Likewise.
29872         * tests/test-pipe-filter-gi1.c: Likewise.
29873         * tests/test-pipe-filter-gi2-main.c: Likewise.
29874         * tests/test-pipe-filter-ii1.c: Likewise.
29875         * tests/test-pipe-filter-ii2-main.c: Likewise.
29876         * tests/test-pipe2.c: Likewise.
29877         * tests/test-popen.h: Likewise.
29878         * tests/test-posixtm.c: Likewise.
29879         * tests/test-pread.c: Likewise.
29880         * tests/test-printf-frexp.c: Likewise.
29881         * tests/test-printf-frexpl.c: Likewise.
29882         * tests/test-printf-posix.c: Likewise.
29883         * tests/test-priv-set.c: Likewise.
29884         * tests/test-quotearg.c: Likewise.
29885         * tests/test-random_r.c: Likewise.
29886         * tests/test-rawmemchr.c: Likewise.
29887         * tests/test-rbtree_list.c: Likewise.
29888         * tests/test-rbtree_oset.c: Likewise.
29889         * tests/test-rbtreehash_list.c: Likewise.
29890         * tests/test-readlink.c: Likewise.
29891         * tests/test-remove.c: Likewise.
29892         * tests/test-rename.c: Likewise.
29893         * tests/test-renameat.c: Likewise.
29894         * tests/test-rmdir.c: Likewise.
29895         * tests/test-round1.c: Likewise.
29896         * tests/test-roundf1.c: Likewise.
29897         * tests/test-roundl.c: Likewise.
29898         * tests/test-safe-alloc.c: Likewise.
29899         * tests/test-sameacls.c: Likewise.
29900         * tests/test-set-mode-acl.c: Likewise.
29901         * tests/test-setenv.c: Likewise.
29902         * tests/test-sigaction.c: Likewise.
29903         * tests/test-signbit.c: Likewise.
29904         * tests/test-sleep.c: Likewise.
29905         * tests/test-snprintf-posix.c: Likewise.
29906         * tests/test-snprintf.c: Likewise.
29907         * tests/test-sprintf-posix.c: Likewise.
29908         * tests/test-stat-time.c: Likewise.
29909         * tests/test-stat.c: Likewise.
29910         * tests/test-strcasestr.c: Likewise.
29911         * tests/test-strchrnul.c: Likewise.
29912         * tests/test-strerror.c: Likewise.
29913         * tests/test-striconv.c: Likewise.
29914         * tests/test-striconveh.c: Likewise.
29915         * tests/test-striconveha.c: Likewise.
29916         * tests/test-strsignal.c: Likewise.
29917         * tests/test-strstr.c: Likewise.
29918         * tests/test-strtod.c: Likewise.
29919         * tests/test-strverscmp.c: Likewise.
29920         * tests/test-symlink.c: Likewise.
29921         * tests/test-symlinkat.c: Likewise.
29922         * tests/test-trunc1.c: Likewise.
29923         * tests/test-trunc2.c: Likewise.
29924         * tests/test-truncf1.c: Likewise.
29925         * tests/test-truncf2.c: Likewise.
29926         * tests/test-truncl.c: Likewise.
29927         * tests/test-uname.c: Likewise.
29928         * tests/test-unlink.c: Likewise.
29929         * tests/test-unlinkat.c: Likewise.
29930         * tests/test-unsetenv.c: Likewise.
29931         * tests/test-usleep.c: Likewise.
29932         * tests/test-utimens.c: Likewise.
29933         * tests/test-utimensat.c: Likewise.
29934         * tests/test-vasnprintf-posix.c: Likewise.
29935         * tests/test-vasnprintf-posix2.c: Likewise.
29936         * tests/test-vasnprintf.c: Likewise.
29937         * tests/test-vasprintf-posix.c: Likewise.
29938         * tests/test-vasprintf.c: Likewise.
29939         * tests/test-vdprintf-posix.c: Likewise.
29940         * tests/test-vfprintf-posix.c: Likewise.
29941         * tests/test-vprintf-posix.c: Likewise.
29942         * tests/test-vsnprintf-posix.c: Likewise.
29943         * tests/test-vsnprintf.c: Likewise.
29944         * tests/test-vsprintf-posix.c: Likewise.
29945         * tests/test-wcrtomb.c: Likewise.
29946         * tests/test-wcsnrtombs.c: Likewise.
29947         * tests/test-wcsrtombs.c: Likewise.
29948         * tests/test-wctype.c: Likewise.
29949         * tests/test-wcwidth.c: Likewise.
29950         * tests/test-xfprintf-posix.c: Likewise.
29951         * tests/test-xmemdup0.c: Likewise.
29952         * tests/test-xprintf-posix.c: Likewise.
29953         * tests/test-xvasprintf.c: Likewise.
29954         * tests/unicase/test-locale-language.c: Likewise.
29955         * tests/unicase/test-mapping-part1.h: Likewise.
29956         * tests/unicase/test-predicate-part1.h: Likewise.
29957         * tests/unicase/test-u8-casecmp.c: Likewise.
29958         * tests/unicase/test-u8-casecoll.c: Likewise.
29959         * tests/unicase/test-u8-casefold.c: Likewise.
29960         * tests/unicase/test-u8-is-cased.c: Likewise.
29961         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29962         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29963         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29964         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29965         * tests/unicase/test-u8-tolower.c: Likewise.
29966         * tests/unicase/test-u8-totitle.c: Likewise.
29967         * tests/unicase/test-u8-toupper.c: Likewise.
29968         * tests/unicase/test-u16-casecmp.c: Likewise.
29969         * tests/unicase/test-u16-casecoll.c: Likewise.
29970         * tests/unicase/test-u16-casefold.c: Likewise.
29971         * tests/unicase/test-u16-is-cased.c: Likewise.
29972         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29973         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29974         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29975         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29976         * tests/unicase/test-u16-tolower.c: Likewise.
29977         * tests/unicase/test-u16-totitle.c: Likewise.
29978         * tests/unicase/test-u16-toupper.c: Likewise.
29979         * tests/unicase/test-u32-casecmp.c: Likewise.
29980         * tests/unicase/test-u32-casecoll.c: Likewise.
29981         * tests/unicase/test-u32-casefold.c: Likewise.
29982         * tests/unicase/test-u32-is-cased.c: Likewise.
29983         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29984         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29985         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29986         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29987         * tests/unicase/test-u32-tolower.c: Likewise.
29988         * tests/unicase/test-u32-totitle.c: Likewise.
29989         * tests/unicase/test-u32-toupper.c: Likewise.
29990         * tests/unicase/test-ulc-casecmp.c: Likewise.
29991         * tests/unicase/test-ulc-casecoll.c: Likewise.
29992         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29993         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29994         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29995         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29996         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29997         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29998         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29999         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30000         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30001         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30002         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30003         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30004         * tests/unictype/test-bidi_byname.c: Likewise.
30005         * tests/unictype/test-bidi_name.c: Likewise.
30006         * tests/unictype/test-bidi_of.c: Likewise.
30007         * tests/unictype/test-bidi_test.c: Likewise.
30008         * tests/unictype/test-block_list.c: Likewise.
30009         * tests/unictype/test-block_of.c: Likewise.
30010         * tests/unictype/test-block_test.c: Likewise.
30011         * tests/unictype/test-categ_and.c: Likewise.
30012         * tests/unictype/test-categ_and_not.c: Likewise.
30013         * tests/unictype/test-categ_byname.c: Likewise.
30014         * tests/unictype/test-categ_name.c: Likewise.
30015         * tests/unictype/test-categ_none.c: Likewise.
30016         * tests/unictype/test-categ_of.c: Likewise.
30017         * tests/unictype/test-categ_or.c: Likewise.
30018         * tests/unictype/test-categ_test_withtable.c: Likewise.
30019         * tests/unictype/test-combining.c: Likewise.
30020         * tests/unictype/test-decdigit.c: Likewise.
30021         * tests/unictype/test-digit.c: Likewise.
30022         * tests/unictype/test-mirror.c: Likewise.
30023         * tests/unictype/test-numeric.c: Likewise.
30024         * tests/unictype/test-pr_byname.c: Likewise.
30025         * tests/unictype/test-pr_test.c: Likewise.
30026         * tests/unictype/test-predicate-part1.h: Likewise.
30027         * tests/unictype/test-scripts.c: Likewise.
30028         * tests/unictype/test-sy_c_ident.c: Likewise.
30029         * tests/unictype/test-sy_java_ident.c: Likewise.
30030         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30031         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30032         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30033         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30034         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30035         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30036         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30037         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30038         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30039         * tests/uninorm/test-compat-decomposition.c: Likewise.
30040         * tests/uninorm/test-composition.c: Likewise.
30041         * tests/uninorm/test-decomposing-form.c: Likewise.
30042         * tests/uninorm/test-decomposition.c: Likewise.
30043         * tests/uninorm/test-u8-nfc.c: Likewise.
30044         * tests/uninorm/test-u8-nfd.c: Likewise.
30045         * tests/uninorm/test-u8-nfkc.c: Likewise.
30046         * tests/uninorm/test-u8-nfkd.c: Likewise.
30047         * tests/uninorm/test-u8-normcmp.c: Likewise.
30048         * tests/uninorm/test-u8-normcoll.c: Likewise.
30049         * tests/uninorm/test-u16-nfc.c: Likewise.
30050         * tests/uninorm/test-u16-nfd.c: Likewise.
30051         * tests/uninorm/test-u16-nfkc.c: Likewise.
30052         * tests/uninorm/test-u16-nfkd.c: Likewise.
30053         * tests/uninorm/test-u16-normcmp.c: Likewise.
30054         * tests/uninorm/test-u16-normcoll.c: Likewise.
30055         * tests/uninorm/test-u32-nfc.c: Likewise.
30056         * tests/uninorm/test-u32-nfd.c: Likewise.
30057         * tests/uninorm/test-u32-nfkc.c: Likewise.
30058         * tests/uninorm/test-u32-nfkd.c: Likewise.
30059         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30060         * tests/uninorm/test-u32-normcmp.c: Likewise.
30061         * tests/uninorm/test-u32-normcoll.c: Likewise.
30062         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30063         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30064         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30065         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30066         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30067         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30068         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30069         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30070         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30071         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30072         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30073         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30074         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30075         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30076         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30077         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30078         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30079         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30080         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30081         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30082         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30083         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30084         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30085         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30086         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30087         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30088         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30089         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30090         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30091         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30092         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30093         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30094         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30095         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30096         * tests/uniwidth/test-u8-width.c: Likewise.
30097         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30098         * tests/uniwidth/test-u16-width.c: Likewise.
30099         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30100         * tests/uniwidth/test-u32-width.c: Likewise.
30101         * tests/uniwidth/test-uc_width.c: Likewise.
30102         * tests/uniwidth/test-uc_width2.c: Likewise.
30103         * modules/acl-tests (Files): Add tests/macros.h.
30104         * modules/areadlink-tests (Files): Likewise.
30105         * modules/areadlink-with-size-tests (Files): Likewise.
30106         * modules/areadlinkat-tests (Files): Likewise.
30107         * modules/areadlinkat-with-size-tests (Files): Likewise.
30108         * modules/argmatch-tests (Files): Likewise.
30109         * modules/argv-iter-tests (Files): Likewise.
30110         * modules/array-list-tests (Files): Likewise.
30111         * modules/array-mergesort-tests (Files): Likewise.
30112         * modules/array-oset-tests (Files): Likewise.
30113         * modules/avltree-list-tests (Files): Likewise.
30114         * modules/avltree-oset-tests (Files): Likewise.
30115         * modules/avltreehash-list-tests (Files): Likewise.
30116         * modules/base64-tests (Files): Likewise.
30117         * modules/binary-io-tests (Files): Likewise.
30118         * modules/bitrotate-tests (Files): Likewise.
30119         * modules/btowc-tests (Files): Likewise.
30120         * modules/byteswap-tests (Files): Likewise.
30121         * modules/c-ctype-tests (Files): Likewise.
30122         * modules/c-stack-tests (Files): Likewise.
30123         * modules/c-strcase-tests (Files): Likewise.
30124         * modules/c-strcasestr-tests (Files): Likewise.
30125         * modules/c-strstr-tests (Files): Likewise.
30126         * modules/canonicalize-lgpl-tests (Files): Likewise.
30127         * modules/canonicalize-tests (Files): Likewise.
30128         * modules/carray-list-tests (Files): Likewise.
30129         * modules/ceilf-tests (Files): Likewise.
30130         * modules/ceill-tests (Files): Likewise.
30131         * modules/chown-tests (Files): Likewise.
30132         * modules/cloexec-tests (Files): Likewise.
30133         * modules/copy-file-tests (Files): Likewise.
30134         * modules/count-one-bits-tests (Files): Likewise.
30135         * modules/dprintf-posix-tests (Files): Likewise.
30136         * modules/dup2-tests (Files): Likewise.
30137         * modules/dup3-tests (Files): Likewise.
30138         * modules/duplocale-tests (Files): Likewise.
30139         * modules/fbufmode-tests (Files): Likewise.
30140         * modules/fchdir-tests (Files): Likewise.
30141         * modules/fcntl-safer-tests (Files): Likewise.
30142         * modules/fcntl-tests (Files): Likewise.
30143         * modules/fdopendir-tests (Files): Likewise.
30144         * modules/fdutimensat-tests (Files): Likewise.
30145         * modules/fflush-tests (Files): Likewise.
30146         * modules/filevercmp-tests (Files): Likewise.
30147         * modules/flock-tests (Files): Likewise.
30148         * modules/floorf-tests (Files): Likewise.
30149         * modules/floorl-tests (Files): Likewise.
30150         * modules/fnmatch-tests (Files): Likewise.
30151         * modules/fopen-safer-tests (Files): Likewise.
30152         * modules/fopen-tests (Files): Likewise.
30153         * modules/fpending-tests (Files): Likewise.
30154         * modules/fprintf-posix-tests (Files): Likewise.
30155         * modules/fpurge-tests (Files): Likewise.
30156         * modules/freadable-tests (Files): Likewise.
30157         * modules/freadahead-tests (Files): Likewise.
30158         * modules/freading-tests (Files): Likewise.
30159         * modules/freadptr-tests (Files): Likewise.
30160         * modules/freadseek-tests (Files): Likewise.
30161         * modules/freopen-tests (Files): Likewise.
30162         * modules/frexp-nolibm-tests (Files): Likewise.
30163         * modules/frexp-tests (Files): Likewise.
30164         * modules/frexpl-nolibm-tests (Files): Likewise.
30165         * modules/frexpl-tests (Files): Likewise.
30166         * modules/fseek-tests (Files): Likewise.
30167         * modules/fseeko-tests (Files): Likewise.
30168         * modules/fstrcmp-tests (Files): Likewise.
30169         * modules/fsync-tests (Files): Likewise.
30170         * modules/ftell-tests (Files): Likewise.
30171         * modules/ftello-tests (Files): Likewise.
30172         * modules/func-tests (Files): Likewise.
30173         * modules/futimens-tests (Files): Likewise.
30174         * modules/fwritable-tests (Files): Likewise.
30175         * modules/fwriting-tests (Files): Likewise.
30176         * modules/getcwd-tests (Files): Likewise.
30177         * modules/getdate-tests (Files): Likewise.
30178         * modules/getdelim-tests (Files): Likewise.
30179         * modules/getdtablesize-tests (Files): Likewise.
30180         * modules/getgroups-tests (Files): Likewise.
30181         * modules/getline-tests (Files): Likewise.
30182         * modules/getndelim2-tests (Files): Likewise.
30183         * modules/glob-tests (Files): Likewise.
30184         * modules/hash-tests (Files): Likewise.
30185         * modules/i-ring-tests (Files): Likewise.
30186         * modules/iconv-tests (Files): Likewise.
30187         * modules/iconv_open-utf-tests (Files): Likewise.
30188         * modules/idpriv-drop-tests (Files): Likewise.
30189         * modules/idpriv-droptemp-tests (Files): Likewise.
30190         * modules/inet_ntop-tests (Files): Likewise.
30191         * modules/inet_pton-tests (Files): Likewise.
30192         * modules/isblank-tests (Files): Likewise.
30193         * modules/isfinite-tests (Files): Likewise.
30194         * modules/isinf-tests (Files): Likewise.
30195         * modules/isnan-tests (Files): Likewise.
30196         * modules/isnand-nolibm-tests (Files): Likewise.
30197         * modules/isnand-tests (Files): Likewise.
30198         * modules/isnanf-nolibm-tests (Files): Likewise.
30199         * modules/isnanf-tests (Files): Likewise.
30200         * modules/isnanl-nolibm-tests (Files): Likewise.
30201         * modules/isnanl-tests (Files): Likewise.
30202         * modules/lchown-tests (Files): Likewise.
30203         * modules/ldexpl-tests (Files): Likewise.
30204         * modules/link-tests (Files): Likewise.
30205         * modules/linkat-tests (Files): Likewise.
30206         * modules/linked-list-tests (Files): Likewise.
30207         * modules/linkedhash-list-tests (Files): Likewise.
30208         * modules/localename-tests (Files): Likewise.
30209         * modules/lseek-tests (Files): Likewise.
30210         * modules/lstat-tests (Files): Likewise.
30211         * modules/mbmemcasecmp-tests (Files): Likewise.
30212         * modules/mbmemcasecoll-tests (Files): Likewise.
30213         * modules/mbrtowc-tests (Files): Likewise.
30214         * modules/mbscasecmp-tests (Files): Likewise.
30215         * modules/mbscasestr-tests (Files): Likewise.
30216         * modules/mbschr-tests (Files): Likewise.
30217         * modules/mbscspn-tests (Files): Likewise.
30218         * modules/mbsinit-tests (Files): Likewise.
30219         * modules/mbsncasecmp-tests (Files): Likewise.
30220         * modules/mbsnrtowcs-tests (Files): Likewise.
30221         * modules/mbspbrk-tests (Files): Likewise.
30222         * modules/mbspcasecmp-tests (Files): Likewise.
30223         * modules/mbsrchr-tests (Files): Likewise.
30224         * modules/mbsrtowcs-tests (Files): Likewise.
30225         * modules/mbsspn-tests (Files): Likewise.
30226         * modules/mbsstr-tests (Files): Likewise.
30227         * modules/memchr-tests (Files): Likewise.
30228         * modules/memchr2-tests (Files): Likewise.
30229         * modules/memcmp-tests (Files): Likewise.
30230         * modules/memmem-tests (Files): Likewise.
30231         * modules/memrchr-tests (Files): Likewise.
30232         * modules/mkdir-tests (Files): Likewise.
30233         * modules/mkfifo-tests (Files): Likewise.
30234         * modules/mkfifoat-tests (Files): Likewise.
30235         * modules/mknod-tests (Files): Likewise.
30236         * modules/nanosleep-tests (Files): Likewise.
30237         * modules/nl_langinfo-tests (Files): Likewise.
30238         * modules/obstack-printf-tests (Files): Likewise.
30239         * modules/open-tests (Files): Likewise.
30240         * modules/openat-tests (Files): Likewise.
30241         * modules/pipe-filter-gi-tests (Files): Likewise.
30242         * modules/pipe-filter-ii-tests (Files): Likewise.
30243         * modules/pipe2-tests (Files): Likewise.
30244         * modules/popen-safer-tests (Files): Likewise.
30245         * modules/popen-tests (Files): Likewise.
30246         * modules/posixtm-tests (Files): Likewise.
30247         * modules/pread-tests (Files): Likewise.
30248         * modules/printf-frexp-tests (Files): Likewise.
30249         * modules/printf-frexpl-tests (Files): Likewise.
30250         * modules/printf-posix-tests (Files): Likewise.
30251         * modules/priv-set-tests (Files): Likewise.
30252         * modules/quotearg-tests (Files): Likewise.
30253         * modules/random_r-tests (Files): Likewise.
30254         * modules/rawmemchr-tests (Files): Likewise.
30255         * modules/rbtree-list-tests (Files): Likewise.
30256         * modules/rbtree-oset-tests (Files): Likewise.
30257         * modules/rbtreehash-list-tests (Files): Likewise.
30258         * modules/readlink-tests (Files): Likewise.
30259         * modules/remove-tests (Files): Likewise.
30260         * modules/rename-tests (Files): Likewise.
30261         * modules/renameat-tests (Files): Likewise.
30262         * modules/rmdir-tests (Files): Likewise.
30263         * modules/round-tests (Files): Likewise.
30264         * modules/roundf-tests (Files): Likewise.
30265         * modules/roundl-tests (Files): Likewise.
30266         * modules/safe-alloc-tests (Files): Likewise.
30267         * modules/setenv-tests (Files): Likewise.
30268         * modules/sigaction-tests (Files): Likewise.
30269         * modules/signbit-tests (Files): Likewise.
30270         * modules/sleep-tests (Files): Likewise.
30271         * modules/snprintf-posix-tests (Files): Likewise.
30272         * modules/snprintf-tests (Files): Likewise.
30273         * modules/sprintf-posix-tests (Files): Likewise.
30274         * modules/stat-tests (Files): Likewise.
30275         * modules/stat-time-tests (Files): Likewise.
30276         * modules/strcasestr-tests (Files): Likewise.
30277         * modules/strchrnul-tests (Files): Likewise.
30278         * modules/strerror-tests (Files): Likewise.
30279         * modules/striconv-tests (Files): Likewise.
30280         * modules/striconveh-tests (Files): Likewise.
30281         * modules/striconveha-tests (Files): Likewise.
30282         * modules/strsignal-tests (Files): Likewise.
30283         * modules/strstr-tests (Files): Likewise.
30284         * modules/strtod-tests (Files): Likewise.
30285         * modules/strverscmp-tests (Files): Likewise.
30286         * modules/symlink-tests (Files): Likewise.
30287         * modules/symlinkat-tests (Files): Likewise.
30288         * modules/trunc-tests (Files): Likewise.
30289         * modules/truncf-tests (Files): Likewise.
30290         * modules/truncl-tests (Files): Likewise.
30291         * modules/uname-tests (Files): Likewise.
30292         * modules/unicase/cased-tests (Files): Likewise.
30293         * modules/unicase/ignorable-tests (Files): Likewise.
30294         * modules/unicase/locale-language-tests (Files): Likewise.
30295         * modules/unicase/tolower-tests (Files): Likewise.
30296         * modules/unicase/totitle-tests (Files): Likewise.
30297         * modules/unicase/toupper-tests (Files): Likewise.
30298         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30299         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30300         * modules/unicase/u8-casefold-tests (Files): Likewise.
30301         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30302         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30303         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30304         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30305         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30306         * modules/unicase/u8-tolower-tests (Files): Likewise.
30307         * modules/unicase/u8-totitle-tests (Files): Likewise.
30308         * modules/unicase/u8-toupper-tests (Files): Likewise.
30309         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30310         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30311         * modules/unicase/u16-casefold-tests (Files): Likewise.
30312         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30313         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30314         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30315         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30316         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30317         * modules/unicase/u16-tolower-tests (Files): Likewise.
30318         * modules/unicase/u16-totitle-tests (Files): Likewise.
30319         * modules/unicase/u16-toupper-tests (Files): Likewise.
30320         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30321         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30322         * modules/unicase/u32-casefold-tests (Files): Likewise.
30323         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30324         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30325         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30326         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30327         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30328         * modules/unicase/u32-tolower-tests (Files): Likewise.
30329         * modules/unicase/u32-totitle-tests (Files): Likewise.
30330         * modules/unicase/u32-toupper-tests (Files): Likewise.
30331         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30332         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30333         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30334         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30335         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30336         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30337         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30338         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30339         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30340         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30341         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30342         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30343         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30344         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30345         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30346         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30347         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30348         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30349         * modules/unictype/block-list-tests (Files): Likewise.
30350         * modules/unictype/block-of-tests (Files): Likewise.
30351         * modules/unictype/block-test-tests (Files): Likewise.
30352         * modules/unictype/category-C-tests (Files): Likewise.
30353         * modules/unictype/category-Cc-tests (Files): Likewise.
30354         * modules/unictype/category-Cf-tests (Files): Likewise.
30355         * modules/unictype/category-Cn-tests (Files): Likewise.
30356         * modules/unictype/category-Co-tests (Files): Likewise.
30357         * modules/unictype/category-Cs-tests (Files): Likewise.
30358         * modules/unictype/category-L-tests (Files): Likewise.
30359         * modules/unictype/category-Ll-tests (Files): Likewise.
30360         * modules/unictype/category-Lm-tests (Files): Likewise.
30361         * modules/unictype/category-Lo-tests (Files): Likewise.
30362         * modules/unictype/category-Lt-tests (Files): Likewise.
30363         * modules/unictype/category-Lu-tests (Files): Likewise.
30364         * modules/unictype/category-M-tests (Files): Likewise.
30365         * modules/unictype/category-Mc-tests (Files): Likewise.
30366         * modules/unictype/category-Me-tests (Files): Likewise.
30367         * modules/unictype/category-Mn-tests (Files): Likewise.
30368         * modules/unictype/category-N-tests (Files): Likewise.
30369         * modules/unictype/category-Nd-tests (Files): Likewise.
30370         * modules/unictype/category-Nl-tests (Files): Likewise.
30371         * modules/unictype/category-No-tests (Files): Likewise.
30372         * modules/unictype/category-P-tests (Files): Likewise.
30373         * modules/unictype/category-Pc-tests (Files): Likewise.
30374         * modules/unictype/category-Pd-tests (Files): Likewise.
30375         * modules/unictype/category-Pe-tests (Files): Likewise.
30376         * modules/unictype/category-Pf-tests (Files): Likewise.
30377         * modules/unictype/category-Pi-tests (Files): Likewise.
30378         * modules/unictype/category-Po-tests (Files): Likewise.
30379         * modules/unictype/category-Ps-tests (Files): Likewise.
30380         * modules/unictype/category-S-tests (Files): Likewise.
30381         * modules/unictype/category-Sc-tests (Files): Likewise.
30382         * modules/unictype/category-Sk-tests (Files): Likewise.
30383         * modules/unictype/category-Sm-tests (Files): Likewise.
30384         * modules/unictype/category-So-tests (Files): Likewise.
30385         * modules/unictype/category-Z-tests (Files): Likewise.
30386         * modules/unictype/category-Zl-tests (Files): Likewise.
30387         * modules/unictype/category-Zp-tests (Files): Likewise.
30388         * modules/unictype/category-Zs-tests (Files): Likewise.
30389         * modules/unictype/category-and-not-tests (Files): Likewise.
30390         * modules/unictype/category-and-tests (Files): Likewise.
30391         * modules/unictype/category-byname-tests (Files): Likewise.
30392         * modules/unictype/category-name-tests (Files): Likewise.
30393         * modules/unictype/category-none-tests (Files): Likewise.
30394         * modules/unictype/category-of-tests (Files): Likewise.
30395         * modules/unictype/category-or-tests (Files): Likewise.
30396         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30397         * modules/unictype/combining-class-tests (Files): Likewise.
30398         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30399         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30400         * modules/unictype/ctype-blank-tests (Files): Likewise.
30401         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30402         * modules/unictype/ctype-digit-tests (Files): Likewise.
30403         * modules/unictype/ctype-graph-tests (Files): Likewise.
30404         * modules/unictype/ctype-lower-tests (Files): Likewise.
30405         * modules/unictype/ctype-print-tests (Files): Likewise.
30406         * modules/unictype/ctype-punct-tests (Files): Likewise.
30407         * modules/unictype/ctype-space-tests (Files): Likewise.
30408         * modules/unictype/ctype-upper-tests (Files): Likewise.
30409         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30410         * modules/unictype/decimal-digit-tests (Files): Likewise.
30411         * modules/unictype/digit-tests (Files): Likewise.
30412         * modules/unictype/mirror-tests (Files): Likewise.
30413         * modules/unictype/numeric-tests (Files): Likewise.
30414         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30415         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30416         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30417         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30418         Likewise.
30419         * modules/unictype/property-bidi-block-separator-tests (Files):
30420         Likewise.
30421         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30422         Likewise.
30423         * modules/unictype/property-bidi-common-separator-tests (Files):
30424         Likewise.
30425         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30426         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30427         Likewise.
30428         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30429         Likewise.
30430         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30431         Likewise.
30432         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30433         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30434         Likewise.
30435         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30436         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30437         Likewise.
30438         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30439         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30440         * modules/unictype/property-bidi-segment-separator-tests (Files):
30441         Likewise.
30442         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30443         * modules/unictype/property-byname-tests (Files): Likewise.
30444         * modules/unictype/property-combining-tests (Files): Likewise.
30445         * modules/unictype/property-composite-tests (Files): Likewise.
30446         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30447         * modules/unictype/property-dash-tests (Files): Likewise.
30448         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30449         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30450         Likewise.
30451         * modules/unictype/property-deprecated-tests (Files): Likewise.
30452         * modules/unictype/property-diacritic-tests (Files): Likewise.
30453         * modules/unictype/property-extender-tests (Files): Likewise.
30454         * modules/unictype/property-format-control-tests (Files): Likewise.
30455         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30456         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30457         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30458         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30459         * modules/unictype/property-hyphen-tests (Files): Likewise.
30460         * modules/unictype/property-id-continue-tests (Files): Likewise.
30461         * modules/unictype/property-id-start-tests (Files): Likewise.
30462         * modules/unictype/property-ideographic-tests (Files): Likewise.
30463         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30464         * modules/unictype/property-ids-trinary-operator-tests (Files):
30465         Likewise.
30466         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30467         * modules/unictype/property-iso-control-tests (Files): Likewise.
30468         * modules/unictype/property-join-control-tests (Files): Likewise.
30469         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30470         * modules/unictype/property-line-separator-tests (Files): Likewise.
30471         * modules/unictype/property-logical-order-exception-tests (Files):
30472         Likewise.
30473         * modules/unictype/property-lowercase-tests (Files): Likewise.
30474         * modules/unictype/property-math-tests (Files): Likewise.
30475         * modules/unictype/property-non-break-tests (Files): Likewise.
30476         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30477         * modules/unictype/property-numeric-tests (Files): Likewise.
30478         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30479         * modules/unictype/property-other-default-ignorable-code-point-tests
30480         (Files): Likewise.
30481         * modules/unictype/property-other-grapheme-extend-tests (Files):
30482         Likewise.
30483         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30484         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30485         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30486         * modules/unictype/property-other-math-tests (Files): Likewise.
30487         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30488         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30489         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30490         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30491         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30492         * modules/unictype/property-private-use-tests (Files): Likewise.
30493         * modules/unictype/property-punctuation-tests (Files): Likewise.
30494         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30495         * modules/unictype/property-radical-tests (Files): Likewise.
30496         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30497         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30498         * modules/unictype/property-space-tests (Files): Likewise.
30499         * modules/unictype/property-terminal-punctuation-tests (Files):
30500         Likewise.
30501         * modules/unictype/property-test-tests (Files): Likewise.
30502         * modules/unictype/property-titlecase-tests (Files): Likewise.
30503         * modules/unictype/property-unassigned-code-value-tests (Files):
30504         Likewise.
30505         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30506         * modules/unictype/property-uppercase-tests (Files): Likewise.
30507         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30508         * modules/unictype/property-white-space-tests (Files): Likewise.
30509         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30510         * modules/unictype/property-xid-start-tests (Files): Likewise.
30511         * modules/unictype/property-zero-width-tests (Files): Likewise.
30512         * modules/unictype/scripts-tests (Files): Likewise.
30513         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30514         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30515         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30516         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30517         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30518         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30519         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30520         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30521         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30522         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30523         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30524         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30525         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30526         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30527         * modules/uninorm/composition-tests (Files): Likewise.
30528         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30529         * modules/uninorm/decomposition-tests (Files): Likewise.
30530         * modules/uninorm/filter-tests (Files): Likewise.
30531         * modules/uninorm/nfc-tests (Files): Likewise.
30532         * modules/uninorm/nfd-tests (Files): Likewise.
30533         * modules/uninorm/nfkc-tests (Files): Likewise.
30534         * modules/uninorm/nfkd-tests (Files): Likewise.
30535         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30536         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30537         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30538         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30539         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30540         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30541         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30542         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30543         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30544         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30545         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30546         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30547         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30548         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30549         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30550         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30551         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30552         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30553         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30554         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30555         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30556         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30557         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30558         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30559         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30560         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30561         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30562         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30563         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30564         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30565         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30566         * modules/uniwidth/u8-width-tests (Files): Likewise.
30567         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30568         * modules/uniwidth/u16-width-tests (Files): Likewise.
30569         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30570         * modules/uniwidth/u32-width-tests (Files): Likewise.
30571         * modules/uniwidth/width-tests (Files): Likewise.
30572         * modules/unlink-tests (Files): Likewise.
30573         * modules/unsetenv-tests (Files): Likewise.
30574         * modules/usleep-tests (Files): Likewise.
30575         * modules/utimens-tests (Files): Likewise.
30576         * modules/utimensat-tests (Files): Likewise.
30577         * modules/vasnprintf-posix-tests (Files): Likewise.
30578         * modules/vasnprintf-tests (Files): Likewise.
30579         * modules/vasprintf-posix-tests (Files): Likewise.
30580         * modules/vasprintf-tests (Files): Likewise.
30581         * modules/vdprintf-posix-tests (Files): Likewise.
30582         * modules/vfprintf-posix-tests (Files): Likewise.
30583         * modules/vprintf-posix-tests (Files): Likewise.
30584         * modules/vsnprintf-posix-tests (Files): Likewise.
30585         * modules/vsnprintf-tests (Files): Likewise.
30586         * modules/vsprintf-posix-tests (Files): Likewise.
30587         * modules/wcrtomb-tests (Files): Likewise.
30588         * modules/wcsnrtombs-tests (Files): Likewise.
30589         * modules/wcsrtombs-tests (Files): Likewise.
30590         * modules/wctype-tests (Files): Likewise.
30591         * modules/wcwidth-tests (Files): Likewise.
30592         * modules/xmemdup0-tests (Files): Likewise.
30593         * modules/xprintf-posix-tests (Files): Likewise.
30594         * modules/xvasprintf-tests (Files): Likewise.
30595
30596 2009-12-24  Eric Blake  <ebb9@byu.net>
30597
30598         test-nanosleep: fix typo
30599         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30600         patch.
30601         Reported by Bruno Haible.
30602
30603 2009-12-24  Bruno Haible  <bruno@clisp.org>
30604
30605         Reduce namespace pollution on glibc systems.
30606         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30607         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30608         systems.
30609         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30610         <getopt.h> on glibc systems.
30611         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30612         systems.
30613         * lib/fcntl.c: Include <unistd.h> here instead.
30614
30615 2009-12-24  Bruno Haible  <bruno@clisp.org>
30616
30617         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30618
30619 2009-12-24  Eric Blake  <ebb9@byu.net>
30620
30621         tests: add signature checks
30622         * tests/signature.h (SIGNATURE_CHECK): New file.
30623         * modules/atexit-tests (Files): Use it.
30624         * modules/btowc-tests (Files): Likewise.
30625         * modules/canonicalize-lgpl-tests (Files): Likewise.
30626         * modules/ceilf-tests (Files): Likewise.
30627         * modules/ceill-tests (Files): Likewise.
30628         * modules/chown-tests (Files): Likewise.
30629         * modules/dprintf-posix-tests (Files): Likewise.
30630         * modules/dup2-tests (Files): Likewise.
30631         * modules/dup3-tests (Files): Likewise.
30632         * modules/duplocale-tests (Files): Likewise.
30633         * modules/fchdir-tests (Files): Likewise.
30634         * modules/fcntl-tests (Files): Likewise.
30635         * modules/fdopendir-tests (Files): Likewise.
30636         * modules/fflush-tests (Files): Likewise.
30637         * modules/flock-tests (Files): Likewise.
30638         * modules/floorf-tests (Files): Likewise.
30639         * modules/floorl-tests (Files): Likewise.
30640         * modules/fnmatch-tests (Files): Likewise.
30641         * modules/fopen-tests (Files): Likewise.
30642         * modules/fprintf-posix-tests (Files): Likewise.
30643         * modules/freopen-tests (Files): Likewise.
30644         * modules/frexp-nolibm-tests (Files): Likewise.
30645         * modules/frexp-tests (Files): Likewise.
30646         * modules/frexpl-nolibm-tests (Files): Likewise.
30647         * modules/frexpl-tests (Files): Likewise.
30648         * modules/fseek-tests (Files): Likewise.
30649         * modules/fseeko-tests (Files): Likewise.
30650         * modules/fsync-tests (Files): Likewise.
30651         * modules/ftell-tests (Files): Likewise.
30652         * modules/ftello-tests (Files): Likewise.
30653         * modules/futimens-tests (Files): Likewise.
30654         * modules/getaddrinfo-tests (Files): Likewise.
30655         * modules/getcwd-tests (Files): Likewise.
30656         * modules/getdelim-tests (Files): Likewise.
30657         * modules/getdtablesize-tests (Files): Likewise.
30658         * modules/getgroups-tests (Files): Likewise.
30659         * modules/gethostname-tests (Files): Likewise.
30660         * modules/getline-tests (Files): Likewise.
30661         * modules/getopt-posix-tests (Files): Likewise.
30662         * modules/gettimeofday-tests (Files): Likewise.
30663         * modules/glob-tests (Files): Likewise.
30664         * modules/iconv-tests (Files): Likewise.
30665         * modules/inet_ntop-tests (Files): Likewise.
30666         * modules/inet_pton-tests (Files): Likewise.
30667         * modules/isblank-tests (Files): Likewise.
30668         * modules/lchown-tests (Files): Likewise.
30669         * modules/ldexpl-tests (Files): Likewise.
30670         * modules/link-tests (Files): Likewise.
30671         * modules/linkat-tests (Files): Likewise.
30672         * modules/lseek-tests (Files): Likewise.
30673         * modules/lstat-tests (Files): Likewise.
30674         * modules/mbrtowc-tests (Files): Likewise.
30675         * modules/mbsinit-tests (Files): Likewise.
30676         * modules/mbsnrtowcs-tests (Files): Likewise.
30677         * modules/mbsrtowcs-tests (Files): Likewise.
30678         * modules/memchr-tests (Files): Likewise.
30679         * modules/memcmp-tests (Files): Likewise.
30680         * modules/memmem-tests (Files): Likewise.
30681         * modules/memrchr-tests (Files): Likewise.
30682         * modules/mkdir-tests (Files): Likewise.
30683         * modules/mkfifo-tests (Files): Likewise.
30684         * modules/mkfifoat-tests (Files): Likewise.
30685         * modules/mknod-tests (Files): Likewise.
30686         * modules/nanosleep-tests (Files): Likewise.
30687         * modules/nl_langinfo-tests (Files): Likewise.
30688         * modules/obstack-printf-tests (Files): Likewise.
30689         * modules/open-tests (Files): Likewise.
30690         * modules/openat-tests (Files): Likewise.
30691         * modules/perror-tests (Files): Likewise.
30692         * modules/pipe2-tests (Files): Likewise.
30693         * modules/poll-tests (Files): Likewise.
30694         * modules/popen-tests (Files): Likewise.
30695         * modules/posix_spawn-tests (Files): Likewise.
30696         * modules/posix_spawnp-tests (Files): Likewise.
30697         * modules/pread-tests (Files): Likewise.
30698         * modules/printf-posix-tests (Files): Likewise.
30699         * modules/pty-tests (Files): Likewise.
30700         * modules/random_r-tests (Files): Likewise.
30701         * modules/rawmemchr-tests (Files): Likewise.
30702         * modules/readlink-tests (Files): Likewise.
30703         * modules/remove-tests (Files): Likewise.
30704         * modules/rename-tests (Files): Likewise.
30705         * modules/renameat-tests (Files): Likewise.
30706         * modules/rmdir-tests (Files): Likewise.
30707         * modules/round-tests (Files): Likewise.
30708         * modules/roundf-tests (Files): Likewise.
30709         * modules/roundl-tests (Files): Likewise.
30710         * modules/select-tests (Files): Likewise.
30711         * modules/setenv-tests (Files): Likewise.
30712         * modules/sigaction-tests (Files): Likewise.
30713         * modules/sleep-tests (Files): Likewise.
30714         * modules/snprintf-posix-tests (Files): Likewise.
30715         * modules/snprintf-tests (Files): Likewise.
30716         * modules/sprintf-posix-tests (Files): Likewise.
30717         * modules/stat-tests (Files): Likewise.
30718         * modules/strcasestr-tests (Files): Likewise.
30719         * modules/strchrnul-tests (Files): Likewise.
30720         * modules/strerror-tests (Files): Likewise.
30721         * modules/strsignal-tests (Files): Likewise.
30722         * modules/strstr-tests (Files): Likewise.
30723         * modules/strtod-tests (Files): Likewise.
30724         * modules/strverscmp-tests (Files): Likewise.
30725         * modules/symlink-tests (Files): Likewise.
30726         * modules/symlinkat-tests (Files): Likewise.
30727         * modules/times-tests (Files): Likewise.
30728         * modules/trunc-tests (Files): Likewise.
30729         * modules/truncf-tests (Files): Likewise.
30730         * modules/truncl-tests (Files): Likewise.
30731         * modules/tsearch-tests (Files): Likewise.
30732         * modules/uname-tests (Files): Likewise.
30733         * modules/unlink-tests (Files): Likewise.
30734         * modules/unsetenv-tests (Files): Likewise.
30735         * modules/usleep-tests (Files): Likewise.
30736         * modules/utimensat-tests (Files): Likewise.
30737         * modules/vasprintf-tests (Files): Likewise.
30738         * modules/vdprintf-posix-tests (Files): Likewise.
30739         * modules/vfprintf-posix-tests (Files): Likewise.
30740         * modules/vprintf-posix-tests (Files): Likewise.
30741         * modules/vsnprintf-posix-tests (Files): Likewise.
30742         * modules/vsnprintf-tests (Files): Likewise.
30743         * modules/vsprintf-posix-tests (Files): Likewise.
30744         * modules/wcrtomb-tests (Files): Likewise.
30745         * modules/wcsnrtombs-tests (Files): Likewise.
30746         * modules/wcsrtombs-tests (Files): Likewise.
30747         * modules/wcwidth-tests (Files): Likewise.
30748         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30749         * tests/test-isinf.c (isinf): Likewise.
30750         * tests/test-isnan.c (isnan): Likewise.
30751         * tests/test-signbit.c (signbit): Likewise.
30752         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30753         declaration, either as macro or with correct signature.
30754         (select): Ensure function under test is declared with correct
30755         signature in correct header.
30756         * tests/test-atexit.c (atexit): Likewise.
30757         * tests/test-btowc.c (btowc): Likewise.
30758         * tests/test-canonicalize-lgpl.c (realpath)
30759         (canonicalize_file_name): Likewise.
30760         * tests/test-ceilf1.c (ceilf): Likewise.
30761         * tests/test-ceill.c (ceill): Likewise.
30762         * tests/test-chown.c (chown): Likewise.
30763         * tests/test-dprintf-posix.c (dprintf): Likewise.
30764         * tests/test-dup2.c (dup2): Likewise.
30765         * tests/test-dup3.c (dup3): Likewise.
30766         * tests/test-duplocale.c (duplocale): Likewise.
30767         * tests/test-fchdir.c (fchdir): Likewise.
30768         * tests/test-fchownat.c (fchownat): Likewise.
30769         * tests/test-fcntl.c (fcntl): Likewise.
30770         * tests/test-fdopendir.c (fdopendir): Likewise.
30771         * tests/test-fflush.c (fflush): Likewise.
30772         * tests/test-flock.c (flock): Likewise.
30773         * tests/test-floorf1.c (floorf): Likewise.
30774         * tests/test-floorl.c (floorl): Likewise.
30775         * tests/test-fnmatch.c (fnmatch): Likewise.
30776         * tests/test-fopen.c (fopen): Likewise.
30777         * tests/test-fprintf-posix.c (fprintf): Likewise.
30778         * tests/test-freopen.c (freopen): Likewise.
30779         * tests/test-frexp.c (frexp): Likewise.
30780         * tests/test-frexpl.c (frexpl): Likewise.
30781         * tests/test-fseek.c (fseek): Likewise.
30782         * tests/test-fseeko.c (fseeko): Likewise.
30783         * tests/test-fstatat.c (fstatat): Likewise.
30784         * tests/test-fsync.c (fsync): Likewise.
30785         * tests/test-ftell.c (ftell): Likewise.
30786         * tests/test-ftello.c (ftello): Likewise.
30787         * tests/test-futimens.c (futimens): Likewise.
30788         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30789         (gai_strerror): Likewise.
30790         * tests/test-getcwd.c (getcwd): Likewise.
30791         * tests/test-getdelim.c (getdelim): Likewise.
30792         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30793         * tests/test-getgroups.c (getgroups): Likewise.
30794         * tests/test-gethostname.c (gethostname): Likewise.
30795         * tests/test-getline.c (getline): Likewise.
30796         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30797         Likewise.
30798         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30799         * tests/test-glob.c (glob, globfree): Likewise.
30800         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30801         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30802         * tests/test-inet_pton.c (inet_pton): Likewise.
30803         * tests/test-isblank.c (isblank): Likewise.
30804         * tests/test-lchown.c (lchown): Likewise.
30805         * tests/test-ldexpl.c (ldexpl): Likewise.
30806         * tests/test-link.c (link): Likewise.
30807         * tests/test-linkat.c (linkat): Likewise.
30808         * tests/test-lseek.c (lseek): Likewise.
30809         * tests/test-lstat.c (lstat): Likewise.
30810         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30811         * tests/test-mbsinit.c (mbsinit): Likewise.
30812         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30813         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30814         * tests/test-memchr.c (memchr): Likewise.
30815         * tests/test-memcmp.c (memcmp): Likewise.
30816         * tests/test-memmem.c (memmem): Likewise.
30817         * tests/test-memrchr.c (memrchr): Likewise.
30818         * tests/test-mkdir.c (mkdir): Likewise.
30819         * tests/test-mkdirat.c (mkdirat): Likewise.
30820         * tests/test-mkfifo.c (mkfifo): Likewise.
30821         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30822         * tests/test-mknod.c (mknod): Likewise.
30823         * tests/test-nanosleep.c (nanosleep): Likewise.
30824         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30825         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30826         Likewise.
30827         * tests/test-open.c (open): Likewise.
30828         * tests/test-openat.c (openat): Likewise.
30829         * tests/test-perror.c (perror): Likewise.
30830         * tests/test-pipe2.c (pipe2): Likewise.
30831         * tests/test-poll.c (poll): Likewise.
30832         * tests/test-popen.c (popen, pclose): Likewise.
30833         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30834         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30835         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30836         (posix_spawn_file_actions_destroy)
30837         (posix_spawn_file_actions_addclose)
30838         (posix_spawn_file_actions_addopen)
30839         (posix_spawn_file_actions_adddup2): Likewise.
30840         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30841         * tests/test-pread.c (pread): Likewise.
30842         * tests/test-printf-posix.c (printf): Likewise.
30843         * tests/test-pty.c (openpty, forkpty): Likewise.
30844         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30845         (random_r): Likewise.
30846         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30847         * tests/test-readlink.c (readlink): Likewise.
30848         * tests/test-remove.c (remove): Likewise.
30849         * tests/test-rename.c (rename): Likewise.
30850         * tests/test-renameat.c (renameat): Likewise.
30851         * tests/test-rmdir.c (rmdir): Likewise.
30852         * tests/test-round1.c (round): Likewise.
30853         * tests/test-roundf1.c (roundf): Likewise.
30854         * tests/test-roundl.c (roundl): Likewise.
30855         * tests/test-setenv.c (setenv): Likewise.
30856         * tests/test-sigaction.c (sigaction): Likewise.
30857         * tests/test-sleep.c (sleep): Likewise.
30858         * tests/test-snprintf.c (snprintf): Likewise.
30859         * tests/test-sprintf-posix.c (sprintf): Likewise.
30860         * tests/test-stat.c (stat): Likewise.
30861         * tests/test-stpncpy.c (stpncpy): Likewise.
30862         * tests/test-strcasestr.c (strcasestr): Likewise.
30863         * tests/test-strchrnul.c (strchrnul): Likewise.
30864         * tests/test-strerror.c (strerror): Likewise.
30865         * tests/test-strsignal.c (strsignal): Likewise.
30866         * tests/test-strstr.c (strstr): Likewise.
30867         * tests/test-strtod.c (strtod): Likewise.
30868         * tests/test-strverscmp.c (strverscmp): Likewise.
30869         * tests/test-symlink.c (symlink): Likewise.
30870         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30871         * tests/test-times.c (times): Likewise.
30872         * tests/test-trunc1.c (trunc): Likewise.
30873         * tests/test-truncf1.c (truncf): Likewise.
30874         * tests/test-truncl.c (truncl): Likewise.
30875         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30876         Likewise.
30877         * tests/test-uname.c (uname): Likewise.
30878         * tests/test-unlink.c (unlink): Likewise.
30879         * tests/test-unlinkat.c (unlinkat): Likewise.
30880         * tests/test-unsetenv.c (unsetenv): Likewise.
30881         * tests/test-usleep.c (usleep): Likewise.
30882         * tests/test-utimensat.c (utimensat): Likewise.
30883         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30884         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30885         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30886         * tests/test-vprintf-posix.c (vprintf): Likewise.
30887         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30888         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30889         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30890         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30891         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30892         * tests/test-wcwidth.c (wcwidth): Likewise.
30893
30894         build: pull in conditional headers during GNULIB_POSIXCHECK
30895         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30896         definitions from any conditionally-included headers.
30897         * lib/stdlib.in.h (includes): Likewise.
30898         * lib/unistd.in.h (includes): Likewise.
30899
30900 2009-12-24  Bruno Haible  <bruno@clisp.org>
30901
30902         * tests/test-argv-iter.c: Include header file being tested immediately
30903         after config.h.
30904         * tests/test-base64.c: Likewise.
30905         * tests/test-flock.c: Likewise.
30906         * tests/test-fsync.c: Likewise.
30907         * tests/test-getdate.c: Likewise.
30908         * tests/test-getndelim2.c: Likewise.
30909         * tests/test-isfinite.c: Likewise.
30910         * tests/test-isinf.c: Likewise.
30911         * tests/test-strerror.c: Likewise.
30912         * tests/test-strsignal.c: Likewise.
30913
30914 2009-12-23  Eric Blake  <ebb9@byu.net>
30915
30916         unistd: work around cygwin bug
30917         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30918         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30919         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30920
30921 2009-12-23  Bruno Haible  <bruno@clisp.org>
30922
30923         localename: More tests.
30924         * tests/test-localename.c (SIZEOF): New macro.
30925         (categories): New variable.
30926         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30927         test_locale_name_default): Add test w.r.t. thread locale.
30928         (test_locale_name_thread): New function.
30929         (main): Invoke it.
30930
30931         localename: Make aware of thread locale.
30932         * lib/localename.h (gl_locale_name_thread): New declaration.
30933         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30934         behaviour with respect to thread locale.
30935         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30936         <langinfo.h>, glthread/lock.h.
30937         (SIZE_BITS): New macro.
30938         (string_hash): New function.
30939         (struct hash_node): New type.
30940         (HASH_TABLE_SIZE): New macro.
30941         (struniq_hash_table, struniq_lock): New variables.
30942         (struniq): New function.
30943         (gl_locale_name_thread): New function.
30944         (gl_locale_name): Invoke it.
30945         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30946         * modules/localename (Depends-on): Add lock.
30947         Reported by Mike Gran <spk121@yahoo.com>.
30948
30949 2009-12-23  Eric Blake  <ebb9@byu.net>
30950
30951         va-args: new module
30952         * modules/va-args: New file.
30953         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30954         * MODULES.html.sh (Core language properties): Mention it.
30955
30956         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30957         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30958         named alias for __attribute__((__unused__)).
30959         * lib/chown.c: Update client.
30960         * lib/fchmodat.c: Likewise.
30961         * lib/fts.c: Likewise.
30962         * lib/getdate.y: Likewise.
30963         * lib/getgroups.c: Likewise.
30964         * lib/getopt.c: Likewise.
30965         * lib/getugroups.c: Likewise.
30966         * lib/mkdir.c: Likewise.
30967         * lib/mkfifo.c: Likewise.
30968         * lib/mkfifoat.c: Likewise.
30969         * lib/mknod.c: Likewise.
30970         * lib/mknodat.c: Likewise.
30971         * lib/readlink.c: Likewise.
30972         * lib/se-context.in.h: Likewise.
30973         * lib/se-selinux.in.h: Likewise.
30974         * lib/sockets.c: Likewise.
30975         * lib/symlink.c: Likewise.
30976         * lib/symlinkat.c: Likewise.
30977         * lib/unicodeio.c: Likewise.
30978         * lib/unistr.h: Likewise.
30979         * tests/test-areadlink.c: Likewise.
30980         * tests/test-areadlinkat.c: Likewise.
30981         * tests/test-filenamecat.c: Likewise.
30982         * tests/test-fseeko.c: Likewise.
30983         * tests/test-ftello.c: Likewise.
30984         * tests/test-getdate.c: Likewise.
30985         * tests/test-getgroups.c: Likewise.
30986         * tests/test-gethostname.c: Likewise.
30987         * tests/test-quotearg.c: Likewise.
30988         * tests/test-version-etc.c: Likewise.
30989         * tests/test-xalloc-die.c: Likewise.
30990         * tests/test-xfprintf-posix.c: Likewise.
30991         * tests/test-xprintf-posix.c: Likewise.
30992         * tests/test-xvasprintf.c: Likewise.
30993
30994         tests: avoid compiler warnings
30995         * tests/test-fcntl.c (main): Delete unused parameters.
30996         * tests/test-freopen-safer.c (main): Likewise.
30997         * tests/test-xalloc-die.c (main): Mark unused parameters.
30998         * tests/test-fseeko.c (main): Likewise.
30999         * tests/test-ftello.c (main): Likewise.
31000         * tests/test-nanosleep.c (main): Avoid declaration warning.
31001         * tests/test-sleep.c (main): Likewise.
31002         * tests/test-unsetenv.c (main): Silence warning about string
31003         literal.
31004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31005
31006 2009-12-23  Bruno Haible  <bruno@clisp.org>
31007
31008         * tests/test-localename.c (test_locale_name): New function, extracted
31009         from main. Also test mixed situations.
31010         (test_locale_name_posix, test_locale_name_environ,
31011         test_locale_name_default): New functions.
31012         (main): Invoke them all.
31013         * modules/localename-tests (configure.ac): Test for newlocale.
31014
31015 2009-12-23  Bruno Haible  <bruno@clisp.org>
31016
31017         unistd: Ensure getcwd gets declared before being overridden.
31018         * lib/unistd.in.h: Conditionally include <io.h>.
31019
31020 2009-12-22  Bruno Haible  <bruno@clisp.org>
31021
31022         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31023         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31024         (gl_WCHAR_H): Invoke it.
31025         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31026         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31027         Reported by Karl Berry <karl@freefriends.org>.
31028
31029 2009-12-22  Eric Blake  <ebb9@byu.net>
31030
31031         math, unistd: avoid redundant includes
31032         * lib/math.in.h (isnan): No need to re-include <math.h>.
31033         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31034
31035         getsubopt: work around cygwin bug
31036         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31037         avoid conflicting with system getsubopt.
31038         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31039         bug.
31040
31041         getopt: synchronize from glibc
31042         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31043         parameter order.  Adjust all callers.
31044         (_getopt_internal_r, main): Adjust quoting in error messages.
31045         Drop considerations for outdated POSIX 1003.2 error message.
31046         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31047         callers.
31048         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31049
31050         test-getopt: test stderr behavior
31051         * modules/getopt-posix-tests (Depends-on): Add dup2.
31052         * tests/test-getopt.c (ASSERT): Avoid stderr.
31053         (main): Move stderr to a temporary file.
31054         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31055         Instead, add parameter to inform caller if output occurred.
31056         (test_getopt): Adjust all existing tests to expect silence, and
31057         add new tests of leading ":".
31058         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31059         glibc shortcomings with leading "-:" or "+:" in optstring.
31060         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31061         Likewise.
31062         * doc/posix-functions/getopt.texi (getopt): Likewise.
31063
31064         test-getopt: enhance test
31065         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31066         supports optind=0.
31067         * tests/test-getopt.c (OPTIND_MIN): Move...
31068         * tests/test-getopt.h (OPTIND_MIN): ...here.
31069         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31070         Require that optind=0 works, since modern BSD supports it in
31071         addition to optreset, and since coreutils expects it.
31072         (test_getopt_long_only): New test.
31073         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31074         glibc shortcomings with 'W;', and enforcement of optind=0.
31075         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31076         Likewise.
31077
31078 2009-12-21  Bruno Haible  <bruno@clisp.org>
31079
31080         localename: Improvements for MacOS X and Cygwin.
31081         * lib/localename.h (gl_locale_name_environ): New declaration.
31082         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31083         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31084         (gl_locale_name_posix): Invoke it.
31085         (gl_locale_name_default): Add comments. Use Windows native API also on
31086         Cygwin.
31087
31088 2009-12-21  Bruno Haible  <bruno@clisp.org>
31089
31090         Update list of Win32 locale ids.
31091         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31092         (LANG_SAMI): Renamed from LANG_SAAMI.
31093         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31094         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31095         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31096         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31097         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31098         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31099         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31100         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31101         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31102         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31103         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31104         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31105         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31106         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31107         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31108         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31109         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31110         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31111         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31112         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31113         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31114         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31115         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31116         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31117         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31118         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31119         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31120         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31121         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31122         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31123         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31124         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31125         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31126         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31127         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31128         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31129         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31130         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31131         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31132         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31133         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31134         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31135         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31136         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31137         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31138         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31139         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31140         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31141         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31142         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31143         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31144         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31145         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31146         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31147         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31148         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31149         Add more languages and countries for Sami, Sorbian. Add more countries
31150         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31151         for Pashto. Change country for Syriac, Tswana.
31152
31153 2009-12-21  Eric Blake  <ebb9@byu.net>
31154
31155         test-utimens: avoid spurious failure
31156         * tests/test-chown.h (nap): Factor...
31157         * tests/nap.h: ...into new file.
31158         * tests/test-lchown.h (nap): Avoid duplication.
31159         * tests/test-utimens-common.h (nap): Use shared implementation,
31160         necessary on file systems with 1-second resolution.
31161         * modules/chown-tests (Files): Include new file.
31162         * modules/fdutimensat-tests (Files): Likewise.
31163         * modules/futimens-tests (Files): Likewise.
31164         * modules/lchown-tests (Files): Likewise.
31165         * modules/openat-tests (Files): Likewise.
31166         * modules/utimens-tests (Files): Likewise.
31167         * modules/utimensat-tests (Files): Likewise.
31168
31169 2009-12-19  Eric Blake  <ebb9@byu.net>
31170
31171         futimens, utimensat: work around Linux bug
31172         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31173         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31174         * lib/utimensat.c (rpl_utimensat): Work around it.
31175         * lib/futimens.c (rpl_futimens): Adjust comment.
31176
31177         utimens: work around Linux ctime bug
31178         * lib/utimens.c (detect_ctime_bug): New helper function.
31179         (update_timespec): Differentiate between workaround needed for
31180         this bug vs. what is needed for systems that lack utimensat.
31181         (fdutimens, lutimens): Work around bug.
31182
31183         utimens: check for ctime update
31184         * tests/test-utimens-common.h (check_ctime): Define.
31185         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31186         * tests/test-futimens.h (test_futimens): Likewise.
31187         * tests/test-lutimens.h (test_lutimens): Likewise.
31188         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31189         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31190
31191 2009-12-19  Bruno Haible  <bruno@clisp.org>
31192
31193         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31194         * tests/test-dprintf-posix2.sh: New file.
31195         * tests/test-dprintf-posix2.c: New file.
31196         * modules/dprintf-posix-tests (Files): Add them.
31197         (configure.ac): Check for getrlimit and setrlimit.
31198         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31199
31200 2009-12-19  Bruno Haible  <bruno@clisp.org>
31201
31202         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31203         * tests/test-fprintf-posix3.sh: New file.
31204         * tests/test-fprintf-posix3.c: New file.
31205         * modules/fprintf-posix-tests (Files): Add them.
31206         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31207
31208 2009-12-19  Eric Blake  <ebb9@byu.net>
31209
31210         dirfd: fix prototype
31211         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31212         * lib/dirfd.c (dirfd): Likewise.
31213
31214         canonicalize: reduce memory usage
31215         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31216         allocation to size.
31217         Reported by Solar Designer <solar@openwall.com>.
31218
31219 2009-12-19  Bruno Haible  <bruno@clisp.org>
31220
31221         New module attribute 'Applicability'.
31222         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31223         * gnulib-tool: New option --extract-applicability.
31224         (func_usage): Document it.
31225         (sed_extract_prog): Recognize it.
31226         (func_get_applicability): New function.
31227         (func_import): Generalize handling of 'link-warning' module.
31228         * modules/link-warning (Applicability): New section.
31229         * modules/arg-nonnull (Applicability): New section.
31230         Repoted by Simon Josefsson <simon@josefsson.org>.
31231
31232 2009-12-19  Bruno Haible  <bruno@clisp.org>
31233
31234         fflush: tweak
31235         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31236         * lib/fseeko.c (rpl_fseeko): Likewise.
31237
31238 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31239
31240         * lib/gl_list.h: Fix typo in comment.
31241
31242 2009-12-16  Eric Blake  <ebb9@byu.net>
31243
31244         fcntl: use to simplify other modules
31245         * modules/cloexec (Depends-on): Add fcntl.
31246         * modules/fchdir (Depends-on): Likewise.
31247         * modules/fd-safer-flag (Depends-on): Likewise.
31248         * modules/unistd-safer (Depends-on): Likewise.
31249         * modules/dup3 (configure.ac): Set module indicator.
31250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31251         missing.
31252         * lib/fchdir.c (_gl_register_dup): Fix comment.
31253         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31254         * lib/dup-safer.c (dup_safer): Likewise.
31255         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31256         * lib/dup3.c (dup3): Likewise.
31257         * tests/test-fchdir.c (main): Enhance test.
31258         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31259
31260         fcntl: port portions of fcntl to mingw
31261         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31262         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31263         replacement for mingw.
31264         * modules/fcntl (Description): Update.
31265         (Depends-on): Add dup2.
31266         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31267         * modules/fcntl-h (Makefile.am): Substitute it.
31268         * lib/fcntl.in.h (fcntl): Update declaration.
31269         (F_DUPFD, F_GETFD): New macros, when needed.
31270         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31271         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31272         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31273         we now guarantee.
31274
31275         fcntl: work around cygwin bug in F_DUPFD
31276         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31277         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31278         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31279         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31280         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31281
31282         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31283         * modules/fcntl (Files): List new files.
31284         (configure.ac): Run a test.
31285         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31286         * lib/fcntl.c (rpl_fcntl): Likewise.
31287         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31288         (gl_FCNTL_H): Always replace fcntl.h.
31289         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31290         * lib/fcntl.in.h (fcntl): Declare replacement.
31291         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31292         needed, plus a witness.
31293         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31294         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31295         * tests/test-fcntl.c: New file.
31296         * modules/fcntl-tests: Likewise.
31297
31298         binary-io: avoid potential compilation warning
31299         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31300         directives.
31301
31302         fflush: avoid compilation error on NetBSD
31303         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31304         between off_t and fpos_t, since the latter is sometimes a struct.
31305         * lib/fseeko.c (rpl_fseeko): Likewise.
31306         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31307
31308 2009-12-15  Eric Blake  <ebb9@byu.net>
31309
31310         fcntl-h, stdio, sys_ioctl: fix declarations
31311         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31312         function must not take arguments.
31313         * lib/sys_ioctl.in.h (ioctl): Likewise.
31314         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31315         (open): Add a link warning.
31316
31317 2009-12-15  Jim Meyering  <meyering@redhat.com>
31318
31319         areadlink, areadlink-with-size: relax license to LGPLv2+
31320         * modules/areadlink (License): Relax to LGPLv2+.
31321         * modules/areadlink-with-size (License): Likewise.
31322
31323 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31324             Bruno Haible  <bruno@clisp.org>
31325
31326         *printf: Fix memory leak.
31327         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31328         * lib/vfprintf.c (vfprintf): Likewise.
31329         * lib/dprintf.c (dprintf): Likewise.
31330         * lib/vdprintf.c (vdprintf): Likewise.
31331
31332 2009-12-14  Eric Blake  <ebb9@byu.net>
31333
31334         accept4: adjust module dependencies
31335         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31336
31337         utimens: one more try at avoiding compiler warning
31338         * lib/utimens.c (lutimens): Lower scope of result.
31339
31340 2009-12-13  Bruno Haible  <bruno@clisp.org>
31341
31342         Move the malloc checking from module 'list' to new module 'xlist'.
31343         * modules/xlist: New file.
31344         * lib/gl_xlist.h: New file.
31345         * lib/gl_xlist.c: New file.
31346         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31347         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31348         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31349         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31350         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31351         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31352         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31353         gl_sortedlist_nx_add): New declarations.
31354         (struct gl_list_implementation): Rename and change methods accordingly.
31355         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31356         (gl_list_nx_create): Renamed from gl_list_create.
31357         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31358         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31359         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31360         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31361         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31362         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31363         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31364         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31365         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31366         gl_list_create_empty.
31367         (gl_list_nx_create): Renamed from gl_list_create.
31368         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31369         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31370         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31371         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31372         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31373         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31374         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31375         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31376         * lib/gl_array_list.c: Don't include xalloc.h.
31377         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31378         NULL upon out-of-memory.
31379         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31380         out-of-memory.
31381         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31382         Change return type to 'int'.
31383         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31384         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31385         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31386         upon out-of-memory.
31387         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31388         upon out-of-memory.
31389         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31390         upon out-of-memory.
31391         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31392         upon out-of-memory.
31393         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31394         out-of-memory.
31395         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31396         Update.
31397         (gl_array_list_implementation): Update.
31398         * lib/gl_carray_list.c: Don't include xalloc.h.
31399         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31400         Return NULL upon out-of-memory.
31401         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31402         out-of-memory.
31403         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31404         Change return type to 'int'.
31405         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31406         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31407         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31408         upon out-of-memory.
31409         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31410         upon out-of-memory.
31411         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31412         out-of-memory.
31413         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31414         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31415         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31416         Update.
31417         (gl_carray_list_implementation): Update.
31418         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31419         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31420         gl_linked_create_empty. Return NULL upon out-of-memory.
31421         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31422         out-of-memory.
31423         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31424         Change return type to 'int'. Return -1 upon out-of-memory.
31425         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31426         out-of-memory.
31427         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31428         upon out-of-memory.
31429         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31430         upon out-of-memory.
31431         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31432         NULL upon out-of-memory.
31433         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31434         upon out-of-memory.
31435         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31436         out-of-memory.
31437         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31438         Update.
31439         * lib/gl_linked_list.c: Don't include xalloc.h.
31440         (gl_linked_list_implementation): Update.
31441         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31442         (add_to_bucket): Change return type to 'int'.
31443         (gl_linkedhash_list_implementation): Update.
31444         * lib/gl_anytree_list1.h (free_subtree): New function.
31445         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31446         gl_tree_create_empty. Return NULL upon out-of-memory.
31447         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31448         Change return type to 'int'. Return -1 upon out-of-memory.
31449         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31450         out-of-memory.
31451         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31452         (gl_tree_remove_node): New function, moved here from
31453         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31454         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31455         Update.
31456         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31457         malloc, not xmalloc. Return NULL upon out-of-memory.
31458         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31459         out-of-memory.
31460         (gl_tree_remove_node_from_tree): New function, extracted from
31461         gl_tree_remove_node.
31462         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31463         upon out-of-memory.
31464         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31465         out-of-memory.
31466         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31467         upon out-of-memory.
31468         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31469         upon out-of-memory.
31470         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31471         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31472         not xmalloc. Return NULL upon out-of-memory.
31473         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31474         out-of-memory.
31475         (gl_tree_remove_node_from_tree): New function, extracted from
31476         gl_tree_remove_node.
31477         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31478         upon out-of-memory.
31479         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31480         out-of-memory.
31481         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31482         upon out-of-memory.
31483         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31484         upon out-of-memory.
31485         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31486         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31487         gl_anytree_list1.h before gl_anyavltree_list2.h.
31488         (gl_avltree_list_implementation): Update.
31489         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31490         gl_anytree_list1.h before gl_anyavltree_list2.h.
31491         (gl_rbtree_list_implementation): Update.
31492         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31493         Change return type to 'int'. Return -1 upon out-of-memory. Use
31494         __builtin_expect.
31495         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31496         (gl_avltreehash_list_implementation): Update.
31497         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31498         (gl_rbtreehash_list_implementation): Update.
31499         * modules/array-list (Depends-on): Remove xalloc.
31500         * modules/carray-list (Depends-on): Likewise.
31501         * modules/linked-list (Depends-on): Likewise.
31502         * modules/linkedhash-list (Depends-on): Likewise.
31503         * modules/avltree-list (Depends-on): Likewise.
31504         * modules/rbtree-list (Depends-on): Likewise.
31505         * modules/avltreehash-list (Depends-on): Likewise.
31506         * modules/rbtreehash-list (Depends-on): Likewise.
31507
31508         * modules/xsublist: New file.
31509         * lib/gl_xsublist.h: New file.
31510         * lib/gl_xsublist.c: New file.
31511         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31512         (gl_sublist_nx_create): New declaration.
31513         * lib/gl_sublist.c: Don't include xalloc.h.
31514         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31515         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31516         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31517         Change return type to 'int'. Return -1 upon out-of-memory.
31518         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31519         upon out-of-memory.
31520         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31521         NULL upon out-of-memory.
31522         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31523         upon out-of-memory.
31524         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31525         NULL upon out-of-memory.
31526         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31527         NULL upon out-of-memory.
31528         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31529         upon out-of-memory.
31530         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31531         (gl_sublist_list_implementation): Update.
31532         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31533         upon out-of-memory.
31534         * modules/sublist (Depends-on): Remove xalloc.
31535
31536         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31537         * tests/test-carray_list.c: Likewise.
31538         * tests/test-linked_list.c: Likewise.
31539         * tests/test-linkedhash_list.c: Likewise.
31540         * tests/test-avltree_list.c: Likewise.
31541         * tests/test-rbtree_list.c: Likewise.
31542         * tests/test-avltreehash_list.c: Likewise.
31543         * tests/test-rbtreehash_list.c: Likewise.
31544         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31545         * modules/carray-list-tests (Makefile.am): Likewise.
31546         * modules/linked-list-tests (Makefile.am): Likewise.
31547         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31548         * modules/avltree-list-tests (Makefile.am): Likewise.
31549         * modules/rbtree-list-tests (Makefile.am): Likewise.
31550         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31551         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31552
31553         * NEWS: Mention the changes.
31554
31555         * lib/clean-temp.c: Include gl_xlist.h.
31556         * modules/clean-temp (Depends-on): Add xlist.
31557
31558         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31559         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31560
31561         * tests/test-array_oset.c: Include gl_xlist.h.
31562         * modules/array-oset-tests (Depends-on): Add xlist.
31563
31564         Reported by José E. Marchesi <jemarch@gnu.org>.
31565
31566 2009-12-13  Bruno Haible  <bruno@clisp.org>
31567
31568         Move the malloc checking from module 'oset' to new module 'xoset'.
31569         * modules/xoset: New file.
31570         * lib/gl_xoset.h: New file.
31571         * lib/gl_xoset.c: New file.
31572         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31573         declarations.
31574         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31575         (struct gl_oset_implementation): Rename and change methods accordingly.
31576         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31577         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31578         'int'. Mark as __warn_unused_result__.
31579         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31580         gl_oset_create_empty.
31581         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31582         'int'.
31583         * lib/gl_array_oset.c: Don't include xalloc.h.
31584         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31585         malloc, not xmalloc.
31586         (grow): Change return type to 'int'. Don't call xalloc_die.
31587         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31588         to 'int'.
31589         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31590         'int'.
31591         (gl_array_oset_implementation): Update.
31592         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31593         gl_tree_create_empty.
31594         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31595         'int'.
31596         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31597         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31598         xmalloc.
31599         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31600         not xmalloc.
31601         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31602         xmalloc.
31603         (gl_avltree_oset_implementation): Update.
31604         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31605         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31606         xmalloc.
31607         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31608         not xmalloc.
31609         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31610         xmalloc.
31611         (gl_rbtree_oset_implementation): Update.
31612         * modules/array-oset (Depends-on): Remove xalloc.
31613         * modules/avltree-oset (Depends-on): Likewise.
31614         * modules/rbtree-oset (Depends-on): Likewise.
31615         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31616         * tests/test-avltree_oset.c: Likewise.
31617         * tests/test-rbtree_oset.c: Likewise.
31618         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31619         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31620         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31621         * NEWS: Mention the change.
31622
31623 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31624
31625         maint.mk: allow a project to override release-prep commands
31626         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31627         commands into a new rule.
31628         (release-prep): New rule.
31629         (release-prep-hook): New overridable variable.
31630
31631 2009-12-13  Bruno Haible  <bruno@clisp.org>
31632
31633         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31634
31635 2009-12-13  Jim Meyering  <meyering@redhat.com>
31636
31637         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31638         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31639
31640 2009-12-12  Bruno Haible  <bruno@clisp.org>
31641
31642         duplocale: Tweak.
31643         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31644
31645 2009-12-12  Karl Berry  <karl@gnu.org>
31646
31647         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31648
31649 2009-12-12  Bruno Haible  <bruno@clisp.org>
31650
31651         * m4/po.m4: Undo incorrect untabification.
31652
31653 2009-12-12  Bruno Haible  <bruno@clisp.org>
31654
31655         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31656         * modules/c-strtod (Depends-on): Add locale.
31657         * modules/c-strtold (Depends-on): Likewise.
31658
31659 2009-12-12  Bruno Haible  <bruno@clisp.org>
31660
31661         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31662
31663 2009-12-11  Eric Blake  <ebb9@byu.net>
31664
31665         setenv: relax requirement in light of POSIX ruling
31666         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31667         not NULL.
31668         * tests/test-setenv.c (main): Relax test.
31669         * tests/test-unsetenv.c (main): Likewise.
31670         * doc/posix-functions/setenv.texi (setenv): Document this.
31671         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31672
31673 2009-12-11  Bruno Haible  <bruno@clisp.org>
31674
31675         New module 'fd-safer-flag'.
31676         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31677         * lib/dup-safer.c (dup_safer_flag): Remove function.
31678         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31679         * lib/fd-safer.c (fd_safer_flag): Remove function.
31680         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31681         * modules/cloexec (configure.ac): Drop indicator macro.
31682         * modules/fd-safer-flag: New file.
31683         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31684         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31685         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31686
31687 2009-12-11  Bruno Haible  <bruno@clisp.org>
31688
31689         Tests for module 'nl_langinfo'.
31690         * modules/nl_langinfo-tests: New file.
31691         * tests/test-nl_langinfo.sh: New file.
31692         * tests/test-nl_langinfo.c: New file.
31693
31694         New module 'nl_langinfo'.
31695         * lib/nl_langinfo.c: New file.
31696         * m4/nl_langinfo.m4: New file.
31697         * modules/nl_langinfo: New file.
31698         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31699
31700 2009-12-11  Bruno Haible  <bruno@clisp.org>
31701
31702         Tests for module 'langinfo'.
31703         * modules/langinfo-tests: New file.
31704         * tests/test-langinfo.c: New file.
31705
31706         New module 'langinfo'.
31707         * lib/langinfo.in.h: New file.
31708         * m4/langinfo_h.m4: New file.
31709         * modules/langinfo: New file.
31710         * doc/posix-headers/langinfo.texi: Mention the new module.
31711
31712 2009-12-11  Bruno Haible  <bruno@clisp.org>
31713
31714         * lib/config.charset: Untabify.
31715
31716 2009-12-11  Bruno Haible  <bruno@clisp.org>
31717
31718         * modules/unistd-safer (configure.ac): Drop indicator macro.
31719
31720 2009-12-11  Bruno Haible  <bruno@clisp.org>
31721
31722         Move pipe2-safer code to its own file.
31723         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31724         * lib/pipe-safer.c (pipe2_safer): Remove function.
31725         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31726         (Makefile.am): Add it to lib_SOURCES.
31727
31728 2009-12-10  Bruno Haible  <bruno@clisp.org>
31729
31730         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31731
31732 2009-12-10  Bruno Haible  <bruno@clisp.org>
31733
31734         Declare which arguments expect non-NULL values, for GCC and clang.
31735         * build-aux/arg-nonnull.h: New file.
31736         * modules/arg-nonnull: New file.
31737         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31738         (inet_ntop, inet_pton): Use it.
31739         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31740         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31741         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31742         (open, openat): Use it.
31743         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31744         (fnmatch): Use it.
31745         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31746         (getopt, getopt_long, getopt_long_only): Use it.
31747         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31748         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31749         Use it.
31750         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31751         (iconv_open): Use it.
31752         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31753         (strtoimax, strtoumax): Use it.
31754         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31755         (duplocale): Use it.
31756         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31757         (frexp, frexpl): Use it.
31758         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31759         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31760         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31761         (tsearch, tfind, tdelete, twalk): Use it.
31762         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31763         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31764         sigpending): Use it.
31765         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31766         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31767         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31768         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31769         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31770         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31771         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31772         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31773         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31774         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31775         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31776         Use it.
31777         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31778         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31779         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31780         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31781         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31782         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31783         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31784         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31785         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31786         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31787         strtoull, unsetenv): Use it.
31788         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31789         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31790         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31791         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31792         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31793         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31794         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31795         (strcasecmp, strncasecmp): Use it.
31796         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31797         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31798         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31799         rpl_setsockopt): Use it.
31800         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31801         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31802         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31803         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31804         (gettimeofday): Use it.
31805         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31806         (times): Use it.
31807         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31808         (uname): Use it.
31809         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31810         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31811         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31812         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31813         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31814         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31815         unlinkat, write): Use it.
31816         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31817         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31818         * lib/argv-iter.h: Include arg-nonnull.h.
31819         (_ATTRIBUTE_NONNULL_): Remove macro.
31820         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31821         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31822         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31823         optimization.
31824         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31825         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31826         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31827         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31828         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31829         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31830         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31831         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31832         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31833         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31834         * modules/dirent (Depends-on): Add arg-nonnull.
31835         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31836         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31837         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31838         * modules/fnmatch (Depends-on): Add arg-nonnull.
31839         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31840         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31841         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31842         * modules/glob (Depends-on): Add arg-nonnull.
31843         (Makefile.am): Insert arg-nonnull.h into glob.h.
31844         * modules/iconv_open (Depends-on): Add arg-nonnull.
31845         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31846         * modules/inttypes (Depends-on): Add arg-nonnull.
31847         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31848         * modules/locale (Depends-on): Add arg-nonnull.
31849         (Makefile.am): Insert arg-nonnull.h into locale.h.
31850         * modules/math (Depends-on): Add arg-nonnull.
31851         (Makefile.am): Insert arg-nonnull.h into math.h.
31852         * modules/netdb (Depends-on): Add arg-nonnull.
31853         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31854         * modules/search (Depends-on): Add arg-nonnull.
31855         (Makefile.am): Insert arg-nonnull.h into search.h.
31856         * modules/signal (Depends-on): Add arg-nonnull.
31857         (Makefile.am): Insert arg-nonnull.h into signal.h.
31858         * modules/spawn (Depends-on): Add arg-nonnull.
31859         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31860         * modules/stdio (Depends-on): Add arg-nonnull.
31861         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31862         * modules/stdlib (Depends-on): Add arg-nonnull.
31863         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31864         * modules/string (Depends-on): Add arg-nonnull.
31865         (Makefile.am): Insert arg-nonnull.h into string.h.
31866         * modules/strings (Depends-on): Add arg-nonnull.
31867         (Makefile.am): Insert arg-nonnull.h into strings.h.
31868         * modules/sys_socket (Depends-on): Add arg-nonnull.
31869         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31870         * modules/sys_stat (Depends-on): Add arg-nonnull.
31871         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31872         * modules/sys_time (Depends-on): Add arg-nonnull.
31873         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31874         * modules/sys_times (Depends-on): Add arg-nonnull.
31875         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31876         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31877         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31878         * modules/time (Depends-on): Add arg-nonnull.
31879         (Makefile.am): Insert arg-nonnull.h into time.h.
31880         * modules/unistd (Depends-on): Add arg-nonnull.
31881         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31882         * modules/wchar (Depends-on): Add arg-nonnull.
31883         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31884         * modules/argv-iter (Depends-on): Add arg-nonnull.
31885         * tests/test-canonicalize.c (null_ptr): New function.
31886         (main): Use it.
31887         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31888         (main): Use it.
31889         * tests/test-memmem.c (null_ptr): New function.
31890         (main): Use it.
31891         Reported by Jim Meyering.
31892
31893 2009-12-10  Bruno Haible  <bruno@clisp.org>
31894
31895         Use spaces for indentation, not tabs.
31896         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31897         * m4/*.m4: Untabify.
31898         * build-aux/*.h: Untabify.
31899         * tests/**/*.[hc]: Untabify.
31900         * README: New section "Indent with spaces, not TABs", based on
31901         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31902         * NEWS: Mention the change.
31903
31904 2009-12-10  Bruno Haible  <bruno@clisp.org>
31905
31906         pty test: Fix link error.
31907         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31908         test_pty_LDADD.
31909
31910 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31911
31912         * modules/pty: New file.
31913         * modules/pty-tests: New file.
31914         * m4/pty.m4: New file.
31915         * tests/test-pty.c: New file.
31916         * doc/glibc-headers/pty.texi: Modified.
31917         * doc/glibc-functions/forkpty.texi: Modified.
31918         * doc/glibc-functions/openpty.texi: Modified.
31919
31920 2009-12-10  Bruno Haible  <bruno@clisp.org>
31921
31922         Avoid syntax error in C++ mode.
31923         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31924
31925 2009-12-10  Bruno Haible  <bruno@clisp.org>
31926
31927         Use sed with option -e.
31928         * gnulib-tool (func_version, func_emit_copyright_notice,
31929         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31930         option -e to sed.
31931         * modules/link-warning (Makefile.am): Likewise.
31932
31933 2009-12-10  Jim Meyering  <meyering@redhat.com>
31934
31935         mgetgroups: do not write bytes beyond end of malloc'd buffer
31936         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31937         username, we call getgroups with a one-element-shorter buffer,
31938         but still told it the length was original, max_n_groups.
31939
31940 2009-12-09  Eric Blake  <ebb9@byu.net>
31941
31942         cloexec: relax license
31943         * modules/cloexec (Maintainer): Add myself.
31944         (License): Use LGPL, not GPL.
31945
31946         link-warning: optimize generation
31947         * modules/link-warning (Makefile.am): Reduce process usage.
31948
31949 2009-12-09  Bruno Haible  <bruno@clisp.org>
31950
31951         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31952         workaround was added on 2009-11-17.
31953
31954 2009-12-09  Jim Meyering  <meyering@redhat.com>
31955             Bruno Haible  <bruno@clisp.org>
31956
31957         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31958         * modules/link-warning (Makefile.am): Make the comment-removing sed
31959         command more robust in the face of bootstrap-prepended comment lines.
31960
31961 2009-12-09  Bruno Haible  <bruno@clisp.org>
31962
31963         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31964         most one group.
31965
31966 2009-12-09  Simon Josefsson <simon@josefsson.org>
31967             Bruno Haible  <bruno@clisp.org>
31968
31969         * build-aux/link-warning.h: Add copyright notice.
31970         * modules/link-warning (Makefile.am): Generate link-warning.h from
31971         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31972         * NEWS: Mention change in link-warning module.
31973         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31974         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31975         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31976         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31977         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31978         * modules/math (Makefile.am): Add dependency to math.h.
31979         * modules/search (Makefile.am): Add dependency to search.h.
31980         * modules/signal (Makefile.am): Add dependency to signal.h.
31981         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31982         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31983         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31984         * modules/string (Makefile.am): Add dependency to string.h.
31985         * modules/strings (Makefile.am): Add dependency to strings.h.
31986         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31987         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31988         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31989         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31990         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31991         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31992         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31993         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31994         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31995
31996 2009-12-09  Bruno Haible  <bruno@clisp.org>
31997
31998         fchdir: Optimize away rpl_fstat when possible.
31999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32000         REPLACE_OPEN_DIRECTORY.
32001         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32002
32003 2009-12-09  Bruno Haible  <bruno@clisp.org>
32004
32005         * lib/fchdir.c: Update comment.
32006
32007 2009-12-09  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32010
32011 2009-12-08  Eric Blake  <ebb9@byu.net>
32012
32013         fchdir: avoid memory leak on re-registration.
32014         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32015
32016 2009-12-08  Jim Meyering  <meyering@redhat.com>
32017
32018         init.sh: avoid Solaris 10 /bin/sh portability problem
32019         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32020         sourced script:
32021           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32022           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32023           bar
32024         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32025         and two tests used that idiom.
32026         * tests/init.sh: Update suggested usage comments.
32027         (path_prepend_): New function, to be used in place
32028         of the --src-path=DIR option.
32029         (setup_): Move PATH-prepending code into path_prepend_.
32030         * tests/test-pread.sh: Adapt to new usage.
32031         * tests/test-xalloc-die.sh: Likewise.
32032
32033 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32034
32035         * doc/gnulib.texi (Glibc pty.h): Add.
32036         * doc/glibc-functions/forkpty.texi: Add.
32037         * doc/glibc-functions/openpty.texi: Add.
32038         Suggested by Bruno Haible.
32039
32040 2009-12-08  Eric Blake  <ebb9@byu.net>
32041
32042         fchdir: fix logic bugs
32043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32044         * tests/test-fchdir.c (main): Enhance test.
32045         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32046         is in use.
32047
32048         dup2: fix logic bugs
32049         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32050         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32051         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32052         exists.
32053         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32054
32055 2009-12-07  Eric Blake  <ebb9@byu.net>
32056
32057         unlink: fix m4 detection
32058         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32059
32060         unistd-safer: add unit test
32061         * modules/unistd-safer-tests: New file.
32062         * tests/test-dup-safer.c: Likewise.
32063         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32064         * tests/test-dup2.c (setmode): Likewise.
32065         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32066
32067         cloexec: preserve text vs. binary across dup_cloexec
32068         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32069         mode.
32070         * modules/dup2-tests (Depends-on): Add binary-io.
32071         * modules/cloexec-tests (Depends-on): Likewise.
32072         * tests/test-dup2.c (setmode, is_mode): New helpers.
32073         (main): Add tests that translation mode is preserved.
32074         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32075         Reported by Bruno Haible.
32076
32077         mgetgroups: reduce duplicate listings
32078         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32079         resulting array.
32080         * tests/test-chown.h (test_chown): Simplify client.
32081         * tests/test-lchown.h (test_lchown): Likewise.
32082
32083 2009-12-06  Bruno Haible  <bruno@clisp.org>
32084
32085         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32086         value.
32087
32088 2009-12-06  Bruno Haible  <bruno@clisp.org>
32089
32090         * lib/progname.c: Include stdio.h, stdlib.h.
32091         (set_program_name): Reject a NULL argument.
32092
32093 2009-12-05  Eric Blake  <ebb9@byu.net>
32094
32095         pipe2-safer: new module
32096         * modules/pipe2-safer: New file.
32097         * lib/unistd-safer.h (pipe2_safer): New prototype.
32098         * lib/unistd--.h (pipe2): New wrapper.
32099         * lib/pipe-safer.c (pipe2_safer): New function.
32100         * modules/pipe (Depends-on): Add pipe2-safer.
32101         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32102
32103         stdlib-safer: preserve cloexec flag for mkostemp[s]
32104         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32105         fd_safer_flag.
32106
32107         unistd-safer: allow preservation of cloexec status via flag
32108         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32109         prototypes.
32110         * lib/dup-safer.c (dup_safer_flag): New function.
32111         * lib/fd-safer.c (fd_safer_flag): Likewise.
32112         * modules/cloexec (configure.ac): Set witness.
32113
32114         test-dup2: enhance test
32115         * modules/dup2-tests (Depends-on): Add cloexec.
32116         * tests/test-dup2.c (main): Enhance test.
32117
32118         cloexec: add dup_cloexec
32119         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32120         header and comments.
32121         * lib/cloexec.c (set_cloexec_flag): Add comments.
32122         (dup_cloexec): New function, with mingw implementation borrowed
32123         from...
32124         * lib/w32spawn.h (dup_noinherit): ...here.
32125         * modules/execute (Depends-on): Add cloexec.
32126         * modules/pipe (Depends-on): Likewise.
32127         * modules/cloexec (Depends-on): Add dup2.
32128         * modules/cloexec-tests (Files): New file.
32129         * tests/test-cloexec.c: Likewise.
32130
32131         test-xalloc-die: fix test for mingw
32132         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32133         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32134         directory and .exe suffix off argv[0] output.
32135
32136         test-fseeko: fix test for mingw
32137         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32138         than undefining fseek, so test will pass on mingw.
32139
32140 2009-12-05  Bruno Haible  <bruno@clisp.org>
32141
32142         * lib/progname.h (set_program_name): Clarify specification.
32143         * lib/progname.c (set_program_name): Likewise.
32144         Reported by Jim Meyering.
32145
32146 2009-12-05  Jim Meyering  <meyering@redhat.com>
32147
32148         maint.mk: backslash-escape parens in default regexp
32149         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32150         backslash-escape the literal parentheses.
32151
32152         maint.mk: news-date-check: use grep -E
32153         * top/maint.mk (today): Define a Make variable, not a...
32154         (news-date-check): ...shell variable.
32155         (news-date-regexp): Use the Make variable.
32156         Use grep's -E option.  Change the failing diagnostic to mention
32157         the variable, $(news-date-regexp).
32158
32159 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32160
32161         maintainer-makefile: allow customization of NEWS entry format
32162         * top/maint.mk (news-date-regexp): New overridable variable.
32163         (news-date-check): Use it.
32164
32165 2009-12-04  Eric Blake  <ebb9@byu.net>
32166
32167         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32168         * lib/mgetgroups.h (xgetgroups): New prototype.
32169         * lib/mgetgroups.c (xgetgroups): New wrapper.
32170         (mgetgroups): Handle ENOSYS.
32171         * modules/mgetgroups (Depends-on): Add realloc.
32172         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32173
32174         mgetgroups: avoid argument promotion issues with -1
32175         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32176         for invalid gid_t.
32177         * tests/test-chown.h (getegid, test_chown): Likewise.
32178         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32179
32180 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32181
32182         exclude: Fix header file problems.
32183         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32184
32185 2009-12-01  Jim Meyering  <meyering@redhat.com>
32186
32187         fts: fts_open: do not let an empty string cause immediate failure
32188         This is required in support of GNU rm, for which the command
32189         "rm A '' B" must process and remove both A and B, in spite of
32190         the empty string argument.
32191         * lib/fts.c (fts_open): Do not let the presence of an empty string
32192         cause fts_open to fail immediately.  Most fts-using tools must be
32193         able to process all arguments, in order, and can be expected to
32194         diagnose such arguments themselves.
32195
32196 2009-11-30  Eric Blake  <ebb9@byu.net>
32197
32198         utimens: fix compilation error
32199         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32200         Declare variable at right scope.
32201
32202 2009-11-29  Jim Meyering  <meyering@redhat.com>
32203
32204         bootstrap: handle perl-5.11's changed --version output
32205         * build-aux/bootstrap (get_version): Handle perl separately,
32206         since perl-5.11's --version output is different.
32207
32208 2009-11-28  Jim Meyering  <meyering@redhat.com>
32209
32210         userspec: depend on the inttostr module, too
32211         * modules/userspec (Depends-on): Add inttostr.
32212
32213         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32214         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32215         number of MAXUID when it evaluates to (uid_t) -1.
32216         Likewise for group ID.  Reported by Matt McCutchen in
32217         <http://savannah.gnu.org/bugs/?28113>
32218
32219         userspec: reformat to use spaces, not TABs
32220         * lib/userspec.c: Expand TABs to spaces.
32221         Add Emacs' "indent-tabs-mode: nil" hint.
32222
32223 2009-11-27  Eric Blake  <ebb9@byu.net>
32224
32225         getopt-gnu: flush out another BSD bug
32226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32227         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32228         flush out BSD bug.
32229         * tests/test-getopt.h (test_getopt): End lists with NULL.
32230         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32231         (test_getopt_long_posix): Enhance test.
32232         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32233         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32234         getopt-gnu.
32235         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32236         Likewise.
32237
32238 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32239
32240         * modules/idpriv-droptemp-tests (Notice): Fix text.
32241
32242 2009-11-27  Jim Meyering  <meyering@redhat.com>
32243
32244         test-xalloc-die: avoid spurious failure due to libtool argv difference
32245         In a libtool-enabled project, this test would fail due to a difference
32246         in the emitted program name, e.g.,
32247         -test-xalloc-die: memory exhausted
32248         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32249         Use program to avoid that.
32250         * modules/xalloc-die-tests (Depends-on): Add progname.
32251         * tests/test-xalloc-die.c: Include progname.h".
32252         (program_name): Remove decl.
32253         (main): Call set_program_name.
32254         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32255
32256 2009-11-26  Richard Jones  <rjones@redhat.com>
32257
32258         w32sock: leave win32 error in place.
32259         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32260
32261 2009-11-26  Eric Blake  <ebb9@byu.net>
32262
32263         init.sh: suggest to use skip_ and fail_ functions in comments
32264         * tests/init.sh: Add a sentence.
32265
32266 2009-11-25  Bruno Haible  <bruno@clisp.org>
32267
32268         init.sh: add documentation in comments
32269         * tests/init.sh: Add some developer and user documentation.
32270
32271 2009-11-26  Jim Meyering  <meyering@redhat.com>
32272
32273         init.sh: accommodate even those who specify bogus srcdir manually
32274         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32275         configure-time tests to be sanitized, so that there is no need to
32276         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32277         (with no double quotes) suffices.  However, since tests may be
32278         invoked manually, and since you may explicitly set srcdir to the
32279         name of a directory containing spaces, do quote its uses here.
32280         * tests/test-pread.sh: Likewise.
32281         Suggested by Bruno Haible.
32282
32283         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32284         * tests/test-pread.sh: Write no data into the pipe, because
32285         test-pread actually reads none.  This avoids a diagnostic,
32286         "bash: echo: write error: Broken pipe", that arises in the unusual
32287         event something is ignoring SIGPIPE, and might be interpreted
32288         as some sort of failure.  Reported by Bruno Haible.
32289
32290 2009-11-25  Jim Meyering  <meyering@redhat.com>
32291
32292         test-pread: cover failure with ESPIPE and EINVAL
32293         * tests/test-pread.c (main): Test for failure, too.
32294         * tests/test-pread.sh: Invoke with stdin on a pipe.
32295         Suggested by Eric Blake.
32296
32297         pread: improvement and fix
32298         * modules/pread (Depends-on): Depend on lseek, for portability to
32299         e.g., mingw.  Suggested by Eric Blake.
32300         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32301
32302         unistd.in.h: correct declaration of pread
32303         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32304         Reported by Richard W.M. Jones.
32305
32306         test-pread.sh: distribute the test script
32307         * modules/pread-tests (Files): Include test-pread.sh.
32308
32309         test-pread.sh: clean up
32310         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32311         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32312         That is unnecessary, since it's always ".".
32313         Suggestion from Eric Blake.
32314
32315         test-pread.sh: make executable
32316         * tests/test-pread.sh: Set executable bit.
32317         Reported by Eric Blake.
32318
32319         correct typo in test-pread.sh
32320         * tests/test-pread.sh: Add #! line.
32321
32322         test pread
32323         * tests/test-pread.c: New file.
32324         * tests/test-pread.sh: Likewise.
32325         * modules/pread-tests: Likewise.
32326
32327         pread: new module
32328         * modules/pread: New file.
32329         * lib/unistd.in.h (pread): Define/declare.
32330         * lib/pread.c (pread): New file.
32331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32332         * modules/unistd (Makefile.am): Substitute witnesses.
32333         * doc/posix-functions/pread.texi (pread): Update.
32334         * MODULES.html.sh: Add pread.
32335
32336 2009-11-25  Jim Meyering  <meyering@redhat.com>
32337
32338         tests/init.sh: new file to be used via most *.sh tests
32339         * tests/init.sh: New file.
32340
32341 2009-11-25  Eric Blake  <ebb9@byu.net>
32342
32343         utimens: work around older Linux failure with symlinks
32344         * lib/utimens.c (lutimensat_works_really): New variable.
32345         (fdutimens, lutimens): Use it to manage kernels that support
32346         nanosecond times on files, but not on symlinks.
32347         Reported by Ondřej Vašík.
32348
32349         utimes: fix configure grammar
32350         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32351
32352 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32353
32354         regex: Fix fastmap for multibyte character ranges.
32355         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32356         characters when a multibyte character range is included.
32357
32358 2009-11-22  Andy Wingo  <wingo@pobox.com>
32359
32360         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32361         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32362
32363 2009-11-24  Bruno Haible  <bruno@clisp.org>
32364
32365         doc: Most *_l functions exist in MacOS X 10.5.
32366         * doc/posix-functions/duplocale.texi: Update platforms list.
32367         * doc/posix-functions/freelocale.texi: Likewise.
32368         * doc/posix-functions/newlocale.texi: Likewise.
32369         * doc/posix-functions/uselocale.texi: Likewise.
32370         * doc/posix-functions/isalnum_l.texi: Likewise.
32371         * doc/posix-functions/isalpha_l.texi: Likewise.
32372         * doc/posix-functions/isblank_l.texi: Likewise.
32373         * doc/posix-functions/iscntrl_l.texi: Likewise.
32374         * doc/posix-functions/isdigit_l.texi: Likewise.
32375         * doc/posix-functions/isgraph_l.texi: Likewise.
32376         * doc/posix-functions/islower_l.texi: Likewise.
32377         * doc/posix-functions/isprint_l.texi: Likewise.
32378         * doc/posix-functions/ispunct_l.texi: Likewise.
32379         * doc/posix-functions/isspace_l.texi: Likewise.
32380         * doc/posix-functions/isupper_l.texi: Likewise.
32381         * doc/posix-functions/iswalnum_l.texi: Likewise.
32382         * doc/posix-functions/iswalpha_l.texi: Likewise.
32383         * doc/posix-functions/iswblank_l.texi: Likewise.
32384         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32385         * doc/posix-functions/iswctype_l.texi: Likewise.
32386         * doc/posix-functions/iswdigit_l.texi: Likewise.
32387         * doc/posix-functions/iswgraph_l.texi: Likewise.
32388         * doc/posix-functions/iswlower_l.texi: Likewise.
32389         * doc/posix-functions/iswprint_l.texi: Likewise.
32390         * doc/posix-functions/iswpunct_l.texi: Likewise.
32391         * doc/posix-functions/iswspace_l.texi: Likewise.
32392         * doc/posix-functions/iswupper_l.texi: Likewise.
32393         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32394         * doc/posix-functions/isxdigit_l.texi: Likewise.
32395         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32396         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32397         * doc/posix-functions/strcoll_l.texi: Likewise.
32398         * doc/posix-functions/strfmon_l.texi: Likewise.
32399         * doc/posix-functions/strftime_l.texi: Likewise.
32400         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32401         * doc/posix-functions/strxfrm_l.texi: Likewise.
32402         * doc/posix-functions/tolower_l.texi: Likewise.
32403         * doc/posix-functions/toupper_l.texi: Likewise.
32404         * doc/posix-functions/towctrans_l.texi: Likewise.
32405         * doc/posix-functions/towlower_l.texi: Likewise.
32406         * doc/posix-functions/towupper_l.texi: Likewise.
32407         * doc/posix-functions/wcscoll_l.texi: Likewise.
32408         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32409         * doc/posix-functions/wctrans_l.texi: Likewise.
32410         * doc/posix-functions/wctype_l.texi: Likewise.
32411         * doc/glibc-functions/strptime_l.texi: Likewise.
32412         * doc/glibc-functions/strtod_l.texi: Likewise.
32413         * doc/glibc-functions/strtof_l.texi: Likewise.
32414         * doc/glibc-functions/strtol_l.texi: Likewise.
32415         * doc/glibc-functions/strtold_l.texi: Likewise.
32416         * doc/glibc-functions/strtoll_l.texi: Likewise.
32417         * doc/glibc-functions/strtoul_l.texi: Likewise.
32418         * doc/glibc-functions/strtoull_l.texi: Likewise.
32419         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32420         * doc/glibc-functions/wcstod_l.texi: Likewise.
32421         * doc/glibc-functions/wcstof_l.texi: Likewise.
32422         * doc/glibc-functions/wcstol_l.texi: Likewise.
32423         * doc/glibc-functions/wcstold_l.texi: Likewise.
32424         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32425         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32426         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32427
32428 2009-11-24  Bruno Haible  <bruno@clisp.org>
32429
32430         duplocale: Fix logic bug.
32431         * lib/duplocale.c: Don't include <langinfo.h>.
32432         (_NL_LOCALE_NAME): Remove macro.
32433         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32434         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32435
32436 2009-11-23  Jim Meyering  <meyering@redhat.com>
32437
32438         test-update-copyright: don't hard-code /usr/bin/perl
32439         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32440         perl to print the current year.  Gilles Espinasse reported that
32441         the replaced use of perl was hard-coded as /usr/bin/perl.
32442
32443 2009-11-23  Bruno Haible  <bruno@clisp.org>
32444
32445         duplocale: Add support for glibc 2.3.x.
32446         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32447
32448 2009-11-22  Bruno Haible  <bruno@clisp.org>
32449
32450         vasnprintf: Tiny optimization.
32451         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32452         MacOS X.
32453
32454 2009-11-22  Bruno Haible  <bruno@clisp.org>
32455
32456         Tests for module 'duplocale'.
32457         * modules/duplocale-tests: New file.
32458         * tests/test-duplocale.c: New file.
32459
32460         New module 'duplocale'.
32461         * m4/duplocale.m4: New file.
32462         * lib/locale.in.h (duplocale): New declaration.
32463         * lib/duplocale.c: New file.
32464         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32465         gl_LOCALE_H_DEFAULTS): New macros.
32466         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32467         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32468         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32469         REPLACE_DUPLOCALE.
32470         * modules/duplocale: New file.
32471         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32472
32473 2009-11-22  Bruno Haible  <bruno@clisp.org>
32474
32475         * modules/locale-tests (configure.ac): Test for newlocale function.
32476         * tests/test-locale.c: When the system has extended locale functions,
32477         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32478
32479         locale: Make locale_t available when possible.
32480         * lib/locale.in.h: Include <xlocale.h> when it exists.
32481         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32482         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32483         * modules/locale (Depends-on): Add extensions.
32484         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32485         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32486
32487 2009-11-22  Bruno Haible  <bruno@clisp.org>
32488
32489         Add comments.
32490         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32491         invocation.
32492         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32493         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32494         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32495
32496 2009-11-22  Bruno Haible  <bruno@clisp.org>
32497
32498         error: account for the possibility of freopen (stdout).
32499         * lib/error.c: Include <unistd.h>.
32500         (flush_stdout): New function, extracted from error and error_at_line.
32501         Determine stdout's fd dynamically.
32502         (error, error_at_line): Invoke flush_stdout.
32503         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32504         * modules/error (Depends-on): Add unistd.
32505
32506 2009-11-22  Bruno Haible  <bruno@clisp.org>
32507
32508         diffseq: Add comment.
32509         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32510
32511 2009-11-22  Jim Meyering  <meyering@redhat.com>
32512
32513         c-stack: avoid defining an unused static function
32514         * lib/c-stack.c (find_stack_direction): Do not define this function
32515         when it will not be used.
32516
32517         diffseq: avoid spurious gcc warnings
32518         * lib/diffseq.h (IF_LINT2): Define.
32519         (compareseq): Use it to initialize two members of "part".
32520         This avoids two used-uninitialized warnings.
32521
32522 2009-11-21  Jim Meyering  <meyering@redhat.com>
32523
32524         c-stack: avoid "ignoring return value of `write'" warning
32525         * lib/c-stack.c: Include "ignore-value.h".
32526         (die): Explicitly ignore each write return value.
32527         * modules/c-stack (Depends-on): Add ignore-value.
32528
32529 2009-11-21  Bruno Haible  <bruno@clisp.org>
32530
32531         diffseq: reduce scope of variable 'best'.
32532         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32533         variable, earlier used for two different purposes.
32534
32535 2009-11-21  Jim Meyering  <meyering@redhat.com>
32536
32537         diffseq: remove useless assignment to "best"
32538         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32539         assignment.  At that point "best" is already guaranteed to be zero.
32540
32541 2009-11-20  Eric Blake  <ebb9@byu.net>
32542
32543         build: mention ftp redirector in release announcements
32544         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32545         values that used to come from cfg.mk; mention FTP redirect URL.
32546         * build-aux/announce-gen: Mention the mirror list.
32547         Suggested by Karl Berry.
32548
32549         nanosleep: improve port to mingw
32550         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32552         LIB_NANOSLEEP, but only when needed.
32553         * modules/select (Link): Document LIBSOCKET.
32554         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32555         enough.
32556
32557         nanosleep: work around cygwin bug
32558         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32559         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32560         bug.
32561         (getnow): Delete, not needed.
32562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32563         LIB_CLOCK_GETTIME.
32564         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32565         clock-time, gettime.
32566         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32567         bug.
32568         * modules/nanosleep-tests: New test.
32569         * tests/test-nanosleep.c: New file.
32570
32571         sleep: work around cygwin bug
32572         * lib/sleep.c (rpl_sleep): Work around the bug.
32573         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32574         (gl_PREREQ_SLEEP): Delete unused macro.
32575         * modules/sleep (Depends-on): Add verify.
32576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32577         * modules/unistd (Makefile.am): Substitute witness.
32578         * lib/unistd.in.h (sleep): Update prototype.
32579         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32580         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32581         * modules/sleep-tests (Depends-on): Check for alarm.
32582
32583 2009-11-20  Jim Meyering  <meyering@redhat.com>
32584
32585         maint.mk: improve sc_prohibit_magic_number_exit
32586         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32587         so it does not match uses like System.exit(1).
32588         Add comments showing how to correct all offenders.
32589
32590 2009-11-19  Eric Blake  <ebb9@byu.net>
32591
32592         xalloc-die-tests: add missing library
32593         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32594
32595         test-xvasprintf: silence compiler warnings
32596         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32597         empty string from gcc.
32598
32599 2009-11-19  Jim Meyering  <meyering@redhat.com>
32600
32601         xfreopen: new module, from coreutils
32602         * modules/xfreopen: New module.
32603         * lib/xfreopen.c: New file.
32604         * lib/xfreopen.h: New file.
32605         * MODULES.html.sh (File stream based Input/Output"): Add it.
32606
32607 2009-11-19  Eric Blake  <ebb9@byu.net>
32608
32609         manywarnings: depend on warnings
32610         * modules/manywarnings (Depends-on): Add warnings.
32611
32612         build: avoid compiler warnings
32613         * lib/select.c (rpl_select): Delete unused variable.
32614         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32615
32616 2009-11-18  Eric Blake  <ebb9@byu.net>
32617
32618         tests: avoid false negative with --with-packager
32619         * tests/test-version-etc.sh: Discard packager information.
32620         * tests/test-argp-version-etc-1.sh: Likewise.
32621         Reported by Mike Frysinger.
32622
32623         utimens: fix regression on Solaris
32624         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32625         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32626         can only change fd timestamps via futimesat.  Instead, use an
32627         additional witness macro to avoid BSD bug.
32628         Reported by Jim Meyering.
32629
32630 2009-11-17  Eric Blake  <ebb9@byu.net>
32631
32632         usleep: use it to simplify tests
32633         * modules/stat-time-tests (Depends-on): Add usleep.
32634         (configure.ac): Drop usleep check.
32635         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32636         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32637         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32638         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32639         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32640         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32641         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32642         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32643         Likewise.
32644         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32645         * tests/test-lchown.h (nap): Likewise.
32646         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32647         * tests/test-stat-time.c (nap): Likewise.
32648         * tests/test-utimens-common.h (nap): Update comments.
32649
32650         usleep: new module
32651         * modules/usleep: New file.
32652         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32653         * lib/usleep.c (usleep): Likewise.
32654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32655         * modules/unistd (Makefile.am): Substitute witnesses.
32656         * lib/unistd.in.h (usleep): Add declaration.
32657         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32658         * MODULES.html.sh (Date and time): Likewise.
32659         * modules/usleep-tests (Depends-on): New test.
32660         * tests/test-usleep.c: New file.
32661
32662         chown: work around OpenBSD bug
32663         * lib/chown.c (rpl_chown): Work around the bug.
32664         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32665         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32666         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32667         * modules/chown (Depends-on): Add stdbool.
32668         * modules/lchown (Depends-on): Likewise.
32669         * doc/posix-functions/chown.texi (chown): Document the bug.
32670         * doc/posix-functions/lchown.texi (lchown): Likewise.
32671         * tests/test-lchown.h (test_chown): Relax test.
32672
32673         mkstemp: avoid conflict with C++ keyword template
32674         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32675         * lib/mkostemp.c (mkostemp): Likewise.
32676         * lib/mkostemps.c (mkostemps): Likewise.
32677         * lib/mkstemp.c (mkstemp): Likewise.
32678         * lib/mkstemps.c (mkstemps): Likewise.
32679
32680         xalloc-die-tests: optimize
32681         * tests/test-xalloc-die.sh: Reduce number of processes.
32682
32683 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32684
32685         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32686         patch from ludo@gnu.org (Ludovic Courtès).
32687
32688 2009-11-17  Jim Meyering  <meyering@redhat.com>
32689
32690         version-etc: use proper license string
32691         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32692         * modules/version-etc-fsf: Likewise.
32693
32694 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32695
32696         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32697         printed to stdout.  Deal with EOL differences.
32698
32699 2009-11-17  Eric Blake  <ebb9@byu.net>
32700
32701         unsetenv: work around Solaris bug
32702         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32703         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32704         Reported by Jim Meyering.
32705
32706         vasnprintf: avoid compiler warnings
32707         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32708         variables.
32709         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32710
32711 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32712
32713         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32714         settings since xalloc-die is no longer the self test,
32715         xalloc-die.sh is.
32716
32717 2009-11-17  Jim Meyering  <meyering@redhat.com>
32718
32719         test-xalloc-die.sh: make the code agree with the commit log
32720         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32721         at the end, just in case you happen to have a test-xalloc-die
32722         program in some other PATH directory.
32723
32724         test-xalloc-die.sh: fix a portability bug
32725         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32726         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32727         Otherwise, argv[0] (as often seen in diagnostics) would be too
32728         system-dependent, sometimes with, and sometimes without the leading "./".
32729
32730         version-etc-fsf: relax license to LGPLv3+
32731         * modules/version-etc-fsf (License): Relax license.
32732
32733 2009-11-16  Eric Blake  <ebb9@byu.net>
32734
32735         xalloc-die-tests: avoid printing null pointer
32736         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32737         shell script.
32738         * tests/test-xalloc-die.c (program_name): Declare.
32739         * tests/test-xalloc-die.sh (tmpfiles): New file.
32740
32741         setenv, unsetenv: work around various bugs
32742         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32743         (setenv) [HAVE_SETENV]: Work around bugs.
32744         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32746         for bugs.
32747         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32748         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32750         * modules/stdlib (Makefile.am): Update substitutions.
32751         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32752         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32753         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32754         * modules/setenv-tests: New test.
32755         * modules/unsetenv-tests: Likewise.
32756         * tests/test-setenv.c: New file.
32757         * tests/test-unsetenv.c: Likewise.
32758
32759 2009-11-16  Jim Meyering  <meyering@redhat.com>
32760
32761         version-etc: relax license to LGPLv3+
32762         * modules/version-etc (License): Relax license.
32763
32764         better AC_REQUIRE expanded-before-required-warning avoidance
32765         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32766         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32767         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32768         which is no longer needed.
32769
32770 2009-11-16  Eric Blake  <ebb9@byu.net>
32771
32772         test-freading: clean up temporary file
32773         * tests/test-freading.c (main): Remove file on success, and use
32774         ASSERT more liberally.
32775         Reported by Jim Meyering.
32776
32777 2009-11-16  Jim Meyering  <meyering@redhat.com>
32778
32779         avoid new AC_REQUIRE expanded-before-required warnings
32780         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32781         merely using it.
32782         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32783         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32784
32785 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32786
32787         * tests/test-xalloc-die.c: New file.
32788         * modules/xalloc-die-tests: New file.
32789         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32790         XFAIL_TESTS so it can be appended by modules.
32791
32792 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32793
32794         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32795         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32796
32797 2009-11-14  Eric Blake  <ebb9@byu.net>
32798
32799         fnmatch: avoid compiler warning
32800         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32801         to silence compiler warning about mismatch signedness in ?:.
32802         Reported by Robert Millan.
32803
32804         intprops: add double-inclusion guard
32805         * lib/intprops.h: Allow idempotent includes.
32806         Suggested by Bruce Korb.
32807
32808         openat: detect Solaris fchownat bug
32809         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32810         penalizing glibc chownat when only lchownat is broken.
32811         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32812         trailing slash bugs.
32813         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32814         * modules/openat-tests (Files): Include more files.
32815         (Depends-on): Add mgetgroups, sleep, stat-time.
32816         (configure.ac): Add additional checks.
32817         (Makefile.am): Build new test.
32818         * tests/test-fchownat.c: New file.
32819
32820         lchown: detect Solaris and FreeBSD bug
32821         * lib/lchown.c (rpl_lchown): Work around bug.
32822         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32824         * modules/unistd (Makefile.am): Populate it.
32825         * lib/unistd.in.h (lchown): Update declaration.
32826         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32827         * modules/lchown-tests: New file.
32828         * tests/test-lchown.h (test_lchown): Likewise.
32829         * tests/test-lchown.c (main): Likewise.
32830
32831         chown: detect Solaris and FreeBSD bug
32832         * lib/chown.c (rpl_chown): Work around bug.
32833         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32834         (gl_PREREQ_CHOWN): Delete.
32835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32836         * modules/unistd (Makefile.am): Populate it.
32837         * lib/unistd.in.h (chown): Update declaration.
32838         * lib/lchown.c (chown): Update client.
32839         * modules/lchown (Depends-on): Add lstat.
32840         * doc/posix-functions/chown.texi (chown): Document the bug.
32841         * doc/posix-functions/getgroups.texi (getgroups): Document
32842         getgroups pitfall.
32843         * modules/chown-tests: New file.
32844         * tests/test-chown.h (test_chown): Likewise.
32845         * tests/test-chown.c (main): Likewise.
32846
32847 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32848
32849         gnulib-tool: correctly detect absence of m4 directories
32850         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32851
32852 2009-11-14  Jim Meyering  <meyering@redhat.com>
32853
32854         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32855         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32856
32857 2009-11-14  John W. Eaton  <jwe@gnu.org>
32858
32859         strftime.h: wrap funtion declaration in extern "C" block
32860         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32861
32862 2009-11-13  Eric Blake  <ebb9@byu.net>
32863
32864         getgroups: avoid compiler warning
32865         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32866
32867         getgroups: work around FreeBSD bug
32868         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32869         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32870         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32871         * tests/test-getgroups.c (main): Fix buffer overrun.
32872
32873         getgroups: avoid compilation failure
32874         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32875         * modules/getgroups (Depends-on): Add stdint.
32876
32877 2009-11-13  Jim Meyering  <meyering@redhat.com>
32878
32879         test-getgroups: avoid compilation failure
32880         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32881
32882 2009-11-13  Eric Blake  <ebb9@byu.net>
32883
32884         mgetgroups: new module, taken from coreutils
32885         * modules/mgetgroups: New file.
32886         * lib/mgetgroups.h: Likewise.
32887         * lib/mgetgroups.c (mgetgroups): Likewise.
32888         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32889         * MODULES.html.sh (Users and groups): Mention it.
32890
32891         getgroups: don't expose GETGROUPS_T to user
32892         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32893         an element at a time if GETGROUPS_T is wrong size.
32894         * lib/getugroups.h (getugroups): Change signature.
32895         * lib/unistd.in.h (getgroups): Likewise.
32896         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32897         signature needs fixing.
32898         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32899         AC_TYPE_GETGROUPS.
32900         * modules/group-member (Depends-on): Add getgroups.
32901         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32902         (group_member): Rely on getgroups replacement.
32903         * lib/getugroups.c (getugroups): Use gid_t.
32904         * tests/test-getgroups.c (main): Likewise.
32905         * NEWS: Mention the signature change.
32906         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32907         problem with signature.
32908         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32909         GETGROUPS_T is still useful for setgroups.
32910
32911         getgroups, getugroups: provide stubs for mingw
32912         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32913         * lib/getugroups.c (getugroups): Likewise.
32914         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32915         function.  Modernize replacement scheme.
32916         (gl_PREREQ_GETGROUPS): Delete.
32917         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32918         * modules/getgroups (configure.ac): Declare witness.
32919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32920         * modules/unistd (Depends-on): Substitute witness.
32921         * lib/unistd.in.h (getgroups): Declare replacement.
32922
32923         getgroups: avoid calling exit
32924         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32925         drop xalloc.
32926         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32927         dependencies.
32928         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32929         exiting, in the rare case of malloc failure.
32930
32931         getgroups: fix logic error
32932         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32933         has more than 20 groups.
32934         * modules/getgroups-tests: New test.
32935         * tests/test-getgroups.c: New file.
32936
32937 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32938
32939         * tests/test-base64.c: Improve.
32940
32941 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32942
32943         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32944         Blake <ebb9@byu.net>.
32945
32946 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32947
32948         * tests/test-xvasprintf.c: Add %s%s related checks.
32949
32950 2009-11-12  Eric Blake  <ebb9@byu.net>
32951
32952         version-etc: match standards.texi style
32953         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32954         and use <> only for URLs.
32955
32956 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32957
32958         fts: do not fail on a submount during traversal
32959         * lib/fts.c (fts_build): Read the stat info again after opening
32960         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32961         Original report at http://bugzilla.redhat.com/501848.
32962
32963 2009-11-12  Jim Meyering  <meyering@redhat.com>
32964
32965         bootstrap: sync from coreutils
32966         * build-aux/bootstrap (bootstrap_epilogue): New function.
32967         Use git_modules_config in one more place.  This make bootstrap's
32968         --gnulib-srcdir option more useful for testing.
32969
32970         bootstrap: generalize autoheader check
32971         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32972         AC_CONFIG_HEADERS.
32973
32974 2009-11-11  Eric Blake  <ebb9@byu.net>
32975
32976         mkfifoat: use new modules for Solaris and BSD bugs
32977         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32978         * lib/mkfifoat.c (mknodat): Split...
32979         * lib/mknodat.c (mknodat): ...into new file.
32980         * modules/mkfifoat (Files): Ship new file.
32981         (Depends-on): Add mkfifo, mknod.
32982         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32983         (Depends-on): Add symlink.
32984         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32985         redundant with test_mkfifo.h.
32986         (do_mkfifoat, do_mknodat): New helpers.
32987
32988         mknod: new module
32989         * modules/mknod: New file.
32990         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32991         * lib/mknod.c (mknod): Likewise.
32992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32993         defaults.
32994         * modules/sys_stat (Makefile.am): Substitute them.
32995         * lib/sys_stat.in.h (mknod): Declare replacement.
32996         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32997         Document it.
32998         * doc/posix-functions/mknod.texi (mknod): Likewise.
32999         * modules/mknod-tests: New test.
33000         * tests/test-mknod.c: Likewise.
33001
33002         mkfifo: new module
33003         * modules/mkfifo: New file.
33004         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33005         * lib/mkfifo.c (mkfifo): Likewise.
33006         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33007         defaults.
33008         * modules/sys_stat (Makefile.am): Substitute them.
33009         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33010         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33011         Document it.
33012         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33013         * modules/mkfifo-tests: New test.
33014         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33015         from test-mkfifoat.c.
33016         * tests/test-mkfifo.c: New file.
33017
33018         readlink: detect FreeBSD bug
33019         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33020         slash on symlink.
33021         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33022         * tests/test-readlink.h (test_readlink): Enhance test.
33023
33024         symlink: detect FreeBSD bug
33025         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33026         slash on symlink.
33027         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33028         * tests/test-symlink.h (test_symlink): Enhance test.
33029
33030 2009-11-10  Eric Blake  <ebb9@byu.net>
33031
33032         link: detect FreeBSD bug
33033         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33034         symlink.
33035         * doc/posix-functions/link.texi (link): Document the bug.
33036         * tests/test-link.h (test_link): Enhance test.
33037         * tests/test-linkat.c (main): Update caller.
33038
33039         unlink, remove: detect FreeBSD bug
33040         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33041         slash on symlink.
33042         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33043         * doc/posix-functions/remove.texi (remove): Likewise.
33044         * tests/test-unlink.h (test_unlink): Enhance test.
33045         * tests/test-remove.c (main): Likewise.
33046
33047 2009-11-09  Eric Blake  <ebb9@byu.net>
33048
33049         rename: detect FreeBSD bug
33050         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33051         slash on symlink.
33052         * modules/renameat-tests (Depends-on): Add filenamecat.
33053         * tests/test-rename.h (test_rename): Allow one more errno.
33054         * tests/test-renameat.c (main): Likewise.
33055         * doc/posix-functions/rename.texi (rename): Document the bug.
33056
33057         open: detect FreeBSD bug
33058         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33059         symlink.
33060         * doc/posix-functions/open.texi (open): Document the bug.
33061         * doc/posix-functions/utimes.texi (utimes): Likewise.
33062         * tests/test-open.h (test_open): Add parameters, and test symlink
33063         handling.
33064         * tests/test-open.c (main): Adjust caller.
33065         * tests/test-fcntl-safer.c (main): Likewise.
33066         * modules/open-tests (Depends-on): Add stdbool, symlink.
33067         * modules/fcntl-safer-tests (Depends-on): Likewise.
33068         * tests/test-openat.c (main): Add test-open tests.
33069
33070         stat: detect FreeBSD bug
33071         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33072         symlink.
33073         * doc/posix-functions/stat.texi (stat): Document the bug.
33074         * tests/test-stat.h (test_stat_func): Add argument.
33075         * tests/test-stat.c (main): Adjust caller.
33076         * tests/test-fstatat.c (main): Likewise.
33077         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33078         Reported by Jim Meyering.
33079
33080 2009-11-09  James Youngman  <jay@gnu.org>
33081
33082         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33083         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33084
33085 2009-11-08  Jim Meyering  <meyering@redhat.com>
33086
33087         utimens: remove invalid futimesat call
33088         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33089         It used the file descriptor of the target file as the DIR_FD
33090         parameter and NULL as the file name.  That caused failure with
33091         errno == EFAULT on FreeBSD-8.0-rc2
33092
33093 2009-11-07  Eric Blake  <ebb9@byu.net>
33094
33095         fflush, freadseek: use fseeko, not fseek
33096         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33097         (clear_ungetc_buffer): Avoid potential problems on large files.
33098         * lib/freadseek.c (freadseek): Likewise.
33099         * modules/freadseek (Depends-on): Add fseeko.
33100         * modules/fseek (configure.ac): Set a witness.
33101         * tests/test-fflush.c (main): Use fseeko.
33102         * tests/test-fpurge.c (fseek): Disable link warning.
33103         * tests/test-freadable.c (fseek): Likewise.
33104         * tests/test-freading.c (fseek): Likewise.
33105         * tests/test-fseeko.c (fseek): Likewise.
33106         * tests/test-ftell.c (fseek): Likewise.
33107         * tests/test-ftello.c (fseek): Likewise.
33108         * tests/test-fwritable.c (fseek): Likewise.
33109         * tests/test-fwriting.c (fseek): Likewise.
33110
33111 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33112
33113         * modules/memchr (Depends-on): Drop getpagesize dependency.
33114
33115 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33116
33117         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33118         Reported by Ludovic Courtès.
33119         * build-aux/pmccabe2html: Improve example usage.
33120         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33121
33122 2009-11-06  Jim Meyering  <meyering@redhat.com>
33123
33124         do-release-commit-and-tag: New module.
33125         Automate the release-commit and tag process.
33126         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33127         * modules/do-release-commit-and-tag: New file.
33128         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33129
33130 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33131
33132         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33133         because test-select.c uses inet_pton.
33134
33135 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33136
33137         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33138         GETADDRINFO_LIB.  Bump serial number.
33139         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33140         Suggested by Eric Blake <ebb9@byu.net>.
33141
33142 2009-11-05  Eric Blake  <ebb9@byu.net>
33143
33144         strtod: detect darwin bug
33145         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33146         Reported by Leo Davis.
33147
33148         freopen-safer: new module
33149         * modules/freopen-safer: New module.
33150         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33151         * lib/freopen-safer.c (freopen_safer): New file.
33152         * lib/stdio-safer.h (freopen_safer): New declaration.
33153         * lib/stdio--.h (freopen): New override.
33154         * MODULES.html.sh (File stream based Input/Output): Mention it.
33155         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33156         freopen-safer module.
33157         * doc/posix-functions/stderr.texi (stderr): Likewise.
33158         * doc/posix-functions/stdin.texi (stdin): Likewise.
33159         * doc/posix-functions/stdout.texi (stdout): Likewise.
33160         * modules/freopen-safer-tests: New test.
33161         * tests/test-reopen-safer.c: New file.
33162
33163 2009-11-05  Jim Meyering  <meyering@redhat.com>
33164
33165         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33166         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33167
33168 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33169
33170         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33171
33172 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33173
33174         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33175
33176 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33177
33178         Fix link error.
33179         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33180         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33181
33182 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33183
33184         * tests/test-func.c: Also test value of __func__.
33185
33186 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33187
33188         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33189         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33190
33191 2009-11-05  Bruno Haible  <bruno@clisp.org>
33192
33193         Fix link error.
33194         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33195         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33196         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33197
33198 2009-11-05  Bruno Haible  <bruno@clisp.org>
33199
33200         Tests for module 'inet_pton'.
33201         * modules/inet_pton-tests: New file.
33202         * tests/test-inet_pton.c: New file.
33203
33204 2009-11-05  Bruno Haible  <bruno@clisp.org>
33205
33206         Tests for module 'inet_ntop'.
33207         * modules/inet_ntop-tests: New file.
33208         * tests/test-inet_ntop.c: New file.
33209
33210 2009-11-04  Eric Blake  <ebb9@byu.net>
33211
33212         stdlib-safer: wrap all mkstemp variants
33213         * modules/mkostemp (configure.ac): Set witness.
33214         * modules/mkostemps (configure.ac): Likewise.
33215         * modules/mkstemps (configure.ac): Likewise.
33216         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33217         (mkstemps_safer): Wrap more functions.
33218         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33219         wrapping.
33220         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33221         (mkstemps_safer): Implement the wrappers.
33222
33223         mkstemps, mkostemps: new modules
33224         * modules/mkostemps: New module.
33225         * modules/mkstemps: Likewise.
33226         * lib/mkostemps.c (mkostemps): New file.
33227         * lib/mkstemps.c (mkstemps): Likewise.
33228         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33229         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33231         * modules/stdlib (Makefile.am): Substitute them.
33232         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33233         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33234         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33235         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33236         * MODULES.html.sh (File system functions): Mention them.
33237
33238         tempname: resync from glibc
33239         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33240         same values for __GT_FILE as glibc.  Abort even when assertions
33241         are disabled.
33242         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33243         match its value otherwise.  Allow idempotent inclusion.
33244         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33245         * lib/mkostemp.c (mkostemp): Likewise.
33246         * lib/mkstemp.c (mkstemp): Likewise.
33247         * lib/tmpfile.c (tmpfile): Likewise.
33248         * NEWS: Document this.
33249
33250         utimens: fix use of futimens on older Linux
33251         * lib/utimens.c (fdutimens): Use updated, rather than original,
33252         timespec to avoid bug in older Linux kernel.
33253         Reported by Simon Josefsson.
33254
33255 2009-11-04  Bruno Haible  <bruno@clisp.org>
33256
33257         Make num_processors more flexible and consistent.
33258         * lib/nproc.h (enum nproc_query): New type.
33259         (num_processors): Add a 'query' argument.
33260         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33261         (num_processors): Add a 'query' argument. Test the value of the
33262         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33263         mingw, count the number of CPUs available for the current process.
33264         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33265         Check for sched_getaffinity and sched_getaffinity_np.
33266         * modules/nproc (Depends-on): Add c-ctype, extensions.
33267         * NEWS: Mention the change.
33268
33269 2009-11-03  Bruno Haible  <bruno@clisp.org>
33270
33271         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33272
33273 2009-11-03  Jim Meyering  <meyering@redhat.com>
33274
33275         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33276         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33277         if it is defined.
33278
33279 2009-11-02  Eric Blake  <ebb9@byu.net>
33280
33281         mktime, timegm: share common declaration
33282         * lib/mktime-internal.h: New file.
33283         * lib/mktime.c: Use it rather than open-coding a declaration.
33284         * lib/timegm.c: Likewise.
33285         * modules/mktime (Files): Ship it.
33286         * modules/timegm (Files): Likewise.
33287         Suggested by Bruno Haible.
33288
33289         test-update-copyright: update test to match script changes
33290         * tests/test-update-copyright.sh: Avoid hard-coding perl
33291         location.  Don't update *.bak created by earlier runs.
33292
33293 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33294             Simon Josefsson  <simon@josefsson.org>
33295             Bruno Haible  <bruno@clisp.org>
33296
33297         Fix link error on Solaris 8.
33298         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33299         also in libnsl. Define also INET_PTON_LIB.
33300         * modules/inet_pton (Link): New section.
33301
33302 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33303             Bruno Haible  <bruno@clisp.org>
33304
33305         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33306         * modules/inet_ntop (Link): New section.
33307         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33308
33309 2009-11-02  Eric Blake  <ebb9@byu.net>
33310
33311         maint: avoid compiler warnings in m4 macros
33312         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33313         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33314
33315 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33316
33317         * m4/pmccabe2html.m4: Remove file.
33318         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33319         function.  Change maintainer.
33320         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33321         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33322         Courtès).
33323
33324 2009-10-31  Eric Blake  <ebb9@byu.net>
33325
33326         fseeko: fix m4 regression
33327         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33328         regression from 2009-10-27.
33329         Reported by Ralf Wildenhues.
33330
33331 2009-10-31  Jim Meyering  <meyering@redhat.com>
33332
33333         inttostr: aesthetics and improved (compile-time) safety
33334         Define inttype_is_signed rather than inttype_is_unsigned,
33335         since the sole use is via "#if inttype_is_signed".
33336         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33337         inttype_is_unsigned.
33338         * lib/offtostr.c (inttype_is_signed): Likewise.
33339         * lib/uinttostr.c (inttype_is_signed): Likewise.
33340         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33341         * lib/inttostr.c (inttostr): Use verify to cross-check the
33342         inttype_is_signed value and the signedness of the actual type.
33343         * modules/inttostr (Depends-on): Add verify.
33344
33345 2009-10-30  Eric Blake  <ebb9@byu.net>
33346
33347         build: avoid compiler warnings
33348         * lib/fchmodat.c (lchmod): Mark unused variables.
33349         * lib/getopt.c (_getopt_initialize): Likewise.
33350         * lib/mktime.c (__mktime_internal): Provide prototype.
33351         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33352         older gcc that do not understand #pragma GCC diagnostic.
33353         * lib/uinttostr.c (inttype_is_unsigned): Define.
33354         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33355
33356 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33357
33358         stat: fix compilation on AIX
33359         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33360         only see struct stat64.
33361
33362 2009-10-30  Eric Blake  <ebb9@byu.net>
33363
33364         exclude: make more robust
33365         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33366         rather than masking a coding bug.
33367         Suggested by Bruno Haible.
33368
33369 2009-10-30  Jim Meyering  <meyering@redhat.com>
33370
33371         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33372         Rather than putting #!/usr/bin/perl on the first line,
33373         start with a variant of what's recommended by "man perlrun" that
33374         invokes the first "perl" program from your shell's search path.
33375         * build-aux/gitlog-to-changelog: Replace #!... as above.
33376         Add a "Local Variables" perl mode setting.
33377         Prompted by a patch from Ludovic Courtès.
33378         Improved by Eric Blake.
33379         * build-aux/useless-if-before-free: Likewise.
33380         * build-aux/announce-gen: Likewise.
33381         * build-aux/update-copyright: Likewise.
33382
33383 2009-10-29  Eric Blake  <ebb9@byu.net>
33384
33385         filenamecat-lgpl: adjust clients
33386         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33387         filenamecat.
33388         * modules/renameat (Depends-on): Likewise.
33389
33390         filenamecat: split into filenamecat-lgpl
33391         * modules/filenamecat-lgpl: New module.
33392         * modules/filenamecat (Files): Move library-safe files into
33393         filenamecat-lgpl.
33394         (Depends-on): Add filenamecat-lgpl.
33395         (configure.ac): Declare witness.
33396         * lib/filenamecat.h (file_name_concat): Only declare when using
33397         GPL module.
33398         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33399         Move...
33400         * lib/filenamecat-lgpl.c: ...into new file.
33401         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33402         (gl_FILE_NAME_CONCAT): Use it.
33403         * MODULES.html.sh (File system functions): Mention new module.
33404
33405         argp: avoid memory leak
33406         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33407         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33408         base_name, since the latter malloc()s and can call exit().
33409         Leak introduced 2006-07-03.
33410
33411         dirname-lgpl: adjust clients that don't need full dirname
33412         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33413         * modules/filenamecat (Depends-on): Likewise.
33414         * modules/linkat (Depends-on): Likewise.
33415         * modules/mkancesdirs (Depends-on): Likewise.
33416         * modules/mkdir (Depends-on): Likewise.
33417         * modules/openat (Depends-on): Likewise.
33418         * modules/savewd (Depends-on): Likewise.
33419         * modules/rename (Depends-on): Likewise.
33420         (License): Relax license.
33421         * modules/mkdir-tests (Depends-on): Drop progname.
33422         (Makefile.am): Delete unneeded LDADD.
33423         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33424
33425         dirname: split into dirname-lgpl
33426         * modules/dirname-lgpl: New module.
33427         * modules/dirname (Files): Move library-safe files into
33428         dirname-lgpl.
33429         (Depends-on): Add dirname-lgpl.
33430         (configure.ac): Declare witness.
33431         * modules/double-slash-root (License): Relax license.
33432         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33433         module.
33434         * lib/dirname.c (dir_len, mdir_name): Move...
33435         * lib/dirname-lgpl.c: ...into new file.
33436         * lib/basename.c (last_component, base_len): Move...
33437         * lib/basename-lgpl.c: ...into new file.
33438         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33439         (gl_DIRNAME): Use it.
33440         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33441         Mention new module.
33442         * modules/dirname-tests (Depends-on): Add progname.
33443         * tests/test-dirname.c (program_name): Delete.
33444
33445         mkdir: make safe for libraries
33446         * modules/mkdir (Depends-on): Drop xalloc.
33447         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33448         exit.
33449
33450         tests: avoid some compiler warnings
33451         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33452         literals.
33453         * tests/test-memchr.c (main): Avoid type mismatch.
33454         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33455         * tests/test-base64.c (main): Likewise.
33456         * tests/test-getdelim.c (main): Likewise.
33457         * tests/test-gethostname.c (main): Likewise.
33458         * tests/test-getline.c (main): Likewise.
33459         * tests/test-netinet_in.c (main): Likewise.
33460         * tests/test-select.c (open_server_socket, main): Likewise.
33461         * tests/test-select-stdin.c (main): Likewise.
33462         * tests/test-sockets.c (main): Likewise.
33463         * tests/test-strsignal.c (main): Likewise.
33464         * tests/test-sys_select.c (main): Likewise.
33465         * tests/test-sys_socket.c (main): Likewise.
33466         * tests/test-u64.c (main): Likewise.
33467         * tests/test-xfprintf-posix.c (main): Likewise.
33468         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33469
33470         sockets: avoid compiler warning
33471         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33472
33473         maint: detect usage(1) and other suspicious exits
33474         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33475
33476 2009-10-29  Jim Meyering  <meyering@redhat.com>
33477
33478         timespec: long-to-int truncation could make timespec_cmp malfunction
33479         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33480         a multiple of 2^32 nanoseconds as no difference.
33481
33482 2009-10-28  Jim Meyering  <meyering@redhat.com>
33483
33484         fprintftime: wrap macro code argument in "do {...} while(0)"
33485         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33486         cpy macro must be a statement that can be followed by a semicolon.
33487         Now that the else clause contains a comment and is hence longer
33488         than one line, I require curly braces.  That in turn requires
33489         that we wrap this code block in the standard do...while(0).
33490
33491         fprintftime: remove stray semicolon from previous change
33492         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33493
33494         fprintftime: avoid a warning about ignored fwrite return value
33495         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33496         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33497         that is unsafe.
33498         * modules/fprintftime (Depends-on): Add ignore-value.
33499
33500         exclude: avoid an unwarranted warning
33501         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33502
33503 2009-10-27  Eric Blake  <ebb9@byu.net>
33504
33505         fseek: avoid compilation failure when fflush is replaced
33506         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33507         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33508         module is in use.
33509         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33510         module is not in use; since REPLACE_FSEEK worked otherwise.
33511         (GNULIB_FTELLO): Likewise for ftell.
33512         Reported by Ian Beckwith and others.
33513
33514 2009-10-27  Bruno Haible  <bruno@clisp.org>
33515
33516         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33517         Reported by Jim Meyering.
33518
33519 2009-10-27  Jim Meyering  <jim@meyering.net>
33520             Bruno Haible  <bruno@clisp.org>
33521
33522         Avoid warning despite dropping the return value of fwrite.
33523         * lib/unicodeio.c: Include ignore-value.h.
33524         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33525         * modules/unicodeio (Depends-on): Add ignore-value.
33526
33527 2009-10-26  Eric Blake  <ebb9@byu.net>
33528
33529         areadlinkat: fix fallback path
33530         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33531         pointer and zero.
33532
33533 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33534
33535         Use a better IO block size for modern systems
33536         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33537         * lib/md2.c: Likewise.
33538         * lib/md4.c: Likewise.
33539         * lib/md5.c: Likewise.
33540         * lib/sha1.c: Likewise.
33541         * lib/sha256.c: Likewise.
33542         * lib/sha512.c: Likewise.
33543
33544 2009-10-22  Eric Blake  <ebb9@byu.net>
33545
33546         tests: avoid several compiler warnings
33547         * tests/test-getcwd.c (main): Avoid buffer underflow.
33548         * tests/test-getdate.c (main): String literals are not safe with
33549         putenv, so use setenv.  Declare unused argument.
33550         * modules/getdate-tests (Depends-on): Add setenv.
33551         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33552         problems with string literals in char *.
33553         * tests/test-hash.c (main): Avoid shadowing declaration.
33554         (insert_new): Treat string literals as char const *.
33555         * tests/test-getopt.h (test_getopt): Likewise.
33556         (getopt_loop): Alter types to minimize casting elsewhere.
33557         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33558         (test_getopt_long_posix): Likewise.
33559         (do_getopt_long): Add wrapper to minimize casting.
33560         * tests/test-atexit.c (clear_temp_file): Use void.
33561         * tests/test-areadlink-with-size.c (main): Declare unused
33562         arguments.
33563         * tests/test-areadlink.c (main): Likewise.
33564         * tests/test-areadlinkat-with-size.c (main): Likewise.
33565         * tests/test-areadlinkat.c (main): Likewise.
33566         * tests/test-canonicalize-lgpl.c (main): Likewise.
33567         * tests/test-canonicalize.c (main): Likewise.
33568         * tests/test-dirent-safer.c (main): Likewise.
33569         * tests/test-dirname.c (main): Likewise.
33570         * tests/test-dup2.c (main): Likewise.
33571         * tests/test-fchdir.c (main): Likewise.
33572         * tests/test-fcntl-h.c (main): Likewise.
33573         * tests/test-fcntl-safer.c (main): Likewise.
33574         * tests/test-fdopendir.c (main): Likewise.
33575         * tests/test-fdutimensat.c (main): Likewise.
33576         * tests/test-fflush.c (main): Likewise.
33577         * tests/test-filenamecat.c (main): Likewise.
33578         * tests/test-filevercmp.c (main): Likewise.
33579         * tests/test-fopen-safer.c (main): Likewise.
33580         * tests/test-fopen.c (main): Likewise.
33581         * tests/test-fpending.c (main): Likewise.
33582         * tests/test-fpurge.c (main): Likewise.
33583         * tests/test-freading.c (main): Likewise.
33584         * tests/test-fstatat.c (main): Likewise.
33585         * tests/test-fsync.c (main): Likewise.
33586         * tests/test-futimens.c (main): Likewise.
33587         * tests/test-getndelim2.c (main): Likewise.
33588         * tests/test-gettimeofday.c (main): Likewise.
33589         * tests/test-getopt.c (main): Likewise.
33590         * tests/test-i-ring.c (main): Likewise.
33591         * tests/test-inttypes.c (main): Likewise.
33592         * tests/test-link.c (main): Likewise.
33593         * tests/test-lstat.c (main): Likewise.
33594         * tests/test-math.c (main): Likewise.
33595         * tests/test-md5.c (main): Likewise.
33596         * tests/test-memchr2.c (main): Likewise.
33597         * tests/test-memrchr.c (main): Likewise.
33598         * tests/test-mkdir.c (main): Likewise.
33599         * tests/test-mkdirat.c (main): Likewise.
33600         * tests/test-mkfifoat.c (main): Likewise.
33601         * tests/test-open.c (main): Likewise.
33602         * tests/test-openat-safer.c (main): Likewise.
33603         * tests/test-openat.c (main): Likewise.
33604         * tests/test-quotearg.c (main): Likewise.
33605         * tests/test-rawmemchr.c (main): Likewise.
33606         * tests/test-readlink.c (main): Likewise.
33607         * tests/test-remove.c (main): Likewise.
33608         * tests/test-rename.c (main): Likewise.
33609         * tests/test-renameat.c (main): Likewise.
33610         * tests/test-rmdir.c (main): Likewise.
33611         * tests/test-sha1.c (main): Likewise.
33612         * tests/test-signal.c (main): Likewise.
33613         * tests/test-sigaction.c (main): Likewise.
33614         * tests/test-stat.c (main): Likewise.
33615         * tests/test-stat-time.c (main): Likewise.
33616         * tests/test-stddef.c (main): Likewise.
33617         * tests/test-stdint.c (main): Likewise.
33618         * tests/test-stdio.c (main): Likewise.
33619         * tests/test-stdlib.c (main): Likewise.
33620         * tests/test-strchrnul.c (main): Likewise.
33621         * tests/test-strerror.c (main): Likewise.
33622         * tests/test-string.c (main): Likewise.
33623         * tests/test-strtod.c (main): Likewise.
33624         * tests/test-strverscmp.c (main): Likewise.
33625         * tests/test-symlink.c (main): Likewise.
33626         * tests/test-symlinkat.c (main): Likewise.
33627         * tests/test-sys_stat.c (main): Likewise.
33628         * tests/test-sys_time.c (main): Likewise.
33629         * tests/test-time.c (main): Likewise.
33630         * tests/test-unistd.c (main): Likewise.
33631         * tests/test-unlink.c (main): Likewise.
33632         * tests/test-unlinkat.c (main): Likewise.
33633         * tests/test-utimens.c (main): Likewise.
33634         * tests/test-utimensat.c (main): Likewise.
33635         * tests/test-version-etc.c (main): Likewise.
33636         * tests/test-wchar.c (main): Likewise.
33637         * tests/test-wctype.c (main): Likewise.
33638         * tests/test-xprintf-posix.c (main): Likewise.
33639         * tests/test-posixtm.c (main): Likewise.
33640         (STREQ): Delete unused macro.
33641         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33642         shadowed variables.
33643         * tests/test-memchr.c (main): Likewise.
33644
33645 2009-10-21  Eric Blake  <ebb9@byu.net>
33646
33647         areadlinkat: avoid failure on older glibc
33648         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33649         rather than mis-comparing 0 against FUNC_RESULT of char*.
33650
33651 2009-10-21  Bruno Haible  <bruno@clisp.org>
33652
33653         * modules/stpncpy (License): Relicense under LGPLv2+.
33654         Reported by David Lutterkort <lutter@redhat.com>.
33655
33656 2009-10-20  Eric Blake  <ebb9@byu.net>
33657
33658         utimensat: work around Solaris 9 bug
33659         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33660         has trailing slash bugs.
33661         * tests/test-lutimens.h (test_lutimens): Enhance test.
33662         * tests/test-utimens.h (test_utimens): Likewise.
33663         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33664         * doc/posix-functions/utimes.texi (utimes): Likewise.
33665         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33666         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33667         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33668         * doc/posix-functions/futimens.texi (futimens): Likewise.
33669
33670         fdutimensat: new module
33671         * modules/fdutimensat: New file.
33672         * lib/fdutimensat.c (fdutimensat): Likewise.
33673         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33674         * MODULES.html.sh (File system functions): Mention module.
33675         * modules/fdutimensat-tests: New test.
33676         * tests/test-fdutimensat.c: Likewise.
33677
33678         doc: regenerate INSTALL
33679         * doc/INSTALL: Reflect recent autoconf update.
33680         * doc/INSTALL.ISO: Likewise.
33681         * doc/INSTALL.UTF-8: Likewise.
33682
33683 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33684
33685         acl: warn if ACL support is not detected
33686         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33687
33688 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33689
33690         * lib/nproc.h: Add extern "C" block for C++.
33691
33692 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33693             Bruno Haible  <bruno@clisp.org>
33694
33695         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33696         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33697         * doc/posix-functions/isalpha.texi: Likewise.
33698         * doc/posix-functions/isblank.texi: Likewise.
33699         * doc/posix-functions/iscntrl.texi: Likewise.
33700         * doc/posix-functions/isdigit.texi: Likewise.
33701         * doc/posix-functions/isgraph.texi: Likewise.
33702         * doc/posix-functions/islower.texi: Likewise.
33703         * doc/posix-functions/isprint.texi: Likewise.
33704         * doc/posix-functions/ispunct.texi: Likewise.
33705         * doc/posix-functions/isspace.texi: Likewise.
33706         * doc/posix-functions/isupper.texi: Likewise.
33707         * doc/posix-functions/isxdigit.texi: Likewise.
33708
33709 2009-10-18  Bruno Haible  <bruno@clisp.org>
33710
33711         Tests for module 'isblank'.
33712         * modules/isblank-tests: New file.
33713         * tests/test-isblank.c: New file.
33714
33715         New module 'isblank'.
33716         * lib/isblank.c: New file.
33717         * m4/isblank.m4: New file.
33718         * modules/isblank: New file.
33719         * doc/posix-functions/isblank.texi: Mention the new module.
33720
33721 2009-10-18  Bruno Haible  <bruno@clisp.org>
33722
33723         New module 'ctype'.
33724         * lib/ctype.in.h: New file.
33725         * m4/ctype.m4: New file.
33726         * modules/ctype: New file.
33727         * doc/posix-headers/ctype.texi: Mention the new module.
33728
33729 2009-10-18  Jim Meyering  <meyering@redhat.com>
33730
33731         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33732         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33733         right after its initialization, rather than farther down.
33734         Keeping these in close proximity makes it easier to ensure
33735         that each such variable is initialized.  E.g.,
33736
33737             LIB_CLOCK_GETTIME=
33738             AC_SUBST([LIB_CLOCK_GETTIME])
33739
33740         This change also increments these serial numbers.
33741         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33742         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33744
33745 2009-10-18  Bruno Haible  <bruno@clisp.org>
33746
33747         Don't let environment variables perturb build.
33748         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33749         (gl_PREREQ_GETHRXTIME): ... not here.
33750
33751 2009-10-18  Bruno Haible  <bruno@clisp.org>
33752
33753         Avoid symlink attack in localcharset module.
33754         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33755         (O_NOFOLLOW): Define fallback.
33756         (get_charset_aliases): Don't open the file if it is a symbolic link.
33757         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33758         gl_FCNTL_H.
33759         (gl_FCNTL_H): Require it.
33760         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33761         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33762         Reported by Fergal Glynn <fglynn@veracode.com>.
33763
33764 2009-10-18  Bruno Haible  <bruno@clisp.org>
33765
33766         Implement nproc for mingw.
33767         * lib/nproc.c: Include <windows.h>
33768         (num_processors): On native Windows platforms, try GetSystemInfo.
33769
33770 2009-10-18  Bruno Haible  <bruno@clisp.org>
33771
33772         Implement nproc for IRIX.
33773         * lib/nproc.c: Include <sys/sysmp.h>.
33774         (num_processors): On IRIX systems, try sysmp.
33775         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33776
33777 2009-10-18  Bruno Haible  <bruno@clisp.org>
33778
33779         Implement nproc for HP-UX.
33780         * lib/nproc.c: Include <sys/pstat.h>
33781         (num_processors): On HP-UX systems, try pstat_getdynamic.
33782         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33783         pstat_getdynamic.
33784
33785 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33786             Bruno Haible  <bruno@clisp.org>
33787
33788         Implement nproc for NetBSD, OpenBSD.
33789         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33790         (ARRAY_SIZE): New macro.
33791         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33792         * m4/nproc.m4: New file.
33793         * modules/nproc (Files): Add m4/nproc.m4.
33794         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33795         (Makefile.am): Instead, augment lib_SOURCES.
33796
33797 2009-10-18  Bruno Haible  <bruno@clisp.org>
33798
33799         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33800         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33801         sys/param.h.
33802
33803 2009-10-16  Eric Blake  <ebb9@byu.net>
33804
33805         utimensat: new module
33806         * modules/utimensat: New file.
33807         * lib/utimensat.c (utimensat): Likewise.
33808         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33809         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33810         so we can work around Linux bugs.
33811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33812         * modules/sys_stat (Makefile.am): Substitute them.
33813         * lib/sys_stat.in.h (utimensat): Declare it.
33814         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33815         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33816         * modules/utimensat-tests: New test.
33817         * tests/test-utimensat.c: Likewise.
33818
33819         utimens: let lutimens work on non-symlinks
33820         * lib/utimens.c (lutimens): Fall back to utimens rather than
33821         failing with ENOSYS, when file is not a symlink.
33822         (utimens): Reduce redirection.
33823         * tests/test-lutimens.h (test_lutimens): Update test to cover
33824         non-symlinks.
33825         * tests/test-utimens.h (test_utimens): Update test to cover
33826         symlinks.
33827         * tests/test-utimens.c (main): Update caller.
33828
33829         utimens: cache whether utimensat syscall works
33830         * lib/utimens.c (utimensat_works_really): New cache variable.
33831         (fdutimens, lutimens): Use it to avoid failing syscall.
33832
33833         test-stat-time, test-utimens: improve portability
33834         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33835         ext4 on alpha, and for cygwin.
33836         * tests/test-utimens-common.h: New file.
33837         (nap): Factor delays into single function.
33838         * tests/test-lutimens.h (test_lutimens): Use new header.
33839         * tests/test-futimens.h (test_futimens): Likewise.
33840         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33841         timestamps to occur from same machine, as was done previously for
33842         test_utimens.
33843         * modules/utimens-tests (Files): Ship new file.
33844         * modules/futimens-tests (Files): Likewise.
33845         Reported in part by Jim Meyering.
33846
33847         sys_stat: sort replacement declarations
33848         * lib/sys_stat.in.h: Sort declarations.
33849         * lib/futimens.c (futimens): Fix typo.
33850
33851 2009-10-15  Jim Meyering  <meyering@redhat.com>
33852
33853         don't let environment settings perturb build
33854         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33855         could cause a configure-time and/or build-time malfunction.
33856         Typically, a configure-time function-in-library test is performed
33857         via code like this:
33858
33859           LIB_VAR=
33860           AC_SUBST([LIB_VAR])
33861           prefix_saved_LIBS=$LIBS
33862             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33863                        [test "$ac_cv_search_FUNC" = "none required" ||
33864                         LIB_VAR=$ac_cv_search_FUNC])
33865           LIBS=$prefix_saved_LIBS
33866
33867         However, in each of the files affected by this change, the LIB_VAR=
33868         initialization was omitted.  Thus, when set in the environment, its
33869         value would propagate into generated Makefiles when FUNC is not found
33870         in LIB_NAME.
33871         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33872         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33874
33875 2009-10-14  Eric Blake  <ebb9@byu.net>
33876
33877         fchdir: avoid infinite recursion in mingw
33878         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33879         recursing.
33880
33881         test-stat-time: port to mingw
33882         * tests/test-stat-time.c (force_unlink): Return a value.
33883         (test_ctime) [W32]: Fix compilation error.
33884         (nap): Don't call usleep with too large an argument.  Use
33885         force_unlink.
33886         * doc/pastposix-functions/usleep.texi (usleep): Document the
33887         portability issue.
33888
33889 2009-10-13  Jim Meyering  <meyering@redhat.com>
33890
33891         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33892         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33893         * modules/pipe-filter-ii: Likewise.
33894         * modules/sys_socket-tests: Likewise.
33895         * modules/tsearch-tests: Likewise.
33896         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33897         (check): Depend on it.
33898
33899 2009-10-12  Eric Blake  <ebb9@byu.net>
33900
33901         utimens-tests: port to NFS file systems
33902         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33903         comparisons to avoid spurious failures from timestamp drift
33904         between NFS machines.
33905
33906 2009-10-12  Eric Blake  <ebb9@byu.net>
33907
33908         stat-time-tests: minor cleanups
33909         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33910         * tests/test-stat-time.c (nap): Separate assignment from call.
33911         Suggested by Paolo Bonzini and Bruno Haible.
33912
33913         sys_stat: guarantee struct timespec
33914         * lib/sys_stat.in.h (includes): Always include <time.h>
33915         * modules/sys_stat (Depends-on): Add time.
33916         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33917         mode_t permission values.
33918         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33919         get at subsecond timestamps.
33920
33921 2009-10-10  Eric Blake  <ebb9@byu.net>
33922
33923         futimens: new module
33924         * modules/futimens: New file.
33925         * lib/futimens.c (futimens): Likewise.
33926         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33927         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33928         we can work around Linux bugs.
33929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33930         * modules/sys_stat (Makefile.am): Substitute them.
33931         * lib/sys_stat.in.h (futimens): Declare it.
33932         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33933         * doc/posix-functions/futimens.texi (futimens): Likewise.
33934         * modules/futimens-tests: New test.
33935         * tests/test-futimens.c: Likewise.
33936
33937         utimens: introduce fdutimens
33938         * lib/utimens.h (fdutimens): New prototype.
33939         * lib/utimens.c (gl_futimens): Move guts...
33940         (fdutimens): ...to new interface.
33941         * tests/test-utimens.c (do_fdutimens): Use it.
33942
33943         utimens: add UTIME_NOW and UTIME_OMIT support
33944         * lib/utimens.c (validate_timespec, update_timespec): New helper
33945         functions.
33946         (gl_futimens, lutimens): Use them.
33947         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33948         stdbool, sys_stat.
33949         (Link): Mention resulting library dependency.
33950         * modules/utimecmp (Link): Likewise.
33951         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33952         (Makefile.am): Pick up library dependency.
33953         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33954         definition.
33955         * tests/test-sys_stat.c: Test the definitions.
33956         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33957         * NEWS: Document library dependency.
33958
33959         utimecmp: support symlink timestamps
33960         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33961         hashing when possible.  Use pathconf when available.
33962         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33963         * modules/utimecmp (Depends-on): Add lstat.
33964
33965         utimens: add lutimens interface
33966         * lib/utimens.c (lutimens): New function.
33967         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33968         * lib/utimens.h (lutimens): Declare new interface.
33969         * tests/test-utimens.c (main): Enhance test.
33970         * tests/test-lutimens.h (test_lutimens): New file.
33971         * modules/utimens-tests (Files): Distribute it.
33972         (Depends-on): Add symlink.
33973         (configure.ac): Check for usleep.
33974
33975         utimens: validate futimens usage
33976         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33977         fewer syscalls on failure later on.  Avoid compiler warning on
33978         mingw.
33979         * modules/utimens (Depends-on): Add dup2.
33980
33981         utimens: add test
33982         * modules/utimens-tests: New test.
33983         * tests/test-utimens.h: New file.
33984         * tests/test-futimens.h: Likewise.
33985         * tests/test-utimens.c: Likewise.
33986
33987         doc: mention timestamp portability issues
33988         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33989         instead.
33990         * doc/posix-functions/utime.texi (utime): Likewise.
33991         * doc/posix-functions/utimes.texi (utimes): Likewise.
33992         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33993         instead.
33994         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33995         module.
33996         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33997         Mention weakness with symlink timestamps.
33998         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33999         to utimensat/futimens instead.
34000         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34001
34002         test-dup2: enhance test
34003         * tests/test-dup2.c (main): Also check AT_FDCWD.
34004
34005         test-stat-time: avoid more spurious failures
34006         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34007         xfs; and avoid race if the two timestamps cross quantization edge.
34008
34009         relocatable: prefer 'file system' over 'filesystem'
34010         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34011         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34012         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34013         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34014         * lib/relocatable.c (compute_curr_prefix): Likewise.
34015
34016 2009-10-10  Jim Meyering  <meyering@redhat.com>
34017
34018         stat-time-tests: check for the usleep function
34019         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34020
34021 2009-10-10  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/xnanosleep: Put the Link section after the Include section.
34024
34025 2009-10-09  Eric Blake  <ebb9@byu.net>
34026
34027         dup2: work around FreeBSD 6.1 bug
34028         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34029         * doc/posix-functions/dup2.texi (dup2): Document it.
34030         Reported by Nelson H. F. Beebe and Jim Meyering.
34031
34032         test-stat-time: port to buggy NFS clients
34033         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34034         (test_ctime): Also skip test if mtime and ctime are skewed.
34035
34036         maint: prefer 'file system' over 'filesystem'
34037         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34038         * doc/posix-functions/lstat.texi (lstat): Likewise.
34039         * lib/file-has-acl.c (file_has_acl): Likewise.
34040         * lib/fwriteerror.c [TEST]: Likewise.
34041         * tests/test-areadlink.h (test_areadlink): Likewise.
34042         * tests/test-areadlinkat-with-size.c (main): Likewise.
34043         * tests/test-areadlinkat.c (main): Likewise.
34044         * tests/test-canonicalize-lgpl.c (main): Likewise.
34045         * tests/test-canonicalize.c (main): Likewise.
34046         * tests/test-fstatat.c (main): Likewise.
34047         * tests/test-linkat.c (main): Likewise.
34048         * tests/test-lstat.h (test_lstat_func): Likewise.
34049         * tests/test-mkdir.h (test_mkdir): Likewise.
34050         * tests/test-readlink.h (test_readlink): Likewise.
34051         * tests/test-remove.c (main): Likewise.
34052         * tests/test-rename.h (test_rename): Likewise.
34053         * tests/test-renameat.c (main): Likewise.
34054         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34055         * tests/test-symlink.h (test_symlink): Likewise.
34056         * tests/test-symlinkat.c (main): Likewise.
34057         * tests/test-unlink.h (test_unlink_func): Likewise.
34058         * tests/test-unlinkat.c (main): Likewise.
34059
34060         maint: make realtime library usage explicit
34061         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34062         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34063         * modules/settime (Link): Likewise.
34064         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34065
34066         test-stat-time: speed up execution
34067         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34068         warning on mingw.
34069         (nap): New helper function.
34070         (prepare_test): Use it to reduce sleep time.
34071         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34072         execution.
34073         * modules/stat-time-tests (configure.ac): Check for usleep.
34074
34075 2009-10-09  Jim Meyering  <meyering@redhat.com>
34076
34077         selinux-h: always use getfilecon wrappers
34078         * lib/getfilecon.c: New file.
34079         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34080         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34081         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34082         (fgetfilecon): Provide a stub.
34083         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34084         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34085         file unconditionally.
34086         When <selinux/selinux.h> is found, arrange to use wrappers.
34087         * modules/selinux-h (Files): Add getfilecon.c.
34088         (Makefile.am): Substitute include-next-related bits
34089         into the now-always-generated selinux/selinux.h file.
34090         * doc/glibc-functions/lgetfilecon.texi: New file.
34091         * doc/glibc-functions/fgetfilecon.texi: New file.
34092         * doc/glibc-functions/getfilecon.texi: New file.
34093         * doc/glibc-functions/getfilecon-desc.texi: New file.
34094         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34095         which to pull in the new files.
34096         * MODULES.html.sh (Misc): Add selinux-h.
34097
34098 2009-10-08  Jim Meyering  <meyering@redhat.com>
34099
34100         unistd: fix comment typo
34101         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34102
34103 2009-10-08  Eric Blake  <ebb9@byu.net>
34104
34105         areadlink: use SIZE_MAX consistently
34106         * modules/areadlink (Depends-on): Add stdint.
34107         * modules/areadlink-with-size (Depends-on): Likewise.
34108         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34109         gives NULL; drop sys/types, since unistd gives size_t; and add
34110         stdint for SIZE_MAX.
34111         (SIZE_MAX): Rely on headers.
34112         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34113         and add stdint.
34114         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34115         (SIZE_MAX): Likewise.
34116         (INITIAL_BUF_SIZE): Turn into enum.
34117         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34118
34119 2009-10-08  Jim Meyering  <meyering@redhat.com>
34120
34121         areadlinkat: avoid compilation failure
34122         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34123         Fix typo in comment.
34124
34125 2009-10-07  Eric Blake  <ebb9@byu.net>
34126
34127         areadlinkat-with-size: new module
34128         * modules/areadlinkat-with-size: New module.
34129         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34130         * lib/areadlink.h (areadlinkat): Declare it.
34131         * MODULES.html.sh (File system functions): Mention it.
34132         * modules/areadlinkat-with-size-tests: New test.
34133         * tests/test-areadlinkat-with-size.c: New file.
34134
34135         xreadlinkat: new module
34136         * modules/xreadlinkat: New module.
34137         * lib/xreadlinkat.c (xreadlinkat): New file.
34138         * lib/xreadlink.h (xreadlinkat): Declare it.
34139         * MODULES.html.sh (File system functions): Mention it.
34140
34141         areadlinkat: new module
34142         * lib/at-func.c (FUNC_FAIL): New define.
34143         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34144         * modules/areadlinkat: New module.
34145         * lib/linkat.c (areadlinkat): Move...
34146         * lib/areadlinkat.c (areadlinkat): ...to new file.
34147         * lib/areadlink.h (areadlinkat): Declare it.
34148         * modules/linkat (Depends-on): Add areadlinkat.
34149         * MODULES.html.sh (File system functions): Mention it.
34150         * modules/areadlinkat-tests: New test.
34151         * tests/test-areadlinkat.c: New file.
34152
34153         areadlink, areadlink-with-size: add tests
34154         * modules/areadlink-tests: New test.
34155         * modules/areadlink-with-size-tests: Likewise.
34156         * tests/test-areadlink.h: New file.
34157         * tests/test-areadlink.c: Likewise.
34158         * tests/test-areadlink-with-size.c: Likewise.
34159
34160         maint: minor cleanups
34161         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34162         _UNUSED_PARAMETER_ instead.
34163         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34164         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34165         * modules/linkat-tests (Files): Distribute test-link.h.
34166
34167         openat, utimens: whitespace cleanup
34168         * lib/openat.c: Prefer space throughout, rather than mix of 8
34169         spaces vs. tabs.
34170         * lib/at-func.c: Likewise.
34171         * lib/utimens.c: Likewise.
34172
34173         openat: avoid using wrong fd
34174         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34175         working directory chooses same fd.
34176         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34177
34178         mkdir, mkdirat: fix cygwin 1.5.x bug
34179         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34180         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34181         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34182         bug.
34183         (gl_PREREQ_MKDIR): Delete unused macro.
34184         * modules/mkdir (Files): Track file rename.
34185         (configure.ac): Update macro name.
34186         * modules/openat (Depends-on): Add mkdir.
34187         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34188
34189         mkdir, mkdirat: add tests
34190         * modules/mkdir-tests: New test.
34191         * tests/test-mkdir.h: New file.
34192         * tests/test-mkdir.c: Likewise.
34193         * tests/test-mkdirat.c: Likewise.
34194         * modules/openat-tests (Files): Add new files.
34195         (Makefile.am): Run new test.
34196
34197 2009-10-06  Eric Blake  <ebb9@byu.net>
34198
34199         doc: tweak *at function documentation
34200         * doc/posix-functions/faccessat.texi (faccessat): Mention
34201         known issue with replacement.
34202         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34203         * doc/posix-functions/linkat.texi (linkat): Likewise.
34204         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34205         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34206         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34207         * doc/posix-functions/renameat.texi (renameat): Likewise.
34208         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34209
34210         openat: fix GNU/Hurd bug in unlinkat
34211         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34212         broken.
34213         * doc/posix-functions/unlink.texi (unlink): Document this.
34214         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34215
34216         fdopendir: fix GNU/Hurd bug
34217         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34218         allowing non-directory fds.
34219         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34220         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34221         * modules/dirent (Makefile.am): Substitute it.
34222         * lib/dirent.in.h (fdopendir): Declare replacement.
34223         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34224         * tests/test-fdopendir.c (main): Test something other than
34225         /dev/null, since on Hurd that behaves like a directory.
34226
34227         test-symlink: port to GNU/Hurd
34228         * tests/test-symlink.h (test_symlink): Relax expected errno.
34229
34230         doc: tweak more cygwin information
34231         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34232         now compatible with glibc.
34233         * doc/posix-functions/getopt.texi (getopt): Likewise.
34234
34235         getopt-gnu: add another test
34236         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34237         guarantee behavior relied on by m4.
34238         * tests/test-getopt.c (main): Use it.
34239         * modules/getopt-posix-tests (Depends-on): Add setenv.
34240         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34241
34242         getopt: fix compilation on darwin
34243         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34244         include.
34245         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34246         Reported by Ludovic Courtès.
34247
34248 2009-10-06  Bruno Haible  <bruno@clisp.org>
34249
34250         * modules/size_max (Description): Discourage its use.
34251         Reported by Simon Josefsson.
34252
34253 2009-10-06  Jim Meyering  <meyering@redhat.com>
34254
34255         linkat: avoid compilation failure
34256         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34257
34258 2009-10-05  Eric Blake  <ebb9@byu.net>
34259
34260         linkat: support Linux 2.6.17
34261         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34262         linkat on Linux, but allow cache variable override.
34263         * lib/linkat.c (rpl_linkat): Define override.
34264         * modules/linkat (Depends-on): Add symlinkat.
34265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34266         * modules/unistd (Makefile.am): Substitute it.
34267         * lib/unistd.in.h (linkat): Declare replacement.
34268         Reported by Pádraig Brady.
34269
34270         quotearg: port test to systems with C.UTF-8 locale
34271         * tests/test-quotearg.c (struct result_strings): Add another
34272         member, differentiating between C.ASCII and C.UTF-8 handling.
34273         (compare_strings): Add parameter.
34274         (main): Adjust all callers.
34275
34276         getopt: avoid clash with FreeBSD _getopt_internal
34277         * lib/getopt.in.h (_getopt_internal): Override the name.
34278         * lib/getopt_int.h (includes): Pick up any overrides.
34279         Reported by Reuben Thomas.
34280
34281         hash: allow C89 compilation
34282         * lib/hash.c (check_tuning): Move declaration before statement.
34283         Reported by Reuben Thomas.
34284
34285 2009-10-05  Karl Berry  <karl@gnu.org>
34286
34287         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34288
34289 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34290             Bruno Haible  <bruno@clisp.org>
34291
34292         * lib/uname.c (uname): Use a table-driven algorithm to compute
34293         Windows NT versions.
34294
34295 2009-10-04  Bruno Haible  <bruno@clisp.org>
34296
34297         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34298         program_invocation_short_name.
34299         * modules/progname (configure.ac): Test for presence of
34300         program_invocation_short_name.
34301         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34302
34303 2009-10-04  Bruno Haible  <bruno@clisp.org>
34304
34305         * lib/progname.c (set_program_name): Fix comment.
34306         Reported by Jim Meyering.
34307
34308 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34309             Bruno Haible  <bruno@clisp.org>
34310
34311         * lib/uname.c: Include <string.h>.
34312         (uname): Do only one call to GetVersionEx in the common case.
34313
34314 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34315             Bruno Haible  <bruno@clisp.org>
34316
34317         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34318         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34319         (uname): Add support for Windows CE and various non-x86 CPU types.
34320
34321 2009-10-03  Bruno Haible  <bruno@clisp.org>
34322
34323         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34324         invocation to tests/configure.ac.
34325         Reported by Ian Beckwith <ianb@erislabs.net>.
34326
34327 2009-10-02  Eric Blake  <ebb9@byu.net>
34328
34329         fchdir: avoid compiler warning
34330         * lib/fchdir.c (canonicalize_file_name)
34331         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34332
34333         test-open: support mingw errno values
34334         * tests/test-open.h (test_open): Relax test.
34335         * tests/test-fopen.h (test_fopen): Likewise.
34336         * tests/test-openat-safer.c (main): Likewise.
34337
34338         open: fix opening directory on mingw
34339         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34340
34341         test-open: on GNU/Hurd, /dev/null is a directory
34342         * tests/test-fopen.h (main): Rename...
34343         (test_fopen): ...to this.  Use a guaranteed non-directory when
34344         confirming open behavior on trailing slash.
34345         * tests/test-openat-safer.c (main): Likewise.
34346         * tests/test-open.h (main): Likewise....
34347         (test_open): ...to this.
34348         * tests/test-fopen.c (main): Adjust caller.
34349         * tests/test-fopen-safer.c (main): Likewise.
34350         * tests/test-open.c (main): Likewise.
34351         * tests/test-fcntl-safer.c (main): Likewise.
34352         Reported by Samuel Thibault.
34353
34354         rename, fchdir: don't ignore chdir failure
34355         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34356         * lib/rename.c (rpl_rename) [W32]: Likewise.
34357         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34358         an empty destination directory if source cannot be renamed,
34359         although there is still possibility for failure.
34360         * doc/posix-functions/rename.texi (rename): Document the race.
34361         Reported by Jim Meyering.
34362
34363         maint: cleanup whitespace in recent commits
34364         * lib/rename.c (rpl_rename): Remove tabs.
34365         * tests/test-link.h (test_link): Likewise.
34366         * lib/fchdir.c (get_name): Likewise.
34367         Reported by Jim Meyering.
34368
34369 2009-10-02  Ben Pfaff  <blp@gnu.org>
34370
34371         relocatable-prog-wrapper: Add missing dependency on
34372         double-slash-root.
34373         * modules/relocatable-prog-wrapper: Add dependency.
34374         Reported by Ian Beckwith <ianb@erislabs.net>.
34375
34376 2009-10-02  Eric Blake  <ebb9@byu.net>
34377
34378         renameat: fix Solaris bugs
34379         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34380         needed fixing.
34381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34382         * modules/stdio (Makefile.am): Substitute it.
34383         * lib/stdio.in.h (renameat): Declare replacement.
34384         * lib/renameat.c (rpl_renameat): Implement fix.
34385
34386         renameat: new module
34387         * modules/renameat: New file.
34388         * lib/renameat.c (renameat): Likewise.
34389         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34391         * modules/stdio (Makefile.am): Substitute them.
34392         * lib/stdio.in.h (renameat): Declare it.
34393         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34394         * doc/posix-functions/renameat.texi (renameat): Likewise.
34395         * modules/renameat-tests: New test.
34396         * tests/test-renameat.c: Likewise.
34397
34398         rename: fix mingw bugs
34399         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34400         directory overwrite bugs.
34401
34402         rename: fix another cygwin 1.5 bug
34403         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34404         checks.
34405         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34406         unnecessary cygwin workarounds.  Also work around bug with moving
34407         full directory onto an empty one.
34408         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34409
34410         rename-dest-slash: merge into rename module
34411         * modules/rename-dest-slash (Status): Mark obsolete.
34412         (Depends-on): Add rename.
34413         (Files): Let rename do it all.
34414         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34415         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34416         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34417         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34418         * lib/rename.c (rpl_rename): Update comments.
34419
34420         rename: fix cygwin 1.5.x bugs
34421         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34422         * lib/rename.c (rpl_rename): Work around them.
34423         * modules/rename (Depends-on): Add same-inode.
34424
34425         rename: fix Solaris 10 bug
34426         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34427         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34428         was the only bug.
34429
34430         rename: fix Solaris 9 bug
34431         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34432         on non-directory.  Avoid calling exit.
34433         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34434         strdup.
34435         * modules/rename-tests (Depends-on): Drop lstat.
34436         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34437         (gl_PREREQ_RENAME): Delete unused macro.
34438
34439         rename-dest-slash: fix NetBSD bug
34440         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34441         links.
34442         * modules/rename-dest-slash (Depends-on): Add same-inode.
34443
34444         rename-tests: new test, exposes several platform bugs
34445         * modules/rename-tests: New file.
34446         * tests/test-rename.h: Likewise.
34447         * tests/test-rename.c: Likewise.
34448         * doc/posix-functions/rename.texi (rename): Improve documentation,
34449         including bugs that will eventually be fixed in gnulib.
34450
34451 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34452
34453         * lib/uname.c: Include <stdlib.h>
34454         (uname): Assume version info is available.
34455
34456 2009-10-02  Jim Meyering  <meyering@redhat.com>
34457
34458         gnu-web-doc-update: correct --help output
34459         * build-aux/gnu-web-doc-update: Make --help output relevant.
34460
34461         gnu-web-doc-update: add standard options
34462         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34463
34464         gnu-web-doc-update: New module.
34465         Use this script to automatically update the on-line web documentation
34466         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34467         * modules/gnu-web-doc-update: New file, from coreutils.
34468         * build-aux/gnu-web-doc-update: New script.
34469
34470 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34471
34472         link: LoadLibrary is not needed.
34473         * lib/link.c: Use GetModuleHandle.
34474
34475 2009-10-01  Eric Blake  <ebb9@byu.net>
34476
34477         getopt: bump serial number
34478         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34479         change.
34480
34481         tests: tighten link, rmdir, and remove tests
34482         * tests/test-link.h (includes): No need to use <config.h> here.
34483         Clean up if directory hard link was created, otherwise test for
34484         trailing '.'.
34485         * tests/test-linkat.c (main): Simplify.
34486         * tests/test-remove.c (main): Enhance test for trailing '.'.
34487         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34488
34489 2009-10-01  Jim Meyering  <meyering@redhat.com>
34490
34491         maint.mk: requiring "make major" was annoying, for a "minor" release.
34492         What is intended is "stable", to contrast with alpha and beta,
34493         so require "make stable", not "make major".
34494         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34495         (get_tool_versions): Likewise.
34496         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34497
34498 2009-09-30  Ben Pfaff  <blp@gnu.org>
34499
34500         Fix broken build of replacement for Windows tmpfile().
34501         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34502         flags argument added along with the 'mkostemp' module.
34503
34504 2009-09-28  Bruno Haible  <bruno@clisp.org>
34505
34506         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34507         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34508         to 'remove_elt'.
34509         (gl_list_remove): Update.
34510         * lib/gl_list.c (gl_list_remove): Update.
34511         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34512         to 'remove_elt'.
34513         (gl_oset_remove): Update.
34514         * lib/gl_list.c (gl_oset_remove): Update.
34515         Reported by Eric Blake.
34516
34517 2009-09-28  Eric Blake  <ebb9@byu.net>
34518
34519         doc: mention yet more cygwin 1.7 status
34520         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34521         cygwin.
34522         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34523         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34524
34525         argp: fix test failure
34526         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34527         that are not upper-case.  Pass correct range to tolower.
34528
34529 2009-09-27  Jim Meyering  <meyering@redhat.com>
34530
34531         test-yesno: work around sparc-dash here-document infelicity
34532         Without this change, the literal \177 byte in a here document
34533         would make dash 0.5.5.1-3 access uninitialized memory.
34534         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34535         Instead, use a marker, "@", and filter through tr to create the desired
34536         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34537
34538 2009-09-27  Bruno Haible  <bruno@clisp.org>
34539
34540         Disable untested support for new flavours of ACLs on AIX.
34541         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34542         progress.
34543         * lib/set-mode-acl.c (qset_acl): Likewise.
34544
34545 2008-12-07  Bruno Haible  <bruno@clisp.org>
34546
34547         Add support for new flavours of ACLs on AIX. (Untested.)
34548         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34549         (file_has_acl): Add support for newer AIX.
34550         * lib/set-mode-acl.c (qset_acl): Likewise.
34551         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34552         Rainer Tammer <tammer@tammer.net>.
34553
34554 2009-09-26  Eric Blake  <ebb9@byu.net>
34555
34556         argp: fix compilation of getopt
34557         * lib/getopt.in.h (includes): Use different guard than glibc.
34558         Reported by Sergey Poznyakoff.
34559
34560         doc: mention more cygwin 1.7 status
34561         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34562         bug.
34563         * doc/posix-functions/execl.texi (execl): Likewise.
34564         * doc/posix-functions/execle.texi (execle): Likewise.
34565         * doc/posix-functions/execlp.texi (execlp): Likewise.
34566         * doc/posix-functions/execv.texi (execv): Likewise.
34567         * doc/posix-functions/execve.texi (execve): Likewise.
34568         * doc/posix-functions/execvp.texi (execvp): Likewise.
34569         * doc/glibc-functions/canonicalize_file_name.texi
34570         (canonicalize_file_name): Cygwin 1.7 now provides this.
34571         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34572         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34573         on AT_SYMLINK_NOFOLLOW.
34574
34575 2009-09-24  Eric Blake  <ebb9@byu.net>
34576
34577         test-linkat: make test more robust
34578         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34579
34580         getopt: fix inclusion guards for cygwin
34581         * modules/getopt-posix (Depends-on): Add include-next.
34582         (Makefile.am): Substitute more items in replacement header.
34583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34584         <getopt.h>.
34585         * lib/getopt.in.h (includes): Use split inclusion guard, and
34586         prefer <getopt.h> over include <unistd.h> when one is present.
34587         (option): Also override name of 'struct option'.
34588
34589         same-inode: revert prior change; it is not yet ready
34590         * NEWS: Undo mention of this change.
34591         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34592         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34593         * lib/cycle-check.c (cycle_check): Likewise.
34594         * lib/same.c (same_name): Likewise.
34595         * lib/at-func2.c (at_func2): Likewise.
34596
34597 2009-09-23  Eric Blake  <ebb9@byu.net>
34598
34599         linkat: new module
34600         * modules/linkat: New file.
34601         * lib/at-func2.c (at_func2): Likewise.
34602         * lib/linkat.c (linkat): Likewise.
34603         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34604         * lib/openat-priv.h (at_func2): Add declaration.
34605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34606         * modules/unistd (Makefile.am): Substitute them.
34607         * lib/unistd.in.h (linkat): Declare it.
34608         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34609         * doc/posix-functions/linkat.texi (linkat): Likewise.
34610         * doc/posix-functions/link.texi (link): Tweak wording.
34611         * tests/test-link.c (main): Move guts...
34612         * tests/test-link.h (test_link): ...into new file.
34613         * modules/linkat-tests: New test.
34614         * tests/test-linkat.c: Likewise.
34615         * modules/link-tests (Files): Ship new file.
34616         (Depends-on): Add stdbool.
34617
34618         dirname: add library-safe mdir_name
34619         * lib/dirname.h (mdir_name): New prototype.
34620         * lib/dirname.c (dir_name): Move guts...
34621         (mdir_name): ...to new function that avoids xalloc_die.
34622
34623         fchdir: another mingw fix
34624         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34625         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34626         on mingw (where it has not yet been ported), and make it optional
34627         elsewhere.
34628         (_gl_register_fd): Use it.
34629
34630         same-inode: make SAME_INODE tri-state, to port to mingw
34631         * NEWS: Mention this change.
34632         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34633         st_ino always being 0.
34634         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34635         * lib/cycle-check.c (cycle_check): Likewise.
34636         * lib/same.c (same_name): Likewise.
34637
34638         lstat: avoid mingw compilation error
34639         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34640         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34641         lstat ourselves.
34642         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34643         was adequate.
34644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34645         the checks for lstat.
34646         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34647
34648         link: fix test failure on Solaris 9
34649         * lib/link.c (rpl_link): Don't assume link will catch bogus
34650         trailing slash on source.
34651
34652         test-symlinkat: enhance test
34653         * tests/test-readlink.c (main): Move guts...
34654         * tests/test-readlink.h (test_readlink): ...into new file.
34655         * tests/test-symlink.c (main): Move guts...
34656         * tests/test-symlink.h (test_symlink): ...into new file.
34657         * tests/test-symlinkat.c (main): Use new files for further
34658         coverage.
34659         (do_symlink, do_readlink): New helper functions.
34660         * modules/symlink-tests (Files): Ship new file.
34661         (Depends-on): Add stdbool.
34662         * modules/readlink-tests (Files): Ship new file.
34663         (Depends-on): Add stdbool.
34664         * modules/symlinkat-tests (Files): Use new files.
34665
34666 2009-09-23  Eric Blake  <ebb9@byu.net>
34667
34668         readlink: document portability issue with symlink length
34669         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34670         systems have bogus st_size on symlinks, and mention the
34671         areadlink-with-size module.
34672         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34673         * doc/posix-functions/readlink.texi (readlink): Mention the
34674         areadlink module, and ERANGE failure.
34675         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34676         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34677
34678         readlink: fix Solaris 9 bug with trailing slash
34679         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34680         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34681         * doc/posix-functions/readlink.texi (readlink): Document this.
34682         * modules/readlink-tests: New test.
34683         * tests/test-readlink.c: Likewise.
34684
34685         readlink: fix cygwin 1.5.x bug with return type
34686         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34687         * lib/unistd.in.h (readlink): Use ssize_t.
34688         * lib/readlink.c (readlink): Likewise.
34689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34690         * modules/unistd (Makefile.am): Substitute it.
34691         * lib/unistd.in.h (readlink): Declare replacement.
34692         * doc/posix-functions/readlink.texi (readlink): Document this.
34693
34694         symlink: use throughout gnulib
34695         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34696         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34697         symlink is not used.
34698         * modules/symlinkat (Depends-on): Add symlink.
34699         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34700         * modules/canonicalize-tests (Depends-on): Likewise.
34701         * modules/lstat-tests (Depends-on): Likewise.
34702         * modules/openat-tests (Depends-on): Likewise.
34703         * modules/remove-tests (Depends-on): Likewise.
34704         * modules/rmdir-tests (Depends-on): Likewise.
34705         * modules/unlink-tests (Depends-on): Likewise.
34706         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34707         * tests/test-canonicalize.c (symlink): Likewise.
34708         * tests/test-fstatat.c (symlink): Likewise.
34709         * tests/test-lstat.c (symlink): Likewise.
34710         * tests/test-remove.c (symlink): Likewise.
34711         * tests/test-rmdir.c (symlink): Likewise.
34712         * tests/test-unlink.c (symlink): Likewise.
34713         * tests/test-unlinkat.c (symlink): Likewise.
34714
34715         symlink: new module, for Solaris 9 bug
34716         * modules/symlink: New file.
34717         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34718         * lib/symlink.c: Likewise.
34719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34720         * modules/unistd (Makefile.am): Substitute them.
34721         * lib/unistd.in.h (symlink): Declare replacement.
34722         * MODULES.html.sh (File system functions): Mention it.
34723         * doc/posix-functions/symlink.texi (symlink): Likewise.
34724         * modules/symlink-tests: New test.
34725         * tests/test-symlink.c: Likewise.
34726
34727 2009-09-23  Bruno Haible  <bruno@clisp.org>
34728
34729         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34730         when needed.
34731         Test case: gnulib-tool --import --with-tests atexit inttypes.
34732         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34733
34734 2009-09-23  Bruno Haible  <bruno@clisp.org>
34735
34736         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34737         subcommand, not in a subshell.
34738
34739 2009-09-22  Eric Blake  <ebb9@byu.net>
34740
34741         unistd: sort replacement declarations
34742         * lib/unistd.in.h: Sort declarations.
34743
34744         open, openat: minor optimization
34745         * lib/open.c (open): If open succeeded, len is non-zero.
34746         * lib/openat.c (rpl_openat): Likewise.
34747
34748         link-follow: ensure correct result
34749         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34750         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34751         distinguish between possible failures.
34752
34753 2009-09-21  Eric Blake  <ebb9@byu.net>
34754
34755         fts: avoid compiler warning
34756         * lib/fts.c (dirent_inode_sort_may_be_useful)
34757         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34758
34759 2009-09-19  Bruno Haible  <bruno@clisp.org>
34760
34761         * lib/progreloc.c (canonicalize_file_name): New declaration.
34762
34763 2009-09-19  Eric Blake  <ebb9@byu.net>
34764
34765         link: fix quoting
34766         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34767
34768         openat: fix openat bugs on Solaris 9
34769         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34770         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34771         * modules/openat (Depends-on): Add open.
34772         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34773         * modules/fcntl-h (Makefile.am): Substitute it.
34774         * lib/fcntl.in.h (openat): Declare replacement.
34775         * doc/posix-functions/openat.texi (openat): Document this.
34776
34777         openat: move fstatat and unlinkat into correct files
34778         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34779         compiled.
34780         * lib/openat.c (fstatat, unlinkat): Move...
34781         * lib/fstatat.c (fstatat): ...into correct files.
34782         * lib/unlinkat.c (unlinkat): Likewise.
34783
34784         openat: fix unlinkat bugs on Solaris 9
34785         * lib/unlinkat.c (unlinkat): New file.
34786         * modules/openat (Depends-on): Add unlink.
34787         (Files): Distribute it.
34788         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34789         trailing slash behavior is broken.
34790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34791         * modules/unistd (Makefile.am): Substitute it.
34792         * lib/unistd.in.h (unlinkat): Declare replacement.
34793         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34794
34795         openat: fix fstatat bugs on Solaris 9
34796         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34797         stat.
34798         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34799
34800         test-unlinkat: enhance test, to expose Solaris 9 bug
34801         * tests/test-unlink.c (main): Factor guts...
34802         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34803         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34804         * tests/test-rmdir.c (main): Adjust caller.
34805         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34806         (unlinker): New helper function.
34807         (rmdirat): Enhance check.
34808         * modules/rmdir-tests (Depends-on): Add stdbool.
34809         * modules/unlink-tests (Depends-on): Likewise.
34810         (Files): Add test-unlink.h.
34811         * modules/openat-tests (Files): Likewise.
34812         (Depends-on): Add unlinkdir.
34813
34814         test-fstatat: new test, to expose Solaris 9 bugs
34815         * tests/test-stat.c (main): Factor guts...
34816         * tests/test-stat.h (test_stat_func): ...into new file.
34817         * tests/test-lstat.c (main): Factor guts...
34818         * tests/test-lstat.h (test_lstat_func): ...into new file.
34819         * tests/test-fstatat.c: New file.
34820         * modules/stat-tests (Files): Add test-stat.h.
34821         * modules/lstat-tests (Files): Add test-lstat.h.
34822         (Depends-on): Add stdbool.
34823         * modules/openat-tests (Depends-on): Add pathmax.
34824         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34825         (Makefile.am): Run new test.
34826
34827         remove: new module, for mingw and Solaris 9 bugs
34828         * modules/remove: New file.
34829         * lib/remove.c: Likewise.
34830         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34832         * modules/stdio (Makefile.am): Use them.
34833         * lib/stdio.in.h (remove): Declare replacement.
34834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34835         * doc/posix-functions/remove.texi (remove): Likewise.
34836         * modules/remove-tests: New test.
34837         * tests/test-remove.c: Likewise.
34838
34839         unlink: new module, for Solaris 9 bug
34840         * modules/unlink: New file.
34841         * lib/unlink.c: Likewise.
34842         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34844         * modules/unistd (Makefile.am): Use them.
34845         * lib/unistd.in.h (stat): Declare replacement.
34846         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34847         * doc/posix-functions/unlink.texi (unlink): Likewise.
34848         * modules/unlink-tests: New test.
34849         * tests/test-unlink.c: Likewise.
34850
34851         lstat: fix Solaris 9 bug
34852         * lib/lstat.c (lstat): Also check for trailing slash on
34853         non-symlink, non-directories.  Use stat module to simplify logic.
34854         * doc/posix-functions/lstat.texi (lstat): Document it.
34855         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34856         (configure.ac): Check for symlink.
34857         * tests/test-lstat.c (main): Add more tests.
34858
34859         stat: add as dependency to other modules
34860         * modules/chown (Depends-on): Add stat.
34861         * modules/euidaccess (Depends-on): Likewise.
34862         * modules/fchdir (Depends-on): Likewise.
34863         * modules/isdir (Depends-on): Likewise.
34864         * modules/link (Depends-on): Likewise.
34865         * modules/lstat (Depends-on): Likewise.
34866         * modules/mkdir-p (Depends-on): Likewise.
34867         * modules/modechange (Depends-on): Likewise.
34868         * modules/open (Depends-on): Likewise.
34869         * modules/readlink (Depends-on): Likewise.
34870         * modules/same (Depends-on): Likewise.
34871
34872         stat: fix Solaris 9 bug
34873         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34874         slash.
34875         * lib/stat.c (rpl_stat): Work around it.
34876         * doc/posix-functions/stat.texi (stat): Update documentation.
34877
34878         stat: new module, for mingw bug
34879         * modules/stat: New file.
34880         * lib/stat.c: Likewise.
34881         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34883         * modules/sys_stat (Makefile.am): Use them.
34884         * lib/sys_stat.in.h (stat): Declare replacement.
34885         * lib/openat.c (fstatat): Deal with lstat and stat being function
34886         macros.
34887         * modules/openat (Depends-on): Add inline.
34888         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34889         * doc/posix-functions/stat.texi (stat): Likewise.
34890         * modules/stat-tests: New test.
34891         * tests/test-stat.c: Likewise.
34892
34893 2009-09-19  Jim Meyering  <meyering@redhat.com>
34894
34895         syntax-check: detect unnecessary inclusion of canonicalize.h
34896         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34897
34898 2009-09-19  Eric Blake  <ebb9@byu.net>
34899
34900         canonicalize-lgpl: adjust clients to use correct header
34901         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34902         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34903         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34904         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34905         * lib/progreloc.c (includes): Likewise.
34906
34907 2009-09-19  Jim Meyering  <meyering@redhat.com>
34908
34909         test-posixtm.c: correct a comment
34910         * tests/test-posixtm.c: Correct first-line comment.
34911         Spotted by Eric Blake.
34912
34913 2009-09-16  Jim Meyering  <meyering@redhat.com>
34914
34915         posixtm-tests: make T const-correct; add a test case
34916         * tests/test-posixtm.c (T): Declare const.
34917         Add a test for -(2^31+1).
34918         Remove useless can-succeed-only-in-2002 test.
34919
34920         posixtm-tests: adjust the sole failing test
34921         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34922         expected output matches what mktime now produces.  Cross-checked via
34923         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34924
34925         posixtm: move #ifdef'd tests into a new module
34926         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34927         * tests/test-posixtm.c: ... this new file.
34928         * modules/posixtm-tests: New module.
34929
34930 2009-09-19  Eric Blake  <ebb9@byu.net>
34931
34932         openat: simplify use of at-func.c
34933         * lib/at-func.c (includes): Include prerequisites here, to
34934         simplify requirements on client files.
34935         * lib/openat-priv.h: Add double-inclusion guard.
34936         * lib/faccessat.c (includes): Simplify.
34937         * lib/fchmodat.c (includes): Likewise.
34938         * lib/fchownat.c (includes): Likewise.
34939         * lib/mkdirat.c (includes): Likewise.
34940         * lib/mkfifoat.c (includes): Likewise.
34941         * lib/symlinkat.c (includes): Likewise.
34942
34943         openat: allow return of fd 0
34944         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34945         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34946         unistd-safer.
34947         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34948         <fcntl.h>; this module does not leak fds.
34949         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34950         must be allowed to return 0, leaving openat_safer to add the
34951         safety.
34952         (openat_permissive): Avoid writing to just-opened fd 2 if
34953         restoring the current directory fails.
34954         * lib/openat-die.c (openat_restore_fail): Add comment.
34955         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34956         (save_cwd): Guarantee safe fd, but without use of open_safer.
34957         * tests/test-openat.c: New test.
34958         * modules/openat-tests (Files, Makefile.am): Distribute and build
34959         new file.
34960
34961         relocatable-prog-wrapper: fix build
34962         * modules/relocatable-prog-wrapper (Files): Update name of
34963         canonicalize m4 file, broken on 2009-09-17.
34964         Reported by emad hajjar <aleppos@hotmail.com>.
34965
34966 2009-09-19  Bruno Haible  <bruno@clisp.org>
34967
34968         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34969         * lib/safe-alloc.c: Likewise.
34970         Reported by Ian Beckwith <ianb@erislabs.net>.
34971
34972 2009-09-18  Bruno Haible  <bruno@clisp.org>
34973
34974         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34975         Reported by <erobles@sensacd.com.mx>.
34976
34977 2009-09-17  Eric Blake  <ebb9@byu.net>
34978
34979         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34980         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34981         slashes when checking if last component is missing.
34982         * tests/test-canonicalize.c (main): Test this.
34983
34984         canonicalize, canonicalize-lgpl: honor // if distinct from /
34985         * modules/canonicalize (Files): Add double-slash-root.m4.
34986         * modules/canonicalize-lgpl (Files): Likewise.
34987         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34988         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34989         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34990         fallback definition.
34991         (canonicalize_filename_mode): Use it to protect //.
34992         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34993         (__realpath): Likewise.
34994         * tests/test-canonicalize.c (main): Test this.
34995         * tests/test-canonicalize-lgpl.c (main): Likewise.
34996         * modules/canonicalize-tests (Depends-on): Add same-inode.
34997         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34998
34999         canonicalize-lgpl: fix glibc bug with trailing slash
35000         * m4/canonicalize-lgpl.m4: Move contents...
35001         * m4/canonicalize.m4: ...here.
35002         (gl_CANONICALIZE_LGPL): Factor realpath check...
35003         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35004         glibc 2.3.5 bug, fixed 2005-04-27.
35005         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35006         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35007         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35008         * modules/canonicalize-lgpl (Files): Manage file rename.
35009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35010         * modules/stdlib (Makefile.am): Substitute witness.
35011         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35012         is needed.
35013         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35014         replacement is required.
35015         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35016         * doc/glibc-functions/canonicalize_file_name.texi
35017         (canonicalize_file_name): Document this.
35018         * doc/posix-functions/realpath.texi (realpath): Likewise.
35019
35020         canonicalize-lgpl: reject non-directory with trailing slash
35021         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35022         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35023         catches failures in glibc 2.3.5.
35024         * tests/test-canonicalize.c (main): Likewise.
35025
35026         canonicalize-lgpl: use native realpath if it works
35027         * lib/canonicalize-lgpl.c (realpath): Guard with
35028         FUNC_REALPATH_WORKS.
35029         * lib/stdlib.in.h (realpath): Make declaration optional based on
35030         HAVE_REALPATH.
35031         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35032         native realpath works.
35033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35034         * modules/stdlib (Makefile.am): Substitute witness.
35035
35036         canonicalize, canonicalize-lgpl: use <stdlib.h>
35037         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35038         (Include): Mention <stdlib.h>.
35039         (configure.ac): Mention functions we provide.
35040         * modules/canonicalize (configure.ac): Likewise.
35041         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35042         realpath if canonicalize_file_name is missing.
35043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35044         * modules/stdlib (Makefile.am): Substitute witnesses.
35045         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35046         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35047         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35048         * NEWS: Document this.
35049         * doc/glibc-functions/canonicalize_file_name.texi
35050         (canonicalize_file_name): Likewise.
35051         * doc/posix-functions/realpath.texi (realpath): Likewise.
35052         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35053
35054         test-canonicalize: consolidate into single C program
35055         * tests/test-canonicalize.sh: Delete; move setup into...
35056         * tests/test-canonicalize.c (main): ...the program, making it
35057         easier to run in debugger.  Add some tests.
35058         * modules/canonicalize-tests (Files): Remove unused file.
35059         (Depends-on): Add progname.
35060         (configure.ac, Makefile.am): Simplify.
35061
35062         test-canonicalize-lgpl: consolidate into single C program
35063         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35064         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35065         easier to run in debugger.  Add some tests.
35066         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35067         (configure.ac, Makefile.am): Simplify.
35068
35069         canonicalize: avoid resolvepath
35070         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35071         unnecessary checks.
35072         * lib/canonicalize.c (includes): Simplify.
35073         (canonicalize_file_name): Drop resolvepath implementation.
35074         * modules/canonicalize (Depends-on): Drop filenamecat.
35075
35076         canonicalize: don't lose errno
35077         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35078         over calls to free.
35079
35080         canonicalize: simplify errno handling
35081         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35082         assignment.
35083
35084         canonicalize, canonicalize-lgpl: update module dependencies
35085         * modules/canonicalize (Depends-on): Add extensions, lstat,
35086         pathmax, stdlib.
35087         (Files): Drop pathmax.h.
35088         (configure.ac): Adjust macro name.
35089         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35090         lstat, stdlib, sys_stat.
35091         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35092         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35093         extensions.
35094         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35095         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35096         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35097         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35098         declaration, if available.
35099         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35100         we can rely on the readlink module.
35101         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35102         (includes): Use <unistd.h> unconditionally.
35103
35104 2009-09-17  Eric Blake  <ebb9@byu.net>
35105
35106         maint: make Include sections of modules consistent
35107         * modules/alloca: Use only header name; no need to list #include.
35108         * modules/alloca-opt: Likewise.
35109         * modules/arpa_inet: Likewise.
35110         * modules/canon-host: Likewise.
35111         * modules/configmake: Likewise.
35112         * modules/dirent: Likewise.
35113         * modules/eealloc: Likewise.
35114         * modules/environ: Likewise.
35115         * modules/fchdir: Likewise.
35116         * modules/fcntl: Likewise.
35117         * modules/fcntl-h: Likewise.
35118         * modules/gethrxtime: Likewise.
35119         * modules/gettime: Likewise.
35120         * modules/ignore-value: Likewise.
35121         * modules/inet_ntop: Likewise.
35122         * modules/inet_pton: Likewise.
35123         * modules/inttypes: Likewise.
35124         * modules/isnand-nolibm: Likewise.
35125         * modules/isnanf-nolibm: Likewise.
35126         * modules/mbchar: Likewise.
35127         * modules/mbfile: Likewise.
35128         * modules/mbiter: Likewise.
35129         * modules/mbuiter: Likewise.
35130         * modules/netdb: Likewise.
35131         * modules/netinet_in: Likewise.
35132         * modules/nproc: Likewise.
35133         * modules/pagealign_alloc: Likewise.
35134         * modules/poll: Likewise.
35135         * modules/printf-frexp: Likewise.
35136         * modules/pthread: Likewise.
35137         * modules/putenv: Likewise.
35138         * modules/random_r: Likewise.
35139         * modules/relocatable-prog: Likewise.
35140         * modules/search: Likewise.
35141         * modules/select: Likewise.
35142         * modules/selinux-h: Likewise.
35143         * modules/settime: Likewise.
35144         * modules/signal: Likewise.
35145         * modules/size_max: Likewise.
35146         * modules/socklen: Likewise.
35147         * modules/ssize_t: Likewise.
35148         * modules/stdarg: Likewise.
35149         * modules/stdbool: Likewise.
35150         * modules/stddef: Likewise.
35151         * modules/stdint: Likewise.
35152         * modules/stdio: Likewise.
35153         * modules/stdlib: Likewise.
35154         * modules/string: Likewise.
35155         * modules/strings: Likewise.
35156         * modules/sys_file: Likewise.
35157         * modules/sys_ioctl: Likewise.
35158         * modules/sys_select: Likewise.
35159         * modules/sys_socket: Likewise.
35160         * modules/sys_stat: Likewise.
35161         * modules/sys_time: Likewise.
35162         * modules/sys_times: Likewise.
35163         * modules/sys_utsname: Likewise.
35164         * modules/sys_wait: Likewise.
35165         * modules/sysexits: Likewise.
35166         * modules/time: Likewise.
35167         * modules/times: Likewise.
35168         * modules/tmpfile: Likewise.
35169         * modules/trim: Likewise.
35170         * modules/unistd: Likewise.
35171         * modules/wchar: Likewise.
35172         * modules/wctype: Likewise.
35173
35174 2009-09-17  Bruno Haible  <bruno@clisp.org>
35175
35176         Make getdate.y compile on QNX and NetBSD 5 / i386.
35177         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35178         TIME_T_FITS_IN_LONG_INT.
35179         * lib/getdate.y (long_time_t): New type.
35180         (relative_time): Change type of 'seconds' field to long_time_t.
35181         (get_date): Update types of local variables. Check against overflow
35182         during conversion from long_time_t to time_t.
35183         Reported by Matt Kraai <kraai@ftbfs.org>
35184         and Hasso Tepper <hasso@netbsd.org>.
35185
35186 2009-09-17  Bruno Haible  <bruno@clisp.org>
35187
35188         * modules/COPYING: Update copyright years.
35189         * modules/README: Likeiwse.
35190         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35191         Reported by Ian Beckwith <ianb@erislabs.net>.
35192
35193 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35194
35195         * users.txt: Update references for gnuit package.
35196
35197 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35198
35199         * m4/getdelim.m4: Fix typo in copyright line.
35200
35201 2009-09-17  Bruno Haible  <bruno@clisp.org>
35202
35203         * lib/atoll.c: Use the standard header with GPL copyright.
35204         * lib/argz.in.h: Likewise.
35205         * lib/glob.c: Likewise.
35206         * lib/glob-libc.h: Likewise.
35207         * lib/random_r.c: Likewise.
35208         * lib/siglist.h: Likewise.
35209         * lib/strsignal.c: Likewise.
35210         Reported by Ian Beckwith <ianb@erislabs.net>.
35211
35212 2009-09-17  Eric Blake  <ebb9@byu.net>
35213
35214         rmdir: ensure correct dependency order
35215         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35216
35217 2009-09-17  Bruno Haible  <bruno@clisp.org>
35218
35219         Disable assertion that fails on NetBSD 5 / i386.
35220         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35221         Reported by Sam Steingold <sds@gnu.org>
35222         and Hasso Tepper <hasso@netbsd.org>.
35223
35224 2009-09-16  Eric Blake  <ebb9@byu.net>
35225
35226         unlinkdir: port to mingw
35227         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35228         on which no one can unlink a directory.
35229
35230         stdlib: sort witness names
35231         * modules/stdlib (Makefile.am): Sort replacements.
35232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35233         * lib/stdlib.in.h: Likewise.
35234
35235         parse-duration-tests: avoid link failure
35236         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35237         LIBINTL.
35238         Reported by Tom G. Christensen.
35239
35240         openat-tests: ensure unlinkat behaves like rmdir
35241         * tests/test-rmdir.c (main): Factor guts...
35242         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35243         * modules/rmdir-tests (Files): Ship new file.
35244         * modules/openat-tests: New test.
35245         * tests/test-unlinkat.c: Likewise.
35246
35247         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35248         * modules/rmdir-errno (Status, Notice): Now obsolete.
35249
35250         rmdir: work around cygwin 1.5.x and mingw bugs
35251         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35252         * lib/rmdir.c (rmdir): Work around it.
35253         * modules/rmdir (Status, Notice): No longer obsolete.
35254         (Files): Add dos.m4.
35255         (Depends-on): Add unistd.
35256         (configure.ac): Set witnesses.
35257         (License): Relax to LGPLv2+.
35258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35259         * modules/unistd (Makefile.am): Substitute witnesses.
35260         * lib/unistd.in.h (rmdir): Declare replacement.
35261         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35262         * modules/rmdir-tests: New tests.
35263         * tests/test-rmdir.c: Likewise.
35264
35265 2009-09-15  Eric Blake  <ebb9@byu.net>
35266
35267         fchdir: improve use of replacement functions
35268         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35270         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35271         REPLACE_CLOSEDIR.
35272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35273         * modules/sys_stat (Makefile.am): Substitute correct witness.
35274         * modules/dirent (Makefile.am): Likewise.
35275         * modules/unistd (Makefile.am): Likewise.
35276         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35277         * lib/unistd.in.h (dup): Likewise.
35278         * lib/sys_stat.in.h (fstat): Likewise.
35279
35280         maint: ignore gnulib-tool temp files
35281         * .gitignore: Ignore files created during gnulib-tool --test.
35282
35283 2009-09-13  Jim Meyering  <meyering@redhat.com>
35284
35285         posixtm: don't reject a time that specify "60" as the number of seconds
35286         * lib/posixtm.c (posixtime): The code to reject invalid dates
35287         would also reject a time specified with the .60 suffix.
35288         But POSIX allows that, in order to accommodate leap seconds.
35289         So don't reject it.
35290         (main): Adjust tests accordingly.
35291         * modules/posixtm (Depends-on): Add stpcpy.
35292
35293 2009-09-11  Jim Meyering  <meyering@redhat.com>
35294
35295         announce-gen: include [$release_type] in emitted Subject:
35296         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35297         e.g., [stable] in the emitted Subject: line.
35298
35299 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35300
35301         Remove obsolete macros from several modules.
35302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35303         obsolete Autoconf macros with their modern counterparts.
35304         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35305         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35307         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35308         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35309         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35311         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35312         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35313         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35314         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35315         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35316         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35317         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35318         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35319         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35320         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35321         * m4/time_r.m4 (gl_TIME_R): Likewise.
35322         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35323         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35324         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35325
35326         Fix copyright header in build-aux scripts.
35327         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35328         recommendation.
35329         * build-aux/ncftpput-ftp: Likewise.
35330         * build-aux/update-copyright: Likewise.
35331
35332 2009-09-09  Eric Blake  <ebb9@byu.net>
35333
35334         test-link: allow Linux choice of errno
35335         * tests/test-link.c (main): Relax test for alternate error.
35336
35337         strndup: fix improper m4 caching
35338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35339         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35340         (gl_PREREQ_STRNDUP): Delete.
35341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35342         * modules/string (Makefile.am): Substitute it.
35343         * lib/string.in.h (strndup): Modernize prototype.
35344
35345         getcwd: port to mingw
35346         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35347         different from the POSIX assumptions made throughout the getcwd
35348         module; fortunately, the mingw getcwd does not need replacement.
35349         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35350         * modules/getcwd-tests: New test.
35351         * tests/test-getcwd.c: Likewise.
35352
35353         link: fix platform bugs
35354         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35355         * lib/link.c (link): Work around them.  Fix related mingw bug.
35356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35357         * modules/unistd (Makefile.am): Substitute it.
35358         * lib/unistd.in.h (link): Declare replacement.
35359         * doc/posix-functions/link.texi (link): Document this.
35360         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35361
35362         test-link: consolidate into single C program, test more cases
35363         * tests/test-link.sh: Delete.
35364         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35365         at least Cygwin and Solaris.
35366         * modules/link-tests (Files): Remove unused file.
35367         (Depends-on): Add errno, sys_stat.
35368         (Makefile.am): Simplify.
35369
35370 2009-09-08  Bruno Haible  <bruno@clisp.org>
35371
35372         Work around towlower, towupper bug on mingw.
35373         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35374         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35375         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35376         * doc/posix-functions/towupper.texi: Likewise.
35377         Reported by Eric Blake.
35378
35379 2009-09-08  Jim Meyering  <meyering@redhat.com>
35380
35381         build: don't try to run autoheader if we don't use it
35382         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35383         is not used in configure.ac.
35384
35385 2009-09-08  Eric Blake  <ebb9@byu.net>
35386
35387         euidaccess: fix compilation error
35388         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35389
35390         rawmemchr: relax license
35391         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35392         okay.
35393         Reported by Jim Meyering.
35394
35395         mkfifoat: new module
35396         * modules/mkfifoat: New file.
35397         * lib/mkfifoat.c: Likewise.
35398         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35399         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35400         * modules/sys_stat (Makefile.am): Use them.
35401         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35402         * MODULES.html.sh (File system functions): Mention module.
35403         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35404         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35405         * modules/mkfifoat-tests: New test.
35406         * tests/test-mkfifoat.c: Likewise.
35407
35408         strchrnul: relax license
35409         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35410         okay.
35411         Reported by Jim Meyering.
35412
35413 2009-09-08  Eric Blake  <ebb9@byu.net>
35414
35415         fstatat: fix compilation on Solaris
35416         * lib/fstatat.c (includes): Add fcntl.h.
35417         Reported by Pádraig Brady.
35418
35419 2009-09-07  Eric Blake  <ebb9@byu.net>
35420
35421         rename: modernize replacement
35422         * modules/rename (Depends-on): Add stdio.
35423         (configure.ac): Declare witness.
35424         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35425         stdio take care of replacement.
35426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35427         * modules/stdio (Makefile.am): Substitute them.
35428         * lib/stdio.in.h (rename): Declare replacement.
35429         * lib/rename.c (includes): Allow cross-compilation to non-windows
35430         machines.
35431         * doc/posix-functions/rename.texi (rename): Improve
35432         documentation.
35433
35434         stdio: sort witness names
35435         * modules/stdio (Makefile.am): Sort replacements.
35436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35437         * lib/stdio.in.h: Likewise.
35438
35439         getcwd: minor cleanups
35440         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35441         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35442
35443         openat: provide more convenience names
35444         * modules/faccessat (configure.ac): Add C witness.
35445         * lib/unistd.in.h (readlinkat): Fix typo.
35446         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35447         convenience wrappers.
35448         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35449         wrappers in syntax checks.
35450
35451 2009-09-06  Eric Blake  <ebb9@byu.net>
35452
35453         doc: fix comments in recent patches
35454         * lib/faccessat.c: Mention correct function.
35455         * lib/fchmodat.c: Likewise.
35456         * lib/fchownat.c: Likewise.
35457         * lib/symlinkat.c: Likewise.
35458         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35459         constants.
35460
35461         faccessat, symlinkat: continue cleanup of previous patch
35462         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35463         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35464         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35466         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35467         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35468         set.
35469
35470 2009-09-06  Bruno Haible  <bruno@clisp.org>
35471
35472         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35473         (fstatat): Declare if GNULIB_FSTATAT is set.
35474         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35475         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35476         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35477         * modules/fcntl-h (Files): Remove m4/openat.m4.
35478         * modules/sys_stat (Files): Remove m4/openat.m4.
35479         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35480         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35481         * modules/unistd (Files): Remove m4/openat.m4.
35482         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35483         GNULIB_OPENAT.
35484         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35485         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35487         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35488         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35489         gl_OPENAT_DEFAULTS.
35490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35491         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35492         Don't require gl_OPENAT_DEFAULTS.
35493         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35494         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35495         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35496         (gl_OPENAT_DEFAULTS): Remove macro.
35497
35498 2009-09-06  Bruno Haible  <bruno@clisp.org>
35499
35500         * modules/openat (configure.ac): Remove unneeded witness.
35501
35502 2009-09-06  Bruno Haible  <bruno@clisp.org>
35503
35504         Set errno to ENOSYS when a function is entirely unsupported.
35505         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35506         EOPNOTSUPP.
35507         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35508         * modules/chown (Depends-on): Remove errno.
35509
35510 2009-09-06  Bruno Haible  <bruno@clisp.org>
35511
35512         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35513
35514 2009-09-06  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35517
35518 2009-09-06  Ben Pfaff  <blp@gnu.org>
35519             Bruno Haible  <bruno@clisp.org>
35520
35521         Work around a glibc bug in strtok_r.
35522         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35523         Undefine if UNDEFINE_STRTOK_R is set.
35524         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35526         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35527         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35528         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35529         UNDEFINE_STRTOK_R.
35530         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35531
35532 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35533
35534         exclude: minor fix
35535         * lib/exclude.c: Include wctype.h
35536
35537 2009-09-06  Akim Demaille  <demaille@gostai.com>
35538
35539         bootstrap: improve error message
35540         * build-aux/bootstrap (find_tool): Upon failure, report the list
35541         of candidates.
35542         Honor the initial value of the envvar.
35543
35544 2009-09-05  Eric Blake  <ebb9@byu.net>
35545
35546         symlinkat: new module
35547         * modules/symlinkat: New file.
35548         * lib/symlinkat.c: Likewise.
35549         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35551         * modules/unistd (Makefile.am): Use them.
35552         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35553         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35554         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35555         * MODULES.html.sh (File system functions): Mention module.
35556         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35557         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35558         * modules/symlinkat-tests: New test.
35559         * tests/test-symlinkat.c: Likewise.
35560
35561         test-openat-safer: add more checks
35562         * tests/test-openat-safer.c (main): Check more code paths.
35563
35564 2009-09-05  Jim Meyering  <meyering@redhat.com>
35565
35566         syntax-check: detect unnecessary inclusion of openat.h
35567         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35568
35569 2009-09-05  Bruno Haible  <bruno@clisp.org>
35570
35571         Support towlower, towupper.
35572         * doc/posix-functions/towlower.texi: Mention module wctype.
35573         * doc/posix-functions/towupper.texi: Likewise.
35574         * lib/wctype.in.h (towlower, towupper): New functions.
35575         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35576         (ASSERT): New macro.
35577         (e): New variable.
35578         (main): Test also towlower, towupper. Test WEOF argument.
35579         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35580
35581 2009-09-05  Bruno Haible  <bruno@clisp.org>
35582
35583         Fix conversion behaviour when the input is invalid.
35584         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35585         mark occurring in first pass of indirect conversion.
35586         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35587         input.
35588         Found by clang's static analyzer.
35589
35590 2009-09-05  Bruno Haible  <bruno@clisp.org>
35591
35592         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35593         where direct conversion is possible.
35594
35595 2009-09-04  Eric Blake  <ebb9@byu.net>
35596
35597         openat: fail with ENOENT on empty name
35598         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35599         buffer.
35600
35601         link-follow: fix logic bug in prior patch
35602         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35603         reversed sense of yes and no in prior patch.  Avoid confusing
35604         compilation failure with desired semantics.
35605
35606         link-follow: accomodate mingw and cross-compilation
35607         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35608         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35609         cross-compilation results to -1, to make linkat easier to
35610         implement when cross-compiling.  Trivially support mingw.
35611         * modules/link-follow (configure.ac): Call new name.
35612         * NEWS: Mention this.
35613
35614 2009-09-03  Eric Blake  <ebb9@byu.net>
35615
35616         faccessat: compile replacement
35617         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35618         needed.
35619
35620         fts: fix compilation error
35621         * lib/fts.c (includes): Re-add "openat.h", for
35622         openat_needs_fchdir.
35623
35624         faccessat: new module
35625         * modules/faccessat: New file.
35626         * lib/faccessat.c: Likewise.
35627         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35629         * modules/unistd (Makefile.am): Use it.
35630         * lib/unistd.in.h (faccessat): Declare it.
35631         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35632         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35633         * MODULES.html.sh (File system functions): Mention it.
35634         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35635         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35636
35637         euidaccess: prefer POSIX over non-standard implementation
35638         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35639         * lib/euidaccess.c (euidaccess): Use it if available.
35640
35641         openat: make template easier to use
35642         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35643         AT_FUNC_F2 to be undefined.
35644         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35645         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35646         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35647         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35648         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35649         Likewise.
35650         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35651         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35652         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35653         Likewise.
35654
35655         openat: declare in POSIX headers
35656         * NEWS: Mention this.
35657         * modules/openat (configure.ac): Declare witnesses.
35658         (Depends-on): Add fcntl-h, sys_stat, unistd.
35659         (Include): Mention correct headers.
35660         * modules/fcntl-h (Depends-on): Add link-warning.
35661         (Files): Add openat.m4.
35662         (Makefile.am): Substitute witnesses.
35663         * modules/sys_stat (Files, Makefile.am): Likewise.
35664         * modules/unistd (Files, Makefile.am): Likewise.
35665         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35666         (gl_OPENAT_DEFAULTS): New macro.
35667         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35670         (SYS_STAT_H): Remove unused variable.
35671         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35672         * lib/fcntl--.h (includes): Remove unneeded header.
35673         * lib/openat-safer.c (includes): Likewise.
35674         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35675         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35676         appropriate headers.
35677         (__OPENAT_PREFIX): Delete.
35678         * lib/fcntl.in.h (openat): Provide declaration.
35679         (AT_FDCWD): Fix Solaris bug.
35680         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35681         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35682         * lib/fchmodat.c (includes):  Adjust to find declaration.
35683         * lib/fchownat.c (includes): Likewise.
35684         * lib/mkdirat.c (includes): Likewise.
35685         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35686         still visible.
35687
35688 2009-09-02  Eric Blake  <ebb9@byu.net>
35689
35690         errno: use consistently
35691         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35692         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35693         * lib/canonicalize.c (ELOOP): Likewise.
35694         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35695         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35696         * lib/lchown.c (EOPNOTSUPP): Likewise.
35697         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35698         * lib/savewd.c (ESTALE): Likewise.
35699         * lib/settime.c (ENOSYS): Likewise.
35700         * lib/utimens.c (ENOSYS): Likewise.
35701         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35702         * lib/chdir-safer.c (ELOOP): Likewise.
35703         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35704         * modules/c-stack (Depends-on): Add errno.
35705         * modules/canonicalize (Depends-on): Likewise.
35706         * modules/chdir-safer (Depends-on): Likewise.
35707         * modules/fdopendir (Depends-on): Likewise.
35708         * modules/inet_ntop (Depends-on): Likewise.
35709         * modules/inet_pton (Depends-on): Likewise.
35710         * modules/lchown (Depends-on): Likewise.
35711         * modules/openat (Depends-on): Likewise.
35712         * modules/savewd (Depends-on): Likewise.
35713         * modules/settime (Depends-on): Likewise.
35714         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35715
35716         fts: avoid leaking fds
35717         * modules/fts (Depends-on): Add cloexec.
35718         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35719         flag.
35720
35721         fts: make directory fds more robust
35722         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35723         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35724
35725         backupfile, chdir-long, fts, savedir: make safer
35726         * lib/backupfile.c (includes): Use "dirent--.h", since
35727         numbered_backup can write to stderr during readdir.
35728         * lib/savedir.c (includes): Likewise.
35729         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35730         emulation can write to stderr on failure.
35731         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35732         * lib/getcwd.c: Document why opendir_safer is unused.
35733         * lib/glob.c: Likewise.
35734         * lib/scandir.c: Likewise.
35735         * lib/openat-proc.c: Likewise, for open_safer.
35736         * modules/backupfile (Depends-on): Add dirent-safer.
35737         * modules/savedir (Depends-on): Likewise.
35738         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35739         * modules/chdir-long (Depends-on): Add openat-safer.
35740
35741         openat-safer: new module
35742         * modules/openat-safer: New file.
35743         * lib/openat-safer.c: Likewise.
35744         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35745         * lib/fcntl-safer.h (openat_safer): Declare.
35746         * lib/fcntl--.h (openat): Override.
35747         * MODULES.html.sh (File descriptor based I/O): Mention it.
35748         * lib/openat.h: Add double-inclusion guards.
35749         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35750         "fcntl--.h", so we can implement openat.
35751         * modules/openat-safer-tests: New test.
35752         * tests/test-openat-safer.c: New file.
35753
35754         dirent-safer: new module
35755         * modules/dirent-safer: New file.
35756         * lib/dirent--.h: Likewise.
35757         * lib/dirent-safer.h: Likewise.
35758         * lib/opendir-safer.c: Likewise.
35759         * m4/dirent-safer.m4: Likewise.
35760         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35761         * modules/dirent-safer-tests: New test.
35762         * tests/test-dirent-safer.c: New file.
35763         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35764
35765         fdopendir: optimize on mingw
35766         * lib/unistd.in.h (_gl_directory_name): New prototype.
35767         * lib/fchdir.c (_gl_directory_name): Implement it.
35768         (fchdir): Use it to simplify implementation.
35769         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35770         fchdir, when available, to avoid calling [f]chdir().
35771
35772         fdopendir: split into its own module
35773         * lib/openat.c (fdopendir): Move...
35774         * lib/fdopendir.c: ...into new file.
35775         * modules/fdopendir: New module.
35776         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35777         * modules/openat (Depends-on): Add fdopendir.
35778         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35779         fdopendir here.
35780         * modules/savedir (Depends-on): Only need fdopendir, not full
35781         openat.
35782         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35783         * lib/openat.h (fdopendir): Drop prototype.
35784         * lib/dirent.in.h (fdopendir): Provide prototype.
35785         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35786         * modules/dirent (Makefile.am): Substitute them.
35787         * MODULES.html.sh (File system functions): Mention it.
35788         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35789         * modules/fdopendir-tests: New file.
35790         * tests/test-fdopendir.c: Likewise.
35791
35792         fchdir: use more consistent macro convention
35793         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35794         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35795         REPLACE_FCHDIR, rather than relying on config.h macros.
35796         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35797         inside a single make-time REPLACE_FCHDIR block, rather than using
35798         the config.h FCHDIR_REPLACEMENT.
35799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35800         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35801         Manage fstat replacement.
35802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35803         REPLACE_FCHDIR.
35804         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35805         (Makefile.am): Substitute REPLACE_FCHDIR.
35806         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35807         FCHDIR_REPLACEMENT.
35808         * lib/dup-safer.c (dup_safer): Likewise.
35809         * lib/dup2.c (rpl_dup2): Likewise.
35810         * lib/dup3.c (rpl_dup3): Likewise.
35811         * lib/open.c (rpl_open): Likewise.
35812
35813         fchdir: simplify error handling, and support dup3
35814         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35815         stdbool, malloc-posix, realloc-posix.
35816         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35817         (ensure_dirs_slot): Return false on allocation failure.
35818         (rpl_dup2): Delete.
35819         (_gl_register_dup): New function.
35820         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35821         (_gl_register_fd): Close fd on allocation failure.
35822         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35823         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35824         prototype.
35825         (rpl_dup2_fchdir): Delete prototype.
35826         * lib/open.c (open): Update caller.
35827         * lib/dup2.c (dup2): Track fchdir metadata.
35828         * lib/dup3.c (dup3): Likewise.
35829         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35831
35832 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35833
35834         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35835         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35836         don't pass arguments to AC_OUTPUT.
35837
35838 2009-09-02  Bruno Haible  <bruno@clisp.org>
35839
35840         * modules/mkdtemp (License): Relicense under LGPLv2+.
35841         Reported by Paolo Bonzini.
35842
35843 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35844
35845         Replace uses of obsolete autoconf macros in Jim's modules.
35846         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35847         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35848         can evoke a warning from autoconf when run with -Wobsolete
35849         enabled.  They were declared obsolete for good reasons (see
35850         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35851         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35852         should not continue using the deprecated macros.
35853         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35854         obsolete Autoconf macros with modern counterparts.
35855         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35856         * m4/dos.m4 (gl_AC_DOS): Likewise.
35857         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35859         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35860         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35861         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35862         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35863         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35864         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35865         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35866         Likewise.
35867         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35868         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35869         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35870         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35871         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35872         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35873
35874 2009-09-01  Eric Blake  <ebb9@byu.net>
35875
35876         fchdir: fix off-by-one bug in previous patch
35877         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35878         (_gl_unregister_fd): Delete useless if.
35879
35880 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35881
35882         maint.mk: sort the list of syntax-check rules
35883         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35884         easier to get a sense of progress when the rules are run sequentially
35885         and take a long time.
35886
35887 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35888
35889         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35890         * modules/netinet_in: Likewise.
35891         * modules/sys_file: Likewise.
35892         * modules/sys_ioctl: Likewise.
35893         * modules/sys_select: Likewise.
35894         * modules/sys_socket: Likewise.
35895         * modules/sys_stat: Likewise.
35896         * modules/sys_time: Likewise.
35897         * modules/sys_times: Likewise.
35898         * modules/sys_utsname: Likewise.
35899         * modules/sys_wait: Likewise.
35900
35901 2009-09-01  Jim Meyering  <meyering@redhat.com>
35902
35903         fts: help ensure that return values are not ignored
35904         * lib/fts_.h (__GNUC_PREREQ): Define.
35905         (__attribute_warn_unused_result__): Define.
35906         (fts_children, fts_close, fts_open, fts_read): Declare with
35907         __attribute_warn_unused_result__.
35908
35909         fts: fts_close now fails also when closing a dir file descriptor fails
35910         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35911         and propagate to caller, along with errno.
35912
35913         announce-gen: correct formatting in --help output
35914         * build-aux/announce-gen (usage): Move the one-line description in
35915         --help output "up", to where it belongs, just after Usage:.
35916
35917 2009-08-31  Eric Blake  <ebb9@byu.net>
35918
35919         fchdir: port to mingw
35920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35921         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35922         opened, then use a substitute.
35923         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35924         replacement.
35925         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35926         (_gl_register_fd): No need to check stat if open already filters
35927         all directories.
35928         (fchdir): Fix error condition to match POSIX.
35929         * modules/fchdir (Depends-on): Add sys_stat.
35930         * doc/posix-functions/open.texi (open): Document the limitation.
35931         * modules/fchdir-tests: New file.
35932         * tests/test-fchdir.c: Likewise.
35933
35934         canonicalize: allow cross-testing from cygwin to mingw
35935         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35936         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35937         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35938         Likewise.
35939         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35940         target does not support symlinks.
35941         * tests/test-canonicalize-lgpl.sh: Likewise.
35942
35943         chown: avoid compilation warning on mingw
35944         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35945         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35946         mingw.
35947         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35948         * modules/chown (Depends-on): Add errno.
35949
35950 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35951
35952         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35953         command.
35954
35955 2009-08-31  Jim Meyering  <meyering@redhat.com>
35956
35957         canonicalize: remove useless initialization
35958         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35959         initialization of local, "end".
35960
35961 2009-08-30  Bruno Haible  <bruno@clisp.org>
35962
35963         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35964         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35965         ENOSYS.
35966
35967 2009-08-30  Bruno Haible  <bruno@clisp.org>
35968
35969         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35970         /usr/xpg4/bin/tr when it exists.
35971         * tests/test-pipe-filter-gi1.sh: Likewise.
35972
35973 2009-08-30  Bruno Haible  <bruno@clisp.org>
35974
35975         Work around deficient /usr/bin/id program on Solaris.
35976         * tests/test-file-has-acl.sh (ID): New variable.
35977         * tests/test-set-mode-acl.sh (ID): Likewise.
35978         * tests/test-copy-acl.sh (ID): Likewise.
35979         * tests/test-copy-file.sh (ID): Likewise.
35980
35981 2009-08-30  Bruno Haible  <bruno@clisp.org>
35982
35983         New module 'xstriconveh'.
35984         * lib/xstriconveh.h: New file.
35985         * lib/xstriconveh.c: New file.
35986         * modules/xstriconveh: New file.
35987
35988 2009-08-30  Bruno Haible  <bruno@clisp.org>
35989
35990         Make it easier to use mem_cd_iconveh.
35991         * lib/striconveh.h (iconveh_t): New type.
35992         (iconveh_open, iconveh_close): New declarations.
35993         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35994         with a single 'const iconveh_t *' argument.
35995         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35996         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35997         with a single 'const iconveh_t *' argument.
35998         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35999         * tests/test-striconveh.c (main): Update.
36000         * NEWS: Mention the change.
36001
36002 2009-08-30  Bruno Haible  <bruno@clisp.org>
36003
36004         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36005         problem.
36006
36007 2009-08-30  Bruno Haible  <bruno@clisp.org>
36008
36009         Work around iconv_open problem on Solaris.
36010         * lib/iconv_open-solaris.gperf: New file.
36011         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36012         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36013         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36014         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36015         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36016         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36017
36018 2009-08-29  Jim Meyering  <meyering@redhat.com>
36019
36020         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36021         * top/maint.mk (cvs-check): Remove target; it was just an alias
36022         to the better-named vc-diff-check.
36023         (maintainer-distcheck): Remove rule.  It was used only from
36024         the (alpha/beta/major) target, and all of its commands but one
36025         were coreutils-specific.
36026         (vc-dist): Remove rule.
36027         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36028         Run vc-diff-check, not vc-dist.
36029         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36030
36031 2009-08-27  Bruno Haible  <bruno@clisp.org>
36032
36033         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36034         of 0.
36035
36036 2009-08-27  Bruno Haible  <bruno@clisp.org>
36037
36038         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36039         compilers.
36040         * doc/func.texi: Document the SunPRO C bug.
36041
36042 2009-08-27  Bruno Haible  <bruno@clisp.org>
36043
36044         Fix link error on Solaris.
36045         * tests/test-parse-duration.c (xstrdup): Remove function.
36046
36047 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36048
36049         ignore-value: handle pointer types, too
36050         * lib/ignore-value.h (__attribute__): Remove definition.
36051         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36052         of a more concise and more-often effective "(void) i" statement.
36053         (ignore_ptr): New function to suppress warnings from functions that
36054         return pointers, and to make it explicit that one function doesn't
36055         handle all cases.
36056
36057 2009-08-25  Bruno Haible  <bruno@clisp.org>
36058
36059         dup2: work around a Linux bug.
36060         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36061         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36062         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36063         Reported by Simon Josefsson.
36064
36065 2009-08-25  Jim Meyering  <meyering@redhat.com>
36066
36067         libguestfs uses gnulib
36068         * users.txt: Add libguestfs.
36069
36070 2009-08-24  Eric Blake  <ebb9@byu.net>
36071
36072         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36073         * lib/pipe2.c (includes): Add binary-io.h.
36074         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36075
36076 2009-08-24  Bruno Haible  <bruno@clisp.org>
36077
36078         Tolerate declared but missing accept4 syscall.
36079         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36080         available.
36081         * lib/sys_socket.in.h (accept4): If the function is already present,
36082         override it.
36083         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36084         * modules/accept4 (Makefile.am): Compile accept4.c always.
36085         Reported by Paolo Bonzini and Eric Blake.
36086
36087 2009-08-23  Bruno Haible  <bruno@clisp.org>
36088
36089         New module 'accept4'.
36090         * lib/sys_socket.in.h (accept4): New declaration.
36091         * lib/accept4.c: New file.
36092         * m4/accept4.m4: New file.
36093         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36094         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36095         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36096         HAVE_ACCEPT4.
36097         * modules/accept4: New file.
36098         * doc/glibc-functions/accept4.texi: Mention the new module.
36099
36100 2009-08-24  Jim Meyering  <meyering@redhat.com>
36101
36102         progname: also set global program_invocation_name, when possible
36103         Before this change, a libtool-enabled program that calls glibc's
36104         error function would report the program name as
36105         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36106         * modules/progname (configure.ac): Check for a declaration of
36107         program_invocation_name.
36108         * lib/progname.c:  Include <errno.h>.
36109         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36110         Set program_invocation_name.
36111
36112 2009-08-23  Bruno Haible  <bruno@clisp.org>
36113
36114         * lib/dup3.c: Include <string.h>.
36115
36116 2009-08-23  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36119         * lib/pipe2.c (pipe2): Likewise.
36120         Suggested by Eric Blake.
36121
36122 2009-08-23  Bruno Haible  <bruno@clisp.org>
36123
36124         Tolerate declared but missing dup3 syscall.
36125         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36126         * lib/unistd.in.h (dup3): If the function is already present,
36127         override it.
36128         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36129         * modules/dup3 (Makefile.am): Compile dup3.c always.
36130         Reported by Paolo Bonzini.
36131
36132 2009-08-23  Bruno Haible  <bruno@clisp.org>
36133
36134         Tolerate declared but missing pipe2 syscall.
36135         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36136         available.
36137         * lib/unistd.in.h (pipe2): If the function is already present,
36138         override it.
36139         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36140         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36141         Reported by Paolo Bonzini.
36142
36143 2009-08-23  Bruno Haible  <bruno@clisp.org>
36144
36145         * lib/pipe2.c (pipe2): Move #ifs inside function.
36146
36147 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36148
36149         quotearg: document limitations of quote_these_too
36150         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36151         those limitations are created.
36152         * lib/quotearg.h (set_char_quoting): Document that digits and
36153         letters that are special after backslash are not permitted.
36154         (quotearg_char): Cross-reference set_char_quoting documentation.
36155
36156 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36157
36158         quotearg: implement custom_quoting_style
36159         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36160         right_quote fields.
36161         (set_custom_quoting): New public function.
36162         (quotearg_buffer_restyled): Add left_quote and right_quote
36163         arguments, handle them very much like locale quoting, and update
36164         all uses.
36165         (quotearg_n_custom): New public function.
36166         (quotearg_n_custom_mem): New public function.
36167         (quotearg_custom): New public function.
36168         (quotearg_custom_mem): New public function.
36169         * lib/quotearg.h: Prototype and document new public functions.
36170         (enum quoting_style): For escape_quoting_style and
36171         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36172         ignored even though they're otherwise like c_quoting_style.
36173         Add custom_quoting_style member and document with comparison to
36174         clocale_quoting_style.
36175         * tests/test-quotearg.c (custom_quotes): New array.
36176         (custom_results): New array.
36177         (main): Extend to test custom quoting.
36178
36179 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36180
36181         quotearg: fix right quote escaping when it's in quote_these_too
36182         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36183         quote, be sure to prepend only one backslash.
36184         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36185         (main): Test it.
36186
36187 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36188
36189         quotearg-tests: test escaping of embedded locale quotes
36190         * tests/test-quotearg.c (struct result_strings): Add member for
36191         new input.
36192         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36193         (inputs): Add new input.
36194         (results_g): Add expected results.
36195         (flag_results): Likewise.
36196         (locale_results): Likewise.
36197         (compare_strings): Check those.
36198
36199 2009-08-23  Bruno Haible  <bruno@clisp.org>
36200
36201         Tests for module 'dup3'.
36202         * modules/dup3-tests: New file.
36203         * tests/test-dup3.c: New file.
36204
36205         New module 'dup3'.
36206         * lib/unistd.in.h (dup3): New declaration.
36207         * lib/dup3.c: New file.
36208         * m4/dup3.m4: New file.
36209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36210         HAVE_DUP3.
36211         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36212         * modules/dup3: New file.
36213         * doc/glibc-functions/dup3.texi: Mention the new module.
36214
36215 2009-08-23  Bruno Haible  <bruno@clisp.org>
36216
36217         Tweak the dup2 test.
36218         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36219         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36220         the test file is still empty. Fix argument order of lseek.
36221
36222 2009-08-23  Bruno Haible  <bruno@clisp.org>
36223
36224         Avoid test link errors when the modules getopt-gnu, gettext are used.
36225         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36227
36228 2009-08-23  Bruno Haible  <bruno@clisp.org>
36229
36230         Fix getdtablesize() on mingw.
36231         * lib/getdtablesize.c (getdtablesize): Implement differently.
36232         * lib/unistd.in.h (getdtablesize): Improve comment.
36233
36234 2009-08-23  Bruno Haible  <bruno@clisp.org>
36235
36236         New module 'mkostemp'.
36237         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36238         * lib/stdlib.in.h (mksotemp): New declaration.
36239         * lib/mkostemp.c: New file, from glibc with modifications.
36240         * lib/tempname.h (GT_FILE): Remove outdated comment.
36241         (gen_tempname): Add flags argument.
36242         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36243         (__GT_FILE): Map to 1.
36244         (small_open, large_open): Remove macros.
36245         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36246         * lib/mkstemp.c (mkstemp): Update.
36247         * lib/mkdtemp.c (mkdtemp): Likewise.
36248         * m4/mkostemp.m4: New file.
36249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36250         HAVE_MKOSTEMP.
36251         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36252         HAVE_MKOSTEMP.
36253         * modules/mkostemp: New file, based on modules/mkstemp.
36254         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36255         * NEWS: Mention the change.
36256
36257 2009-08-23  Bruno Haible  <bruno@clisp.org>
36258
36259         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36260         Reported by Eric Blake.
36261
36262 2009-08-23  Bruno Haible  <bruno@clisp.org>
36263
36264         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36265         Reported by Eric Blake.
36266
36267 2009-08-23  Bruno Haible  <bruno@clisp.org>
36268
36269         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36270         * modules/pipe2 (Depends-on): Likewise.
36271
36272 2009-08-23  Eric Blake  <ebb9@byu.net>
36273
36274         fcntl-h: add O_TTY_INIT support
36275         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36276         * tests/test-fcntl-h.c (o): Test it.
36277         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36278
36279         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36280         * modules/fcntl: Move <fcntl.h> header replacement...
36281         * modules/fcntl-h: ...to new name, so as not to collide with
36282         like-named function.
36283         * tests/test-fcntl.c: Rename...
36284         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36285         * modules/fcntl-tests: Rename...
36286         * modules/fcntl-h-tests: ...to this.  Update test file name.
36287         * modules/chdir-long (Depends-on): Update clients.
36288         * modules/chdir-safer (Depends-on): Likewise.
36289         * modules/fcntl-safer (Depends-on): Likewise.
36290         * modules/fts (Depends-on): Likewise.
36291         * modules/mkancesdirs (Depends-on): Likewise.
36292         * modules/mkdir-p (Depends-on): Likewise.
36293         * modules/open (Depends-on): Likewise.
36294         * modules/savewd (Depends-on): Likewise.
36295         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36296         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36297
36298 2009-08-22  Bruno Haible  <bruno@clisp.org>
36299
36300         * modules/binary-io (License): Relicense under LGPL.
36301         * modules/pipe2 (License): Likewise.
36302
36303 2009-08-22  Bruno Haible  <bruno@clisp.org>
36304
36305         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36306         return value.
36307         * lib/pipe-filter-gi.c (filter_init): Likewise.
36308         Reported by Eric Blake.
36309
36310 2009-08-22  Bruno Haible  <bruno@clisp.org>
36311
36312         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36313         * modules/pipe (Depends-on): Add pipe2.
36314
36315 2009-08-22  Bruno Haible  <bruno@clisp.org>
36316
36317         Tests for module 'pipe2'.
36318         * modules/pipe2-tests: New file.
36319         * tests/test-pipe2.c: New file.
36320
36321         New module 'pipe2'.
36322         * lib/unistd.in.h (pipe2): New declaration.
36323         * lib/pipe2.c: New file.
36324         * m4/pipe2.m4: New file.
36325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36326         HAVE_PIPE2.
36327         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36328         * modules/pipe2: New file.
36329         * doc/glibc-functions/pipe2.texi: Mention the new module.
36330
36331 2009-08-22  Bruno Haible  <bruno@clisp.org>
36332
36333         Reference some new glibc functions.
36334         * doc/glibc-functions/accept4.texi: New file.
36335         * doc/glibc-functions/dup3.texi: New file.
36336         * doc/glibc-functions/mkostemp.texi: New file.
36337         * doc/glibc-functions/pipe2.texi: New file.
36338         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36339         (Glibc sys/socket.h): Refer to accept4.
36340         (Glibc unistd.h): Refer to dup3, pipe2.
36341         Reported by Eric Blake.
36342
36343 2009-08-22  Jim Meyering  <meyering@redhat.com>
36344             Bruno Haible  <bruno@clisp.org>
36345
36346         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36347         This makes it so packages using automake-1.11's silent-rules option
36348         can print e.g., a single "GEN    configmake.h" line, rather than
36349         the 30+ statements that perform the job.  If you want to see the
36350         actual commands, you can still run "make V=1".
36351         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36352         so that make output is abbreviated when those variables are defined
36353         appropriately.
36354         * modules/argz: Likewise.
36355         * modules/arpa_inet: Likewise.
36356         * modules/byteswap: Likewise.
36357         * modules/configmake: Likewise.
36358         * modules/dirent: Likewise.
36359         * modules/errno: Likewise.
36360         * modules/fcntl: Likewise.
36361         * modules/float: Likewise.
36362         * modules/fnmatch: Likewise.
36363         * modules/getopt-posix: Likewise.
36364         * modules/glob: Likewise.
36365         * modules/iconv_open: Likewise.
36366         * modules/inttypes: Likewise.
36367         * modules/localcharset: Likewise.
36368         * modules/locale: Likewise.
36369         * modules/math: Likewise.
36370         * modules/netdb: Likewise.
36371         * modules/netinet_in: Likewise.
36372         * modules/poll: Likewise.
36373         * modules/posix_spawnp-tests: Likewise.
36374         * modules/sched: Likewise.
36375         * modules/search: Likewise.
36376         * modules/selinux-h: Likewise.
36377         * modules/signal: Likewise.
36378         * modules/spawn: Likewise.
36379         * modules/stdarg: Likewise.
36380         * modules/stdbool: Likewise.
36381         * modules/stddef: Likewise.
36382         * modules/stdint: Likewise.
36383         * modules/stdio: Likewise.
36384         * modules/stdlib: Likewise.
36385         * modules/string: Likewise.
36386         * modules/strings: Likewise.
36387         * modules/sys_file: Likewise.
36388         * modules/sys_ioctl: Likewise.
36389         * modules/sys_select: Likewise.
36390         * modules/sys_socket: Likewise.
36391         * modules/sys_stat: Likewise.
36392         * modules/sys_time: Likewise.
36393         * modules/sys_times: Likewise.
36394         * modules/sys_utsname: Likewise.
36395         * modules/sys_wait: Likewise.
36396         * modules/sysexits: Likewise.
36397         * modules/time: Likewise.
36398         * modules/unistd: Likewise.
36399         * modules/wchar: Likewise.
36400         * modules/wctype: Likewise.
36401
36402 2009-08-22  Jim Meyering  <meyering@redhat.com>
36403
36404         announce-gen: detect write failure
36405         * build-aux/announce-gen: Add Coda at end.
36406         Remove equivalent-but-more-verbose block at top.
36407
36408 2009-08-19  Akim Demaille  <demaille@gostai.com>
36409
36410         bootstrap: --help to stdout.
36411         * bootstrap (usage): Don't send --help to stderr.
36412         Use a here doc instead of a long string.
36413
36414 2009-08-21  Eric Blake  <ebb9@byu.net>
36415
36416         test-popen-safer: split from test-popen
36417         * tests/test-popen.c (main): Move...
36418         * tests/test-popen.h: ...into new file.
36419         * tests/test-popen-safer2.c: New file.
36420         * modules/popen-tests (Files): Add test-popen.h.
36421         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36422         Suggested by Bruno Haible.
36423
36424         test-fcntl-safer: split from test-open
36425         * tests/test-open.c (main): Move...
36426         * tests/test-open.h: ...into new file.
36427         * tests/test-fcntl-safer.c: New file.
36428         * modules/open-tests (Files): Add test-open.h.
36429         * modules/fcntl-safer-tests: New file.
36430         Suggested by Bruno Haible.
36431
36432         test-fopen-safer: split from test-fopen
36433         * tests/test-fopen.c (main): Move...
36434         * tests/test-fopen.h: ...into new file.
36435         * tests/test-fopen-safer.c: New file.
36436         * modules/fopen-tests (Files): Add test-fopen.h.
36437         * modules/fopen-safer-tests: New file.
36438         Suggested by Bruno Haible.
36439
36440 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36441
36442         popen-safer: test O_CLOEXEC at run-time.
36443         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36444
36445 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36446
36447         fcntl: move more flags to the header
36448         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36449         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36450         * lib/fcntl.in.h: Do both things here.
36451
36452 2009-08-21  Jim Meyering  <meyering@redhat.com>
36453
36454         consistently remove $@-t before redirecting to it
36455         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36456         * modules/alloca-opt: Likewise.
36457         * modules/byteswap: Likewise.
36458         * modules/fnmatch: Likewise.
36459         * modules/getopt-posix: Likewise.
36460         * modules/glob: Likewise.
36461         * modules/poll: Likewise.
36462         * modules/posix_spawnp-tests: Likewise.
36463         * modules/sys_socket: Likewise.
36464         * modules/sysexits: Likewise.
36465
36466 2009-08-21  Eric Blake  <ebb9@byu.net>
36467
36468         popen: simplify access to original popen
36469         * lib/popen.c (rpl_popen): No need to worry about popen being a
36470         macro.
36471         Reported by Bruno Haible.
36472
36473 2009-08-20  Eric Blake  <ebb9@byu.net>
36474
36475         build: avoid some compiler warnings
36476         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36477         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36478         type.
36479         (new_exclude_segment, excluded_file_pattern_p)
36480         (excluded_file_name_p): Reduce scope.
36481         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36482         old-style declaration.
36483
36484 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36485
36486         * tests/test-exclude1.sh: Handle Windows EOL.
36487         * tests/test-exclude2.sh: Likewise.
36488         * tests/test-exclude3.sh: Likewise.
36489         * tests/test-exclude4.sh: Likewise.
36490         * tests/test-exclude5.sh: Likewise.
36491         * tests/test-exclude6.sh: Likewise.
36492         * tests/test-exclude7.sh: Likewise.
36493
36494 2009-08-19  Akim Demaille  <demaille@gostai.com>
36495
36496         bootstrap: find sha1sum when named gsha1sum.
36497         * bootstrap (find_tool): New.
36498         ($SHA1SUM): New.
36499         Use it.
36500
36501 2009-08-20  Jim Meyering  <meyering@redhat.com>
36502
36503         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36504         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36505         expression that converts "." in a file name to "\." in the resulting
36506         regexp.  Start with a dummy statement, so that prior shell variable
36507         definitions are expanded portably.  Reported by Simon Josefsson.
36508
36509 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36510
36511         Fix polling for writeability of a screen buffer.
36512         * lib/poll.c: Distinguish input and screen buffers for the
36513         Win32 implementation.
36514         * lib/select.c: Likewise.
36515
36516 2009-08-19  Eric Blake  <ebb9@byu.net>
36517
36518         popen-safer: prevent popen from clobbering std descriptors
36519         * modules/popen-safer: New file.
36520         * lib/popen-safer.c: Likewise.
36521         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36522         * lib/stdio--.h (popen): Provide override.
36523         * lib/stdio-safer.h (popen_safer): Provide declaration.
36524         * tests/test-popen.c (includes): Partially test this.
36525         * modules/popen-safer-tests: New file, for more tests.
36526         * tests/test-popen-safer.c: Likewise.
36527         * MODULES.html.sh (file stream based Input/Output): Mention it.
36528
36529         tests: test some of the *-safer modules
36530         * modules/fopen-safer (Depends-on): Add fopen.
36531         * modules/fcntl-safer (Depends-on): Add fcntl.
36532         * modules/stdlib-safer (Depends-on): Add stdlib.
36533         (configure.ac): Set indicator.
36534         * modules/unistd-safer (configure.ac): Likewise.
36535         * modules/tmpfile-safer (configure.ac): Likewise.
36536         (Depends-on): Add tmpfile.
36537         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36538         active.
36539         * tests/test-fopen.c (includes): Test safer versions when they are
36540         in use.
36541         * tests/test-open.c (includes): Likewise.
36542
36543         popen: fix cygwin 1.5 bug when stdin closed
36544         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36545         * modules/popen: New file.
36546         * modules/popen-tests: Likewise.
36547         * tests/test-popen.c: Likewise.
36548         * m4/popen.m4: Likewise.
36549         * lib/popen.c: Likewise.
36550         * lib/stdio.in.h (popen): New declaration.
36551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36552         * modules/stdio (Makefile.am): Likewise.
36553         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36554
36555 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36556
36557         maint.mk: give full control over update-copyright exclusions
36558         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36559         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36560         (update-copyright): Don't force inclusion of top-level
36561         ChangeLog.  Don't force exclusion of all COPYING files, but make
36562         them the default exclusion instead.
36563
36564 2009-08-16  Bruno Haible  <bruno@clisp.org>
36565
36566         Fix test failures on Solaris 10.
36567         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36568         tests when Solaris iconv() is used.
36569         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36570         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36571         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36572         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36573         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36574
36575 2009-08-16  Bruno Haible  <bruno@clisp.org>
36576
36577         Fix test failures on Solaris 10.
36578         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36579         'tr' program and pass it as first argument.
36580         * tests/test-pipe-filter-gi1.sh: Likewise.
36581         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36582         program as first argument.
36583         * tests/test-pipe-filter-gi1.c (main): Likewise.
36584
36585 2009-08-16  Eric Blake  <ebb9@byu.net>
36586
36587         fpurge: fix previous commits
36588         * modules/fpurge (Makefile.am): Make replacement conditional,
36589         partially reverting 2007-04-29 change; missed in previous
36590         attempt.
36591         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36592         is missing.
36593
36594 2009-08-16  Bruno Haible  <bruno@clisp.org>
36595
36596         Clarify fpurge's effect on the file position.
36597         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36598         * tests/test-fpurge.c (main): Make a second pass for checking the file
36599         position.
36600
36601 2009-08-16  Bruno Haible  <bruno@clisp.org>
36602
36603         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36604         declaration of fpurge is missing.
36605         * tests/test-fpurge.c (main): Check that the file has not more contents
36606         than expected. Close the file before removing it.
36607
36608 2009-08-15  Eric Blake  <ebb9@byu.net>
36609
36610         fpurge: don't wrap working cygwin implementation
36611         * lib/fpurge.c (fpurge): Fix comment typo.
36612         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36613         1.7 to avoid replacement.
36614         * tests/test-fpurge.c (main): Enhance test.
36615
36616 2009-08-15  Eric Blake  <ebb9@byu.net>
36617         and Jim Meyering  <meyering@redhat.com>
36618
36619         test-update-copyright: skip if perl is insufficient
36620         * tests/test-update-copyright.sh: Failure to run maintainer tool
36621         should not cause testsuite failure on cygwin 1.5.
36622
36623 2009-08-14  Eric Blake  <ebb9@byu.net>
36624
36625         doc: mention more functions added in cygwin 1.7.0
36626         * doc/posix-headers/limits.texi (limits.h): Update for recent
36627         cygwin additions.
36628         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36629         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36630         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36631         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36632         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36633
36634 2009-08-14  Eric Blake  <ebb9@byu.net>
36635
36636         maint.mk: simplify update-copyright rule
36637         * top/maint.mk (update-copyright-local): Delete, and document how
36638         to do it in cfg.mk instead.
36639         (update-copyright-exclude-regexp): Delete, and document how to do
36640         it in .x-update-copyright instead.
36641         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36642         exclude ChangeLog.
36643
36644 2009-08-14  Bruno Haible  <bruno@clisp.org>
36645
36646         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36647
36648 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36649
36650         maint.mk: support update-copyright-env
36651         * top/maint.mk (update-copyright-env): Define place-holder.
36652         (update-copyright): Expand $(update-copyright-env) before
36653         invoking update-copyright.
36654
36655 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36656
36657         update-copyright: implement forced reformatting
36658         * build-aux/update-copyright: Implement and document
36659         UPDATE_COPYRIGHT_FORCE.
36660         * tests/test-update-copyright.sh: Test it.
36661
36662 2009-08-14  Eric Blake  <ebb9@byu.net>
36663         and Bruno Haible  <bruno@clisp.org>
36664
36665         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36666         * tests/test-locale.c: Revert previous patch related to NULL.
36667         * tests/test-stdio.c: Likewise.
36668         * tests/test-stdlib.c: Likewise.
36669         * tests/test-string.c: Likewise.
36670         * tests/test-unistd.c: Likewise.
36671         * modules/time-tests (Depends-on): Add verify.
36672         * modules/wchar-tests (Depends-on): Likewise.
36673         * tests/test-time.c: Test for NULL compliance.
36674         * tests/test-wchar.c: Likewise.
36675         * modules/locale (Depends-on): Add stddef.
36676         * modules/stdio (Depends-on): Likewise.
36677         * modules/stdlib (Depends-on): Likewise.
36678         * modules/string (Depends-on): Likewise.
36679         * modules/time (Depends-on): Likewise.
36680         * modules/unistd (Depends-on): Likewise.
36681         * modules/wchar (Depends-on): Likewise.
36682         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36683         * lib/stdlib.in.h (includes): Likewise.
36684         * lib/string.in.h (includes): Likewise.
36685         * lib/time.in.h (includes): Likewise.
36686         * lib/unistd.in.h (includes): Likewise.
36687         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36688         replaced.
36689         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36690         * m4/stddef_h.m4: New file.
36691         * modules/stddef: Likewise.
36692         * lib/stddef.in.h: Likewise.
36693         * modules/stddef-tests: Likewise.
36694         * tests/test-stddef.c: Likewise.
36695         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36696         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36697         * doc/posix-headers/locale.texi (locale.h): Likewise.
36698         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36699         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36700         * doc/posix-headers/string.texi (string.h): Likewise.
36701         * doc/posix-headers/time.texi (time.h): Likewise.
36702         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36703         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36704
36705 2009-08-14  Eric Blake  <ebb9@byu.net>
36706
36707         doc: improve git diff of texinfo files
36708         * .gitattributes: Add rule for *.texi files, with hint on how to
36709         use it.
36710         Copied from m4, and based on a report by Bruno Haible.
36711
36712 2009-08-14  Bruno Haible  <bruno@clisp.org>
36713
36714         Disable multithread support by default on Cygwin 1.5.x for real.
36715         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36716
36717 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36718
36719         update-copyright: much ado about intervals
36720         * build-aux/update-copyright: Implement and document
36721         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36722         of copyright year intervals.
36723         Also, document UPDATE_COPYRIGHT_YEAR.
36724         * tests/test-update-copyright.sh: Test it.
36725
36726         update-copyright: convert 2-digit to 4-digit years
36727         * build-aux/update-copyright: Implement and document.
36728         * tests/test-update-copyright.sh: Update.
36729
36730 2009-08-14  Jim Meyering  <meyering@redhat.com>
36731
36732         test-exclude: avoid coreutils "make check" failure
36733         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36734         just as in test-argmatch.c.
36735
36736 2009-08-13  Eric Blake  <ebb9@byu.net>
36737
36738         test-dup2: fix bad assumption
36739         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36740         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36741
36742         test-version-etc: fix CRLF portability issue
36743         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36744         recognize \r.
36745         * tests/test-argp-version-etc-1.sh: Likewise.
36746
36747         getopt: update client modules
36748         * modules/argp (Depends-on): Use getopt-gnu.
36749         * modules/git-merge-changelog (Depends-on): Likewise.
36750         * modules/long-options (Depends-on): Likewise.
36751         * modules/xstrtol (Depends-on): Likewise.
36752
36753 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36754
36755         * tests/test-version-etc.sh: Don't fail on different
36756         project/version.  Don't fail on CRLF differences.  Rewrite to use
36757         multiple -e instead of multiple sed forks, suggested by Eric Blake
36758         <ebb9@byu.net>.
36759         * tests/test-argp-version-etc-1.sh: Likewise.
36760
36761 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36762
36763         * tests/test-version-etc.sh: Don't fail on different
36764         project/version.
36765
36766 2009-08-12  Bruno Haible  <bruno@clisp.org>
36767
36768         Tests for modules 'getopt-posix', 'getopt-gnu'.
36769         * modules/getopt-posix-tests: New file.
36770         * tests/test-getopt.c: New file.
36771         * tests/test-getopt.h: New file.
36772         * tests/test-getopt_long.h: New file.
36773
36774         New modules 'getopt-posix', 'getopt-gnu'.
36775         * modules/getopt-gnu: New file, renamed from modules/getopt.
36776         * modules/getopt-posix: New file.
36777         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36778         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36779         (gl_GETOPT): Remove macro.
36780         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36781         Disable the test against BSD systems that declare optreset. Test
36782         against mingw bug. Test against lack of support of optional arguments
36783         on many platforms.
36784         * doc/glibc-headers/getopt.texi: Update module name and list of
36785         relevant platforms.
36786         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36787         'getopt-gnu' and more portability problems.
36788         * NEWS: Mention the changes.
36789
36790 2009-08-12  Bruno Haible  <bruno@clisp.org>
36791
36792         Ensure that optarg etc. get declared by <unistd.h>.
36793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36794         AC_USE_SYSTEM_EXTENSIONS.
36795         * modules/getopt (Depends-on): Add 'extensions'.
36796
36797 2009-08-12  Bruno Haible  <bruno@clisp.org>
36798
36799         Avoid test link errors.
36800         * modules/pipe-filter-ii-tests (Makefile.am): Define
36801         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36802         * modules/pipe-filter-gi-tests (Makefile.am): Define
36803         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36805
36806 2009-08-12  Bruno Haible  <bruno@clisp.org>
36807
36808         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36809         gl_GETOPT_SUBSTITUTE before.
36810         (gl_GETOPT): Use it.
36811         * m4/argp.m4 (gl_ARGP): Update.
36812         Reported by Sergey Poznyakoff.
36813
36814         * m4/getopt.m4: Reorder macros.
36815         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36816         (gl_GETOPT_SUBSTITUTE): Remove macro.
36817
36818 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36819
36820         Minor improvement in gitlog-to-changelog
36821
36822         * build-aux/gitlog-to-changelog: New option `--format' makes
36823         output format string configurable.
36824
36825 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36826
36827         Optimize exclude: use hash tables for non-wildcard patterns.
36828
36829         * lib/exclude.c: Include hash.h and mbuiter.h
36830         (struct exclude_pattern, exclude_segment): New data types.
36831         (struct exclude): Rewrite.
36832         (fnmatch_pattern_has_wildcards): New function.
36833         (new_exclude_segment, free_exclude_segment): New functions.
36834         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36835         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36836         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36837         * modules/exclude: Depend on hash and mbuiter.
36838
36839         * modules/exclude-tests: New file.
36840         * tests/test-exclude.c: New file.
36841         * tests/test-exclude1.sh: New file.
36842         * tests/test-exclude2.sh: New file.
36843         * tests/test-exclude3.sh: New file.
36844         * tests/test-exclude4.sh: New file.
36845         * tests/test-exclude5.sh: New file.
36846         * tests/test-exclude6.sh: New file.
36847         * tests/test-exclude7.sh: New file.
36848
36849 2009-08-12  Bruno Haible  <bruno@clisp.org>
36850
36851         Ensure that getopt() gets declared by <unistd.h>.
36852         * lib/unistd.in.h: Conditionally include getopt.h.
36853         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36854         Set GNULIB_UNISTD_H_GETOPT.
36855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36856         GNULIB_UNISTD_H_GETOPT.
36857         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36858
36859 2009-08-12  Bruno Haible  <bruno@clisp.org>
36860
36861         Clarify logic.
36862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36863         gl_replace_getopt instead of GETOPT_H.
36864
36865 2009-08-12  Bruno Haible  <bruno@clisp.org>
36866
36867         * m4/getopt.m4: Add comments.
36868
36869 2009-08-12  Bruno Haible  <bruno@clisp.org>
36870
36871         Disable multithread support by default on Cygwin 1.5.x.
36872         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36873         set gl_use_threads=no if not specified otherwise.
36874
36875 2009-08-11  Bruno Haible  <bruno@clisp.org>
36876
36877         Avoid compilation error on NetBSD 5.0.
36878         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36879         * tests/test-stdio.c: Likewise.
36880         * tests/test-stdlib.c: Likewise.
36881         * tests/test-string.c: Likewise.
36882         * tests/test-unistd.c: Likewise.
36883         Reported by Greg Troxel <gdt@ir.bbn.com>
36884         at <https://savannah.gnu.org/support/?106973>.
36885
36886 2009-08-11  Bruno Haible  <bruno@clisp.org>
36887
36888         * modules/dup2-tests (Depends-on): Remove close.
36889
36890         Undo 2009-07-19 commit.
36891         * modules/acl-tests (Depends-on): Remove close.
36892         * modules/binary-io-tests (Depends-on): Likewise.
36893         * modules/closein-tests (Depends-on): Likewise.
36894         * modules/flock-tests (Depends-on): Likewise.
36895         * modules/fsync-tests (Depends-on): Likewise.
36896         * modules/lseek-tests (Depends-on): Likewise.
36897         * modules/pipe-tests (Depends-on): Likewise.
36898         * modules/posix_spawn-tests (Depends-on): Likewise.
36899         * modules/posix_spawnp-tests (Depends-on): Likewise.
36900         * modules/stat-time-tests (Depends-on): Likewise.
36901         * modules/yesno-tests (Depends-on): Likewise.
36902
36903 2009-08-10  Bruno Haible  <bruno@clisp.org>
36904
36905         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36906
36907 2009-08-10  Bruno Haible  <bruno@clisp.org>
36908
36909         Fix a gcc warning.
36910         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36911
36912 2009-08-10  Bruno Haible  <bruno@clisp.org>
36913
36914         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36915         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36916         not only the first time.
36917         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36918         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36919         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36920         is 1, not only the the first time.
36921
36922 2009-08-10  Bruno Haible  <bruno@clisp.org>
36923
36924         Make it possible to use module 'gethostname' without module 'close'.
36925         * lib/unistd.in.h (close): Evoke a link error only if
36926         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36928         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36929         * modules/unistd (Makefile.am): Substitute
36930         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36931         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36932         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36933         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36934         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36935         * modules/sys_ioctl (Makefile.am): Substitute
36936         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36937         * modules/socket (configure.ac): On native Windows, set
36938         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36939         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36940         Reported by Sam Steingold <sds@gnu.org>.
36941
36942 2009-08-10  Bruno Haible  <bruno@clisp.org>
36943
36944         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36945         * modules/ioctl (configure.ac): Likewise.
36946
36947 2009-08-10  Bruno Haible  <bruno@clisp.org>
36948
36949         Avoid collision between gnulib wrapper and libintl wrapper.
36950         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36951         already defined in intl/printf.c.
36952         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36953         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36954
36955 2009-08-09  Bruno Haible  <bruno@clisp.org>
36956
36957         Make <sys/select.h> really self-contained, also on Solaris 10.
36958         * lib/sys_select.in.h: Include <string.h>.
36959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36960         Solaris 10 problem.
36961         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36962         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36963         Reported by Jim Meyering.
36964
36965 2009-08-09  Bruno Haible  <bruno@clisp.org>
36966
36967         Avoid warnings from 'aclocal' that are due to a use of macro name
36968         AM_XGETTEXT_OPTION that is not defined in automake.
36969         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36970         automake.
36971         * modules/error (configure.ac): Likewise.
36972         * modules/propername (configure.ac): Likewise.
36973         * modules/vasprintf (configure.ac): Likewise.
36974         * modules/verror (configure.ac): Likewise.
36975         * modules/xprintf (configure.ac): Likewise.
36976         * modules/xvasprintf (configure.ac): Likewise.
36977
36978 2009-08-08  Bruno Haible  <bruno@clisp.org>
36979
36980         Avoid compilation error in C++ mode.
36981         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36982         Reported by Sam Steingold <sds@gnu.org>.
36983
36984 2009-08-08  Bruno Haible  <bruno@clisp.org>
36985
36986         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36987         for the various Unix platforms.
36988         * doc/posix-headers/limits.texi: Update platforms list regarding
36989         HOST_NAME_MAX.
36990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36991
36992 2009-08-07  Jim Meyering  <meyering@redhat.com>
36993
36994         selinux-at: fix typo in a comment
36995         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36996         Spotted by Paolo Bonzini.
36997
36998         selinux-at: remove redundant m4 code, add documentation
36999         * modules/selinux-at (configure.ac): Remove redundant code.
37000         LIB_SELINUX is already set via the dependent module, selinux-h.
37001         (Include): Add quotes around selinux-at.h.
37002         * lib/selinux-at.h: Add documentation.
37003         Reported by Bruno Haible in
37004         http://marc.info/?l=gnulib-bug&m=124958988300749
37005
37006 2009-08-07  Bruno Haible  <bruno@clisp.org>
37007
37008         Avoid link error on MacOS X 10.3 and 10.4.
37009         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37010         on non-ELF systems.
37011         * lib/argp-pv.c (argp_program_version): Likewise.
37012         Reported by Simon Josefsson.
37013
37014 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37015
37016         * tests/test-version-etc.sh: Use $EXEEXT.
37017
37018 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37019
37020         update-copyright: update documentation to point to maint.mk
37021         * build-aux/update-copyright: Here.
37022
37023 2009-08-06  Jim Meyering  <meyering@redhat.com>
37024
37025         maint.mk: support update-copyright-local
37026         * top/maint.mk (update-copyright-local): Define place-holder.
37027         (update-copyright): Depend on $(update-copyright-local).
37028
37029 2009-08-06  Jim Meyering  <meyering@redhat.com>
37030
37031         selinux-at: new module
37032         Initially written for coreutils, this module will soon be
37033         used by findutils, too.
37034         * MODULES.html.sh [Misc]: Add selinux-at.
37035         * lib/selinux-at.h: New file, from coreutils.
37036         * lib/selinux-at.c: Likewise.
37037         * modules/selinux-at: Likewise.
37038         (License): Change from LGPL to GPL, since it depends
37039         on the GPL'd openat module.
37040
37041         doc: update README
37042         * README: Remove references to cogito.
37043         Remove cvs-repo-updating instructions from 2007.
37044         Don't imply that CVS is better if you have limited disk space.
37045
37046 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37047
37048         update-copyright: support C-style comments
37049         * build-aux/update-copyright: Implement and document.
37050         * tests/test-update-copyright.sh: Test.
37051
37052 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37053
37054         update-copyright: support omitted "(C)"
37055         * build-aux/update-copyright: Implement and document.  Also,
37056         allow variable whitespace before "(C)".
37057         * tests/test-update-copyright.sh: Test.
37058
37059 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37060
37061         update-copyright: don't trip on non-FSF copyright statements
37062         * build-aux/update-copyright: Fix so that the first correctly
37063         formatted FSF copyright statement is recognized no matter what
37064         appears before it.  Update documentation.
37065         * tests/test-update-copyright.sh: Test that.
37066
37067 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37068
37069         update-copyright: clean up code a little
37070         * build-aux/update-copyright: Append "_re" to the name of any
37071         variable holding a regular expression.
37072         Replace "old" and "new" with "stmt" in variable names.
37073         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37074         handled correctly.
37075         Format code more consistently.
37076
37077 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37078
37079         update-copyright-tests: improve portability
37080         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37081         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37082
37083 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37084
37085         update-copyright: support @copyright{} and &copy;
37086         * build-aux/update-copyright: Implement and document.
37087         * tests/test-update-copyright.sh: Test.
37088
37089 2009-08-04  Jim Meyering  <meyering@redhat.com>
37090
37091         update-copyright-tests: correctly test EOL=\r\n handling
37092         * tests/test-update-copyright.sh: Put \r at the end of some lines
37093         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37094
37095         maint.mk: make update-copyright exclusion list more configurable
37096         * top/maint.mk (update-copyright): Default to excluding COPYING,
37097         but allow an override, in case someone does want to update that file.
37098
37099         maint.mk: don't update copyright date in COPYING
37100         * top/maint.mk (update-copyright): Exclude COPYING.
37101
37102         maint.mk: add a copyright-updating rule
37103         * top/maint.mk (update-copyright): New rule.
37104         Derived from coreutils/Makefile.am.
37105
37106         update-copyright: rename some variables
37107         * build-aux/update-copyright: Rename a few variables for clarity.
37108         Tweak syntax.  List Joel E. Denny as coauthor.
37109
37110 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37111
37112         update-copyright: fix bug for 2-digit last year and add tests
37113         * build-aux/update-copyright: Fix bug.
37114         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37115         specified.
37116         * modules/update-copyright-tests: New
37117         * tests/test-update-copyright.sh: New.
37118
37119 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37120
37121         update-copyright: handle leading tabs in line prefix
37122         * build-aux/update-copyright: Count leading tabs as 8 spaces
37123         when computing margin.  This helps with the formatting of
37124         ChangeLogs, for example.
37125         Fix documentation a little.
37126
37127 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37128
37129         update-copyright: support EOL=\r\n
37130         * build-aux/update-copyright: Implement that.
37131
37132 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37133
37134         update-copyright: automatically format copyright statements
37135         * build-aux/update-copyright: Implement that.
37136         Also, be a little more predictable and safer by always failing
37137         when the full copyright format is not perfectly recognized as an
37138         unbroken whole.  Discussed at
37139         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37140         Rewrite documentation.
37141
37142 2009-08-03  Bruno Haible  <bruno@clisp.org>
37143
37144         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37145
37146 2009-08-02  Bruno Haible  <bruno@clisp.org>
37147
37148         Tests for module 'uname'.
37149         * modules/uname-tests: New file.
37150         * tests/test-uname.c: New file.
37151
37152         New module 'uname'.
37153         * lib/uname.c: New file.
37154         * m4/uname.m4: New file.
37155         * modules/uname: New file.
37156         * doc/posix-functions/uname.texi: Mention the new module.
37157
37158 2009-08-02  Bruno Haible  <bruno@clisp.org>
37159
37160         Tests for module 'sys_utsname'.
37161         * modules/sys_utsname-tests: New file.
37162         * tests/test-sys_utsname.c: New file.
37163
37164         New module 'sys_utsname'.
37165         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37166         * m4/sys_utsname_h.m4: New file.
37167         * modules/sys_utsname: New file.
37168         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37169
37170 2009-08-02  Bruno Haible  <bruno@clisp.org>
37171
37172         Implicitly initialize the sockets library.
37173         * lib/gethostname.c: Include sockets.h.
37174         (rpl_gethostname): Invoke gl_sockets_startup.
37175         * lib/socket.c: Include sockets.h.
37176         (rpl_socket): Invoke gl_sockets_startup.
37177         * modules/gethostname (Depends-on): Add sockets.
37178         * modules/socket (Depends-on): Likewise.
37179         * tests/test-poll.c: Don't include sockets.h.
37180         (main): Don't invoke gl_sockets_startup.
37181         * tests/test-select.c: Don't include sockets.h.
37182         (main): Don't invoke gl_sockets_startup.
37183
37184 2009-08-02  Bruno Haible  <bruno@clisp.org>
37185
37186         Allow multiple calls to gl_sockets_startup.
37187         * lib/sockets.c (initialized_sockets_version): New variable.
37188         (gl_sockets_startup): Do nothing if already called for this or a higher
37189         version.
37190         (gl_sockets_cleanup): Reset initialized_sockets_version.
37191
37192 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37193
37194         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37195         different project/version.
37196
37197 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37198             Bruno Haible  <bruno@clisp.org>
37199
37200         Tests for module 'pipe-filter-gi'.
37201         * modules/pipe-filter-gi-tests: New file.
37202         * tests/test-pipe-filter-gi1.sh: New file.
37203         * tests/test-pipe-filter-gi1.c: New file.
37204         * tests/test-pipe-filter-gi2.sh: New file.
37205         * tests/test-pipe-filter-gi2-main.c: New file.
37206         * tests/test-pipe-filter-gi2-child.c: New file.
37207
37208         New module 'pipe-filter-gi'.
37209         * lib/pipe-filter-gi.c: New file.
37210         * modules/pipe-filter-gi: New file.
37211
37212 2009-08-02  Bruno Haible  <bruno@clisp.org>
37213             Paolo Bonzini  <bonzini@gnu.org>
37214
37215         Tests for module 'pipe-filter-ii'.
37216         * modules/pipe-filter-ii-tests: New file.
37217         * tests/test-pipe-filter-ii1.sh: New file.
37218         * tests/test-pipe-filter-ii1.c: New file.
37219         * tests/test-pipe-filter-ii2.sh: New file.
37220         * tests/test-pipe-filter-ii2-main.c: New file.
37221         * tests/test-pipe-filter-ii2-child.c: New file.
37222
37223         New module 'pipe-filter-ii'.
37224         * lib/pipe-filter.h: New file.
37225         * lib/pipe-filter-ii.c: New file.
37226         * lib/pipe-filter-aux.h: New file.
37227         * modules/pipe-filter-ii: New file.
37228
37229 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37230
37231         * lib/gc-libgcrypt.c: Change copyright to FSF.
37232         * lib/gc-gnulib.c: Likewise.
37233
37234 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37235
37236         * lib/gethostname.c: Include limits.h.
37237
37238 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37239             Bruno Haible  <bruno@clisp.org>
37240
37241         Ensure HOST_NAME_MAX as part of the gethostname module.
37242         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37243         define also HOST_NAME_MAX.
37244         * tests/test-gethostname.c: Include <limits.h>.
37245         (main): Check also HOST_NAME_MAX.
37246         * doc/posix-headers/limits.texi: Document the mingw problem.
37247
37248 2009-08-02  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37251         Add comments.
37252
37253 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37254
37255         * lib/gethostname.c: Add Windows wrapper.
37256         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37257         * modules/gethostname: Depend on sys_socket & errno, for also
37258         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37259         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37260
37261 2009-07-31  Jim Meyering  <meyering@redhat.com>
37262
37263         getloadavg: fix symbol name in comment
37264         * lib/getloadavg.c: Correct a typo I introduced when adding
37265         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37266         Matt Kraai spotted the problem.
37267
37268 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37269
37270         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37271         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37272         code also if ! defined N_NAME_POINTER.
37273         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37274         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37275         but the n_name member is a 12-byte array.
37276
37277 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37278
37279         update-copyright: generalize comment handling
37280         * build-aux/update-copyright: Handle copyright statements
37281         within more comment styles.
37282         Document usage.
37283         Report any file with an external copyright holder or parse failure.
37284
37285 2009-07-29  Jim Meyering  <meyering@redhat.com>
37286
37287         mktime: correct setting of REPLACE_MKTIME
37288         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37289
37290         update-copyright: new module
37291         * modules/update-copyright: New file.
37292         * build-aux/update-copyright: New file.
37293         * MODULES.html.sh (maint+release support): Add update-copyright.
37294
37295 2009-07-27  Bruno Haible  <bruno@clisp.org>
37296
37297         Fix compilation error when <ctime> is used and mktime is replaced.
37298         * lib/time.in.h (mktime): New declaration.
37299         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37300         REPLACE_MKTIME instead of defining mktime in config.h.
37301         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37302         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37303         Reported by Ross McFarland <rwmcfa1@neces.com>.
37304
37305 2009-07-27  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37308         Reported by Matt Kraai <mkraai@beckman.com>.
37309
37310 2009-07-25  Jim Meyering  <meyering@redhat.com>
37311
37312         maint.mk: avoid warnings about missing files
37313         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37314         diagnostic when .prev-version does not exist.
37315         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37316         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37317         nonexistent cfg.mk.
37318         Suggestions from Simon Josefsson.
37319
37320 2009-07-25  Bruno Haible  <bruno@clisp.org>
37321
37322         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37323         defined as macros. Needed on QNX 6.4.1.
37324         Reported by Matt Kraai <mkraai@beckman.com>.
37325
37326 2009-07-23  Jim Meyering  <meyering@redhat.com>
37327
37328         maint.mk: invoke "make dist" with a working value of XZ_OPT
37329         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37330
37331 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37332
37333         Make fseeko.c compile on QNX.
37334         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37335
37336 2009-07-22  Peter Simons  <simons@cryp.to>
37337
37338         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37339         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37340         * lib/md4.h: Likewise.
37341         * lib/md5.h: Likewise.
37342         * lib/sha1.h: Likewise.
37343         * lib/sha256.h: Likewise.
37344         * lib/sha512.h: Likewise.
37345
37346         tests-sha1: don't assign literal string to 'char *' variable
37347         * tests/test-sha1.c (main): Declare locals with "const" to match
37348         attributes of the right hand side.
37349
37350 2009-07-21  Eric Blake  <ebb9@byu.net>
37351
37352         dup2: fix more mingw problems
37353         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37354         fd to itself.
37355         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37356         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37357         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37358         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37359         care of mingw bugs.
37360
37361 2009-07-21  Jim Meyering  <meyering@redhat.com>
37362
37363         vc-list-files: avoid failure when /bin/sh is dash
37364         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37365         On some Debian based systems, /bin/sh is a symlink to dash, and running
37366         this command would omit the "/" following each 'tests' prefix:
37367           dash -x build-aux/vc-list-files -C . tests
37368         That is because bash and dash work differently:
37369           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37370           bash ok
37371           dash odd
37372
37373 2009-07-21  Eric Blake  <ebb9@byu.net>
37374
37375         dup2-tests: test previous patch
37376         * modules/dup2-tests: New file.
37377         * tests/test-dup2.c: Likewise.
37378         * tests/test-open.c (main): Avoid unspecified behavior.
37379         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37380         test.
37381
37382         dup2: work around mingw and cygwin 1.5 bug
37383         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37385         * modules/unistd (Makefile.am): Substitute it.
37386         * lib/unistd.in.h (dup2): Declare the replacement.
37387         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37388         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37389         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37390         * modules/execute (Depends-on): Add dup2.
37391         * modules/fseterr (Depends-on): Likewise.
37392         * modules/pipe (Depends-on): Likewise.
37393         * modules/posix_spawn-internal (Depends-on): Likewise.
37394
37395 2009-07-21  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/.gitattributes: New file.
37398
37399 2009-07-20  Bruno Haible  <bruno@clisp.org>
37400
37401         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37402         (main): Use it.
37403
37404 2009-07-20  Eric Blake  <ebb9@byu.net>
37405
37406         test-pipe: make a bit more robust.
37407         * tests/test-pipe.c (myerr): Allow error messages regardless of
37408         what we do to stderr.
37409         (test_pipe): Rearrange to avoid deadlock.
37410         (child_main): Try a larger read, to ensure we avoided deadlock.
37411         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37412         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37413         if misused.
37414
37415 2009-07-19  Jim Meyering  <meyering@redhat.com>
37416
37417         fts: avoid false-positive cycle-detection
37418         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37419         for each new command line argument.
37420
37421 2009-07-19  Bruno Haible  <bruno@clisp.org>
37422
37423         Fix build error on mingw with the modules sys_select and unistd.
37424         * modules/acl-tests (Depends-on): Add close.
37425         * modules/binary-io-tests (Depends-on): Likewise.
37426         * modules/closein-tests (Depends-on): Likewise.
37427         * modules/flock-tests (Depends-on): Likewise.
37428         * modules/fsync-tests (Depends-on): Likewise.
37429         * modules/lseek-tests (Depends-on): Likewise.
37430         * modules/pipe-tests (Depends-on): Likewise.
37431         * modules/posix_spawn-tests (Depends-on): Likewise.
37432         * modules/posix_spawnp-tests (Depends-on): Likewise.
37433         * modules/stat-time-tests (Depends-on): Likewise.
37434         * modules/yesno-tests (Depends-on): Likewise.
37435
37436 2009-07-19  Bruno Haible  <bruno@clisp.org>
37437
37438         Unify conditionals.
37439         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37440         macros, not at the compiler macros.
37441         * lib/pipe.c: Likewise.
37442         * lib/execute.c: Likewise.
37443         * lib/spawni.c: Likewise.
37444
37445 2009-07-19  Bruno Haible  <bruno@clisp.org>
37446
37447         Fix handling of closed stdin/stdout/stderr on mingw.
37448         * lib/w32spawn.h: Include unistd.h.
37449         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37450         file descriptor with O_NOINHERIT flag.
37451         (fd_safer_noinherit): New function, based on fd-safer.c.
37452         (dup_safer_noinherit): New function, based on dup-safer.c.
37453         (undup_safer_noinherit): New function.
37454         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37455         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37456         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37457         instead of fd_safer.
37458         * tests/test-pipe.c: Include <windows.h>.
37459         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37460         result.
37461
37462         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37463         from main.
37464         (test_pipe): Pass an extra argument for disambiguation.
37465         (main): Invoke parent_main or child_main.
37466
37467         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37468         consistently.
37469
37470 2009-07-18  Eric Blake  <ebb9@byu.net>
37471
37472         test-pipe: fix mingw build
37473         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37474
37475 2009-07-18  Bruno Haible  <bruno@clisp.org>
37476
37477         * modules/pipe-tests (Makefile.am): Fix typo.
37478
37479 2009-07-18  Eric Blake  <ebb9@byu.net>
37480
37481         error: fix mingw build
37482         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37483         Reported by Bruno Haible.
37484
37485         error: avoid undefined use of stdout
37486         * lib/error.c (error, error_at_line): Check that fd 1 is open
37487         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37488         is handling faults and the close_stdout module wants to report the
37489         detection of closed stdout as an error.
37490
37491 2009-07-17  Eric Blake  <ebb9@byu.net>
37492
37493         pipe: be robust in face of closed fds
37494         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37495         should cause child to misbehave.
37496         * modules/pipe-tests: New module.
37497         * tests/test-pipe.c: New file.
37498         * tests/test-pipe.sh: New file.
37499         Reported by Akim Demaille.
37500
37501 2009-07-14  Bruno Haible  <bruno@clisp.org>
37502
37503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37504         Reported by anonymous kc.
37505
37506 2009-07-07  Jim Meyering  <meyering@redhat.com>
37507
37508         maint.mk: don't look for translatable strings in *.m4 or *.mk
37509         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37510         when searching for translatable strings.
37511
37512 2009-07-05  Jim Meyering  <meyering@redhat.com>
37513
37514         remove superfluous parentheses in STREQ definition
37515         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37516         * lib/getugroups.c (STREQ): Likewise.
37517         * lib/fnmatch.c (STREQ): Likewise.
37518         Spotted by Bruno Haible.
37519
37520 2009-07-04  Jim Meyering  <meyering@redhat.com>
37521
37522         argv-iter: new module
37523         * MODULES.html.sh: Add argv-iter.
37524         * lib/argv-iter.c, lib/argv-iter.h: New files.
37525         * modules/argv-iter: New file.
37526         * modules/argv-iter-tests: New file.
37527         * tests/test-argv-iter.c: Test it.
37528
37529 2009-07-04  Bruno Haible  <bruno@clisp.org>
37530
37531         Fix assertion.
37532         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37533         contains more exact copies of a given entry than file2, leave the extra
37534         copies unpaired rather than aborting.
37535         Reported by Eric Blake.
37536
37537 2009-07-02  Bruno Haible  <bruno@clisp.org>
37538
37539         Speedup git-merge-changelog for git cherry-pick.
37540         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37541         (entries_mapping_get): New function, extracted from compute_mapping.
37542         (entries_mapping_reverse_get): New function.
37543         (compute_mapping): Add a 'full' argument. Return the result in a
37544         'struct entries_mapping'.
37545         (main): Update. Access the mappings through entries_mapping_get.
37546         Reported by Eric Blake.
37547
37548 2009-07-02  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37551         best_i.
37552
37553 2009-07-02  Bruno Haible  <bruno@clisp.org>
37554
37555         Speed up approximate search for matching ChangeLog entries.
37556         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37557         argument. Call fstrcmp_bounded instead of fstrcmp.
37558         (compute_mapping, try_split_merged_entry, main): Update callers.
37559
37560 2009-07-02  Bruno Haible  <bruno@clisp.org>
37561
37562         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37563
37564 2009-06-30  Bruno Haible  <bruno@clisp.org>
37565
37566         Reduce the number of uc_is_cased calls.
37567         * lib/unicase.h (casing_suffix_context_t): Add
37568         'first_char_except_ignorable' field.
37569         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37570         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37571         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37572         Update initializer.
37573         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37574         case-ignorable characters.
37575         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37576         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37577         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37578         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37579         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37580
37581 2009-06-30  Bruno Haible  <bruno@clisp.org>
37582
37583         Tests for module 'unicase/ignorable'.
37584         * modules/unicase/ignorable-tests: New file.
37585         * tests/unicase/test-ignorable.c: New file, generated by
37586         gen-uni-tables.
37587
37588         Tests for module 'unicase/cased'.
37589         * modules/unicase/cased-tests: New file.
37590         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37591         * tests/unicase/test-predicate-part1.h: New file, derived from
37592         tests/unictype/test-predicate-part1.h.
37593         * tests/unicase/test-predicate-part2.h: New file, same as
37594         tests/unictype/test-predicate-part2.h.
37595
37596         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37597         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37598         (output_casing_properties): New function.
37599         (main): Call it.
37600         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37601         * lib/unicase/cased.c: Include unictype/bitmap.h.
37602         (uc_is_cased): Define through a bitmap lookup.
37603         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37604         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37605         (uc_is_case_ignorable): Define through a bitmap lookup.
37606         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37607         lib/unictype/bitmap.h.
37608         (Depends-on): Add inline. Clean up.
37609         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37610         lib/unictype/bitmap.h.
37611         (Depends-on): Add inline. Clean up.
37612         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37613         recognition.
37614         * tests/unicase/test-u16-tolower.c (main): Likewise.
37615         * tests/unicase/test-u32-tolower.c (main): Likewise.
37616
37617 2009-06-30  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37620         * lib/unicase/u16-casemap.c: Likewise.
37621         * lib/unicase/u32-casemap.c: Likewise.
37622
37623 2009-06-29  Bruno Haible  <bruno@clisp.org>
37624
37625         Define u32_casefold as a wrapper around u32_ct_casefold.
37626         * lib/unicase/u32-casefold.c: Update.
37627         * modules/unicase/u32-casefold (Depends-on): Add
37628         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37629         unicase/empty-suffix-context. Clean up.
37630
37631         Define u16_casefold as a wrapper around u16_ct_casefold.
37632         * lib/unicase/u16-casefold.c: Update.
37633         * modules/unicase/u16-casefold (Depends-on): Add
37634         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37635         unicase/empty-suffix-context. Clean up.
37636
37637         Define u8_casefold as a wrapper around u8_ct_casefold.
37638         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37639         * lib/unicase/u8-casefold.c: Update.
37640         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37641         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37642
37643         Define u32_totitle as a wrapper around u32_ct_totitle.
37644         * lib/unicase/u32-totitle.c: Update.
37645         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37646         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37647
37648         Define u16_totitle as a wrapper around u16_ct_totitle.
37649         * lib/unicase/u16-totitle.c: Update.
37650         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37651         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37652
37653         Define u8_totitle as a wrapper around u8_ct_totitle.
37654         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37655         functions.
37656         (FUNC): Delegate to U_CT_TOTITLE.
37657         * lib/unicase/u8-totitle.c: Update.
37658         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37659         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37660
37661         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37662         invocation.
37663         * modules/unicase/u32-tolower (Depends-on): Add
37664         unicase/empty-prefix-context, unicase/empty-suffix-context.
37665
37666         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37667         invocation.
37668         * modules/unicase/u16-tolower (Depends-on): Add
37669         unicase/empty-prefix-context, unicase/empty-suffix-context.
37670
37671         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37672         * modules/unicase/u8-tolower (Depends-on): Add
37673         unicase/empty-prefix-context, unicase/empty-suffix-context.
37674
37675         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37676         invocation.
37677         * modules/unicase/u32-toupper (Depends-on): Add
37678         unicase/empty-prefix-context, unicase/empty-suffix-context.
37679
37680         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37681         invocation.
37682         * modules/unicase/u16-toupper (Depends-on): Add
37683         unicase/empty-prefix-context, unicase/empty-suffix-context.
37684
37685         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37686         * modules/unicase/u8-toupper (Depends-on): Add
37687         unicase/empty-prefix-context, unicase/empty-suffix-context.
37688
37689         New module 'unicase/u32-ct-casefold'.
37690         * lib/unicase/u32-ct-casefold.c: New file.
37691         * modules/unicase/u32-ct-casefold: New file.
37692
37693         New module 'unicase/u16-ct-casefold'.
37694         * lib/unicase/u16-ct-casefold.c: New file.
37695         * modules/unicase/u16-ct-casefold: New file.
37696
37697         New module 'unicase/u8-ct-casefold'.
37698         * lib/unicase/u8-ct-casefold.c: New file.
37699         * lib/unicase/u-ct-casefold.h: New file, derived from
37700         lib/unicase/u-casefold.h.
37701         * modules/unicase/u8-ct-casefold: New file.
37702
37703         New module 'unicase/u32-ct-totitle'.
37704         * lib/unicase/u32-ct-totitle.c: New file.
37705         * modules/unicase/u32-ct-totitle: New file.
37706
37707         New module 'unicase/u16-ct-totitle'.
37708         * lib/unicase/u16-ct-totitle.c: New file.
37709         * modules/unicase/u16-ct-totitle: New file.
37710
37711         New module 'unicase/u8-ct-totitle'.
37712         * lib/unicase/u8-ct-totitle.c: New file.
37713         * lib/unicase/u-ct-totitle.h: New file, derived from
37714         lib/unicase/u-totitle.h.
37715         * modules/unicase/u8-ct-totitle: New file.
37716
37717         New module 'unicase/u32-ct-tolower'.
37718         * lib/unicase/u32-ct-tolower.c: New file.
37719         * modules/unicase/u32-ct-tolower: New file.
37720
37721         New module 'unicase/u16-ct-tolower'.
37722         * lib/unicase/u16-ct-tolower.c: New file.
37723         * modules/unicase/u16-ct-tolower: New file.
37724
37725         New module 'unicase/u8-ct-tolower'.
37726         * lib/unicase/u8-ct-tolower.c: New file.
37727         * modules/unicase/u8-ct-tolower: New file.
37728
37729         New module 'unicase/u32-ct-toupper'.
37730         * lib/unicase/u32-ct-toupper.c: New file.
37731         * modules/unicase/u32-ct-toupper: New file.
37732
37733         New module 'unicase/u16-ct-toupper'.
37734         * lib/unicase/u16-ct-toupper.c: New file.
37735         * modules/unicase/u16-ct-toupper: New file.
37736
37737         New module 'unicase/u8-ct-toupper'.
37738         * lib/unicase/u8-ct-toupper.c: New file.
37739         * modules/unicase/u8-ct-toupper: New file.
37740
37741         Add context arguments to u*_casemap functions.
37742         * lib/unicase/unicasemap.h: Include unicase.h.
37743         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37744         suffix_context arguments.
37745         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37746         functions.
37747         (FUNC): Add prefix_context and suffix_context arguments. Use
37748         uc_is_cased and uc_is_case_ignorable.
37749         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37750         * lib/unicase/u16-casemap.c: Likewise.
37751         * lib/unicase/u32-casemap.c: Likewise.
37752         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37753         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37754         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37755         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37756         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37757         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37758
37759         New module 'unicase/u32-suffix-context'.
37760         * lib/unicase/u32-suffix-context.c: New file.
37761         * modules/unicase/u32-suffix-context: New file.
37762
37763         New module 'unicase/u16-suffix-context'.
37764         * lib/unicase/u16-suffix-context.c: New file.
37765         * modules/unicase/u16-suffix-context: New file.
37766
37767         New module 'unicase/u8-suffix-context'.
37768         * lib/unicase/u8-suffix-context.c: New file.
37769         * lib/unicase/u-suffix-context.h: New file.
37770         * modules/unicase/u8-suffix-context: New file.
37771
37772         New module 'unicase/empty-suffix-context'.
37773         * lib/unicase/empty-suffix-context.c: New file.
37774         * modules/unicase/empty-suffix-context: New file.
37775
37776         New module 'unicase/u32-prefix-context'.
37777         * lib/unicase/u32-prefix-context.c: New file.
37778         * modules/unicase/u32-prefix-context: New file.
37779
37780         New module 'unicase/u16-prefix-context'.
37781         * lib/unicase/u16-prefix-context.c: New file.
37782         * modules/unicase/u16-prefix-context: New file.
37783
37784         New module 'unicase/u8-prefix-context'.
37785         * lib/unicase/u8-prefix-context.c: New file.
37786         * lib/unicase/u-prefix-context.h: New file.
37787         * lib/unicase/context.h: New file.
37788         * modules/unicase/u8-prefix-context: New file.
37789
37790         New module 'unicase/empty-prefix-context'.
37791         * lib/unicase/empty-prefix-context.c: New file.
37792         * modules/unicase/empty-prefix-context: New file.
37793
37794         New module 'unicase/ignorable'.
37795         * lib/unicase/ignorable.c: New file.
37796         * modules/unicase/ignorable: New file.
37797
37798         New module 'unicase/cased'.
37799         * lib/unicase/caseprop.h: New file.
37800         * lib/unicase/cased.c: New file.
37801         * modules/unicase/cased: New file.
37802
37803         New functions for case mapping of substrings.
37804         * lib/unicase.h (casing_prefix_context_t): New type.
37805         (unicase_empty_prefix_context): New variable.
37806         (u8_casing_prefix_context, u16_casing_prefix_context,
37807         u32_casing_prefix_context, u8_casing_prefixes_context,
37808         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37809         declarations.
37810         (casing_suffix_context_t): New type.
37811         (unicase_empty_suffix_context): New variable.
37812         (u8_casing_suffix_context, u16_casing_suffix_context,
37813         u32_casing_suffix_context, u8_casing_suffixes_context,
37814         u16_casing_suffixes_context, u32_casing_suffixes_context,
37815         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37816         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37817         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37818         declarations.
37819
37820 2009-06-28  Jim Meyering  <meyering@redhat.com>
37821
37822         boostrap: indent only with spaces
37823         * build-aux/bootstrap: Indent only with spaces, never TABs.
37824
37825         bootstrap: split long lines
37826         * build-aux/bootstrap: Keep line length < 80.
37827
37828         bootstrap: sync from coreutils
37829         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37830         just as autoreconf does.  Verify a list of prerequisite
37831         package-name,version-number pairs if defined in bootstrap.conf.
37832         Refer to README-prereq, if prerequisites are not satisfied.
37833
37834 2009-06-27  Eric Blake  <ebb9@byu.net>
37835
37836         tests: add test for bogus NULL definition
37837         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37838         * tests/test-stdlib.c: Likewise.
37839         * tests/test-string.c: Likewise.
37840         * tests/test-locale.c: Likewise.
37841         * tests/test-unistd.c: Likewise.
37842         * modules/stdio-tests (Depends-on): Add verify.
37843         * modules/stdlib-tests (Depends-on): Likewise.
37844         * modules/string-tests (Depends-on): Likewise.
37845         * modules/locale-tests (Depends-on): Likewise.
37846         * modules/unistd-tests (Depends-on): Likewise.
37847
37848 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37849
37850         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37851         self-explaining comment.
37852         * m4/selinux-selinux-h: Update serial.
37853         (gl_LIBSELINUX): New macro, adding a warning for missing development
37854         packages to code extracted from...
37855         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37856         Add warning for missing development packages here, too.
37857
37858 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37859
37860         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37861
37862 2009-06-25  Eric Blake  <ebb9@byu.net>
37863
37864         version-etc: fix regression
37865         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37866         gcc.
37867         (version_etc): Use it, to catch bugs with trailing NULL.
37868         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37869         (version_etc_va): Fix logic bug.
37870         * modules/version-etc-tests: Add test.
37871         * tests/test-version-etc.c: New file.
37872         * tests/test-version-etc.sh: Likewise.
37873
37874 2009-06-25  Sam Steingold  <sds@gnu.org>
37875
37876         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37877         mbtowc declaration.
37878
37879 2009-06-25  Eric Blake  <ebb9@byu.net>
37880
37881         fpurge: migrate into <stdio.h>
37882         * lib/fpurge.h: Delete...
37883         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37884         * lib/fpurge.c (fpurge): Change declaring header.
37885         * modules/fpurge (Files): Drop deleted file.
37886         (Depends-on): Add stdio.
37887         (configure.ac): Set witness.
37888         * modules/stdio (Makefile.am): Support fpurge macros.
37889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37890         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37891         * lib/fflush.c: Update client.
37892         * tests/test-fpurge.c: Likewise.
37893         * NEWS: Mention the change.
37894
37895 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37896
37897         * lib/argp-version-etc.c (program_authors): Add const
37898         qualifier.
37899         * lib/version-etc.c: Fix typos in the comments.
37900         * modules/argp-version-etc: Depends on version-etc.
37901
37902 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37903
37904         argp-version-etc: new module.
37905
37906         * lib/argp-version-etc.c: New file.
37907         * lib/argp-version-etc.h: New file.
37908         * modules/argp-version-etc: New file.
37909         * modules/argp-version-etc-tests: New file.
37910         * tests/test-argp-version-etc.c: New test.
37911         * tests/test-argp-version-etc-1.sh: New test.
37912
37913 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37914
37915         Provide additional interfaces and documentation for version-etc
37916         module.
37917
37918         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37919         interfaces.
37920         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37921         prototypes.
37922
37923 2009-06-24  Bruno Haible  <bruno@clisp.org>
37924
37925         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37926         HAVE_LIB${NAME} macro.
37927         Reported by Sam Steingold <sds@gnu.org>.
37928
37929 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37930
37931         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37932         needed.
37933
37934 2009-06-21  Bruno Haible  <bruno@clisp.org>
37935
37936         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37937         work.
37938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37939         together with LIB${NAME}, LTLIB${NAME}.
37940         Reported by Sam Steingold <sds@gnu.org>.
37941
37942 2009-06-20  Jim Meyering  <meyering@redhat.com>
37943
37944         tests: make sc_require_test_exit_idiom more generic
37945         * top/maint.mk (Exit_witness_file): New overridable variable.
37946         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37947         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37948
37949 2009-06-19  Jim Meyering  <meyering@redhat.com>
37950
37951         hash: reverse order of src/dst parameters in an internal interface
37952         * lib/hash.c (transfer_entries): Reverse order of parameters to
37953         put DST before SRC.  Adjust callers.
37954
37955         tests: test-hash: avoid wholesale duplication
37956         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37957         Instead, use a loop and add a single conditional.
37958
37959         tests: test-hash: allow seed selection via a command line argument
37960         * tests/test-hash.c (get_seed): New function.
37961         (main): Use it.
37962
37963 2009-06-19  Eric Blake  <ebb9@byu.net>
37964
37965         hash: avoid memory leak on allocation failure
37966         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37967         failure.  Factor repeated algorithm...
37968         (transfer_entries): ...into new helper routine.
37969         (hash_delete): React to hash_rehash return value.
37970
37971         hash: reduce memory pressure in hash_rehash no-op case
37972         * lib/hash.c (next_prime): Avoid overflow.
37973         (hash_initialize): Factor bucket size computation...
37974         (compute_bucket_size): ...into new helper function.
37975         (hash_rehash): Use new function and open coding to reduce memory
37976         pressure, and avoid a memory leak in USE_OBSTACK code.
37977         Reported by Jim Meyering.
37978
37979 2009-06-18  Eric Blake  <ebb9@byu.net>
37980
37981         hash: make rotation more obvious
37982         * modules/hash (Depends-on): Add bitrotate and stdint.
37983         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37984         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37985         (SIZE_MAX): Rely on headers for definition.
37986         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37987         (raw_hasher): Use rotr_sz.
37988         Suggested by Jim Meyering.
37989
37990         hash: fix memory leak in last patch
37991         * lib/hash.c (hash_rehash): Avoid memory leak.
37992
37993         hash: avoid no-op rehashing
37994         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37995
37996         hash: provide default callback functions
37997         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37998         (hash_initialize): Use them as defaults.
37999         * tests/test-hash.c (main): Test this.
38000
38001         hash: minor optimization
38002         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38003         when possible.
38004         (hash_initialize): Document this promise.
38005         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38006         * tests/test-hash.c (hash_compare_strings): Test this.
38007
38008 2009-06-18  Bruno Haible  <bruno@clisp.org>
38009
38010         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38011         going to be replaced anyway.
38012
38013 2009-06-18  Bruno Haible  <bruno@clisp.org>
38014
38015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38016         in one place.
38017         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38018         be replaced anyway.
38019
38020 2009-06-18  Eric Blake  <ebb9@byu.net>
38021
38022         hash: check for resize before insertion
38023         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38024         threshold before insertion, so that a pathological hash_rehash
38025         that fills every bucket can still trigger another rehash.
38026
38027 2009-06-18  Jim Meyering  <meyering@redhat.com>
38028
38029         hash-tests: add a loop around the small tests
38030         * tests/test-hash.c (main): Repeat small tests with selected
38031         small initial table sizes.
38032
38033 2009-06-17  Eric Blake  <ebb9@byu.net>
38034
38035         hash: minor cleanups
38036         * lib/hash.h (hash_entry): Make opaque, by moving...
38037         * lib/hash.c (hash_entry): ...here.
38038         (hash_insert): Clarify restrictions on what can be inserted.
38039         (hash_get_next): Clarify when it is safe to remove an element
38040         during traversal.
38041         (check_tuning): Skip verification when tuning is known safe.
38042         (hash_initialize): Clarify restrictions on tuning.
38043
38044 2009-06-17  Jim Meyering  <jim@meyering.net>
38045         and Eric Blake  <ebb9@byu.net>
38046
38047         hash-tests: new module
38048         * modules/hash-tests: New file.
38049         * tests/test-hash.c: New file.
38050
38051 2009-06-17  Eric Blake  <ebb9@byu.net>
38052
38053         strstr-simple: document new module
38054         * MODULES.html.sh: Document new module.
38055
38056         strstr, strcasestr: replace on platforms with broken memchr
38057         * modules/strstr: Split into...
38058         * modules/strstr-simple: ...new module that does not care about
38059         performance, but does care about glibc bug.
38060         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38061         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38062         if platform memchr is broken, per Debian bug 521737.
38063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38064         memchr.
38065         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38066         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38067         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38068         * modules/mountlist (Depends-on): Add strstr-simple.
38069         * modules/gen-uni-tables (Depends-on): Likewise.
38070         * modules/argz (Depends-on): Add strstr.
38071
38072 2009-06-17  Bruno Haible  <bruno@clisp.org>
38073
38074         * modules/posix_spawn-internal (Depends-on): Add errno.
38075
38076 2009-06-17  Bruno Haible  <bruno@clisp.org>
38077
38078         Define missing ESTALE on Interix 3.5.
38079         * lib/errno.in.h (ESTALE): Assign a value if missing.
38080         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38082         missing.
38083         * doc/posix-headers/errno.texi: Mention the Interix bug.
38084         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38085
38086 2009-06-15  Eric Blake  <ebb9@byu.net>
38087
38088         memchr, memchr2: add valgrind exception
38089         * lib/memchr.valgrind: New file.
38090         * lib/memchr2.valgrind: New file.
38091         * modules/memchr (Files): Distribute valgrind file.
38092         * modules/memchr2 (Files): Likewise.
38093
38094         docs: memchr is no longer obsolete
38095         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38096         * lib/string.in.h (memchr): Simplify logic.
38097
38098 2009-06-14  Jim Meyering  <meyering@redhat.com>
38099
38100         link-follow: fix the "checking..." message to not mention trailing slash
38101         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38102         never considered trailing slashes.
38103
38104 2009-06-14  Bruno Haible  <bruno@clisp.org>
38105
38106         * m4/memchr.m4: Mention also the bug on IA-64.
38107         * doc/posix-functions/memchr.texi: Likewise.
38108
38109 2009-06-12  Eric Blake  <ebb9@byu.net>
38110
38111         memchr: detect broken x86_64 and alpha implementations
38112         * modules/memchr-tests (Depends-on): Move mmap detection...
38113         * modules/memchr (Depends-on): ...here.
38114         (configure.ac): Set indicator.
38115         * lib/string.in.h (memchr): Declare replacement.
38116         * modules/string (Makefile.am): Trigger replacement.
38117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38118         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38119         bugs.
38120         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38121         * modules/getpagesize (License): Relax license.
38122
38123 2009-06-11  Bruno Haible  <bruno@clisp.org>
38124
38125         * lib/idpriv.h: Add more references.
38126
38127 2009-06-08  Bruno Haible  <bruno@clisp.org>
38128
38129         Tests for module 'idpriv-droptemp'.
38130         * modules/idpriv-droptemp-tests: New file.
38131         * tests/test-idpriv-droptemp.sh: New file.
38132         * tests/test-idpriv-droptemp.su.sh: New file.
38133         * tests/test-idpriv-droptemp.c: New file.
38134
38135         New module 'idpriv-droptemp'.
38136         * lib/idpriv-droptemp.c: New file.
38137         * modules/idpriv-droptemp: New file.
38138
38139 2009-06-08  Bruno Haible  <bruno@clisp.org>
38140
38141         Tests for module 'idpriv-drop'.
38142         * modules/idpriv-drop-tests: New file.
38143         * tests/test-idpriv-drop.sh: New file.
38144         * tests/test-idpriv-drop.su.sh: New file.
38145         * tests/test-idpriv-drop.c: New file.
38146
38147         New module 'idpriv-drop'.
38148         * lib/idpriv.h: New file.
38149         * lib-idpriv-drop.c: New file.
38150         * m4/idpriv.m4: New file.
38151         * modules/idpriv-drop: New file.
38152
38153 2009-06-08  Bruno Haible  <bruno@clisp.org>
38154
38155         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38156         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38157         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38158         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38159         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38160         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38161         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38162
38163 2009-06-08  Eric Blake  <ebb9@byu.net>
38164
38165         test-strstr: use memory fence, when possible
38166         * tests/test-strstr.c (main): Use memory fence, in order to be
38167         more likely to trigger Debian bug 521737.
38168         * modules/strstr-tests (Files): Pull in additional files.
38169
38170         memchr: no longer obsolete, for wider field testing
38171         * modules/memchr (Status, Notice): Delete, this module is no
38172         longer obsolete.
38173         * modules/vasnprintf (Depends-on): Add memchr.
38174
38175 2009-06-07  Jim Meyering  <meyering@redhat.com>
38176
38177         hash: declare some functions with the warn_unused_result attribute
38178         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38179
38180 2009-06-07  Bruno Haible  <bruno@clisp.org>
38181
38182         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38183         Reported by Eric Blake.
38184
38185 2009-06-06  Eric Blake  <ebb9@byu.net>
38186
38187         test-alignof: fix typo with long double
38188         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38189         compiler error.
38190
38191 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38192
38193         Escape non-texinfo { and }s.
38194         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38195         markup error.
38196
38197 2009-06-04  Jim Meyering  <meyering@redhat.com>
38198
38199         gitlog-to-changelog: don't infloop on an empty commit log
38200         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38201         Reported by Boris Petersen <transacid@centerim.org>.
38202
38203 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38204
38205         version-etc: extend for packagers
38206         Add three new configure options, intended for packagers:
38207           --with-packager="packager name"
38208           --with-packager-version="packager-specific version"
38209           --with-packager-bug-reports="packager bug reporting"
38210         An example with coreutils:
38211           $ ./configure \
38212             --with-packager=Gentoo \
38213             --with-packager-bug-report=http://bugs.gentoo.org/ \
38214             --with-packager-version="patchset 1.6"
38215           $ ./src/ls --version | head -n2
38216           ls (GNU coreutils) 7.1-dirty
38217           Packaged by Gentoo (patchset 1.6)
38218         Note that the bug reporting info via --help doesn't show up because
38219         coreutils uses its own custom emit_bug_reporting_address() implementation
38220         in src/system.h.  If it didn't, it'd look like:
38221           $ ./src/ls --help | tail -n4
38222           Report bugs to <bug-coreutils@gnu.org>.
38223           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38224           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38225           General help using GNU software: <http://www.gnu.org/gethelp/>.
38226         * lib/version-etc.c: Print new information, if provided.
38227         * m4/version-etc.m4: New file.
38228         * modules/version-etc (Files): Add m4/version-etc.m4.
38229         (configure.ac): Add gl_VERSION_ETC.
38230
38231 2009-05-31  Bruno Haible  <bruno@clisp.org>
38232
38233         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38234         and 'int64_t'.
38235         * modules/alignof-tests (Dependencies): Add stdint.
38236         Reported by Eric Blake.
38237
38238 2009-05-31  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38241         restriction due to compiler bugs.
38242         Reported by Eric Blake.
38243
38244 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38245             Bruno Haible  <bruno@clisp.org>
38246
38247         Fix test-alignof failure.
38248         * lib/alignof.h (alignof_slot): New macro.
38249         (alignof_type): New macro, with the same semantics as the previous
38250         'alignof'.
38251         (alignof): Alias to alignof_slot.
38252         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38253         check that the results are usable as constant expressions.
38254
38255 2009-05-31  Bruno Haible  <bruno@clisp.org>
38256
38257         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38258         * tests/test-memchr.c (main): Check that memchr does not read past the
38259         first occurrence of the byte.
38260         * tests/test-strstr.c (main): Update comment.
38261         Suggested by Eric Blake.
38262
38263 2009-05-30  Bruno Haible  <bruno@clisp.org>
38264
38265         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38266         detail how to use dumpbin.
38267         Reported by David Byron <dbyron@dbyron.com>.
38268
38269 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38270
38271         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38272
38273 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38274
38275         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38276
38277 2009-05-28  Bruno Haible  <bruno@clisp.org>
38278
38279         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38280         build-aux/ files.
38281
38282 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38283
38284         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38285
38286 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38287
38288         * gnulib-tool (sed_transform_main_lib_file)
38289         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38290         regexps.
38291
38292 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38293
38294         * tests/test-strstr.c: Add another self-test.
38295         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38296         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38297
38298 2009-05-23  Bruno Haible  <bruno@clisp.org>
38299
38300         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38301         change.
38302
38303 2009-05-21  Bruno Haible  <bruno@clisp.org>
38304
38305         Simplify use of mode_t varargs.
38306         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38307         uses 'mode_t' or 'int'.
38308         * lib/openat.c (openat): Likewise.
38309         * lib/open-safer.c (open_safer): Likewise.
38310         * m4/mode_t.m4: New file.
38311         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38312         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38313         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38314         * modules/open (Files): Add m4/mode_t.m4.
38315         * modules/openat (Files): Likewise.
38316         * modules/fcntl-safer (Files): Likewise.
38317         Suggested by Eric Blake.
38318
38319 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38320
38321         * doc/glibc-functions/fallocate.texi: New file.
38322         * doc/gnulib.texi: Include it.
38323
38324 2009-05-21  Eric Blake  <ebb9@byu.net>
38325             Bruno Haible  <bruno@clisp.org>
38326
38327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38328         invocations.
38329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38330
38331 2009-05-21  Eric Blake  <ebb9@byu.net>
38332             Bruno Haible  <bruno@clisp.org>
38333
38334         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38335         include_next. Fix of 2008-11-20 commit.
38336         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38337         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38338         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38339         NEXT_MATH_H.
38340         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38341         instead of NEXT_MATH_H.
38342
38343 2009-05-21  Bruno Haible  <bruno@clisp.org>
38344
38345         Avoid redefinition warnings for SIZE_MAX.
38346         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38347         Reported by Simon Josefsson.
38348
38349 2009-05-21  Bruno Haible  <bruno@clisp.org>
38350
38351         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38352         AC_CACHE_VAL.
38353
38354 2009-05-20  Bruno Haible  <bruno@clisp.org>
38355
38356         Make zeroptr.h work on mingw.
38357         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38358         mprotect.
38359         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38360         * modules/memchr2-tests (configure.ac): Likewise.
38361         * modules/memcmp-tests (configure.ac): Likewise.
38362         * modules/memmem-tests (configure.ac): Likewise.
38363         * modules/memrchr-tests (configure.ac): Likewise.
38364         Reported by Simon Josefsson.
38365
38366 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38367
38368         * tests/test-glob.c: Include string.h for strcmp prototype.
38369
38370 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38371
38372         * modules/getdelim (Depends-on): Add explicit stdint, although it
38373         was implicitly already pulled in via realloc-posix.
38374         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38375
38376 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38377
38378         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38379         G. Christensen" <tgc@jupiterrise.com>.
38380         * m4/sys_socket_h.m4: Check for sa_family_t.
38381         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38382         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38383         * tests/test-sys_socket.c: Check that sa_family_t works.
38384
38385 2009-05-18  Eric Blake  <ebb9@byu.net>
38386
38387         maint.mk: allow gnulib_dir in VPATH build
38388         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38389
38390 2009-05-15  Jim Meyering  <meyering@redhat.com>
38391
38392         maint.mk: Give gnulib_dir a default definition.
38393         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38394         Thus, most packages no longer need to specify this variable in cfg.mk
38395
38396 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38397
38398         rename.m4: fix typos that would make non-mingw cross-configure fail
38399         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38400
38401 2009-05-13  Eric Blake  <ebb9@byu.net>
38402
38403         mmap-anon: avoid out-of-order autoconf expansion
38404         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38405         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38406         * modules/memchr-tests (Depends-on): Add extensions.
38407         * modules/memchr2-tests (Depends-on): Add extensions.
38408         * modules/memcmp-tests (Depends-on): Add extensions.
38409         * modules/memmem-tests (Depends-on): Add extensions.
38410         * modules/memrchr-tests (Depends-on): Add extensions.
38411
38412 2009-05-13  Bruno Haible  <bruno@clisp.org>
38413
38414         Make some tests ISO C 99 compliant.
38415         * tests/zerosize-ptr.h: New file.
38416         * tests/test-memchr.c: Include zerosize-ptr.h.
38417         (main): Use a zero-size object pointer instead of NULL.
38418         * tests/test-memchr2.c: Include zerosize-ptr.h.
38419         (main): Use a zero-size object pointer instead of NULL.
38420         * tests/test-memcmp.c: Include zerosize-ptr.h.
38421         (main): Use a zero-size object pointer instead of NULL.
38422         * tests/test-memmem.c: Include zerosize-ptr.h.
38423         (main): Use a zero-size object pointer instead of NULL.
38424         * tests/test-memrchr.c: Include zerosize-ptr.h.
38425         (main): Use a zero-size object pointer instead of NULL.
38426         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38427         m4/mmap-anon.m4.
38428         (Depends-on): Add getpagesize.
38429         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38430         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38431         m4/mmap-anon.m4.
38432         (Depends-on): Add getpagesize.
38433         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38434         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38435         m4/mmap-anon.m4.
38436         (Depends-on): Add getpagesize.
38437         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38438         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38439         m4/mmap-anon.m4.
38440         (Depends-on): Add getpagesize.
38441         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38442         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38443         m4/mmap-anon.m4.
38444         (Depends-on): Add getpagesize.
38445         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38446
38447 2009-05-12  Bruno Haible  <bruno@clisp.org>
38448
38449         Tests for module 'alignof'.
38450         * modules/alignof-tests: New file.
38451         * tests/test-alignof.c: New file.
38452
38453 2009-05-12  Bruno Haible  <bruno@clisp.org>
38454
38455         Fix alignof macro.
38456         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38457         vendor compilers that are always correct.
38458
38459 2009-05-12  Bruno Haible  <bruno@clisp.org>
38460
38461         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38462         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38463         not whether its fully works.
38464
38465 2009-05-12  Bruno Haible  <bruno@clisp.org>
38466
38467         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38468
38469 2009-05-12  Jim Meyering  <meyering@redhat.com>
38470
38471         * top/maint.mk: Adjust backslash alignment.
38472
38473 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38474
38475         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38476
38477 2009-05-11  Eric Blake  <ebb9@byu.net>
38478
38479         argp: avoid undefined behavior
38480         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38481         macros.
38482
38483 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38484
38485         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38486         user.name to prevent git commit from complaining.
38487
38488 2009-05-10  Bruno Haible  <bruno@clisp.org>
38489
38490         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38491         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38492         it rewrites every file name only once.
38493         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38494
38495 2009-05-08  Bruno Haible  <bruno@clisp.org>
38496
38497         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38498         instead of 'max'.
38499
38500 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38501
38502         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38503         sockaddr_storage test.
38504
38505 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38506
38507         * modules/sys_socket (Makefile.am): Substitute
38508         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38509         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38510         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38511         * tests/test-sys_socket.c: Check sockaddr_storage.
38512
38513 2009-05-08  Bruno Haible  <bruno@clisp.org>
38514
38515         New module 'alignof'.
38516         * lib/alignof.h: New file.
38517         * modules/alignof: New file.
38518
38519 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38520             Bruno Haible  <bruno@clisp.org>
38521
38522         Fix test-file-has-acl on FreeBSD.
38523         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38524         mask is implicitly added.
38525         * tests/test-file-has-acl.c: Include <signal.h>.
38526         (main): Terminate the test after 5 seconds.
38527         * modules/acl-tests (configure.ac): Check for alarm function.
38528
38529 2009-05-04  Bruno Haible  <bruno@clisp.org>
38530
38531         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38532         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38533         * modules/errno (configure.ac): Drop AC_REQUIRE.
38534         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38535         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38536
38537 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38538
38539         * modules/glob-tests: New module.
38540         * tests/test-glob.c: Add.
38541
38542 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38543
38544         * modules/fnmatch-tests: New module.
38545         * tests/test-fnmatch.c: Add.
38546
38547 2009-05-04  Eric Blake  <ebb9@byu.net>
38548
38549         maint: make the new no-submodule-changes rule VPATH-safe
38550         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38551
38552 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38553             Bruno Haible  <bruno@clisp.org>
38554
38555         acl: Fix infinite loop on FreeBSD.
38556         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38557         of return value from acl_get_entry.
38558         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38559         Likewise.
38560
38561 2009-05-03  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/acl-internal.h (acl_entries): Clarify return value.
38564         * lib/acl_entries.c (acl_entries): Likewise.
38565
38566 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38567
38568         Bug fix in acl module.
38569         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38570
38571 2009-05-03  Bruno Haible  <bruno@clisp.org>
38572
38573         Create gperf-generated file in the source dir, not in the build dir.
38574         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38575         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38576         * modules/unicase/locale-language (unicase/locale-languages.h):
38577         Likewise.
38578         * modules/unicase/special-casing (unicase/special-casing-table.h):
38579         Likewise.
38580         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38581         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38582         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38583         Reported by Ralf Wildenhues.
38584
38585 2009-05-03  Bruno Haible  <bruno@clisp.org>
38586
38587         * modules/fnmatch (Description, configure.ac): Taken from
38588         fnmatch-posix.
38589         * modules/fnmatch-posix: Turn into a symbolic reference to the
38590         'fnmatch' module, and deprecate.
38591         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38592
38593 2009-05-03  Bruno Haible  <bruno@clisp.org>
38594
38595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38596         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38597         Reported by Ralf Wildenhues.
38598
38599 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38600
38601         * m4/fnmatch.m4: Fix fnmatch re-define.
38602
38603 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38604
38605         priv-set: new module and tests; adapt write-any-file
38606         * lib/priv-set.c: New file.
38607         * lib/priv-set.h: New file.
38608         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38609         * lib/write-any-file.c: Simplify by using priv-set module.
38610         * m4/priv-set.m4: New file.
38611         * modules/priv-set: New file.
38612         * modules/unlinkdir: Add dependency on priv-set module.
38613         * modules/write-any-file: Likewise.
38614
38615         Tests for module 'priv-set'.
38616         * modules/priv-set-tests: New file.
38617         * tests/test-priv-set.c: New file.
38618
38619 2009-05-03  Jim Meyering  <meyering@redhat.com>
38620             Bruno Haible  <bruno@clisp.org>
38621
38622         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38623         use the converted UTF-8 variant of the name instead.
38624
38625 2009-05-03  Jim Meyering  <meyering@redhat.com>
38626
38627         tests: tighten some getdate tests
38628         * tests/test-getdate.c (main): Tighten tests: require equality,
38629         not just greater than.  Set TZ envvar to UTC0.
38630
38631 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38632
38633         getdate: correctly interpret "next monday" when run on a Monday
38634         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38635         that e.g., "next tues" (when run on a tuesday) results in a date
38636         that is one week in the future, and not today's date.
38637         I.e., add a week when the wday is the same as the current one.
38638         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38639         and earlier by Martin Bernreuther and Jan Minář.
38640         * tests/test-getdate.c (main): Check that "next DAY" is always in
38641         the future and that "last DAY" is always in the past.
38642
38643 2009-05-02  Jim Meyering  <meyering@redhat.com>
38644
38645         build: ensure that a release build fails when a submodule is unclean
38646         * top/maint.mk (no-submodule-changes): New rule.
38647         (alpha beta major): Depend on it.
38648
38649 2009-05-02  Bruno Haible  <bruno@clisp.org>
38650
38651         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38652         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38653         shell variable gl_fnmatch_required to detect which variant is
38654         requested.
38655         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38656         gl_FUNC_FNMATCH_POSIX.
38657         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38658         exclude fnmatch-posix.
38659
38660 2009-05-02  Bruno Haible  <bruno@clisp.org>
38661
38662         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38663         * modules/mbsrtowcs (License): Change to LGPLv2+.
38664         * modules/strnlen1 (License): Likewise.
38665         Reported by Simon Josefsson.
38666
38667 2009-05-02  Bruno Haible  <bruno@clisp.org>
38668
38669         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38670         "cross".
38671         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38672         gnulib-tool was called with option --source-base=lib.
38673
38674 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38675
38676         Use automake *-local hooks without commands, for extensibility.
38677         * modules/localcharset (Makefile.am): Rename install-exec-local
38678         rule to install-exec-localcharset, and make it a prerequisite of
38679         install-exec-local.  Likewise, rename the uninstall-local rule to
38680         uninstall-localcharset, and make it a prerequisite of the former.
38681
38682 2009-05-01  Bruno Haible  <bruno@clisp.org>
38683
38684         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38685         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38686         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38688         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38689         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38690         m4/locale-zh.m4, m4/codeset.m4.
38691
38692         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38693         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38694         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38695         m4/locale-zh.m4.
38696
38697         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38698         REPLACE_WCRTOMB if mbstate_t must be replaced.
38699         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38700         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38701
38702 2009-05-01  Bruno Haible  <bruno@clisp.org>
38703
38704         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38705         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38706         dngettext, dcngettext, textdomain, bindtextdomain,
38707         bind_textdomain_codeset): Undefine before redefining.
38708
38709 2009-04-30  Bruno Haible  <bruno@clisp.org>
38710
38711         Fix bug introduced on 2009-04-25.
38712         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38713         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38714         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38715         is defined.
38716         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38717         is defined.
38718         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38719         is defined.
38720         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38721
38722 2009-04-28  Bruno Haible  <bruno@clisp.org>
38723
38724         Comment tweaks.
38725         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38726         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38727         * lib/unicase.h (u*_casexfrm): Likewise.
38728         Reported by Paolo Bonzini.
38729
38730 2009-04-28  Bruno Haible  <bruno@clisp.org>
38731
38732         Fix a compilation error.
38733         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38734         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38735         Reported by Jim Meyering.
38736
38737 2009-04-27  Bruno Haible  <bruno@clisp.org>
38738
38739         New module 'libunistring'.
38740         * modules/libunistring: New file.
38741         * m4/libunistring.m4: New file.
38742         * MODULES.html.sh (Unicode string functions): Add it.
38743
38744 2009-04-27  Eric Blake  <ebb9@byu.net>
38745
38746         maint.mk: allow package-specific header to provide <config.h>
38747         * top/maint.mk (sc_require_config_h): New variable.
38748         (sc_require_config_h, sc_require_config_h_first): Use it.
38749
38750 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38751
38752         * top/maint.mk (sc_avoid_if_before_free): Except
38753         useless-if-before-free script.
38754
38755 2009-04-27  Eric Blake  <ebb9@byu.net>
38756
38757         maintainer-makefile: depend on all required helper scripts
38758         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38759         useless-if-before-free.
38760         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38761         version, rather than assuming gnulib checkout is available.
38762         Reported by Simen Josefsson.
38763
38764 2009-04-26  Bruno Haible  <bruno@clisp.org>
38765
38766         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38767         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38768         "../" or "..".
38769
38770 2009-04-26  Bruno Haible  <bruno@clisp.org>
38771
38772         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38773         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38774         AC_LIB_HAVE_LINKFLAGS.
38775
38776 2009-04-26  Bruno Haible  <bruno@clisp.org>
38777
38778         Simplify calling convention of u*_conv_from_encoding.
38779         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38780         u32_conv_from_encoding): Expect a resultbuf argument and return the
38781         result directly as a pointer.
38782         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38783         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38784         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38785         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38786         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38787         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38788         Update.
38789         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38790         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38791         * lib/vasnprintf.c (VASNPRINTF): Update.
38792         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38793         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38794         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38795         * NEWS: Mention the change.
38796
38797 2009-04-26  Bruno Haible  <bruno@clisp.org>
38798
38799         Simplify calling convention of u*_conv_to_encoding.
38800         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38801         u32_conv_to_encoding): Expect a resultbuf argument and return the
38802         result directly as a pointer.
38803         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38804         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38805         freeing scaled_offsets if mem_iconveha failed.
38806         * lib/unicase/u-casexfrm.h (FUNC): Update.
38807         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38808         * lib/vasnprintf.c (VASNPRINTF): Update.
38809         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38810         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38811         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38812         * NEWS: Mention the change.
38813
38814 2009-04-26  Bruno Haible  <bruno@clisp.org>
38815
38816         Avoid test failures on AIX and OSF/1.
38817         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38818         malloc(0).
38819         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38820         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38821         Likewise.
38822         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38823         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38824         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38825         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38826         * doc/posix-functions/malloc.texi: Document the portability problem
38827         related to malloc(0).
38828
38829 2009-04-26  Bruno Haible  <bruno@clisp.org>
38830
38831         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38832         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38833         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38834
38835 2009-04-25  Bruno Haible  <bruno@clisp.org>
38836
38837         Avoid link error when creating a namespace clean library.
38838         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38839         as macro with arguments if already defined as an alias.
38840         * lib/signbitf.c (gl_signbitf): Don't undefine.
38841         * lib/signbitd.c (gl_signbitd): Don't undefine.
38842         * lib/signbitl.c (gl_signbitl): Don't undefine.
38843
38844 2009-04-25  Jim Meyering  <meyering@redhat.com>
38845
38846         vc-list-files: fix another quoting bug
38847         * build-aux/vc-list-files: Avoid sed backslash expansion
38848         of pathological directory names.
38849
38850 2009-04-25  Eric Blake  <ebb9@byu.net>
38851
38852         vc-list-files: fix shell quoting error
38853         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38854         timestamp.
38855
38856 2009-04-25  Jim Meyering  <meyering@redhat.com>
38857
38858         vc-list-files: restore lost functionality with subdir argument
38859         * build-aux/vc-list-files: When given a non-"." sub-directory
38860         argument, substitute the $dir/ prefix back onto each resulting name.
38861         Otherwise, coreutils' root_tests check would fail.
38862
38863 2009-04-24  Eric Blake  <ebb9@byu.net>
38864
38865         vc-list-files: ignore git symlinks
38866         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38867         than ls-files, to ignore git symlinks.
38868
38869         maint.mk: import improvements from m4
38870         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38871         (move_if_change): Delete unused macro.
38872         (news-date-check, vc-diff-check): Support VPATH builds.
38873         (announcement): Likewise.  Split --bootstrap-tools list...
38874         (boostrap-tools): ...into separate list, which can be overridden
38875         in cfg.mk.
38876         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38877         requiring dependency on useless-if-before-free module.
38878         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38879         Support VPATH builds.
38880
38881 2009-04-24  Jim Meyering  <meyering@redhat.com>
38882
38883         maint.mk: remove coreutils-specific rules and variables
38884         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38885         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38886         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38887
38888         maint.mk: remove obsolete rule
38889         * top/maint.mk (rel-check): Remove rule.
38890         (WGET, WGETFLAGS): Remove now-unused variables.
38891
38892 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38893
38894         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38895         consistency.
38896
38897         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38898         '$(PATH_SEPARATOR)' instead of ':'.
38899
38900 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38901
38902         * lib/getopt1.c (main): Use 'const' for static array.
38903
38904 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38905
38906         * top/maint.mk: Sync with coreutils.
38907         * NEWS: Explain incompatibilities.
38908
38909 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38910             Bruno Haible  <bruno@clisp.org>
38911
38912         Fix cross-compilation results.
38913         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38914         statement, as third argument of AC_TRY_RUN.
38915         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38916         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38917         Likewise.
38918         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38919         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38920         Likewise.
38921         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38922         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38923         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38924
38925 2009-04-20  Bruno Haible  <bruno@clisp.org>
38926
38927         Avoid test failure on mingw.
38928         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38929
38930 2009-04-20  Bruno Haible  <bruno@clisp.org>
38931
38932         Avoid compilation error on mingw.
38933         * modules/localename-tests (Depends-on): Add locale.
38934
38935 2009-04-19  Bruno Haible  <bruno@clisp.org>
38936
38937         Support for building a shared library on Windows platforms.
38938         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38939         (main): Test the presence of UNINORM_NFC here.
38940         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38941         (main): Test the presence of UNINORM_NFD here.
38942         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38943         (main): Test the presence of UNINORM_NFKC here.
38944         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38945         (main): Test the presence of UNINORM_NFKD here.
38946
38947 2009-04-19  Bruno Haible  <bruno@clisp.org>
38948
38949         Avoid a compiler warning.
38950         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38951         Change type of variable 'sequence'.
38952
38953 2009-04-19  Bruno Haible  <bruno@clisp.org>
38954
38955         * modules/configmake (Makefile.am): When the contents of configmake.h
38956         does not change, arrange to preserve its modification time.
38957
38958 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38959
38960         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38961         gettext domain.
38962
38963 2009-04-16  Jim Meyering  <meyering@redhat.com>
38964
38965         useless-if-before-free: improve conversion code
38966         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38967         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38968
38969 2009-04-14  Bruno Haible  <bruno@clisp.org>
38970
38971         * modules/fcntl (Depends-on): Add extensions.
38972         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38973
38974 2009-04-12  Ben Pfaff  <blp@gnu.org>
38975
38976         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38977         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38978
38979 2009-03-20  Ben Pfaff  <blp@gnu.org>
38980
38981         Make rename replace existing destinations on Windows.
38982         * m4/rename.m4: Add test for Mingw.
38983         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38984         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38985         * doc/posix-functions/rename.texi: Document.
38986
38987 2009-04-10  Bruno Haible  <bruno@clisp.org>
38988
38989         New include file "iconveh.h".
38990         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38991         * lib/striconveh.h: Include it.
38992         (enum iconv_ilseq_handler): Remove definition.
38993         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38994         striconveh.h.
38995         * lib/striconveha.c: Include striconveh.h.
38996         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38997         * modules/striconveh (Files): Add lib/iconveh.h.
38998         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38999         lib/striconveh.h.
39000
39001 2009-04-10  Bruno Haible  <bruno@clisp.org>
39002
39003         * lib/uniconv.h: Update comment.
39004
39005 2009-04-10  Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39008         always.
39009         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39010         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39011         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39012         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39013         "unistring-notinline.h", so that the function gets defined always.
39014         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39015         * lib/unistr/u8-uctomb.c: Likewise.
39016         * lib/unistr/u16-mbtouc.c: Likewise.
39017         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39018         * lib/unistr/u16-uctomb.c: Likewise.
39019         * lib/unistr/u32-mbtouc.c: Likewise.
39020         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39021         * lib/unistr/u32-uctomb.c: Likewise.
39022
39023 2009-04-10  Bruno Haible  <bruno@clisp.org>
39024
39025         Mark 'utime' obsolete.
39026         * modules/utime (Status, Notice): New sections.
39027         Suggested by Jim Meyering.
39028
39029         Fix cross-compile guess for utime test.
39030         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39031         autoconf.
39032         * doc/posix-functions/utime.texi: Give more precisions.
39033         Reported by Jan <ipif@ymail.com>.
39034
39035 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39036
39037         filevercmp: correct today's change
39038         * lib/filevercmp.c: Also handle coreutils' test inputs.
39039         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39040
39041         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39042         for reporting it.
39043         * lib/filevercmp.c: Special handle for "", "." and "..".
39044         * tests/test-filevercmp.c: Enlarge the set suite.
39045
39046 2009-04-07  Jim Meyering  <meyering@redhat.com>
39047
39048         useless-if-before-free: show how to remove braced useless free, too
39049         * build-aux/useless-if-before-free: still only in a comment, though.
39050
39051 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39052
39053         maint.mk: import changes to syntax-check macros from coreutils
39054         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39055         Use them in the relevant macros.
39056
39057 2009-04-06  Bruno Haible  <bruno@clisp.org>
39058
39059         Fix unportable use of bit-fields.
39060         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39061         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39062         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39063
39064 2009-04-06  Bruno Haible  <bruno@clisp.org>
39065
39066         Avoid test failures on AIX and OSF/1.
39067         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39068         that malloc(0) = NULL.
39069         * tests/unicase/test-u8-tolower.c (check): Likewise.
39070         * tests/unicase/test-u8-totitle.c (check): Likewise.
39071         * tests/unicase/test-u8-toupper.c (check): Likewise.
39072         * tests/unicase/test-u16-casefold.c (check): Likewise.
39073         * tests/unicase/test-u16-tolower.c (check): Likewise.
39074         * tests/unicase/test-u16-totitle.c (check): Likewise.
39075         * tests/unicase/test-u16-toupper.c (check): Likewise.
39076         * tests/unicase/test-u32-casefold.c (check): Likewise.
39077         * tests/unicase/test-u32-tolower.c (check): Likewise.
39078         * tests/unicase/test-u32-totitle.c (check): Likewise.
39079         * tests/unicase/test-u32-toupper.c (check): Likewise.
39080         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39081         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39082         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39083         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39084         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39085         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39086         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39087         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39088         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39089         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39090         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39091         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39092
39093 2009-04-05  Bruno Haible  <bruno@clisp.org>
39094
39095         Work around an autoconf limitation.
39096         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39097         comment line if it would be longer than 3 KB.
39098
39099 2009-04-05  Bruno Haible  <bruno@clisp.org>
39100
39101         Avoid test failure with libiconv-1.13.
39102         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39103         of the expected test results.
39104
39105 2009-04-05  Bruno Haible  <bruno@clisp.org>
39106
39107         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39108         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39109         that it should be installed.
39110
39111 2009-04-05  Bruno Haible  <bruno@clisp.org>
39112
39113         * gnulib-tool: New option --copy-file.
39114         (func_usage): Document it.
39115         (func_dest_tmpfilename): Moved out of func_import.
39116         (func_add_file, func_update_file): New functions, extracted from
39117         func_import.
39118         (func_import): Update.
39119
39120 2009-04-05  Karl Berry  <karl@gnu.org>
39121
39122         * README: prominently mention gnulib-tool.
39123         Rearrange sections so getting the code is near the top.
39124
39125 2009-04-05  Bruno Haible  <bruno@clisp.org>
39126
39127         * lib/unicase.h: Mention u*_cmp2.
39128         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39129         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39130         * lib/unicase/ulc-casecmp.c: Likewise.
39131         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39132         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39133         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39134         unistr/u8-cmp.
39135         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39136         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39137         unistr/u16-cmp.
39138         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39139         unistr/u32-cmp.
39140
39141         * lib/uninorm.h: Mention u*_cmp2.
39142         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39143         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39144         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39145         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39146         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39147         unistr/u8-cmp.
39148         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39149         unistr/u16-cmp.
39150         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39151         unistr/u32-cmp.
39152
39153         New module 'unistr/u32-cmp2'.
39154         * lib/unistr/u32-cmp2.c: New file.
39155         * modules/unistr/u32-cmp2: New file.
39156
39157         New module 'unistr/u16-cmp2'.
39158         * lib/unistr/u16-cmp2.c: New file.
39159         * modules/unistr/u16-cmp2: New file.
39160
39161         New module 'unistr/u8-cmp2'.
39162         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39163         * lib/unistr/u8-cmp2.c: New file.
39164         * lib/unistr/u-cmp2.h: New file.
39165         * modules/unistr/u8-cmp2: New file.
39166
39167 2009-04-05  Bruno Haible  <bruno@clisp.org>
39168
39169         * lib/unictype.h (uc_property_is_valid): New macro.
39170         * tests/unictype/test-pr_byname.c (main): Use it.
39171
39172         * lib/unistr.h: Doc fixes.
39173         * lib/uniconv.h: Doc fixes.
39174         * lib/unictype.h: Doc fixes.
39175
39176 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39177
39178         Port coreutils 7.2 to Solaris 8.
39179
39180         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39181         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39182         for Solaris 8.  This is a bit of a hack, as it means it's the
39183         caller's responsibility to add -lnsl if needed, but most likely it
39184         won't be needed since only getaddrinfo uses this and getaddrinfo
39185         isn't needed on Solaris 8.
39186
39187         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39188         problem to Solaris 8 encountered with coreutils 7.2, which
39189         resulted in a message "fnmatch.c:292: warning: passing argument 4
39190         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39191         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39192
39193 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39194
39195         * m4/ld-version-script.m4: Add FIXME comment.
39196
39197 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39198
39199         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39200         SOVERSION variable.
39201
39202 2009-04-02  Bruno Haible  <bruno@clisp.org>
39203
39204         * Makefile (info, html, dvi, pdf): Combine the rules.
39205         Suggested by Jim Meyering.
39206
39207 2009-04-01  Bruno Haible  <bruno@clisp.org>
39208
39209         * Makefile (info, html, dvi, pdf): New targets.
39210         Reported by Reuben Thomas <rrt@sc3d.org>.
39211
39212 2009-04-01  Bruno Haible  <bruno@clisp.org>
39213
39214         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39215         can be put into PATH.
39216         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39217
39218 2009-04-01  Bruno Haible  <bruno@clisp.org>
39219
39220         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39221
39222 2009-04-01  Bruno Haible  <bruno@clisp.org>
39223
39224         Rename module 'visibility'.
39225         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39226         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39227         * doc/gnulib.texi: Update.
39228         * MODULES.html.sh (Misc): Update.
39229         * NEWS: Mention the change.
39230
39231 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39232
39233         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39234         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39235         Eric Blake <ebb9@byu.net> for review.
39236         * MODULES.html.sh: Add lib-msvc-compat.
39237         * doc/gnulib.texi: Link to new section.
39238         * m4/ld-output-def.m4: New file.
39239         * doc/ld-output-def.texi: New file.
39240
39241 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39242
39243         Rename ld-version-script to lib-symbol-versions.  Suggested by
39244         Bruno Haible <bruno@clisp.org>.
39245         * modules/ld-version-script: Renamed to lib-symbol-versions.
39246         * doc/ld-version-script.texi: Fix module name.
39247         * MODULES.html.sh: Add lib-symbol-versions.
39248
39249 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39250
39251         * modules/u64-tests: New file.
39252         * tests/test-u64.c: New file.
39253
39254 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39255
39256         * MODULES.html.sh: Mention u64.
39257         * modules/u64: New module.
39258         * modules/crypto/sha512: Depend on u64 module instead of providing
39259         u64.h.
39260
39261 2009-03-27  Eric Blake  <ebb9@byu.net>
39262
39263         test-strerror: make debugging EAI_SYSTEM easier
39264         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39265         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39266         failure was EAI_SYSTEM.
39267
39268 2009-03-25  Bruno Haible  <bruno@clisp.org>
39269
39270         Fix a problem with --enable-relocatable on Solaris 7.
39271         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39272         since 2008-02-24.
39273
39274 2009-03-25  Eric Blake  <ebb9@byu.net>
39275
39276         test-sockets: avoid gcc warning
39277         * tests/test-sockets.c (main): Silence compiler warning.
39278
39279 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39280
39281         New modules nproc, pthread, contributed by Glen Lenker.
39282
39283         * MODULES.html.sh: Add pthread, nproc.
39284         * lib/nproc.c: New file.
39285         * lib/nproc.h: New file.
39286         * lib/pthread.in.h: New file.
39287         * m4/pthread.m4: New file.
39288         * modules/nproc: New file.
39289         * modules/pthread: New file.
39290
39291 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39292
39293         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39294         New variable.
39295
39296 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39297
39298         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39299         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39300         * tests/test-filevercmp.c: Add tests for backup suffixes.
39301
39302 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39303
39304         * modules/stdlib (Depends-on): Add stdint, needed when defining
39305         struct random_data on, for example, HP-UX 10.20.  Reported by
39306         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39307
39308 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39309
39310         * lib/readline.c (readline): Call fflush on stdout after printing
39311         prompt.
39312
39313 2009-03-20  Bruno Haible  <bruno@clisp.org>
39314
39315         Remove dependency from 'close' module to -lws2_32 on native Windows.
39316         * lib/close-hook.h: New file.
39317         * lib/close-hook.c: New file.
39318         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39319         w32sock.h.
39320         (_gl_close_fd_maybe_socket): Remove function.
39321         (rpl_close): Invoke execute_all_close_hooks instead of
39322         _gl_close_fd_maybe_socket.
39323         * lib/sockets.c: Include close-hook.h, w32sock.h.
39324         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39325         (close_sockets_hook): New variable.
39326         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39327         (gl_sockets_cleanup): Unregister it.
39328         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39329         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39330         * modules/close-hook: New file.
39331         * modules/close (Files): Remove lib/w32sock.h.
39332         (Depends-on): Add close-hook.
39333         (Link): Remove section.
39334         * modules/sockets (Files): Add lib/w32sock.h.
39335         (Depends-on): Add close-hook.
39336         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39337         invocation.
39338         * NEWS: Mention that LIB_CLOSE is gone.
39339
39340 2009-03-23  Eric Blake  <ebb9@byu.net>
39341
39342         signal-tests: test previous patch
39343         * tests/test-signal.c: New file.
39344         * modules/signal-tests: Likewise.
39345
39346         signal.h: always support 'volatile sig_atomic_t'
39347         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39348         (gl_SIGNAL_H_DEFAULTS): Add a default.
39349         * modules/signal (Makefile.am): Substitute if needed.
39350         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39351         users can blindly add volatile.
39352         * doc/posix-headers/signal.texi (signal.h): Document it.
39353         Reported by Matthew Woehlke.
39354
39355 2009-03-23  Jim Meyering  <meyering@redhat.com>
39356
39357         pathmax: PATH_MAX: use pathconf only when available
39358         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39359         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39360         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39361         This avoids a link failure in a PSP cross-compilation environment
39362         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39363
39364         * lib/vasnprintf.c (divide): Fix typo in comment.
39365
39366 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39367
39368         * gnulib-tool (func_filter_filelist): Fix comment.
39369
39370 2009-03-20  Bruno Haible  <bruno@clisp.org>
39371
39372         Make sockets.h self-contained.
39373         * lib/sockets.c: Include sockets.h first.
39374         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39375
39376 2009-03-19  Eric Blake  <ebb9@byu.net>
39377
39378         doc: mention more functions added in cygwin 1.7.0
39379         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39380         addition.
39381         * doc/posix-functions/log2f.texi: Likewise.
39382
39383 2009-03-19  Jim Meyering  <meyering@redhat.com>
39384
39385         fsusage: avoid syntax error due to statement-before-declaration
39386         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39387         after all declarations.  Reported by Matthew Woehlke in
39388         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39389
39390 2009-03-18  Eric Blake  <ebb9@byu.net>
39391
39392         build-aux/compile: sync from automake
39393         * build-aux/compile: New file, from automake.
39394         * config/srclist.txt: Mention build-aux/compile.
39395
39396 2009-03-17  Bruno Haible  <bruno@clisp.org>
39397
39398         * lib/git-merge-changelog.c: Fix typo in comment.
39399         Reported by Reuben Thomas <rrt@sc3d.org>.
39400
39401 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39402
39403         * m4/regex.m4: update and improve help for
39404         --without-included-regex.
39405
39406 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39407
39408         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39409         failure on missing include files.
39410
39411 2009-03-17  Eric Blake  <ebb9@byu.net>
39412
39413         doc: mention more functions added in cygwin 1.7.0
39414         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39415         addition.
39416         * doc/posix-functions/fwscanf.texi: Likewise.
39417         * doc/posix-functions/swprintf.texi: Likewise.
39418         * doc/posix-functions/swscanf.texi: Likewise.
39419         * doc/posix-functions/vfwprintf.texi: Likewise.
39420         * doc/posix-functions/vfwscanf.texi: Likewise.
39421         * doc/posix-functions/vswprintf.texi: Likewise.
39422         * doc/posix-functions/vswscanf.texi: Likewise.
39423         * doc/posix-functions/vwprintf.texi: Likewise.
39424         * doc/posix-functions/vwscanf.texi: Likewise.
39425         * doc/posix-functions/wcscasecmp.texi: Likewise.
39426         * doc/posix-functions/wcsdup.texi: Likewise.
39427         * doc/posix-functions/wcsftime.texi: Likewise.
39428         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39429         * doc/posix-functions/wprintf.texi: Likewise.
39430         * doc/posix-functions/wscanf.texi: Likewise.
39431         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39432
39433 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39434
39435         maint.mk: really add $(AM_MAKEFLAGS)
39436         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39437         was inadvertently omitted in the last commit.
39438         Spotted by Bruno Haible.
39439
39440         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39441         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39442         $(AM_MAKEFLAGS)' rather than plain `make'.
39443
39444         gnulib-tool: execute $MAKE not make
39445         * gnulib-tool: Default $MAKE to 'make'.
39446         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39447         than make.  Initialize $MAKE in the do-autobuild script.
39448
39449         gnulib-tool: use $MAKE not make in generated files
39450         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39451         make, in generated files.  Initialize $MAKE in the do-autobuild
39452         script.
39453
39454         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39455
39456         GNUmakefile: disable parallelism only for multiple, recursive targets
39457         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39458         additions in the Makefile.
39459         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39460         by Automake.
39461         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39462         are listed on the command line and at least one of them is
39463         listed in $(ALL_RECURSIVE_TARGETS).
39464
39465 2009-03-14  Bruno Haible  <bruno@clisp.org>
39466
39467         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39468         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39469         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39470         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39471         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39472         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39473         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39474         unistr/u8-uctomb.
39475         * modules/unistr/u8-strchr (Depends-on): Likewise.
39476         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39477         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39478         unistr/u16-uctomb.
39479         * modules/unistr/u16-strchr (Depends-on): Likewise.
39480         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39481
39482 2009-03-12  Bruno Haible  <bruno@clisp.org>
39483
39484         Work around select() bug on Interix 3.5.
39485         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39486         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39487         * m4/select.m4: New file.
39488         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39489         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39490         * modules/select (Files): Add m4/select.m4.
39491         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39492         * modules/nanosleep (Depends-on): Add select.
39493         * modules/poll (Depends-on): Likewise.
39494         * doc/posix-functions/select.texi: Mention the Interix bug.
39495         Reported by Markus Duft <mduft@gentoo.org>.
39496
39497         * lib/select.c: Renamed from lib/winsock-select.c.
39498         * modules/select (Files): Add lib/select.c, remove
39499         lib/winsock-select.c.
39500         (configure.ac): Update.
39501
39502 2009-03-12  Jim Meyering  <meyering@redhat.com>
39503
39504         avoid gcc warnings about unused macro definitions
39505         * lib/readtokens.c (STREQ): Remove unused definition.
39506         * lib/xmalloc.c (SIZE_MAX): Likewise.
39507         * lib/openat-die.c (N_): Likewise.
39508         * lib/mountlist.c (SIZE_MAX): Remove definition.
39509         Instead, include <stdint.h>.
39510         * lib/readutmp.c: Likewise.
39511         * modules/readutmp (Depends-on): Add stdint.
39512         * modules/mountlist (Depends-on): Add stdint.
39513         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39514
39515 2009-03-10  Bruno Haible  <bruno@clisp.org>
39516
39517         Tests for module 'mbmemcasecoll'.
39518         * modules/mbmemcasecoll-tests: New file.
39519         * tests/test-mbmemcasecoll1.sh: New file.
39520         * tests/test-mbmemcasecoll2.sh: New file.
39521         * tests/test-mbmemcasecoll3.sh: New file.
39522         * tests/test-mbmemcasecoll.c: New file.
39523
39524         New module 'mbmemcasecoll'.
39525         * lib/mbmemcasecoll.h: New file.
39526         * lib/mbmemcasecoll.c: New file.
39527         * modules/mbmemcasecoll: New file.
39528
39529         * tests/test-mbmemcasecmp.h: New file, extracted from
39530         tests/test-mbmemcasecmp.c.
39531         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39532         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39533         (main): Update.
39534         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39535
39536 2009-03-09  Bruno Haible  <bruno@clisp.org>
39537
39538         Tests for module 'mbmemcasecmp'.
39539         * modules/mbmemcasecmp-tests: New file.
39540         * tests/test-mbmemcasecmp1.sh: New file.
39541         * tests/test-mbmemcasecmp2.sh: New file.
39542         * tests/test-mbmemcasecmp3.sh: New file.
39543         * tests/test-mbmemcasecmp.c: New file.
39544
39545         New module 'mbmemcasecmp'.
39546         * lib/mbmemcasecmp.h: New file.
39547         * lib/mbmemcasecmp.c: New file.
39548         * modules/mbmemcasecmp: New file.
39549
39550 2009-03-09  Bruno Haible  <bruno@clisp.org>
39551
39552         Tests for module 'unicase/ulc-casecoll'.
39553         * modules/unicase/ulc-casecoll-tests: New file.
39554         * tests/unicase/test-ulc-casecoll1.sh: New file.
39555         * tests/unicase/test-ulc-casecoll2.sh: New file.
39556         * tests/unicase/test-ulc-casecoll.c: New file.
39557
39558         New module 'unicase/ulc-casecoll'.
39559         * lib/unicase.h (ulc_casecoll): New declaration.
39560         * lib/unicase/ulc-casecoll.c: New file.
39561         * modules/unicase/ulc-casecoll: New file.
39562
39563         New module 'unicase/ulc-casexfrm'.
39564         * lib/unicase.h (ulc_casexfrm): New declaration.
39565         * lib/unicase/ulc-casexfrm.c: New file.
39566         * modules/unicase/ulc-casexfrm: New file.
39567
39568 2009-03-09  Bruno Haible  <bruno@clisp.org>
39569
39570         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39571         invocations.
39572
39573         * m4/mbscasecmp.m4: Remove file.
39574         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39575         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39576
39577         * m4/mbscasestr.m4: Remove file.
39578         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39579         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39580
39581         * m4/mbschr.m4: Remove file.
39582         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39583         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39584
39585         * m4/mbscspn.m4: Remove file.
39586         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39587         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39588
39589         * m4/mbslen.m4: Remove file.
39590         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39591         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39592
39593         * m4/mbsncasecmp.m4: Remove file.
39594         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39595         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39596
39597         * m4/mbsnlen.m4: Remove file.
39598         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39599         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39600
39601         * m4/mbspbrk.m4: Remove file.
39602         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39603         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39604
39605         * m4/mbspcasecmp.m4: Remove file.
39606         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39607         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39608
39609         * m4/mbsrchr.m4: Remove file.
39610         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39611         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39612
39613         * m4/mbssep.m4: Remove file.
39614         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39615         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39616
39617         * m4/mbsspn.m4: Remove file.
39618         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39619         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39620
39621         * m4/mbsstr.m4: Remove file.
39622         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39623         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39624
39625         * m4/mbstok_r.m4: Remove file.
39626         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39627         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39628
39629         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39630
39631         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39632         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39633
39634         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39635
39636 2009-03-08  Bruno Haible  <bruno@clisp.org>
39637
39638         Tests for module 'unicase/ulc-casecmp'.
39639         * modules/unicase/ulc-casecmp-tests: New file.
39640         * tests/unicase/test-ulc-casecmp1.sh: New file.
39641         * tests/unicase/test-ulc-casecmp2.sh: New file.
39642         * tests/unicase/test-ulc-casecmp.c: New file.
39643
39644         New module 'unicase/ulc-casecmp'.
39645         * lib/unicase.h (ulc_casecmp): New declaration.
39646         * lib/unicase/ulc-casecmp.c: New file.
39647         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39648         'const SRC_UNIT *'.
39649         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39650         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39651         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39652         * modules/unicase/ulc-casecmp: New file.
39653
39654         Tests for module 'unicase/u32-is-cased'.
39655         * modules/unicase/u32-is-cased-tests: New file.
39656         * tests/unicase/test-u32-is-cased.c: New file.
39657
39658         Tests for module 'unicase/u16-is-cased'.
39659         * modules/unicase/u16-is-cased-tests: New file.
39660         * tests/unicase/test-u16-is-cased.c: New file.
39661
39662         Tests for module 'unicase/u8-is-cased'.
39663         * modules/unicase/u8-is-cased-tests: New file.
39664         * tests/unicase/test-u8-is-cased.c: New file.
39665         * tests/unicase/test-is-cased.h: New file.
39666
39667         New module 'unicase/u32-is-cased'.
39668         * lib/unicase/u32-is-cased.c: New file.
39669         * modules/unicase/u32-is-cased: New file.
39670
39671         New module 'unicase/u16-is-cased'.
39672         * lib/unicase/u16-is-cased.c: New file.
39673         * modules/unicase/u16-is-cased: New file.
39674
39675         New module 'unicase/u8-is-cased'.
39676         * lib/unicase/u8-is-cased.c: New file.
39677         * lib/unicase/u-is-cased.h: New file.
39678         * modules/unicase/u8-is-cased: New file.
39679
39680         Tests for module 'unicase/u32-is-casefolded'.
39681         * modules/unicase/u32-is-casefolded-tests: New file.
39682         * tests/unicase/test-u32-is-casefolded.c: New file.
39683
39684         Tests for module 'unicase/u16-is-casefolded'.
39685         * modules/unicase/u16-is-casefolded-tests: New file.
39686         * tests/unicase/test-u16-is-casefolded.c: New file.
39687
39688         Tests for module 'unicase/u8-is-casefolded'.
39689         * modules/unicase/u8-is-casefolded-tests: New file.
39690         * tests/unicase/test-u8-is-casefolded.c: New file.
39691         * tests/unicase/test-is-casefolded.h: New file.
39692
39693         New module 'unicase/u32-is-casefolded'.
39694         * lib/unicase/u32-is-casefolded.c: New file.
39695         * modules/unicase/u32-is-casefolded: New file.
39696
39697         New module 'unicase/u16-is-casefolded'.
39698         * lib/unicase/u16-is-casefolded.c: New file.
39699         * modules/unicase/u16-is-casefolded: New file.
39700
39701         New module 'unicase/u8-is-casefolded'.
39702         * lib/unicase/u8-is-casefolded.c: New file.
39703         * modules/unicase/u8-is-casefolded: New file.
39704
39705         Tests for module 'unicase/u32-is-titlecase'.
39706         * modules/unicase/u32-is-titlecase-tests: New file.
39707         * tests/unicase/test-u32-is-titlecase.c: New file.
39708
39709         Tests for module 'unicase/u16-is-titlecase'.
39710         * modules/unicase/u16-is-titlecase-tests: New file.
39711         * tests/unicase/test-u16-is-titlecase.c: New file.
39712
39713         Tests for module 'unicase/u8-is-titlecase'.
39714         * modules/unicase/u8-is-titlecase-tests: New file.
39715         * tests/unicase/test-u8-is-titlecase.c: New file.
39716         * tests/unicase/test-is-titlecase.h: New file.
39717
39718         New module 'unicase/u32-is-titlecase'.
39719         * lib/unicase/u32-is-titlecase.c: New file.
39720         * modules/unicase/u32-is-titlecase: New file.
39721
39722         New module 'unicase/u16-is-titlecase'.
39723         * lib/unicase/u16-is-titlecase.c: New file.
39724         * modules/unicase/u16-is-titlecase: New file.
39725
39726         New module 'unicase/u8-is-titlecase'.
39727         * lib/unicase/u8-is-titlecase.c: New file.
39728         * modules/unicase/u8-is-titlecase: New file.
39729
39730         Tests for module 'unicase/u32-is-lowercase'.
39731         * modules/unicase/u32-is-lowercase-tests: New file.
39732         * tests/unicase/test-u32-is-lowercase.c: New file.
39733
39734         Tests for module 'unicase/u16-is-lowercase'.
39735         * modules/unicase/u16-is-lowercase-tests: New file.
39736         * tests/unicase/test-u16-is-lowercase.c: New file.
39737
39738         Tests for module 'unicase/u8-is-lowercase'.
39739         * modules/unicase/u8-is-lowercase-tests: New file.
39740         * tests/unicase/test-u8-is-lowercase.c: New file.
39741         * tests/unicase/test-is-lowercase.h: New file.
39742
39743         New module 'unicase/u32-is-lowercase'.
39744         * lib/unicase/u32-is-lowercase.c: New file.
39745         * modules/unicase/u32-is-lowercase: New file.
39746
39747         New module 'unicase/u16-is-lowercase'.
39748         * lib/unicase/u16-is-lowercase.c: New file.
39749         * modules/unicase/u16-is-lowercase: New file.
39750
39751         New module 'unicase/u8-is-lowercase'.
39752         * lib/unicase/u8-is-lowercase.c: New file.
39753         * modules/unicase/u8-is-lowercase: New file.
39754
39755         Tests for module 'unicase/u32-is-uppercase'.
39756         * modules/unicase/u32-is-uppercase-tests: New file.
39757         * tests/unicase/test-u32-is-uppercase.c: New file.
39758
39759         Tests for module 'unicase/u16-is-uppercase'.
39760         * modules/unicase/u16-is-uppercase-tests: New file.
39761         * tests/unicase/test-u16-is-uppercase.c: New file.
39762
39763         Tests for module 'unicase/u8-is-uppercase'.
39764         * modules/unicase/u8-is-uppercase-tests: New file.
39765         * tests/unicase/test-u8-is-uppercase.c: New file.
39766         * tests/unicase/test-is-uppercase.h: New file.
39767
39768         New module 'unicase/u32-is-uppercase'.
39769         * lib/unicase/u32-is-uppercase.c: New file.
39770         * modules/unicase/u32-is-uppercase: New file.
39771
39772         New module 'unicase/u16-is-uppercase'.
39773         * lib/unicase/u16-is-uppercase.c: New file.
39774         * modules/unicase/u16-is-uppercase: New file.
39775
39776         New module 'unicase/u8-is-uppercase'.
39777         * lib/unicase/u8-is-uppercase.c: New file.
39778         * modules/unicase/u8-is-uppercase: New file.
39779
39780         New module 'unicase/u32-is-invariant'.
39781         * lib/unicase/u32-is-invariant.c: New file.
39782         * modules/unicase/u32-is-invariant: New file.
39783
39784         New module 'unicase/u16-is-invariant'.
39785         * lib/unicase/u16-is-invariant.c: New file.
39786         * modules/unicase/u16-is-invariant: New file.
39787
39788         New module 'unicase/u8-is-invariant'.
39789         * lib/unicase/u8-is-invariant.c: New file.
39790         * lib/unicase/invariant.h: New file.
39791         * lib/unicase/u-is-invariant.h: New file.
39792         * modules/unicase/u8-is-invariant: New file.
39793
39794         Tests for module 'unicase/u32-casecoll'.
39795         * modules/unicase/u32-casecoll-tests: New file.
39796         * tests/unicase/test-u32-casecoll.c: New file.
39797
39798         Tests for module 'unicase/u16-casecoll'.
39799         * modules/unicase/u16-casecoll-tests: New file.
39800         * tests/unicase/test-u16-casecoll.c: New file.
39801
39802         Tests for module 'unicase/u8-casecoll'.
39803         * modules/unicase/u8-casecoll-tests: New file.
39804         * tests/unicase/test-u8-casecoll.c: New file.
39805
39806         New module 'unicase/u32-casecoll'.
39807         * lib/unicase/u32-casecoll.c: New file.
39808         * modules/unicase/u32-casecoll: New file.
39809
39810         New module 'unicase/u16-casecoll'.
39811         * lib/unicase/u16-casecoll.c: New file.
39812         * modules/unicase/u16-casecoll: New file.
39813
39814         New module 'unicase/u8-casecoll'.
39815         * lib/unicase/u8-casecoll.c: New file.
39816         * lib/unicase/u-casecoll.h: New file.
39817         * modules/unicase/u8-casecoll: New file.
39818
39819         New module 'unicase/u32-casexfrm'.
39820         * lib/unicase/u32-casexfrm.c: New file.
39821         * modules/unicase/u32-casexfrm: New file.
39822
39823         New module 'unicase/u16-casexfrm'.
39824         * lib/unicase/u16-casexfrm.c: New file.
39825         * modules/unicase/u16-casexfrm: New file.
39826
39827         New module 'unicase/u8-casexfrm'.
39828         * lib/unicase/u8-casexfrm.c: New file.
39829         * lib/unicase/u-casexfrm.h: New file.
39830         * modules/unicase/u8-casexfrm: New file.
39831
39832         Tests for module 'unicase/u32-casecmp'.
39833         * modules/unicase/u32-casecmp-tests: New file.
39834         * tests/unicase/test-u32-casecmp.c: New file.
39835
39836         Tests for module 'unicase/u16-casecmp'.
39837         * modules/unicase/u16-casecmp-tests: New file.
39838         * tests/unicase/test-u16-casecmp.c: New file.
39839
39840         Tests for module 'unicase/u8-casecmp'.
39841         * modules/unicase/u8-casecmp-tests: New file.
39842         * tests/unicase/test-u8-casecmp.c: New file.
39843         * tests/unicase/test-casecmp.h: New file.
39844
39845         New module 'unicase/u32-casecmp'.
39846         * lib/unicase/u32-casecmp.c: New file.
39847         * modules/unicase/u32-casecmp: New file.
39848
39849         New module 'unicase/u16-casecmp'.
39850         * lib/unicase/u16-casecmp.c: New file.
39851         * modules/unicase/u16-casecmp: New file.
39852
39853         New module 'unicase/u8-casecmp'.
39854         * lib/unicase/u8-casecmp.c: New file.
39855         * lib/unicase/u-casecmp.h: New file.
39856         * modules/unicase/u8-casecmp: New file.
39857
39858         Tests for module 'unicase/u32-casefold'.
39859         * modules/unicase/u32-casefold-tests: New file.
39860         * tests/unicase/test-u32-casefold.c: New file.
39861
39862         Tests for module 'unicase/u16-casefold'.
39863         * modules/unicase/u16-casefold-tests: New file.
39864         * tests/unicase/test-u16-casefold.c: New file.
39865
39866         Tests for module 'unicase/u8-casefold'.
39867         * modules/unicase/u8-casefold-tests: New file.
39868         * tests/unicase/test-u8-casefold.c: New file.
39869
39870         New module 'unicase/u32-casefold'.
39871         * lib/unicase/u32-casefold.c: New file.
39872         * modules/unicase/u32-casefold: New file.
39873
39874         New module 'unicase/u16-casefold'.
39875         * lib/unicase/u16-casefold.c: New file.
39876         * modules/unicase/u16-casefold: New file.
39877
39878         New module 'unicase/u8-casefold'.
39879         * lib/unicase/u8-casefold.c: New file.
39880         * lib/unicase/u-casefold.h: New file.
39881         * modules/unicase/u8-casefold: New file.
39882
39883         New module 'unicase/tocasefold'.
39884         * lib/unicase/casefold.h: New file.
39885         * lib/unicase/tocasefold.c: New file.
39886         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39887         * modules/unicase/tocasefold: New file.
39888
39889         Tests for module 'unicase/u32-totitle'.
39890         * modules/unicase/u32-totitle-tests: New file.
39891         * tests/unicase/test-u32-totitle.c: New file.
39892
39893         Tests for module 'unicase/u16-totitle'.
39894         * modules/unicase/u16-totitle-tests: New file.
39895         * tests/unicase/test-u16-totitle.c: New file.
39896
39897         Tests for module 'unicase/u8-totitle'.
39898         * modules/unicase/u8-totitle-tests: New file.
39899         * tests/unicase/test-u8-totitle.c: New file.
39900
39901         New module 'unicase/u32-totitle'.
39902         * lib/unicase/u32-totitle.c: New file.
39903         * modules/unicase/u32-totitle: New file.
39904
39905         New module 'unicase/u16-totitle'.
39906         * lib/unicase/u16-totitle.c: New file.
39907         * modules/unicase/u16-totitle: New file.
39908
39909         New module 'unicase/u8-totitle'.
39910         * lib/unicase/u8-totitle.c: New file.
39911         * lib/unicase/u-totitle.h: New file.
39912         * modules/unicase/u8-totitle: New file.
39913
39914         Tests for module 'unicase/u32-tolower'.
39915         * modules/unicase/u32-tolower-tests: New file.
39916         * tests/unicase/test-u32-tolower.c: New file.
39917
39918         Tests for module 'unicase/u16-tolower'.
39919         * modules/unicase/u16-tolower-tests: New file.
39920         * tests/unicase/test-u16-tolower.c: New file.
39921
39922         Tests for module 'unicase/u8-tolower'.
39923         * modules/unicase/u8-tolower-tests: New file.
39924         * tests/unicase/test-u8-tolower.c: New file.
39925
39926         New module 'unicase/u32-tolower'.
39927         * lib/unicase/u32-tolower.c: New file.
39928         * modules/unicase/u32-tolower: New file.
39929
39930         New module 'unicase/u16-tolower'.
39931         * lib/unicase/u16-tolower.c: New file.
39932         * modules/unicase/u16-tolower: New file.
39933
39934         New module 'unicase/u8-tolower'.
39935         * lib/unicase/u8-tolower.c: New file.
39936         * modules/unicase/u8-tolower: New file.
39937
39938         Tests for module 'unicase/u32-toupper'.
39939         * modules/unicase/u32-toupper-tests: New file.
39940         * tests/unicase/test-u32-toupper.c: New file.
39941
39942         Tests for module 'unicase/u16-toupper'.
39943         * modules/unicase/u16-toupper-tests: New file.
39944         * tests/unicase/test-u16-toupper.c: New file.
39945
39946         Tests for module 'unicase/u8-toupper'.
39947         * modules/unicase/u8-toupper-tests: New file.
39948         * tests/unicase/test-u8-toupper.c: New file.
39949
39950         New module 'unicase/u32-toupper'.
39951         * lib/unicase/u32-toupper.c: New file.
39952         * modules/unicase/u32-toupper: New file.
39953
39954         New module 'unicase/u16-toupper'.
39955         * lib/unicase/u16-toupper.c: New file.
39956         * modules/unicase/u16-toupper: New file.
39957
39958         New module 'unicase/u8-toupper'.
39959         * lib/unicase/u8-toupper.c: New file.
39960         * modules/unicase/u8-toupper: New file.
39961
39962         New module 'unicase/u32-casemap'.
39963         * lib/unicase/u32-casemap.c: New file.
39964         * modules/unicase/u32-casemap: New file.
39965
39966         New module 'unicase/u16-casemap'.
39967         * lib/unicase/u16-casemap.c: New file.
39968         * modules/unicase/u16-casemap: New file.
39969
39970         New module 'unicase/u8-casemap'.
39971         * lib/unicase/unicasemap.h: New file.
39972         * lib/unicase/u8-casemap.c: New file.
39973         * lib/unicase/u-casemap.h: New file.
39974         * modules/unicase/u8-casemap: New file.
39975
39976         New module 'unicase/special-casing'.
39977         * lib/unicase/special-casing.h: New file.
39978         * lib/unicase/special-casing.c: New file.
39979         * lib/unicase/special-casing-table.gperf: New file, generated by
39980         gen-uni-tables.c.
39981         * modules/unicase/special-casing: New file.
39982
39983         Tests for module 'unicase/locale-language'.
39984         * modules/unicase/locale-language-tests: New file.
39985         * tests/unicase/test-locale-language.sh: New file.
39986         * tests/unicase/test-locale-language.c: New file.
39987
39988         New module 'unicase/locale-language'.
39989         * lib/unicase/locale-language.c: New file.
39990         * lib/unicase/locale-languages.gperf: New file.
39991         * modules/unicase/locale-language: New file.
39992
39993         Generate more tables for case conversion and case folding.
39994         * lib/gen-uni-tables.c (SCC_*): New enum items.
39995         (struct special_casing_rule): New type.
39996         (casing_rules, num_casing_rules, allocated_casing_rules): New
39997         variables.
39998         (add_casing_rule, fill_casing_rules): New functions.
39999         (struct casefold_rule): New type.
40000         (casefolding_rules, num_casefolding_rules,
40001         allocated_casefolding_rules): New variables.
40002         (fill_casefolding_rules): New function.
40003         (unicode_casefold): New variable.
40004         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40005         sort_casing_rules, output_casing_rules): New functions.
40006         (main): Accept to more arguments: SpecialCasing.txt and
40007         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40008         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40009         Output mapping for casefolding.
40010
40011         * lib/unicase.h: Include stdbool.h, uninorm.h.
40012         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40013         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40014         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40015         arguments.
40016         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40017         resultp arguments.
40018         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40019         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40020         resultp arguments.
40021         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40022         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40023         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40024         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40025         declarations.
40026         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40027
40028 2009-03-08  Bruno Haible  <bruno@clisp.org>
40029
40030         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40031         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40032         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40033         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40034
40035 2009-03-07  Bruno Haible  <bruno@clisp.org>
40036
40037         Adjust u*_normcmp, u*_normcoll API.
40038         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40039         u16_normcoll, u32_normcoll): Change failure conventions.
40040         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40041         errno and return -1.
40042         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40043
40044 2009-03-07  Bruno Haible  <bruno@clisp.org>
40045
40046         Tests for module 'uninorm/u32-normcoll'.
40047         * modules/uninorm/u32-normcoll-tests: New file.
40048         * tests/uninorm/test-u32-normcoll.c: New file.
40049
40050         Tests for module 'uninorm/u16-normcoll'.
40051         * modules/uninorm/u16-normcoll-tests: New file.
40052         * tests/uninorm/test-u16-normcoll.c: New file.
40053
40054         Tests for module 'uninorm/u8-normcoll'.
40055         * modules/uninorm/u8-normcoll-tests: New file.
40056         * tests/uninorm/test-u8-normcoll.c: New file.
40057
40058 2009-03-07  Bruno Haible  <bruno@clisp.org>
40059
40060         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40061         tests/uninorm/test-u32-normcmp.c.
40062         * tests/uninorm/test-u32-normcmp.c: Include it.
40063         (test_nonascii): New function, extracted from main. Add some more
40064         tests.
40065         (main): Invoke test_ascii and test_nonascii.
40066         * modules/uninorm/u32-normcmp-tests (Files): Add
40067         tests/uninorm/test-u32-normcmp.h.
40068         (Depends-on): Remove uninorm/u32-normcmp.
40069
40070         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40071         tests/uninorm/test-u16-normcmp.c.
40072         * tests/uninorm/test-u16-normcmp.c: Include it.
40073         (test_nonascii): New function, extracted from main. Add some more
40074         tests.
40075         (main): Invoke test_ascii and test_nonascii.
40076         * modules/uninorm/u16-normcmp-tests (Files): Add
40077         tests/uninorm/test-u16-normcmp.h.
40078         (Depends-on): Remove uninorm/u16-normcmp.
40079
40080         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40081         tests/uninorm/test-u8-normcmp.c.
40082         * tests/uninorm/test-u8-normcmp.c: Include it.
40083         (test_nonascii): New function, extracted from main. Add some more
40084         tests.
40085         (main): Invoke test_ascii and test_nonascii.
40086         * modules/uninorm/u8-normcmp-tests (Files): Add
40087         tests/uninorm/test-u8-normcmp.h.
40088         (Depends-on): Remove uninorm/u8-normcmp.
40089
40090 2009-03-07  Bruno Haible  <bruno@clisp.org>
40091
40092         New module 'uninorm/u32-normcoll'.
40093         * lib/uninorm/u32-normcoll.c: New file.
40094         * modules/uninorm/u32-normcoll: New file.
40095
40096         New module 'uninorm/u16-normcoll'.
40097         * lib/uninorm/u16-normcoll.c: New file.
40098         * modules/uninorm/u16-normcoll: New file.
40099
40100         New module 'uninorm/u8-normcoll'.
40101         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40102         declarations.
40103         * lib/uninorm/u8-normcoll.c: New file.
40104         * lib/uninorm/u-normcoll.h: New file.
40105         * modules/uninorm/u8-normcoll: New file.
40106
40107         New module 'uninorm/u32-normxfrm'.
40108         * lib/uninorm/u32-normxfrm.c: New file.
40109         * modules/uninorm/u32-normxfrm: New file.
40110
40111         New module 'uninorm/u16-normxfrm'.
40112         * lib/uninorm/u16-normxfrm.c: New file.
40113         * modules/uninorm/u16-normxfrm: New file.
40114
40115         New module 'uninorm/u8-normxfrm'.
40116         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40117         declarations.
40118         * lib/uninorm/u8-normxfrm.c: New file.
40119         * lib/uninorm/u-normxfrm.h: New file.
40120         * modules/uninorm/u8-normxfrm: New file.
40121
40122 2009-03-07  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40125         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40126         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40127
40128 2009-03-07  Bruno Haible  <bruno@clisp.org>
40129
40130         New module 'memxfrm'.
40131         * lib/memxfrm.h: New file.
40132         * lib/memxfrm.c: New file.
40133         * modules/memxfrm: New file.
40134
40135 2009-03-07  Bruno Haible  <bruno@clisp.org>
40136
40137         New module 'memcmp2'.
40138         * lib/memcmp2.h: New file.
40139         * lib/memcmp2.c: New file.
40140         * modules/memcmp2: New file.
40141
40142 2009-03-07  Bruno Haible  <bruno@clisp.org>
40143
40144         Tests for module 'uninorm/decomposing-form'.
40145         * modules/uninorm/decomposing-form-tests: New file.
40146         * tests/uninorm/test-decomposing-form.c: New file.
40147
40148         New module 'uninorm/decomposing-form'.
40149         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40150         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40151         Add 'decomposing_variant' field.
40152         * lib/uninorm/decomposing-form.c: New file.
40153         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40154         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40155         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40156         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40157         * modules/uninorm/decomposing-form: New file.
40158         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40159         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40160
40161 2009-03-07  Bruno Haible  <bruno@clisp.org>
40162
40163         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40164         strings.
40165
40166 2009-03-06  Bruno Haible  <bruno@clisp.org>
40167
40168         Tests for module 'uninorm/u32-normcmp'.
40169         * tests/uninorm/test-u32-normcmp.c: New file.
40170         * modules/uninorm/u32-normcmp-tests: New file.
40171
40172         Tests for module 'uninorm/u16-normcmp'.
40173         * tests/uninorm/test-u16-normcmp.c: New file.
40174         * modules/uninorm/u16-normcmp-tests: New file.
40175
40176         Tests for module 'uninorm/u8-normcmp'.
40177         * tests/uninorm/test-u8-normcmp.c: New file.
40178         * modules/uninorm/u8-normcmp-tests: New file.
40179
40180         New module 'uninorm/u32-normcmp'.
40181         * lib/uninorm/u32-normcmp.c: New file.
40182         * modules/uninorm/u32-normcmp: New file.
40183
40184         New module 'uninorm/u16-normcmp'.
40185         * lib/uninorm/u16-normcmp.c: New file.
40186         * modules/uninorm/u16-normcmp: New file.
40187
40188         New module 'uninorm/u8-normcmp'.
40189         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40190         declarations.
40191         * lib/uninorm/u8-normcmp.c: New file.
40192         * lib/uninorm/u-normcmp.h: New file.
40193         * modules/uninorm/u8-normcmp: New file.
40194
40195 2009-03-06  Bruno Haible  <bruno@clisp.org>
40196
40197         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40198         Reported by Eric Blake.
40199
40200 2009-03-06  Eric Blake  <ebb9@byu.net>
40201             Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40204         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40205         condition.
40206         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40207         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40208         condition.
40209         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40210
40211 2009-03-06  Eric Blake  <ebb9@byu.net>
40212
40213         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40214         to avoid compiler warnings.
40215         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40216
40217 2009-03-05  Bruno Haible  <bruno@clisp.org>
40218
40219         * tests/test-ftell.c (main): Disable test beyond end of file on
40220         FreeMiNT.
40221         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40222
40223 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40224
40225         * lib/filevercmp.c: Move hidden files up in ordering.
40226         * tests/test-filevercmp.c: Add tests for hidden files.
40227
40228 2009-03-04  Bruno Haible  <bruno@clisp.org>
40229
40230         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40231         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40232         AM_CFLAGS.
40233         Reported by Simon Josefsson.
40234
40235 2009-03-03  Bruno Haible  <bruno@clisp.org>
40236
40237         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40238         Reported by Simon Josefsson.
40239
40240         * doc/ld-version-script.texi: Update node reference.
40241
40242 2009-03-03  Bruno Haible  <bruno@clisp.org>
40243
40244         * modules/visibility (License): Change to 'unlimited'.
40245         Suggested by Simon Josefsson.
40246
40247 2009-03-03  Jim Meyering  <meyering@redhat.com>
40248
40249         unlinkdir: cannot_unlink_dir may modify process state
40250         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40251         it's neither thread-safe nor appropriate for use in a library.
40252
40253 2009-03-03  Eric Blake  <ebb9@byu.net>
40254
40255         test-closein: silence test under Darwin
40256         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40257         care if it dies from EPIPE or EBADF.
40258
40259 2009-03-03  Bruno Haible  <bruno@clisp.org>
40260
40261         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40262         earlier.
40263         * doc/visibility.texi: Fix @node and @section.
40264
40265 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40266
40267         * doc/gnulib.texi: Link to sections for ld version script and
40268         visibility.
40269         * doc/visibility.texi: Add @node and @section.
40270         * modules/ld-version-script: New module.
40271         * m4/ld-version-script.m4: New file.
40272         * doc/ld-version-script.texi: New file.
40273
40274 2009-03-02  David Lutterkort  <lutter@redhat.com>
40275
40276         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40278
40279 2009-03-02  Bruno Haible  <bruno@clisp.org>
40280
40281         * doc/visibility.texi: Mention libtool's -export-symbols option.
40282
40283 2009-03-02  Jim Meyering  <meyering@redhat.com>
40284
40285         announce-gen: new option: --no-print-checksums
40286         * build-aux/announce-gen (usage): Describe it.
40287         (print_checksums): Print a newline here, not in the [*] footnote.
40288         (main): Honor it.
40289
40290 2009-03-01  Bruno Haible  <bruno@clisp.org>
40291
40292         Use socklen_t in the native Windows replacements prototypes.
40293         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40294         instead of 'int'.
40295         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40296         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40297         * modules/getsockopt (Depends-on): Add socklen.
40298         * modules/setsockopt (Depends-on): Add socklen.
40299
40300 2009-03-01  Bruno Haible  <bruno@clisp.org>
40301
40302         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40303         least 4.2.
40304
40305 2009-03-01  Eric Blake  <ebb9@byu.net>
40306             Bruno Haible  <bruno@clisp.org>
40307
40308         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40309         error messages.
40310         * lib/wait-process.c (wait_subprocess): Omit error message about
40311         deadly signal sent to the child of termsigp != NULL.
40312
40313 2009-03-01  Eric Blake  <ebb9@byu.net>
40314
40315         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40316
40317 2009-03-01  Bruno Haible  <bruno@clisp.org>
40318
40319         Avoid a gcc warning.
40320         * tests/test-sched.c (b): Make global.
40321         Reported by Eric Blake.
40322
40323 2009-01-19  Martin Lambers  <marlam@marlam.de>
40324
40325         Provide POSIX semantics for socket timeout options on W32.
40326         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40327         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40328         * modules/setsockopt: Depend on sys_time module for struct timeval.
40329         * modules/getsockopt: Depend on sys_time module for struct timeval.
40330
40331 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40332
40333         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40334         __USE_GNU, for consistency with netdb.in.h.
40335         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40336
40337 2009-03-01  Bruno Haible  <bruno@clisp.org>
40338
40339         More support for FreeMiNT.
40340         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40341         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40342
40343 2009-03-01  Bruno Haible  <bruno@clisp.org>
40344
40345         More support for FreeMiNT.
40346         * lib/fpurge.c (fpurge): Correct last commit.
40347         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40348
40349 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40350
40351         Fix unportable awk script in vc-list-files.
40352         * build-aux/vc-list-files: In the replacement awk script, use
40353         substr with a second argument of 1, not zero.
40354         Report by Simon Josefsson.
40355
40356 2009-02-28  Bruno Haible  <bruno@clisp.org>
40357
40358         More support for FreeMiNT.
40359         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40360         to FreeMiNT today.
40361         * lib/fwriting.c (fwriting): Likewise.
40362         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40363
40364 2009-02-28  Bruno Haible  <bruno@clisp.org>
40365
40366         * tests/test-freadseek.c (main): Disable test beyond end of file on
40367         FreeMiNT.
40368         * tests/test-ftello.c (main): Likewise.
40369         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40370
40371 2009-02-28  Bruno Haible  <bruno@clisp.org>
40372
40373         Add tentative support for FreeMiNT.
40374         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40375         * lib/fpurge.c (fpurge): Likewise.
40376         * lib/freadable.c (freadable): Likewise.
40377         * lib/freading.c (freading): Likewise.
40378         * lib/freadptr.c (freadptr): Likewise.
40379         * lib/freadseek.c (freadptrinc): Likewise.
40380         * lib/fseeko.c (rpl_fseeko): Likewise.
40381         * lib/fseterr.c (fseterr): Likewise.
40382         * lib/fwritable.c (fwritable): Likewise.
40383         * lib/fwriting.c (fwriting): Likewise.
40384         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40385         Hourihane.
40386         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40387
40388 2009-02-28  Bruno Haible  <bruno@clisp.org>
40389
40390         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40391         SIGCHLD.
40392         Reported by Jim Meyering.
40393
40394 2009-02-28  Bruno Haible  <bruno@clisp.org>
40395
40396         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40397         Mention the results of these tests on various platforms.
40398         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40399         order.
40400         * doc/posix-functions/printf.texi: Likewise.
40401         * doc/posix-functions/snprintf.texi: Likewise.
40402         * doc/posix-functions/sprintf.texi: Likewise.
40403         * doc/posix-functions/vfprintf.texi: Likewise.
40404         * doc/posix-functions/vprintf.texi: Likewise.
40405         * doc/posix-functions/vsnprintf.texi: Likewise.
40406         * doc/posix-functions/vsprintf.texi: Likewise.
40407         * doc/glibc-functions/obstack_printf.texi: Likewise.
40408         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40409
40410 2009-02-28  Bruno Haible  <bruno@clisp.org>
40411
40412         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40413         Reported by Loïc Minier <lool@dooz.org>.
40414
40415 2009-02-27  Bruno Haible  <bruno@clisp.org>
40416
40417         * gnulib-tool (func_import): Make the sed expression used to create the
40418         sed script for updating the .gitignore file POSIX compliant.
40419         Reported by Eric Blake.
40420
40421 2009-02-27  Bruno Haible  <bruno@clisp.org>
40422
40423         * gnulib-tool (sed): Don't alias as "sed --posix".
40424         Reported by Eric Blake.
40425
40426 2009-02-27  Bruno Haible  <bruno@clisp.org>
40427
40428         Avoid test link errors.
40429         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40430         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40431         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40432         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40434
40435 2009-02-27  Bruno Haible  <bruno@clisp.org>
40436
40437         Avoid spurious "(cached)" in configure output.
40438         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40439         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40440         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40441         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40442         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40443         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40444         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40445         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40446         Reported by Eric Blake.
40447
40448 2009-02-27  Eric Blake  <ebb9@byu.net>
40449
40450         printf: fix regression in previous patch
40451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40452
40453 2009-02-27  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40456         value.
40457         * lib/stdint.in.h: Likewise.
40458         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40459
40460 2009-02-27  Eric Blake  <ebb9@byu.net>
40461
40462         doc: mention more functions added in cygwin 1.7.0
40463         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40464         addition.
40465         * doc/posix-functions/open_wmemstream.texi: Likewise.
40466         * doc/posix-functions/wcsnlen.texi: Likewise.
40467         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40468         * doc/posix-functions/wcstod.texi: Likewise.
40469         * doc/posix-functions/wcstof.texi: Likewise.
40470         * doc/posix-functions/wcstoimax.texi: Likewise.
40471         * doc/posix-functions/wcstok.texi: Likewise.
40472         * doc/posix-functions/wcstoumax.texi: Likewise.
40473
40474         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40476         * doc/posix-functions/fprintf.texi: Update.
40477         * doc/posix-functions/printf.texi: Update.
40478         * doc/posix-functions/snprintf.texi: Update.
40479         * doc/posix-functions/sprintf.texi: Update.
40480         * doc/posix-functions/vfprintf.texi: Update.
40481         * doc/posix-functions/vprintf.texi: Update.
40482         * doc/posix-functions/vsnprintf.texi: Update.
40483         * doc/posix-functions/vsprintf.texi: Update.
40484         * doc/glibc-functions/obstack_printf.texi: Update.
40485         * doc/glibc-functions/obstack_vprintf.texi: Update.
40486
40487 2009-02-26  Eric Blake  <ebb9@byu.net>
40488
40489         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40490         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40491         compilation bug by using runtime conversion.
40492         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40493         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40494         * modules/ceill-tests (Files): Use nan.h.
40495         * modules/floorl-tests (Files): Likewise.
40496         * modules/frexpl-tests (Files): Likewise.
40497         * modules/isnanl-tests (Files): Likewise.
40498         * modules/ldexpl-tests (Files): Likewise.
40499         * modules/roundl-tests (Files): Likewise.
40500         * modules/truncl-tests (Files): Likewise.
40501         * tests/test-ceill.c (main): Use a working NaN.
40502         * tests/test-floorl.c (main): Likewise.
40503         * tests/test-frexpl.c (main): Likewise.
40504         * tests/test-isnan.c (test_long_double): Likewise.
40505         * tests/test-isnanl.h (main): Likewise.
40506         * tests/test-ldexpl.h (main): Likewise.
40507         * tests/test-roundl.h (main): Likewise.
40508         * tests/test-truncl.h (main): Likewise.
40509         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40510
40511 2009-02-26  Eric Blake  <ebb9@byu.net>
40512             Bruno Haible  <bruno@clisp.org>
40513
40514         Work around a *printf bug with %ls on Solaris.
40515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40516         precision is specified, sprintf stops converting the wide string
40517         argument when the number of bytes that have been produced by this
40518         conversion equals or exceeds the precision.
40519         * doc/posix-functions/fprintf.texi: Update.
40520         * doc/posix-functions/printf.texi: Update.
40521         * doc/posix-functions/snprintf.texi: Update.
40522         * doc/posix-functions/sprintf.texi: Update.
40523         * doc/posix-functions/vfprintf.texi: Update.
40524         * doc/posix-functions/vprintf.texi: Update.
40525         * doc/posix-functions/vsnprintf.texi: Update.
40526         * doc/posix-functions/vsprintf.texi: Update.
40527         * doc/glibc-functions/obstack_printf.texi: Update.
40528         * doc/glibc-functions/obstack_vprintf.texi: Update.
40529
40530 2009-02-26  Eric Blake  <ebb9@byu.net>
40531
40532         stdlib: favor compiler check of random.h
40533         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40534         to avoid an ObjC random.h installed by Swarm.
40535
40536 2009-02-26  Bruno Haible  <bruno@clisp.org>
40537
40538         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40539         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40540         Reported by Gary V. Vaughan <gary@gnu.org>.
40541
40542 2009-02-26  Bruno Haible  <bruno@clisp.org>
40543
40544         Fix *printf behaviour regarding the %ls directive.
40545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40546         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40547         NEED_PRINTF_DIRECTIVE_LS.
40548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40549         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40551         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40552         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40553         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40554         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40559         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40563         * doc/posix-functions/fprintf.texi: Update.
40564         * doc/posix-functions/printf.texi: Update.
40565         * doc/posix-functions/snprintf.texi: Update.
40566         * doc/posix-functions/sprintf.texi: Update.
40567         * doc/posix-functions/vfprintf.texi: Update.
40568         * doc/posix-functions/vprintf.texi: Update.
40569         * doc/posix-functions/vsnprintf.texi: Update.
40570         * doc/posix-functions/vsprintf.texi: Update.
40571         * doc/glibc-functions/obstack_printf.texi: Update.
40572         * doc/glibc-functions/obstack_vprintf.texi: Update.
40573         Reported by Eric Blake.
40574
40575 2009-02-25  Bruno Haible  <bruno@clisp.org>
40576
40577         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40578         with known value.
40579         Reported by Gary V. Vaughan <gary@gnu.org>.
40580
40581 2009-02-25  Bruno Haible  <bruno@clisp.org>
40582
40583         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40584         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40585         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40586         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40587         Reported by Gary V. Vaughan <gary@gnu.org>.
40588
40589 2009-02-25  Bruno Haible  <bruno@clisp.org>
40590
40591         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40592         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40593         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40594         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40595         Reported by Gary V. Vaughan <gary@gnu.org>.
40596
40597 2009-02-25  Eric Blake  <ebb9@byu.net>
40598
40599         tests: skip fseek/ftell tests if ungetc is broken
40600         * m4/ungetc.m4: New file.
40601         * modules/fseek-tests: Split test, so ungetc dependency is
40602         separate from rest of test.
40603         * modules/fseeko-tests: Likewise.
40604         * modules/ftell-tests: Likewise.
40605         * modules/ftello-tests: Likewise.
40606         * tests/test-fseek.c (main): Isolate ungetc dependency.
40607         * tests/test-fseeko.c (main): Likewise.
40608         * tests/test-ftell.c (main): Likewise.
40609         * tests/test-ftello.c (main): Likewise.
40610         * tests/test-fseek2.sh: New file.
40611         * tests/test-fseeko2.sh: Likewise.
40612         * tests/test-ftell2.sh: Likewise.
40613         * tests/test-ftello2.sh: Likewise.
40614
40615 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40616
40617         test-getaddrinfo: fix usage of skip return code 77
40618         * tests/test-gettaddrinfo.c: Return skip code 77 only
40619         for first occurance of skip (4x77 is not 77)
40620
40621 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40622
40623         strtod: avoid C99 decl-after-statement
40624         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40625
40626 2009-02-24  Eric Blake  <ebb9@byu.net>
40627
40628         strtod: detect HP-UX 11.31 bug
40629         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40630         Reported by Gary V. Vaughan.
40631
40632 2009-02-23  Bruno Haible  <bruno@clisp.org>
40633
40634         Fix invalid read past end of memory block.
40635         * lib/vasnprintf.c (DCHAR_SET): Define.
40636         (local_wcslen): Define only when needed.
40637         (local_strnlen, local_wcsnlen): New functions.
40638         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40639         directives that involve a conversion ourselves.
40640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40641         wcsnlen, mbrtowc, wcrtomb.
40642         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40643         * tests/test-vasprintf-posix.c (test_function): Likewise.
40644         * tests/test-snprintf-posix.h (test_function): Likewise.
40645         * tests/test-sprintf-posix.h (test_function): Likewise.
40646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40647
40648 2009-02-22  Bruno Haible  <bruno@clisp.org>
40649
40650         Implement new clarified decomposition of Hangul syllables.
40651         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40652         of type LTV, return only a pairwise decomposition.
40653         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40654         Likewise.
40655         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40656         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40657         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40658
40659 2009-02-22  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40662         zero-length results and shrink excess allocated memory.
40663         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40664         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40665         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40666         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40667         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40668         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40669         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40670         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40671         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40672         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40673         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40674         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40675
40676 2009-02-21  Bruno Haible  <bruno@clisp.org>
40677
40678         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40679         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40680         spaces after a period. Put a space between a macro name and its
40681         argument list. Trivial rewordings.
40682         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40683         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40684         (main): Return 0 explicitly.
40685
40686 2009-02-21  Bruno Haible  <bruno@clisp.org>
40687
40688         Tests for module 'uninorm/filter'.
40689         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40690         * modules/uninorm/filter-tests: New file.
40691
40692         New module 'uninorm/filter'.
40693         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40694         uninorm_filter_flush, uninorm_filter_free): New declarations.
40695         * lib/uninorm/uninorm-filter.c: New file.
40696         * modules/uninorm/filter: New file.
40697
40698 2009-02-21  Bruno Haible  <bruno@clisp.org>
40699
40700         Tests for module 'uninorm/nfkc'.
40701         * tests/uninorm/test-nfkc.c: New file.
40702         * tests/uninorm/test-u8-nfkc.c: New file.
40703         * tests/uninorm/test-u16-nfkc.c: New file.
40704         * tests/uninorm/test-u32-nfkc.c: New file.
40705         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40706         * tests/uninorm/test-u32-nfkc-big.c: New file.
40707         * modules/uninorm/nfkc-tests: New file.
40708
40709         New module 'uninorm/nfkc'.
40710         * lib/uninorm/nfkc.c: New file.
40711         * modules/uninorm/nfkc: New file.
40712
40713         Tests for module 'uninorm/nfkd'.
40714         * tests/uninorm/test-nfkd.c: New file.
40715         * tests/uninorm/test-u8-nfkd.c: New file.
40716         * tests/uninorm/test-u16-nfkd.c: New file.
40717         * tests/uninorm/test-u32-nfkd.c: New file.
40718         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40719         * tests/uninorm/test-u32-nfkd-big.c: New file.
40720         * modules/uninorm/nfkd-tests: New file.
40721
40722         New module 'uninorm/nfkd'.
40723         * lib/uninorm/nfkd.c: New file.
40724         * modules/uninorm/nfkd: New file.
40725
40726         Tests for module 'uninorm/nfc'.
40727         * tests/uninorm/test-nfc.c: New file.
40728         * tests/uninorm/test-u8-nfc.c: New file.
40729         * tests/uninorm/test-u16-nfc.c: New file.
40730         * tests/uninorm/test-u32-nfc.c: New file.
40731         * tests/uninorm/test-u32-nfc-big.sh: New file.
40732         * tests/uninorm/test-u32-nfc-big.c: New file.
40733         * modules/uninorm/nfc-tests: New file.
40734
40735         New module 'uninorm/nfc'.
40736         * lib/uninorm/nfc.c: New file.
40737         * modules/uninorm/nfc: New file.
40738
40739         Tests for module 'uninorm/nfd'.
40740         * tests/uninorm/test-nfd.c: New file.
40741         * tests/uninorm/test-u8-nfd.c: New file.
40742         * tests/uninorm/test-u16-nfd.c: New file.
40743         * tests/uninorm/test-u32-nfd.c: New file.
40744         * tests/uninorm/test-u32-nfd-big.sh: New file.
40745         * tests/uninorm/test-u32-nfd-big.c: New file.
40746         * tests/uninorm/test-u32-normalize-big.h: New file.
40747         * tests/uninorm/test-u32-normalize-big.c: New file.
40748         * tests/uninorm/NormalizationTest.txt: New file, created from
40749         Unicode 5.1.0 NormalizationTest.txt.
40750         * modules/uninorm/nfd-tests: New file.
40751
40752         New module 'uninorm/nfd'.
40753         * lib/uninorm/nfd.c: New file.
40754         * modules/uninorm/nfd: New file.
40755
40756         New module 'uninorm/u32-normalize'.
40757         * lib/uninorm/u32-normalize.c: New file.
40758         * modules/uninorm/u32-normalize: New file.
40759
40760         New module 'uninorm/u16-normalize'.
40761         * lib/uninorm/u16-normalize.c: New file.
40762         * modules/uninorm/u16-normalize: New file.
40763
40764         New module 'uninorm/u8-normalize'.
40765         * lib/uninorm/u8-normalize.c: New file.
40766         * lib/uninorm/normalize-internal.h: New file.
40767         * lib/uninorm/u-normalize-internal.h: New file.
40768         * modules/uninorm/u8-normalize: New file.
40769
40770         New module 'uninorm/decompose-internal'.
40771         * lib/uninorm/decompose-internal.c: New file.
40772         * modules/uninorm/decompose-internal: New file.
40773
40774         Tests for module 'uninorm/composition'.
40775         * tests/uninorm/test-composition.c: New file.
40776         * modules/uninorm/composition-tests: New file.
40777
40778         New module 'uninorm/composition'.
40779         * lib/uninorm/composition.c: New file.
40780         * lib/uninorm/composition-table.gperf: New file, generated by
40781         gen-uni-tables.
40782         * modules/uninorm/composition: New file.
40783
40784         Tests for module 'uninorm/compat-decomposition'.
40785         * tests/uninorm/test-compat-decomposition.c: New file.
40786         * modules/uninorm/compat-decomposition-tests: New file.
40787
40788         New module 'uninorm/compat-decomposition'.
40789         * lib/uninorm/decompose-internal.h: New file.
40790         * lib/uninorm/compat-decomposition.c: New file.
40791         * modules/uninorm/compat-decomposition: New file.
40792
40793         Tests for module 'uninorm/canonical-decomposition'.
40794         * tests/uninorm/test-canonical-decomposition.c: New file.
40795         * modules/uninorm/canonical-decomposition-tests: New file.
40796
40797         New module 'uninorm/canonical-decomposition'.
40798         * lib/uninorm/canonical-decomposition.c: New file.
40799         * modules/uninorm/canonical-decomposition: New file.
40800
40801         Tests for module 'uninorm/decomposition'.
40802         * tests/uninorm/test-decomposition.c: New file.
40803         * modules/uninorm/decomposition-tests: New file.
40804
40805         New module 'uninorm/decomposition'.
40806         * lib/uninorm/decomposition.c: New file.
40807         * modules/uninorm/decomposition: New file.
40808
40809         New module 'uninorm/decomposition-table'.
40810         * lib/uninorm/decomposition-table.h: New file.
40811         * lib/uninorm/decomposition-table.c: New file.
40812         * lib/uninorm/decomposition-table1.h: New file, generated by
40813         gen-uni-tables.
40814         * lib/uninorm/decomposition-table2.h: New file, generated by
40815         gen-uni-tables.
40816         * modules/uninorm/decomposition-table: New file.
40817
40818         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40819         (UC_DECOMP_*): New enumeration items.
40820         (get_decomposition): New function.
40821         (struct decomp_table): New type.
40822         (output_decomposition, output_decomposition_tables): New functions.
40823         (unicode_composition_exclusions): New variable.
40824         (fill_composition_exclusions, debug_output_composition_tables): New
40825         functions.
40826         (main): Accept one more argument. Invoke fill_composition_exclusions.
40827         Output decomposition and composition tables.
40828
40829         New module 'uninorm/base'.
40830         * lib/uninorm.h: New file.
40831         * lib/unictype.h: Update comment.
40832         * modules/uninorm/base: New file.
40833
40834 2009-02-21  David Lutterkort  <lutter@redhat.com>
40835
40836         Tests for module 'safe-alloc'.
40837         * tests/test-safe-alloc.c: New file.
40838         * modules/safe-alloc-tests: New file.
40839
40840         New module 'safe-alloc'.
40841         * lib/safe-alloc.h: New file.
40842         * lib/safe-alloc.c: New file.
40843         * m4/safe-alloc.m4: New file.
40844         * modules/safe-alloc: New file.
40845         * doc/safe-alloc.texi: New file.
40846         * doc/gnulib.texi: Include it.
40847         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40848         safe-alloc.
40849
40850 2009-02-18  Bruno Haible  <bruno@clisp.org>
40851
40852         Fix link error on non-glibc systems.
40853         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40854         variable.
40855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40856
40857 2009-02-18  Jim Meyering  <meyering@redhat.com>
40858
40859         fts: avoid used-uninitialized error due to recent change
40860         * lib/fts.c (fts_read): Guard uses of the new member,
40861         parent->fts_n_dirs_remaining, since it's not relevant for
40862         the parent of a directory specified on the command-line.
40863
40864 2009-02-17  James Youngman  <jay@gnu.org>
40865             Bruno Haible  <bruno@clisp.org>
40866
40867         * m4/include_next.m4: Reformulate comment.
40868
40869 2009-02-16  Jim Meyering  <meyering@redhat.com>
40870
40871         fts: add #if guards so that the fts_lgpl module still builds
40872         * lib/fts.c: Guard just-added hash-table-using parts with
40873         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40874         Reported by Simon Josefsson.
40875
40876 2009-02-15  Bruno Haible  <bruno@clisp.org>
40877
40878         * modules/array-mergesort-tests: New file.
40879         * tests/test-array-mergesort.c: New file.
40880
40881         New module 'array-mergesort'.
40882         * modules/array-mergesort: New file.
40883         * lib/array-mergesort.h: New file.
40884
40885 2009-02-15  Bruno Haible  <bruno@clisp.org>
40886
40887         Fix 2009-02-07 commit.
40888         * lib/gen-uni-tables.c (output_predicate, output_category,
40889         output_combclass, output_bidi_category, output_decimal_digit,
40890         output_digit, output_numeric, output_mirror, output_scripts,
40891         output_ident_category, output_simple_mapping): Fix format directives.
40892         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40893
40894 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40895
40896         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40897         fixes are available from IBM.
40898
40899 2009-02-13  Jim Meyering  <meyering@redhat.com>
40900
40901         fts: arrange not to stat non-directories in more cases
40902         This makes GNU find (when it doesn't need to stat each file)
40903         *much* more efficient at traversing reiserfs file systems.
40904         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40905         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40906         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40907         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40908         (leaf_optimization_applies): New function.
40909         (LCO_hash, LCO_compare): New helper functions.
40910         (link_count_optimize_ok): New function.
40911         (fts_stat): Initialize new member (if dir).
40912         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40913         we've just stat'ed a directory.  Skip the stat call when possible.
40914         ---
40915         Note this AFS-related exchange:
40916         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40917         and note find's pioctl call in find/fstype.c.
40918         But that is necessary only if you want to enable the
40919         optimization for AFS, and for now, I don't.
40920
40921         fts: move a function definition "up" (no semantic change)
40922         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40923         "up" to precede upcoming use of a related function.
40924
40925 2009-02-11  Jim Meyering  <meyering@redhat.com>
40926
40927         fts: correct internal computation of nlinks (optimization-related)
40928         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40929         whether the current entry is a directory, so don't test it.
40930
40931 2009-02-10  Bruno Haible  <bruno@clisp.org>
40932
40933         Tests for module 'uniwbrk/ulc-wordbreaks'.
40934         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40935         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40936         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40937
40938         Tests for module 'uniwbrk/u32-wordbreaks'.
40939         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40940         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40941
40942         Tests for module 'uniwbrk/u16-wordbreaks'.
40943         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40944         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40945
40946         Tests for module 'uniwbrk/u8-wordbreaks'.
40947         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40948         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40949
40950 2009-02-10  Bruno Haible  <bruno@clisp.org>
40951
40952         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40953         property.
40954         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40955         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40956         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40957
40958 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40959
40960         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40961         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40962
40963 2009-02-10  Bruno Haible  <bruno@clisp.org>
40964
40965         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40966         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40967         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40968         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40969         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40970         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40971
40972 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40973
40974         * lib/sockets.h (gl_fd_to_handle): New function.
40975
40976         * tests/test-sockets.c: Call gl_fd_to_handle.
40977
40978 2009-02-09  Bruno Haible  <bruno@clisp.org>
40979
40980         * doc/havelib.texi: Document the conventions on bi-arch systems.
40981
40982 2009-02-08  Bruno Haible  <bruno@clisp.org>
40983
40984         Document the AC_LIB_LINKFLAGS macro.
40985         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40986         * doc/gnulib.texi: Include it.
40987
40988 2009-02-08  Bruno Haible  <bruno@clisp.org>
40989
40990         Fix wrong order of sections, compared to TOC.
40991         * doc/gnulib.texi: Include relocatable-maint.texi after the
40992         "Regular expressions" node, not before.
40993
40994 2009-02-08  Bruno Haible  <bruno@clisp.org>
40995
40996         Tests for module 'unicase/totitle'.
40997         * modules/unicase/totitle-tests: New file.
40998
40999         Tests for module 'unicase/tolower'.
41000         * modules/unicase/tolower-tests: New file.
41001
41002         Tests for module 'unicase/toupper'.
41003         * modules/unicase/toupper-tests: New file.
41004         * tests/unicase/test-mapping-part1.h: New file.
41005         * tests/unicase/test-mapping-part2.h: New file.
41006
41007         New module 'unicase/totitle'.
41008         * modules/unicase/totitle: New file.
41009         * lib/unicase/totitle.c: New file.
41010
41011         New module 'unicase/tolower'.
41012         * modules/unicase/tolower: New file.
41013         * lib/unicase/tolower.c: New file.
41014
41015         New module 'unicase/toupper'.
41016         * modules/unicase/toupper: New file.
41017         * lib/unicase/toupper.c: New file.
41018         * lib/unicase/simple-mapping.h: New file.
41019
41020         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41021         (mapping_table): New structure.
41022         (output_simple_mapping): New function.
41023         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41024         * modules/gen-uni-tables (Description): Update.
41025         * lib/unicase/toupper.h: New file, automatically generated by
41026         gen-uni-tables.
41027         * lib/unicase/tolower.h: New file, automatically generated by
41028         gen-uni-tables.
41029         * lib/unicase/totitle.h: New file, automatically generated by
41030         gen-uni-tables.
41031         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41032         gen-uni-tables.
41033         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41034         gen-uni-tables.
41035         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41036         gen-uni-tables.
41037
41038         New module 'unicase/base'.
41039         * modules/unicase/base: New file.
41040         * lib/unicase.h: New file.
41041
41042 2009-02-08  Bruno Haible  <bruno@clisp.org>
41043
41044         New module 'uniwbrk/ulc-wordbreaks'.
41045         * modules/uniwbrk/ulc-wordbreaks: New file.
41046         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41047
41048         New module 'uniwbrk/u32-wordbreaks'.
41049         * modules/uniwbrk/u32-wordbreaks: New file.
41050         * lib/uniwbrk/u32-wordbreaks.c: New file.
41051
41052         New module 'uniwbrk/u16-wordbreaks'.
41053         * modules/uniwbrk/u16-wordbreaks: New file.
41054         * lib/uniwbrk/u16-wordbreaks.c: New file.
41055
41056         New module 'uniwbrk/u8-wordbreaks'.
41057         * modules/uniwbrk/u8-wordbreaks: New file.
41058         * lib/uniwbrk/u8-wordbreaks.c: New file.
41059         * lib/uniwbrk/u-wordbreaks.h: New file.
41060
41061         New module 'uniwbrk/table'.
41062         * modules/uniwbrk/table: New file.
41063         * lib/uniwbrk/wbrktable.h: New file.
41064         * lib/uniwbrk/wbrktable.c: New file.
41065
41066         New module 'uniwbrk/wordbreak-property'.
41067         * modules/uniwbrk/wordbreak-property: New file.
41068         * lib/uniwbrk/wordbreak-property.c: New file.
41069
41070         * lib/gen-uni-tables.c (WBP_*): New enum items.
41071         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41072         (unicode_org_wbp): New variable.
41073         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41074         New functions.
41075         (wbp_table): New structure.
41076         (output_wbp, output_wbrk_tables): New functions.
41077         (main): Accept additional argument. Invoke fill_org_wbp,
41078         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41079         output_wbrk_tables.
41080         * modules/gen-uni-tables (Description): Update.
41081         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41082         gen-uni-tables.
41083
41084         New module 'uniwbrk/base'.
41085         * modules/uniwbrk/base: New file.
41086         * lib/uniwbrk.h: New file.
41087
41088 2009-02-08  Bruno Haible  <bruno@clisp.org>
41089
41090         Update to Unicode 5.1.0.
41091         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41092         U+2185..U+2188.
41093         (is_property_default_ignorable_code_point): Don't include characters
41094         of category Cc or Cs and not-a-characters.
41095         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41096         U+0D79, U+109E, U+109F, U+A60C.
41097         * lib/unictype/bidi_of.h: Regenerated.
41098         * lib/unictype/blocks.h: Regenerated.
41099         * lib/unictype/categ_C.h: Regenerated.
41100         * lib/unictype/categ_Cf.h: Regenerated.
41101         * lib/unictype/categ_Cn.h: Regenerated.
41102         * lib/unictype/categ_L.h: Regenerated.
41103         * lib/unictype/categ_Ll.h: Regenerated.
41104         * lib/unictype/categ_Lm.h: Regenerated.
41105         * lib/unictype/categ_Lo.h: Regenerated.
41106         * lib/unictype/categ_Lu.h: Regenerated.
41107         * lib/unictype/categ_M.h: Regenerated.
41108         * lib/unictype/categ_Mc.h: Regenerated.
41109         * lib/unictype/categ_Me.h: Regenerated.
41110         * lib/unictype/categ_Mn.h: Regenerated.
41111         * lib/unictype/categ_N.h: Regenerated.
41112         * lib/unictype/categ_Nd.h: Regenerated.
41113         * lib/unictype/categ_Nl.h: Regenerated.
41114         * lib/unictype/categ_No.h: Regenerated.
41115         * lib/unictype/categ_P.h: Regenerated.
41116         * lib/unictype/categ_Pd.h: Regenerated.
41117         * lib/unictype/categ_Pe.h: Regenerated.
41118         * lib/unictype/categ_Pf.h: Regenerated.
41119         * lib/unictype/categ_Pi.h: Regenerated.
41120         * lib/unictype/categ_Po.h: Regenerated.
41121         * lib/unictype/categ_Ps.h: Regenerated.
41122         * lib/unictype/categ_S.h: Regenerated.
41123         * lib/unictype/categ_Sk.h: Regenerated.
41124         * lib/unictype/categ_Sm.h: Regenerated.
41125         * lib/unictype/categ_So.h: Regenerated.
41126         * lib/unictype/categ_of.h: Regenerated.
41127         * lib/unictype/combining.h: Regenerated.
41128         * lib/unictype/ctype_alnum.h: Regenerated.
41129         * lib/unictype/ctype_alpha.h: Regenerated.
41130         * lib/unictype/ctype_graph.h: Regenerated.
41131         * lib/unictype/ctype_lower.h: Regenerated.
41132         * lib/unictype/ctype_print.h: Regenerated.
41133         * lib/unictype/ctype_punct.h: Regenerated.
41134         * lib/unictype/ctype_upper.h: Regenerated.
41135         * lib/unictype/decdigit.h: Regenerated.
41136         * lib/unictype/digit.h: Regenerated.
41137         * lib/unictype/mirror.h: Regenerated.
41138         * lib/unictype/numeric.h: Regenerated.
41139         * lib/unictype/pr_alphabetic.h: Regenerated.
41140         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41141         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41142         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41143         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41144         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41145         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41146         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41147         * lib/unictype/pr_combining.h: Regenerated.
41148         * lib/unictype/pr_dash.h: Regenerated.
41149         * lib/unictype/pr_decimal_digit.h: Regenerated.
41150         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41151         * lib/unictype/pr_deprecated.h: Regenerated.
41152         * lib/unictype/pr_diacritic.h: Regenerated.
41153         * lib/unictype/pr_extender.h: Regenerated.
41154         * lib/unictype/pr_format_control.h: Regenerated.
41155         * lib/unictype/pr_grapheme_base.h: Regenerated.
41156         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41157         * lib/unictype/pr_grapheme_link.h: Regenerated.
41158         * lib/unictype/pr_id_continue.h: Regenerated.
41159         * lib/unictype/pr_id_start.h: Regenerated.
41160         * lib/unictype/pr_ideographic.h: Regenerated.
41161         * lib/unictype/pr_ignorable_control.h: Regenerated.
41162         * lib/unictype/pr_lowercase.h: Regenerated.
41163         * lib/unictype/pr_math.h: Regenerated.
41164         * lib/unictype/pr_numeric.h: Regenerated.
41165         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41166         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41167         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41168         * lib/unictype/pr_other_id_continue.h: Regenerated.
41169         * lib/unictype/pr_other_lowercase.h: Regenerated.
41170         * lib/unictype/pr_other_math.h: Regenerated.
41171         * lib/unictype/pr_punctuation.h: Regenerated.
41172         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41173         * lib/unictype/pr_soft_dotted.h: Regenerated.
41174         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41175         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41176         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41177         * lib/unictype/pr_uppercase.h: Regenerated.
41178         * lib/unictype/pr_xid_continue.h: Regenerated.
41179         * lib/unictype/pr_xid_start.h: Regenerated.
41180         * lib/unictype/pr_zero_width.h: Regenerated.
41181         * lib/unictype/scripts.h: Regenerated.
41182         * lib/unictype/scripts_byname.gperf: Regenerated.
41183         * lib/unictype/sy_java_ident.h: Regenerated.
41184         * lib/unilbrk/lbrkprop1.h: Regenerated.
41185         * lib/unilbrk/lbrkprop2.h: Regenerated.
41186         * tests/unictype/test-categ_C.c: Regenerated.
41187         * tests/unictype/test-categ_Cf.c: Regenerated.
41188         * tests/unictype/test-categ_Cn.c: Regenerated.
41189         * tests/unictype/test-categ_L.c: Regenerated.
41190         * tests/unictype/test-categ_Ll.c: Regenerated.
41191         * tests/unictype/test-categ_Lm.c: Regenerated.
41192         * tests/unictype/test-categ_Lo.c: Regenerated.
41193         * tests/unictype/test-categ_Lu.c: Regenerated.
41194         * tests/unictype/test-categ_M.c: Regenerated.
41195         * tests/unictype/test-categ_Mc.c: Regenerated.
41196         * tests/unictype/test-categ_Me.c: Regenerated.
41197         * tests/unictype/test-categ_Mn.c: Regenerated.
41198         * tests/unictype/test-categ_N.c: Regenerated.
41199         * tests/unictype/test-categ_Nd.c: Regenerated.
41200         * tests/unictype/test-categ_Nl.c: Regenerated.
41201         * tests/unictype/test-categ_No.c: Regenerated.
41202         * tests/unictype/test-categ_P.c: Regenerated.
41203         * tests/unictype/test-categ_Pd.c: Regenerated.
41204         * tests/unictype/test-categ_Pe.c: Regenerated.
41205         * tests/unictype/test-categ_Pf.c: Regenerated.
41206         * tests/unictype/test-categ_Pi.c: Regenerated.
41207         * tests/unictype/test-categ_Po.c: Regenerated.
41208         * tests/unictype/test-categ_Ps.c: Regenerated.
41209         * tests/unictype/test-categ_S.c: Regenerated.
41210         * tests/unictype/test-categ_Sk.c: Regenerated.
41211         * tests/unictype/test-categ_Sm.c: Regenerated.
41212         * tests/unictype/test-categ_So.c: Regenerated.
41213         * tests/unictype/test-ctype_alnum.c: Regenerated.
41214         * tests/unictype/test-ctype_alpha.c: Regenerated.
41215         * tests/unictype/test-ctype_graph.c: Regenerated.
41216         * tests/unictype/test-ctype_lower.c: Regenerated.
41217         * tests/unictype/test-ctype_print.c: Regenerated.
41218         * tests/unictype/test-ctype_punct.c: Regenerated.
41219         * tests/unictype/test-ctype_upper.c: Regenerated.
41220         * tests/unictype/test-decdigit.h: Regenerated.
41221         * tests/unictype/test-digit.h: Regenerated.
41222         * tests/unictype/test-numeric.h: Regenerated.
41223         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41224         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41225         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41226         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41227         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41228         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41229         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41230         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41231         * tests/unictype/test-pr_combining.c: Regenerated.
41232         * tests/unictype/test-pr_dash.c: Regenerated.
41233         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41234         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41235         * tests/unictype/test-pr_deprecated.c: Regenerated.
41236         * tests/unictype/test-pr_diacritic.c: Regenerated.
41237         * tests/unictype/test-pr_extender.c: Regenerated.
41238         * tests/unictype/test-pr_format_control.c: Regenerated.
41239         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41240         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41241         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41242         * tests/unictype/test-pr_id_continue.c: Regenerated.
41243         * tests/unictype/test-pr_id_start.c: Regenerated.
41244         * tests/unictype/test-pr_ideographic.c: Regenerated.
41245         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41246         * tests/unictype/test-pr_lowercase.c: Regenerated.
41247         * tests/unictype/test-pr_math.c: Regenerated.
41248         * tests/unictype/test-pr_numeric.c: Regenerated.
41249         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41250         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41251         Regenerated.
41252         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41253         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41254         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41255         * tests/unictype/test-pr_other_math.c: Regenerated.
41256         * tests/unictype/test-pr_punctuation.c: Regenerated.
41257         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41258         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41259         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41260         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41261         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41262         * tests/unictype/test-pr_uppercase.c: Regenerated.
41263         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41264         * tests/unictype/test-pr_xid_start.c: Regenerated.
41265         * tests/unictype/test-pr_zero_width.c: Regenerated.
41266
41267         Update to Unicode 5.1.0.
41268         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41269         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41270         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41271         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41272         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41273         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41274         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41275         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41276         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41277         (nonspacing_table_ind): Update.
41278         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41279
41280         Update to Unicode 5.1.0.
41281         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41282         code transform.
41283         * lib/uniname/uniname.c (unicode_character_name,
41284         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41285         * lib/uniname/uninames.h: Regenerated.
41286         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41287
41288 2009-02-07  Bruno Haible  <bruno@clisp.org>
41289
41290         Merge gen-ctype and gen-lbrk into a single program.
41291         * lib/gen-uni-tables.c: New file, incorporating
41292         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41293         Add directory prefixes to the names of the generated files.
41294         * lib/unictype/gen-ctype.c: Remove file.
41295         * lib/unilbrk/gen-lbrk.c: Remove file.
41296         * modules/gen-uni-tables: New file.
41297         * modules/unictype/gen-ctype: Remove file.
41298         * modules/unilbrk/gen-lbrk: Remove file.
41299
41300 2009-02-07  Bruno Haible  <bruno@clisp.org>
41301
41302         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41303
41304         New module 'unistr/u32-strcoll'.
41305         * modules/unistr/u32-strcoll: New file.
41306         * lib/unistr/u32-strcoll.c: New file.
41307
41308         New module 'unistr/u16-strcoll'.
41309         * modules/unistr/u16-strcoll: New file.
41310         * lib/unistr/u16-strcoll.c: New file.
41311
41312         New module 'unistr/u8-strcoll'.
41313         * modules/unistr/u8-strcoll: New file.
41314         * lib/unistr/u8-strcoll.c: New file.
41315         * lib/unistr/u-strcoll.h: New file.
41316
41317 2009-02-07  Bruno Haible  <bruno@clisp.org>
41318
41319         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41320         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41321         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41322         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41323         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41324         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41325
41326 2009-02-07  Bruno Haible  <bruno@clisp.org>
41327
41328         Make 64-bit clean.
41329         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41330         output_combclass, output_bidi_category, output_decimal_digit,
41331         output_digit, output_numeric, output_mirror, output_scripts,
41332         output_ident_category): Use proper width specifier in format strings.
41333
41334 2009-02-07  Bruno Haible  <bruno@clisp.org>
41335
41336         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41337         failure behaviour.
41338
41339 2009-02-07  Jim Meyering  <meyering@redhat.com>
41340
41341         regex: avoid compilation failure with upcoming gcc-4.4
41342         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41343         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41344         "... error: integer overflow in preprocessor expression".
41345
41346 2009-02-05  Ben Pfaff  <blp@gnu.org>
41347
41348         Fix link errors on Windows when close module is used.
41349         * modules/close: Add $(LIB_CLOSE) to Link section.
41350         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41351         $(LIB_CLOSE) on Windows.
41352
41353 2009-02-05  Jim Meyering  <meyering@redhat.com>
41354
41355         still avoid unused-parameter warnings, but do it cleanly
41356         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41357         (get_fs_usage): Cast to void instead.
41358         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41359         (dev_from_mount_options, read_file_system_list): Cast to void.
41360         Prompted by Bruno Haible.
41361
41362 2009-02-04  Jim Meyering  <meyering@redhat.com>
41363
41364         fsusage.c: correct copyright year
41365         * lib/fsusage.c: Reflect year in which the change is pushed into
41366
41367         avoid misc. warnings
41368         * lib/fsusage.c (UNUSED_PARAM): Define.
41369         (get_fs_usage): Mark parameter "disk" as unused.
41370         * lib/getugroups.c (getgrent): Use "void" in prototype.
41371         * lib/mountlist.c: Mark unused parameters.
41372         (read_file_system_list): Declare a local with "const".
41373         * lib/nanosleep.c (getnow): Declare static.
41374         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41375
41376         dirfd: set errno upon failure
41377         * lib/dirfd.c: Include <errno.h>.
41378         Set errno to ENOTSUP when returning -1.
41379         * modules/dirfd (Depends-on): Add errno.
41380         Suggested by John Kodis <kodis@comcast.net>.
41381
41382 2009-02-01  Bruno Haible  <bruno@clisp.org>
41383
41384         Don't assume sizeof (long) >= sizeof (void *).
41385         * lib/memcmp.c: Include stdint.h.
41386         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41387         srcp2 to 'const byte *'.
41388         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41389         types to uintptr_t.
41390         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41391         * modules/memcmp (Depends-on): Add stdint.
41392         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41393
41394 2009-01-30  Eric Blake  <ebb9@byu.net>
41395
41396         fix more require-before-expand issues
41397         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41398         expand, AC_PROG_AWK.
41399         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41400
41401 2009-01-28  Eric Blake  <ebb9@byu.net>
41402
41403         version-etc: use consistent URL formatting
41404         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41405         Improve formatting.  Use fputs for string without %.
41406
41407 2009-01-28  Jim Meyering  <meyering@redhat.com>
41408
41409         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41410         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41411         "underquoted definition of NAME" from autoconf-2.59.
41412
41413 2009-01-28  Bruno Haible  <bruno@clisp.org>
41414
41415         * doc/gnulib.texi: Add "Obsolete modules" to index.
41416
41417 2009-01-28  Jim Meyering  <meyering@redhat.com>
41418
41419         useless-if-before-free: recognize more variants
41420         * build-aux/useless-if-before-free: Also recognize e.g.,
41421         if (NULL != p) free (p);
41422
41423 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41424
41425         test-getaddrinfo: skip (don't fail) this test when there's no network
41426         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41427         on the presumption that it means you lack network access.
41428
41429 2009-01-26  Jim Meyering  <meyering@redhat.com>
41430
41431         fflush: avoid warnings on modern systems
41432         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41433         pos and result, into scopes where they're used.
41434
41435 2009-01-26  Eric Blake  <ebb9@byu.net>
41436
41437         Silence warning reintroduced by recent extensions patch.
41438         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41439         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41440         autoconf.
41441
41442         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41443         * m4/00gnulib.m4: New file.
41444         * gnulib-tool (func_get_filelist): Always use it.
41445         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41446         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41447
41448 2009-01-25  Bruno Haible  <bruno@clisp.org>
41449
41450         Make test-quotearg work on MacOS X and AIX.
41451         * tests/test-quotearg.sh: New file.
41452         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41453         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41454         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41455         include <libintl.h>.
41456         (fake_locale): Remove variable.
41457         (gettext, dgettext, dcgettext): Remove functions.
41458         (main): Instead of setting a fake locale, set a real locale. Call
41459         textdomain and bindtextdomain.
41460         * modules/quotearg-tests (Files): Add the new files.
41461         (Depends-on): Add gettext, setenv, unsetenv.
41462         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41463         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41464         Augment TESTS_ENVIRONMENT.
41465
41466 2009-01-25  Bruno Haible  <bruno@clisp.org>
41467
41468         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41469         fr_FR.ISO8859-1 locale on MacOS X.
41470         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41471         ja_JP.eucJP locale on MacOS X.
41472         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41473         zh_CN.GB18030 locale on MacOS X.
41474
41475 2009-01-25  Bruno Haible  <bruno@clisp.org>
41476
41477         Avoid link errors on MacOS X 10.3.
41478         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41479         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41480
41481 2009-01-25  Bruno Haible  <bruno@clisp.org>
41482
41483         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41484         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41485         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41486         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41487         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41488         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41489         posix_spawnattr_init, posix_spawnattr_setsigmask,
41490         posix_spawnattr_setflags, posix_spawnattr_destroy.
41491
41492         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41493         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41494         * modules/execute (Files): Remove m4/posix_spawn.m4.
41495         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41496         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41497         posix_spawnattr_init, posix_spawnattr_setsigmask,
41498         posix_spawnattr_setflags, posix_spawnattr_destroy.
41499
41500 2009-01-25  Bruno Haible  <bruno@clisp.org>
41501
41502         * lib/glthread/threadlib.c: Include <stdlib.h>.
41503
41504 2009-01-25  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/glthread/threadlib.c (dummy): New declaration.
41507
41508 2009-01-25  Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41511         multibyte characters also for the GB18030 encoding. Don't crash when
41512         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41513
41514 2009-01-25  Bruno Haible  <bruno@clisp.org>
41515
41516         Avoid redefining 'struct random_data' on OSF/1 5.1.
41517         * lib/stdlib.in.h: Include <random.h> if it exists.
41518         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41519         HAVE_RANDOM_H. Include <random.h> when testing whether
41520         'struct random_data' exists.
41521         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41522
41523 2009-01-25  Bruno Haible  <bruno@clisp.org>
41524
41525         Don't install charset.alias on MacOS X >= 10.3.
41526         * lib/localcharset.c (DARWIN7): New macro.
41527         (get_charset_aliases): Hardcode the result for Darwin7.
41528         * modules/localcharset (install-exec-local): Don't install
41529         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41530
41531 2009-01-25  Bruno Haible  <bruno@clisp.org>
41532
41533         Don't install charset.alias on mingw and Cygwin.
41534         * modules/localcharset (install-exec-local): Don't install
41535         charset.alias on mingw and Cygwin, if the file does not yet exist.
41536         The result for these platforms is hardcoded in localcharset.c.
41537
41538 2009-01-25  Bruno Haible  <bruno@clisp.org>
41539
41540         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41542         before requiring AC_USE_SYSTEM_EXTENSIONS.
41543
41544 2009-01-25  Jim Meyering  <meyering@redhat.com>
41545
41546         c-strtod: avoid warnings
41547         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41548         "assignment discards qualifiers from pointer target type" warnings.
41549
41550 2009-01-24  Bruno Haible  <bruno@clisp.org>
41551
41552         Add support for non-UTF-8 locales on MacOS X.
41553         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41554         canonical encodings. For Darwin 7 and newer, don't map traditional
41555         encodings to UTF-8.
41556         Reported by Vincent Lefevre <vincent@vinc17.org>
41557         at <http://savannah.gnu.org/bugs/?25235>.
41558
41559 2009-01-24  Bruno Haible  <bruno@clisp.org>
41560
41561         * doc/gnulib.texi (Obsolete modules): New section.
41562         Reported by Mike Frysinger <vapier@gentoo.org>.
41563
41564 2009-01-24  Bruno Haible  <bruno@clisp.org>
41565
41566         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41567         (%.dvi): New rule.
41568
41569 2009-01-24  Bruno Haible  <bruno@clisp.org>
41570
41571         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41572         Reported by Eric Blake.
41573
41574 2009-01-24  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41577         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41578         Reported by Gary V. Vaughan <gary@gnu.org>.
41579
41580 2009-01-24  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41583
41584 2009-01-23  Bruno Haible  <bruno@clisp.org>
41585
41586         Make c-strtod, c-strtold usable in libraries.
41587         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41588         (C_STRTOD): Call strdup instead of xstrdup.
41589         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41590         * modules/c-strtold (Depends-on): Likewise.
41591         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41592         * NEWS: Mention the change.
41593         Reported by Michael Gold <mgold@ncf.ca>.
41594
41595 2009-01-23  Jim Meyering  <meyering@redhat.com>
41596
41597         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41598         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41599         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41600
41601 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41602
41603         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41604         GNU CoreUtils.
41605         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41606         * modules/version-etc (Description): Update.
41607
41608 2009-01-22  Bruno Haible  <bruno@clisp.org>
41609
41610         Cache the C locale object.
41611         * lib/c-strtod.c (c_locale_cache): New variable.
41612         (c_locale): New function.
41613         (C_STRTOD): Use it, and don't call freelocale.
41614         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41615         Suggested by Paolo Bonzini.
41616
41617 2009-01-21  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41620         conditions other than overflow.
41621
41622 2009-01-21  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/c-strtod.c: Include errno.h.
41625         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41626         value from STRTOD_L and STRTOD.
41627
41628 2009-01-21  Bruno Haible  <bruno@clisp.org>
41629         and Jim Meyering  <meyering@redhat.com>
41630
41631         nanosleep: skip configure test (fail it) for apple universal builds
41632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41633         universal builds, assume that nanosleep does not work.
41634         * modules/nanosleep (Depends-on): Add multiarch.
41635
41636         mktime: skip configure test (fail it) for apple universal builds
41637         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41638         universal builds, assume that mktime does not work.
41639         * modules/mktime (Depends-on): Add multiarch.
41640
41641 2009-01-21  Eric Blake  <ebb9@byu.net>
41642
41643         multiarch: avoid expand-before-require warning
41644         * modules/multiarch (configure.ac): Require, rather than expand,
41645         gl_MULTIARCH.
41646         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41647         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41648         enforce that all clients require it.  Partial reversion of
41649         2008-12-29 patch.
41650
41651         error: avoid expand-before-require warning
41652         * modules/errno (configure.ac): Require, rather than expand,
41653         gl_HEADER_ERRNO_H.
41654         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41655         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41656         enforce that all clients require it.
41657
41658         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41659         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41660         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41661         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41662
41663 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41664
41665         Revert:
41666         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41667
41668         regex: do not depend on obsolete modules.
41669         * modules/regex: Remove memcmp and memmove.
41670
41671 2009-01-20  Bruno Haible  <bruno@clisp.org>
41672
41673         Make the 'link' module link on Windows NT 4.
41674         * lib/link.c (_WIN32_WINNT): Don't define.
41675         (CreateHardLinkFuncType): New type.
41676         (CreateHardLinkFunc, initialized): New variables.
41677         (initialize): New function.
41678         (link): Invoke CreateHardLink indirectly through the function pointer.
41679
41680 2009-01-20  Bruno Haible  <bruno@clisp.org>
41681
41682         Fix compilation failure on mingw.
41683         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41684
41685 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41686
41687         * doc/c-strtod.texi: Mention a couple of restrictions.
41688
41689 2009-01-20  Jim Meyering  <meyering@redhat.com>
41690
41691         gettimeofday: move more declarations out of functions
41692         * lib/gettimeofday.c: Move extern declarations of tzset and
41693         gmtime out of containing functions.  Prompted by Bruno Haible.
41694
41695 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41696
41697         regex: do not depend on obsolete modules.
41698         * modules/regex: Remove memcmp and memmove.
41699
41700 2009-01-19  Bruno Haible  <bruno@clisp.org>
41701
41702         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41703         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41704         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41705         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41706         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41707
41708 2009-01-19  Bruno Haible  <bruno@clisp.org>
41709
41710         * tests/test-link.c: Include <errno.h>.
41711         (main): Exit with code 77 when a hard link cannot be created due to
41712         the file system.
41713         * tests/test-link.sh: Skip test when a hard link cannot be created due
41714         to the file system.
41715         Suggested by Eric Blake.
41716
41717 2009-01-19  Martin Lambers  <marlam@marlam.de>
41718
41719         * modules/link-tests: New file.
41720         * tests/test-link.sh: New file.
41721         * tests/test-link.c: New file.
41722
41723 2009-01-19  Eric Blake  <ebb9@byu.net>
41724
41725         doc: mention another function added in cygwin 1.7.0
41726         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41727         Another new function in cygwin 1.7.
41728
41729 2009-01-19  Bruno Haible  <bruno@clisp.org>
41730
41731         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41732         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41733         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41734         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41735         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41736         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41737         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41738         * m4/md4.m4 (gl_MD4): Likewise.
41739         * m4/md5.m4 (gl_MD5): Likewise.
41740         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41741         * m4/sha1.m4 (gl_SHA1): Likewise.
41742         * m4/sha256.m4 (gl_SHA256): Likewise.
41743         * m4/sha512.m4 (gl_SHA512): Likewise.
41744
41745 2009-01-19  Bruno Haible  <bruno@clisp.org>
41746
41747         * modules/uniname/uniname-tests (Depends-on): Add progname.
41748         * tests/uniname/test-uninames.c: Include progname.h.
41749         (main): Call set_program_name.
41750
41751         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41752         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41753         (main): Call set_program_name.
41754
41755         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41756         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41757         (main): Call set_program_name.
41758
41759         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41760         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41761         (main): Call set_program_name.
41762
41763         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41764         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41765         (main): Call set_program_name.
41766
41767         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41768         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41769         (main): Call set_program_name.
41770
41771         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41772         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41773         (main): Call set_program_name.
41774
41775         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41776         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41777         (main): Call set_program_name.
41778
41779         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41780         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41781         (main): Call set_program_name.
41782
41783 2009-01-19  Eric Blake  <ebb9@byu.net>
41784
41785         test-unistd: test previous patch
41786         * tests/test-unistd.c: Test *_FILENO macros.
41787
41788         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41789         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41790         Guarantee a definition.
41791         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41792         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41793         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41794         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41795         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41796         Likewise.
41797         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41798         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41799         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41800         Likewise.
41801         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41802         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41803         (STDERR_FILENO): Likewise.
41804         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41805         (STDERR_FILENO): Likewise.
41806         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41807         (STDERR_FILENO): Likewise.
41808         Reported by Elbert Pol.
41809
41810 2009-01-19  Eric Blake  <ebb9@byu.net>
41811
41812         doc: mention more functions added in cygwin 1.7.0
41813         * doc/posix-functions/abort.texi (abort): Update wording related
41814         to cygwin.
41815         * doc/posix-functions/daylight.texi (daylight): Likewise.
41816         * doc/posix-functions/optarg.texi (optarg): Likewise.
41817         * doc/posix-functions/optarg.texi (opterr): Likewise.
41818         * doc/posix-functions/optarg.texi (optind): Likewise.
41819         * doc/posix-functions/optarg.texi (optopt): Likewise.
41820         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41821         worked in 1.5.x, and was withdrawn in 1.7.
41822         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41823         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41824         cygwin versions.
41825         * doc/posix-functions/perror.texi (perror): Likewise.
41826         * doc/posix-functions/printf.texi (printf): Likewise.
41827         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41828         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41829         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41830         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41831         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41832         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41833         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41834         Likewise.
41835         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41836         Likewise.
41837         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41838         this function.
41839         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41840         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41841         Likewise.
41842         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41843         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41844         * doc/posix-functions/confstr.texi (confstr): Likewise.
41845         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41846         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41847         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41848         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41849         * doc/posix-functions/fputws.texi (fputws): Likewise.
41850         * doc/posix-functions/fwide.texi (fwide): Likewise.
41851         * doc/posix-functions/getwc.texi (getwc): Likewise.
41852         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41853         * doc/posix-functions/putwc.texi (putwc): Likewise.
41854         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41855         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41856         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41857         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41858         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41859         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41860         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41861         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41862         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41863         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41864         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41865
41866 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41867
41868         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41869         * lib/ioctl.c: Include <sys/ioctl.h>.
41870
41871 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41872
41873         * modules/getdate-tests (Depends-on): Add progname.
41874         * tests/test-getdate.c: Use progname module, to avoid link errors
41875         on non-glibc systems.
41876
41877 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41878
41879         * modules/filenamecat-tests (Depends-on): Add progname.
41880         * modules/fstrcmp-tests (Depends-on): Likewise.
41881
41882         * tests/test-filenamecat.c: Use progname module, to avoid link
41883         errors on non-glibc systems.
41884         * tests/test-fstrcmp.c: Likewise.
41885
41886 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41887
41888         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41889         * lib/gettimeofday.c: Move extern declaration out of function.
41890
41891 2009-01-18  Bruno Haible  <bruno@clisp.org>
41892
41893         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41894         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41895         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41896
41897 2009-01-18  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/strftime.c (MEMPCPY): Remove unused macro.
41900         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41901
41902 2009-01-18  Martin Lambers  <marlam@marlam.de>
41903
41904         New module 'link'.
41905         * lib/unistd.in.h (link): New declaration.
41906         * lib/link.c: New file.
41907         * m4/link.m4: New file.
41908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41909         HAVE_LINK.
41910         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41911         * modules/link: New file.
41912         * doc/posix-functions/link.texi: Mention the new module.
41913
41914 2009-01-18  Bruno Haible  <bruno@clisp.org>
41915
41916         * tests/test-avltree_list.c (main): Call set_program_name.
41917         * tests/test-avltree_oset.c (main): Likewise.
41918         * tests/test-obstack-printf.c: Include progname.h.
41919         (main): Call set_program_name.
41920         * tests/test-quotearg.c: Include progname.h.
41921         (main): Call set_program_name.
41922         * tests/test-xmemdup0.c: Include progname.h.
41923         (main): Call set_program_name.
41924
41925 2009-01-18  Bruno Haible  <bruno@clisp.org>
41926
41927         New module 'alphasort'.
41928         * lib/dirent.in.h (alphasort): New declaration.
41929         * lib/alphasort.c: New file, from glibc with modifications.
41930         * m4/alphasort.m4: New file.
41931         * modules/alphasort: New file.
41932         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41933         HAVE_ALPHASORT.
41934         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41935         HAVE_ALPHASORT.
41936         * doc/posix-functions/alphasort.texi: Mention the new module and the
41937         portability problems.
41938
41939 2009-01-18  Bruno Haible  <bruno@clisp.org>
41940
41941         New module 'scandir'.
41942         * lib/dirent.in.h (scandir): New declaration.
41943         * lib/scandir.c: New file, from glibc with modifications.
41944         * m4/scandir.m4: New file.
41945         * modules/scandir: New file.
41946         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41947         HAVE_SCANDIR.
41948         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41949         HAVE_SCANDIR.
41950         * doc/posix-functions/scandir.texi: Mention the new module and the
41951         portability problems.
41952
41953 2009-01-17  Bruno Haible  <bruno@clisp.org>
41954
41955         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41956         Update documentation.
41957         (func_remove_suffix): Escape all dots in the suffix. Update
41958         documentation.
41959         (func_filter_filelist): Update documentation.
41960         Reported by Ralf Wildenhues.
41961
41962 2009-01-17  Bruno Haible  <bruno@clisp.org>
41963
41964         * modules/dprintf-posix-tests: New file.
41965         * tests/test-dprintf-posix.sh: New file.
41966         * tests/test-dprintf-posix.c: New file.
41967
41968         New modules 'dprintf', 'dprintf-posix'.
41969         * lib/stdio.in.h (dprintf): New declaration.
41970         * lib/dprintf.c: New file.
41971         * m4/dprintf.m4: New file.
41972         * m4/dprintf-posix.m4: New file.
41973         * modules/dprintf: New file.
41974         * modules/dprintf-posix: New file.
41975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41976         HAVE_DPRINTF, REPLACE_DPRINTF.
41977         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41978         HAVE_DPRINTF, REPLACE_DPRINTF.
41979         * doc/posix-functions/dprintf.texi: Mention the new modules.
41980
41981 2009-01-17  Bruno Haible  <bruno@clisp.org>
41982
41983         * modules/vdprintf-posix-tests: New file.
41984         * tests/test-vdprintf-posix.sh: New file.
41985         * tests/test-vdprintf-posix.c: New file.
41986
41987         New modules 'vdprintf', 'vdprintf-posix'.
41988         * lib/stdio.in.h (vdprintf): New declaration.
41989         * lib/vdprintf.c: New file.
41990         * m4/vdprintf.m4: New file.
41991         * m4/vdprintf-posix.m4: New file.
41992         * modules/vdprintf: New file.
41993         * modules/vdprintf-posix: New file.
41994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41995         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41996         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41997         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41998         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41999
42000 2009-01-17  Bruno Haible  <bruno@clisp.org>
42001
42002         Fix replacement of fopen on mingw.
42003         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42004         mingw.
42005
42006 2009-01-17  Bruno Haible  <bruno@clisp.org>
42007
42008         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42009         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42010
42011 2009-01-17  Bruno Haible  <bruno@clisp.org>
42012
42013         Avoid test-fflush2.sh failure on mingw.
42014         * tests/test-fflush2.c: Include binary-io.h.
42015         (main): Put standard input into binary mode.
42016         * modules/fflush-tests (Depends-on): Add binary-io.
42017
42018 2009-01-17  Bruno Haible  <bruno@clisp.org>
42019
42020         * lib/wchar.in.h: In another particular situation, include only the
42021         system's <wchar.h> file.
42022         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42023         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42024         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42025
42026 2009-01-17  Bruno Haible  <bruno@clisp.org>
42027
42028         Support for stripping executables in --enable-relocatable.
42029         * build-aux/install-reloc: Expect one more argument, or an environment
42030         variable RELOC_STRIP_PROG. If set, strip the destination program and
42031         its wrapper.
42032         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42033         RELOC_STRIP_PROG.
42034         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42035         to set RELOCATABLE_STRIP.
42036         * NEWS: Mention the new Makefile requirement.
42037
42038 2009-01-17  Bruno Haible  <bruno@clisp.org>
42039
42040         * build-aux/install-reloc: Remove debugging information left over by
42041         C compiler on MacOS X.
42042
42043 2009-01-17  Bruno Haible  <bruno@clisp.org>
42044
42045         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42046         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42047         _NSGetExecutablePath.
42048
42049 2009-01-16  Jim Meyering  <meyering@redhat.com>
42050
42051         strerror: avoid warnings about discarding "const"
42052         * lib/strerror.c (rpl_strerror): Instead of returning a const
42053         string from each and every "case", use a variable, and add a single
42054         cast after the switch.
42055
42056 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42057
42058         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42059
42060 2009-01-16  Bruno Haible  <bruno@clisp.org>
42061
42062         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42063         array initializer syntax that also works in C++ mode.
42064         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42065
42066 2009-01-16  Jim Meyering  <meyering@redhat.com>
42067
42068         poll: suppress a warning
42069         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42070         to ignore "...unsigned expression < 0 is always false" warnings.
42071
42072 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42073
42074         poll: remove declarations of unused variables
42075         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42076         sockbuf and optlen.
42077
42078 2009-01-15  Bruno Haible  <bruno@clisp.org>
42079
42080         Make fflush-after-ungetc POSIX compliant on BSD systems.
42081         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42082         (clear_ungetc_buffer): Implement also for other systems.
42083         (rpl_fflush): On glibc systems, invoke
42084         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42085         clear_ungetc_buffer after fetching the stream's position, not before.
42086
42087 2009-01-15  Bruno Haible  <bruno@clisp.org>
42088
42089         Make fflush-after-ungetc POSIX compliant on glibc systems.
42090         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42091         after ungetc.
42092         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42093         (rpl_fflush): On glibc systems, simply call the system's fflush
42094         function after clearing the ungetc buffer.
42095         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42096         Instead, lseek only to the end of file, then use the system's fseeko
42097         for the rest. On glibc systems, reset the EOF indicator bit.
42098
42099 2009-01-15  Jim Meyering  <meyering@redhat.com>
42100
42101         openmp.m4: revert quote-adding change, for portability to older autoconf
42102         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42103         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42104         Simon Josefsson noticed the problem when using autoconf-2.61.
42105
42106 2009-01-15  Bruno Haible  <bruno@clisp.org>
42107
42108         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42109         * tests/test-fflush2.c (ASSERT): Always fail.
42110         (main): Add two tests for fflush() after ungetc(), taking into account
42111         the Austin Group's clarification.
42112         Suggested by Eric Blake.
42113
42114 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42115
42116         mktime.m4: remove K&R-style function prototypes
42117         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42118         for the Sun C++ compiler.
42119
42120 2009-01-14  Bruno Haible  <bruno@clisp.org>
42121
42122         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42123         while including <wchar.h>.
42124         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42125         the system's <wchar.h> file.
42126         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42127
42128 2009-01-14  Bruno Haible  <bruno@clisp.org>
42129
42130         * m4/csharp.m4: Don't mention gettext on the serial number line.
42131         * m4/csharpexec.m4: Likewise.
42132         * m4/eaccess.m4: Likewise.
42133         * m4/javaexec.m4: Likewise.
42134         * m4/sig_atomic_t.m4: Likewise.
42135         * m4/tmpdir.m4: Likewise.
42136         * m4/intldir.m4: Bump gettext version.
42137         * m4/lib-ld.m4: Likewise.
42138
42139 2009-01-14  Bruno Haible  <bruno@clisp.org>
42140
42141         * lib/progname.c (set_program_name): Add more comments.
42142         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42143
42144 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42145
42146         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42147         were sys/stat.h does not define it.
42148
42149 2009-01-14  Jim Meyering  <meyering@redhat.com>
42150
42151         many *.m4 files: improve m4 quoting
42152         99% of this change was performed by running the following commands:
42153         git ls-files | grep '\.m4$' | xargs perl -pi \
42154           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42155           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42156           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42157           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42158         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42159         The remainder were to add Copyright dates, increment serial numbers,
42160         undo some changes in comments, exclude m4/intl.m4, and add quotes
42161         around the "1" in ",1" where the unusual spacing prohibited the
42162         above regexps from doing the job.  For more details, see
42163         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42164         * m4/acl.m4: Modified.
42165         * m4/afs.m4: Likewise.
42166         * m4/alloca.m4: Likewise.
42167         * m4/argp.m4: Likewise.
42168         * m4/argz.m4: Likewise.
42169         * m4/atexit.m4: Likewise.
42170         * m4/bison-i18n.m4: Likewise.
42171         * m4/bison.m4: Likewise.
42172         * m4/byteswap.m4: Likewise.
42173         * m4/c-stack.m4: Likewise.
42174         * m4/c-strtod.m4: Likewise.
42175         * m4/calloc.m4: Likewise.
42176         * m4/canonicalize-lgpl.m4: Likewise.
42177         * m4/chown.m4: Likewise.
42178         * m4/clock_time.m4: Likewise.
42179         * m4/codeset.m4: Likewise.
42180         * m4/copy-file.m4: Likewise.
42181         * m4/csharp.m4: Likewise.
42182         * m4/csharpcomp.m4: Likewise.
42183         * m4/csharpexec.m4: Likewise.
42184         * m4/d-ino.m4: Likewise.
42185         * m4/d-type.m4: Likewise.
42186         * m4/dirfd.m4: Likewise.
42187         * m4/double-slash-root.m4: Likewise.
42188         * m4/eaccess.m4: Likewise.
42189         * m4/eealloc.m4: Likewise.
42190         * m4/environ.m4: Likewise.
42191         * m4/errno_h.m4: Likewise.
42192         * m4/euidaccess.m4: Likewise.
42193         * m4/execute.m4: Likewise.
42194         * m4/fatal-signal.m4: Likewise.
42195         * m4/fchdir.m4: Likewise.
42196         * m4/fcntl_h.m4: Likewise.
42197         * m4/fileblocks.m4: Likewise.
42198         * m4/filenamecat.m4: Likewise.
42199         * m4/findprog.m4: Likewise.
42200         * m4/flexmember.m4: Likewise.
42201         * m4/fnmatch.m4: Likewise.
42202         * m4/fopen.m4: Likewise.
42203         * m4/fpending.m4: Likewise.
42204         * m4/fprintf-posix.m4: Likewise.
42205         * m4/free.m4: Likewise.
42206         * m4/frexp.m4: Likewise.
42207         * m4/frexpl.m4: Likewise.
42208         * m4/fsusage.m4: Likewise.
42209         * m4/ftruncate.m4: Likewise.
42210         * m4/gc-camellia.m4: Likewise.
42211         * m4/gc-random.m4: Likewise.
42212         * m4/gc.m4: Likewise.
42213         * m4/getaddrinfo.m4: Likewise.
42214         * m4/getcwd-abort-bug.m4: Likewise.
42215         * m4/getcwd-path-max.m4: Likewise.
42216         * m4/getdate.m4: Likewise.
42217         * m4/getdomainname.m4: Likewise.
42218         * m4/getgroups.m4: Likewise.
42219         * m4/gethostname.m4: Likewise.
42220         * m4/gethrxtime.m4: Likewise.
42221         * m4/getline.m4: Likewise.
42222         * m4/getloadavg.m4: Likewise.
42223         * m4/getndelim2.m4: Likewise.
42224         * m4/getpass.m4: Likewise.
42225         * m4/gettext.m4: Likewise.
42226         * m4/gettime.m4: Likewise.
42227         * m4/gettimeofday.m4: Likewise.
42228         * m4/gnulib-common.m4: Likewise.
42229         * m4/group-member.m4: Likewise.
42230         * m4/host-os.m4: Likewise.
42231         * m4/iconv.m4: Likewise.
42232         * m4/iconv_open.m4: Likewise.
42233         * m4/inet_ntop.m4: Likewise.
42234         * m4/inet_pton.m4: Likewise.
42235         * m4/inline.m4: Likewise.
42236         * m4/intldir.m4: Likewise.
42237         * m4/intlmacosx.m4: Likewise.
42238         * m4/intmax.m4: Likewise.
42239         * m4/intmax_t.m4: Likewise.
42240         * m4/inttypes.m4: Likewise.
42241         * m4/inttypes_h.m4: Likewise.
42242         * m4/inttypes-pri.m4: Likewise.
42243         * m4/isapipe.m4: Likewise.
42244         * m4/isnand.m4: Likewise.
42245         * m4/isnanf.m4: Likewise.
42246         * m4/isnanl.m4: Likewise.
42247         * m4/javacomp.m4: Likewise.
42248         * m4/javaexec.m4: Likewise.
42249         * m4/jm-winsz1.m4: Likewise.
42250         * m4/jm-winsz2.m4: Likewise.
42251         * m4/lchown.m4: Likewise.
42252         * m4/lcmessage.m4: Likewise.
42253         * m4/ldexpl.m4: Likewise.
42254         * m4/lib-ld.m4: Likewise.
42255         * m4/lib-link.m4: Likewise.
42256         * m4/libsigsegv.m4: Likewise.
42257         * m4/link-follow.m4: Likewise.
42258         * m4/localcharset.m4: Likewise.
42259         * m4/locale-fr.m4: Likewise.
42260         * m4/locale-ja.m4: Likewise.
42261         * m4/locale-tr.m4: Likewise.
42262         * m4/locale-zh.m4: Likewise.
42263         * m4/lock.m4: Likewise.
42264         * m4/longlong.m4: Likewise.
42265         * m4/ls-mntd-fs.m4: Likewise.
42266         * m4/lstat.m4: Likewise.
42267         * m4/malloc.m4: Likewise.
42268         * m4/mathl.m4: Likewise.
42269         * m4/mbrtowc.m4: Likewise.
42270         * m4/mbstate_t.m4: Likewise.
42271         * m4/mbswidth.m4: Likewise.
42272         * m4/memchr.m4: Likewise.
42273         * m4/memcmp.m4: Likewise.
42274         * m4/memcpy.m4: Likewise.
42275         * m4/memmem.m4: Likewise.
42276         * m4/memmove.m4: Likewise.
42277         * m4/mempcpy.m4: Likewise.
42278         * m4/memrchr.m4: Likewise.
42279         * m4/memset.m4: Likewise.
42280         * m4/minmax.m4: Likewise.
42281         * m4/mkdir-slash.m4: Likewise.
42282         * m4/mkdtemp.m4: Likewise.
42283         * m4/mktime.m4: Likewise.
42284         * m4/mmap-anon.m4: Likewise.
42285         * m4/mountlist.m4: Likewise.
42286         * m4/nanosleep.m4: Likewise.
42287         * m4/nls.m4: Likewise.
42288         * m4/nocrash.m4: Likewise.
42289         * m4/open.m4: Likewise.
42290         * m4/openat.m4: Likewise.
42291         * m4/openmp.m4: Likewise.
42292         * m4/pathmax.m4: Likewise.
42293         * m4/perl.m4: Likewise.
42294         * m4/physmem.m4: Likewise.
42295         * m4/pipe.m4: Likewise.
42296         * m4/po.m4: Likewise.
42297         * m4/poll.m4: Likewise.
42298         * m4/posixtm.m4: Likewise.
42299         * m4/posixver.m4: Likewise.
42300         * m4/printf-frexp.m4: Likewise.
42301         * m4/printf-frexpl.m4: Likewise.
42302         * m4/printf-posix.m4: Likewise.
42303         * m4/printf-posix-rpl.m4: Likewise.
42304         * m4/printf.m4: Likewise.
42305         * m4/progtest.m4: Likewise.
42306         * m4/putenv.m4: Likewise.
42307         * m4/readline.m4: Likewise.
42308         * m4/readlink.m4: Likewise.
42309         * m4/readutmp.m4: Likewise.
42310         * m4/realloc.m4: Likewise.
42311         * m4/regex.m4: Likewise.
42312         * m4/relocatable.m4: Likewise.
42313         * m4/relocatable-lib.m4: Likewise.
42314         * m4/rename-dest-slash.m4: Likewise.
42315         * m4/rename.m4: Likewise.
42316         * m4/rmdir-errno.m4: Likewise.
42317         * m4/rmdir.m4: Likewise.
42318         * m4/roundf.m4: Likewise.
42319         * m4/roundl.m4: Likewise.
42320         * m4/rpmatch.m4: Likewise.
42321         * m4/save-cwd.m4: Likewise.
42322         * m4/selinux-selinux-h.m4: Likewise.
42323         * m4/setenv.m4: Likewise.
42324         * m4/settime.m4: Likewise.
42325         * m4/sig2str.m4: Likewise.
42326         * m4/sig_atomic_t.m4: Likewise.
42327         * m4/signalblocking.m4: Likewise.
42328         * m4/signbit.m4: Likewise.
42329         * m4/sigpipe.m4: Likewise.
42330         * m4/sockets.m4: Likewise.
42331         * m4/sockpfaf.m4: Likewise.
42332         * m4/st_dm_mode.m4: Likewise.
42333         * m4/stat-time.m4: Likewise.
42334         * m4/stdbool.m4: Likewise.
42335         * m4/stdint.m4: Likewise.
42336         * m4/stdint_h.m4: Likewise.
42337         * m4/stpcpy.m4: Likewise.
42338         * m4/stpncpy.m4: Likewise.
42339         * m4/strcase.m4: Likewise.
42340         * m4/strchrnul.m4: Likewise.
42341         * m4/strcspn.m4: Likewise.
42342         * m4/strdup.m4: Likewise.
42343         * m4/strftime.m4: Likewise.
42344         * m4/strndup.m4: Likewise.
42345         * m4/strnlen.m4: Likewise.
42346         * m4/strpbrk.m4: Likewise.
42347         * m4/strptime.m4: Likewise.
42348         * m4/strsep.m4: Likewise.
42349         * m4/strtod.m4: Likewise.
42350         * m4/strtoimax.m4: Likewise.
42351         * m4/strtok_r.m4: Likewise.
42352         * m4/strtol.m4: Likewise.
42353         * m4/strtoll.m4: Likewise.
42354         * m4/strtoul.m4: Likewise.
42355         * m4/strtoull.m4: Likewise.
42356         * m4/strtoumax.m4: Likewise.
42357         * m4/strverscmp.m4: Likewise.
42358         * m4/threadlib.m4: Likewise.
42359         * m4/timegm.m4: Likewise.
42360         * m4/tm_gmtoff.m4: Likewise.
42361         * m4/tmpdir.m4: Likewise.
42362         * m4/tmpfile.m4: Likewise.
42363         * m4/tzset.m4: Likewise.
42364         * m4/uintmax_t.m4: Likewise.
42365         * m4/unlinkdir.m4: Likewise.
42366         * m4/unlocked-io.m4: Likewise.
42367         * m4/uptime.m4: Likewise.
42368         * m4/userspec.m4: Likewise.
42369         * m4/utimbuf.m4: Likewise.
42370         * m4/utime.m4: Likewise.
42371         * m4/utimes-null.m4: Likewise.
42372         * m4/utimes.m4: Likewise.
42373         * m4/vararrays.m4: Likewise.
42374         * m4/vasnprintf.m4: Likewise.
42375         * m4/vfprintf-posix.m4: Likewise.
42376         * m4/vprintf-posix.m4: Likewise.
42377         * m4/wait-process.m4: Likewise.
42378         * m4/wchar_t.m4: Likewise.
42379         * m4/wint_t.m4: Likewise.
42380         * m4/write-any-file.m4: Likewise.
42381         * m4/yield.m4: Likewise.
42382
42383 2009-01-13  Bruno Haible  <bruno@clisp.org>
42384
42385         Avoid test-copy-file.sh failures when ACL support insufficient.
42386         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42387         TESTS_ENVIRONMENT.
42388         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42389         Reported by Jim Meyering.
42390
42391 2009-01-13  Bruno Haible  <bruno@clisp.org>
42392
42393         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42394         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42395         * modules/unistdio/u8-printf-parse (Files): Likewise.
42396         * modules/unistdio/u32-printf-parse (Files): Likewise.
42397         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42398
42399 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42400
42401         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42402         and m4/inttypes_h.m4 too.
42403
42404 2009-01-12  Eric Blake  <ebb9@byu.net>
42405
42406         tests: IRIX 6.2 cc can't compile -0.0 into .data
42407         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42408         rather than at compile-time.
42409         * tests/test-floorl.c (minus_zero): Likewise.
42410         * tests/test-frexpl.c (minus_zero): Likewise.
42411         * tests/test-isnan.c (minus_zerol): Likewise.
42412         * tests/test-isnanl.h (minus_zero): Likewise.
42413         * tests/test-ldexpl.c (minus_zero): Likewise.
42414         * tests/test-roundl.c (minus_zero): Likewise.
42415         * tests/test-signbit.c (minus_zerol): Likewise.
42416         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42417         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42418         * tests/test-truncl.c (minus_zero): Likewise.
42419         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42420         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42421         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42422
42423 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42424
42425         regex: fix glibc bug 9697
42426         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42427         handling.
42428
42429 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42430
42431         regex: fix glibc bug 697
42432         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42433         being NULL also if there are no backreferences.
42434
42435 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42436
42437         regex: merge glibc changes
42438         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42439         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42440         re_string_skip_chars, re_string_reconstruct): Likewise.
42441         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42442
42443 2009-01-07  Jim Meyering  <meyering@redhat.com>
42444
42445         poll: filter through cppi
42446         * lib/poll.c: Indent cpp directives to reflect nesting.
42447
42448 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42449
42450         poll: don't return uninitialized
42451         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42452
42453 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42454
42455         avoid compile failure on AIX 6.1
42456         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42457         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42458
42459 2009-01-04  Jim Meyering  <meyering@redhat.com>
42460
42461         remove duplicate inclusion of <stdio.h>
42462         * tests/test-fprintf-posix.c: Likewise.
42463         * tests/test-printf-posix.c: Likewise.
42464         * tests/test-snprintf-posix.c: Likewise.
42465         * tests/test-sprintf-posix.c: Likewise.
42466         * tests/test-vasprintf-posix.c: Likewise.
42467         * tests/test-vfprintf-posix.c: Likewise.
42468         * tests/test-vprintf-posix.c: Likewise.
42469         * tests/test-vsnprintf-posix.c: Likewise.
42470         * tests/test-vsprintf-posix.c: Likewise.
42471
42472 2009-01-03  Jim Meyering  <meyering@redhat.com>
42473
42474         gnulib-tool: fix sed-based filtering
42475         * gnulib-tool (func_filter_filelist): Remove extra backslash
42476         in sed_fff_filter definition.
42477
42478 2009-01-02  Jim Meyering  <meyering@redhat.com>
42479
42480         strftime: avoid compilation failure on Solaris 2.6
42481         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42482         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42483         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42484         be available.  Reported by Tom G. Christensen.  Details in
42485         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42486
42487 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42488             Bruno Haible  <bruno@clisp.org>
42489
42490         Speed up gnulib-tool by doing more string processing through shell
42491         built-ins.
42492         * gnulib-tool (fast_func_append): New variable.
42493         (func_remove_prefix, func_remove_suffix): New functions.
42494         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42495         (func_filter_filelist): New function.
42496         (func_get_dependencies): Use func_remove_suffix instead of sed.
42497         (func_get_automake_snippet): Use func_filter_filelist instead of a
42498         subshell and sed invocation.
42499
42500 2009-01-01  Bruno Haible  <bruno@clisp.org>
42501
42502         Fix a security bug.
42503         * gnulib-tool (func_import, import, update): Don't allow the characters
42504         '"', '$', '`', '\' in macro arguments that become part of commands that
42505         are evaluated.
42506
42507 2009-01-01  Bruno Haible  <bruno@clisp.org>
42508
42509         * gnulib-tool (func_reset_sigpipe): Add more comments.
42510
42511 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42512
42513         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42514         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42515         already know the answer.
42516
42517 2009-01-01  Jim Meyering  <meyering@redhat.com>
42518
42519         * lib/version-etc.c (version_etc_va): Update copyright year.
42520
42521 2008-12-30  Bruno Haible  <bruno@clisp.org>
42522
42523         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42524         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42525         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42526
42527 2008-12-29  Eric Blake  <ebb9@byu.net>
42528
42529         multiarch: avoid autoconf AC_REQUIRE bug
42530         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42531         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42532         2.63 and older.
42533         Reported by Bruno Haible, and analyzed in
42534         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42535
42536 2008-12-29  Bruno Haible  <bruno@clisp.org>
42537
42538         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42539         files in subdirectories correctly.
42540         Reported by Ralf Wildenhues.
42541
42542 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42543
42544         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42545         rather than 'join FILE -', for Solaris join.
42546
42547 2008-12-29  Bruno Haible  <bruno@clisp.org>
42548
42549         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42550         quoting.
42551         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42552         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42553         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42554         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42555         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42556         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42557         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42558         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42559         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42560         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42561         * m4/nls.m4 (AM_NLS): Likewise.
42562         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42563         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42564         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42565         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42566         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42567         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42568         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42569         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42570         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42571         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42572         * m4/xsize.m4 (gl_XSIZE): Likewise.
42573         Suggested by Jim Meyering.
42574
42575 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42576
42577         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42578         * lib/parse-duration.c: use a switch instead of cascading if's.
42579
42580 2008-12-29  Eric Blake  <ebb9@byu.net>
42581
42582         wchar.h: supply WEOF on Irix 5.3
42583         * lib/wchar.in.h (wint_t): Also supply WEOF.
42584         * lib/wctype.in.h (wint_t): Likewise.
42585         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42586         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42587         Reported by Tom G. Christensen.
42588
42589 2008-12-26  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42592         i486, i586, i686.
42593
42594 2008-12-26  Bruno Haible  <bruno@clisp.org>
42595
42596         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42597
42598 2008-12-26  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42601         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42602         not __STDC_CONSTANT_MACROS.
42603         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42604
42605 2008-12-25  Bruno Haible  <bruno@clisp.org>
42606
42607         Add support for universal builds to vasnprintf.
42608         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42609         universal builds, guess no.
42610         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42611         * modules/vasprintf-posix (Depends-on): Likewise.
42612         * modules/fprintf-posix (Depends-on): Likewise.
42613         * modules/vfprintf-posix (Depends-on): Likewise.
42614         * modules/snprintf-posix (Depends-on): Likewise.
42615         * modules/vsnprintf-posix (Depends-on): Likewise.
42616         * modules/sprintf-posix (Depends-on): Likewise.
42617         * modules/vsprintf-posix (Depends-on): Likewise.
42618         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42619         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42620         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42621         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42622         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42623         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42624         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42625
42626         Add support for universal builds to <inttypes.h>.
42627         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42628         _SCNu64_PREFIX): In Apple
42629         universal builds, define directly, using _LP64.
42630         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42631         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42632         * modules/inttypes (Depends-on): Add multiarch.
42633         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42634
42635         Add support for universal builds to <stdint.h>.
42636         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42637         universal builds, define directly, using _LP64.
42638         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42639         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42640         and size_t.
42641         * modules/stdint (Depends-on): Add multiarch.
42642         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42643
42644         New module 'multiarch'.
42645         * modules/multiarch: New file.
42646         * m4/multiarch.m4: New file.
42647
42648 2008-12-25  Bruno Haible  <bruno@clisp.org>
42649
42650         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42651
42652 2008-12-25  Bruno Haible  <bruno@clisp.org>
42653
42654         * modules/btowc (License): Relicense under LGPLv2+.
42655         * modules/mbsinit (License): Likewise.
42656         * modules/mbrtowc (License): Likewise.
42657         * modules/wcrtomb (License): Likewise.
42658         * modules/streq (License): Likewise.
42659         Reported by David Lutterkort <lutter@redhat.com>.
42660
42661 2008-12-23  Bruno Haible  <bruno@clisp.org>
42662
42663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42664
42665 2008-12-23  Bruno Haible  <bruno@clisp.org>
42666
42667         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42668         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42669         GETADDRINFO_LIB, not in LIBS.
42670         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42671         * modules/canon-host (Link): Likewise.
42672         * NEWS: Mention the change.
42673         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42674         GETADDRINFO_LIB.
42675
42676 2008-12-22  Bruno Haible  <bruno@clisp.org>
42677
42678         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42679         * doc/posix-functions/iswalpha_l.texi: Likewise.
42680         * doc/posix-functions/iswblank_l.texi: Likewise.
42681         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42682         * doc/posix-functions/iswctype_l.texi: Likewise.
42683         * doc/posix-functions/iswdigit_l.texi: Likewise.
42684         * doc/posix-functions/iswgraph_l.texi: Likewise.
42685         * doc/posix-functions/iswlower_l.texi: Likewise.
42686         * doc/posix-functions/iswprint_l.texi: Likewise.
42687         * doc/posix-functions/iswpunct_l.texi: Likewise.
42688         * doc/posix-functions/iswspace_l.texi: Likewise.
42689         * doc/posix-functions/iswupper_l.texi: Likewise.
42690         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42691         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42692         * doc/posix-functions/open_wmemstream.texi: Likewise.
42693         * doc/posix-functions/swscanf.texi: Likewise.
42694         * doc/posix-functions/towctrans_l.texi: Likewise.
42695         * doc/posix-functions/towlower.texi: Likewise.
42696         * doc/posix-functions/towlower_l.texi: Likewise.
42697         * doc/posix-functions/towupper.texi: Likewise.
42698         * doc/posix-functions/towupper_l.texi: Likewise.
42699         * doc/posix-functions/vfwprintf.texi: Likewise.
42700         * doc/posix-functions/vfwscanf.texi: Likewise.
42701         * doc/posix-functions/vswscanf.texi: Likewise.
42702         * doc/posix-functions/vwprintf.texi: Likewise.
42703         * doc/posix-functions/vwscanf.texi: Likewise.
42704         * doc/posix-functions/wcpcpy.texi: Likewise.
42705         * doc/posix-functions/wcpncpy.texi: Likewise.
42706         * doc/posix-functions/wcscasecmp.texi: Likewise.
42707         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42708         * doc/posix-functions/wcscoll_l.texi: Likewise.
42709         * doc/posix-functions/wcsdup.texi: Likewise.
42710         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42711         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42712         * doc/posix-functions/wcsnlen.texi: Likewise.
42713         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42714         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42715         * doc/posix-functions/wctrans_l.texi: Likewise.
42716         * doc/posix-functions/wctype_l.texi: Likewise.
42717         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42718         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42719         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42720         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42721         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42722         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42723         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42724         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42725         * doc/glibc-functions/wcschrnul.texi: Likewise.
42726         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42727         * doc/glibc-functions/wcstod_l.texi: Likewise.
42728         * doc/glibc-functions/wcstof_l.texi: Likewise.
42729         * doc/glibc-functions/wcstol_l.texi: Likewise.
42730         * doc/glibc-functions/wcstold_l.texi: Likewise.
42731         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42732         * doc/glibc-functions/wcstoq.texi: Likewise.
42733         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42734         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42735         * doc/glibc-functions/wcstouq.texi: Likewise.
42736         * doc/glibc-functions/wmempcpy.texi: Likewise.
42737
42738 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42739             Eric Blake  <ebb9@byu.net>
42740             Paolo Bonzini  <bonzini@gnu.org>
42741             Bruno Haible  <bruno@clisp.org>
42742
42743         Make c-stack work on Haiku.
42744         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42745         (c_stack_action): Use SA_ONSTACK flag.
42746
42747 2008-12-22  Bruno Haible  <bruno@clisp.org>
42748
42749         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42750
42751 2008-12-22  Bruno Haible  <bruno@clisp.org>
42752
42753         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42754         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42755         being overridden.
42756         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42757         New macros.
42758         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42760         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42761         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42762
42763 2008-12-22  Bruno Haible  <bruno@clisp.org>
42764
42765         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42766         from test code.
42767
42768 2008-12-22  Eric Blake  <ebb9@byu.net>
42769
42770         Avoid gcc warnings on cygwin.
42771         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42772         Avoid unused variable.
42773         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42774         Likewise.
42775
42776 2008-12-22  Bruno Haible  <bruno@clisp.org>
42777
42778         Remove HAVE_MBRTOWC conditionals.
42779         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42780         (mbscasecmp): Assume mbrtowc function.
42781         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42782         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42783         * lib/mbschr.c: Include mbuiter.h unconditionally.
42784         (mbschr): Assume mbrtowc function.
42785         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42786         (mbscspn): Assume mbrtowc function.
42787         * lib/mbslen.c: Include mbuiter.h unconditionally.
42788         (mbslen): Assume mbrtowc function.
42789         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42790         (mbsncasecmp): Assume mbrtowc function.
42791         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42792         (mbsnlen): Assume mbrtowc function.
42793         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42794         (mbspbrk): Assume mbrtowc function.
42795         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42796         (mbspcasecmp): Assume mbrtowc function.
42797         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42798         (mbsrchr): Assume mbrtowc function.
42799         * lib/mbssep.c: Include mbuiter.h unconditionally.
42800         (mbssep): Assume mbrtowc function.
42801         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42802         (mbsspn): Assume mbrtowc function.
42803         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42804         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42805         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42806         (mbstok_r): Assume mbrtowc function.
42807         * lib/propername.c: Include mbuiter.h unconditionally.
42808         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42809         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42810         (trim2): Assume mbrtowc function.
42811         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42812         (mbsnwidth): Assume mbrtowc function.
42813         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42814         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42815         fallback definitions.
42816         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42817
42818 2008-12-22  Bruno Haible  <bruno@clisp.org>
42819
42820         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42821
42822 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42823
42824         * modules/regex: Request emulations for the mb*/wc* functions we need.
42825         * m4/regex.m4: Don't look for those functions here.
42826         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42827
42828 2008-12-22  Bruno Haible  <bruno@clisp.org>
42829
42830         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42831
42832 2008-12-21  Bruno Haible  <bruno@clisp.org>
42833
42834         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42835         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42836         (Include): Remove conditionalization.
42837         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42838         (Include): Remove conditionalization.
42839         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42840         (Include): Remove conditionalization.
42841         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42842         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42843         * NEWS: Mention the change.
42844         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42845         via Sergey Poznyakoff <gray@gnu.org.ua>.
42846
42847 2008-12-21  Bruno Haible  <bruno@clisp.org>
42848
42849         * MODULES.html.sh (Extended multibyte and wide character utilities
42850         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42851         wcrtomb, wcsrtombs.
42852         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42853         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42854         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42855         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42856
42857 2008-12-21  Bruno Haible  <bruno@clisp.org>
42858
42859         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42860
42861 2008-12-21  Bruno Haible  <bruno@clisp.org>
42862
42863         * modules/wcsnrtombs-tests: New file.
42864         * tests/test-wcsnrtombs1.sh: New file.
42865         * tests/test-wcsnrtombs2.sh: New file.
42866         * tests/test-wcsnrtombs3.sh: New file.
42867         * tests/test-wcsnrtombs4.sh: New file.
42868         * tests/test-wcsnrtombs.c: New file.
42869
42870         New module 'wcsnrtombs'.
42871         * lib/wchar.in.h (wcsnrtombs): New declaration.
42872         * lib/wcsnrtombs.c: New file.
42873         * lib/wcsrtombs-state.c: New file.
42874         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42875         (internal_state): Remove variable.
42876         * m4/wcsnrtombs.m4: New file.
42877         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42878         compilation units.
42879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42880         HAVE_WCSNRTOMBS.
42881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42882         HAVE_WCSNRTOMBS.
42883         * modules/wcsnrtombs: New file.
42884         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42885         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42886
42887 2008-12-21  Bruno Haible  <bruno@clisp.org>
42888
42889         * modules/wcsrtombs-tests: New file.
42890         * tests/test-wcsrtombs1.sh: New file.
42891         * tests/test-wcsrtombs2.sh: New file.
42892         * tests/test-wcsrtombs3.sh: New file.
42893         * tests/test-wcsrtombs4.sh: New file.
42894         * tests/test-wcsrtombs.c: New file.
42895
42896         New module 'wcsrtombs'.
42897         * lib/wchar.in.h (wcsrtombs): New declaration.
42898         * lib/wcsrtombs.c: New file.
42899         * m4/wcsrtombs.m4: New file.
42900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42901         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42902         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42903         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42904         * modules/wcsrtombs: New file.
42905         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42906         bugs.
42907
42908 2008-12-21  Bruno Haible  <bruno@clisp.org>
42909
42910         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42911         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42912         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42913         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42914         if not correct.
42915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42916         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42917         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42918         m4/locale-zh.m4, m4/codeset.m4.
42919         * doc/posix-functions/wcrtomb.texi: Document the bug.
42920
42921 2008-12-21  Bruno Haible  <bruno@clisp.org>
42922
42923         Work around a btowc() bug on IRIX 6.5.
42924         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42925         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42926         REPLACE_WTOBC if not.
42927         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42928         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42929         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42930
42931 2008-12-21  Bruno Haible  <bruno@clisp.org>
42932
42933         * modules/wcrtomb-tests: New file.
42934         * tests/test-wcrtomb.sh: New file.
42935         * tests/test-wcrtomb.c: New file.
42936
42937         New module 'wcrtomb'.
42938         * lib/wchar.in.h (wcrtomb): New declaration.
42939         * lib/wcrtomb.c: New file.
42940         * m4/wcrtomb.m4: New file.
42941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42942         HAVE_WCRTOMB.
42943         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42944         HAVE_WCRTOMB.
42945         * modules/wcrtomb: New file.
42946         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42947
42948 2008-12-21  Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42951         * modules/mbsrtowcs (Files): Likewise.
42952         * modules/wctob (Files): Likewise.
42953         * modules/c-strcase-tests (Files): Likewise.
42954         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42955         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42956         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42957         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42958         * modules/vasnprintf-posix-tests (Files): Likewise.
42959
42960 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42961
42962         gitlog-to-changelog: pass all command-line arguments to git-log
42963         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42964         it is sometimes convenient to filter the commits in various ways.
42965         gitlog-to-changelog only allows --since to specify a start date,
42966         but git-log itself supports many other filtering mechanisms.
42967         At the moment, I want to filter by branch name.  Rather than
42968         adding a --branch option to gitlog-to-changelog, it seems more
42969         flexible to simply pass all options directly to git-log and let
42970         git do the work.  Notice that this effectively makes --since a
42971         redundant option for gitlog-to-changelog, but removing it would
42972         require current usage to change since calls would then require
42973         an additional '--'.
42974
42975 2008-12-21  Bruno Haible  <bruno@clisp.org>
42976
42977         * modules/mbsnrtowcs-tests: New file.
42978         * tests/test-mbsnrtowcs1.sh: New file.
42979         * tests/test-mbsnrtowcs2.sh: New file.
42980         * tests/test-mbsnrtowcs3.sh: New file.
42981         * tests/test-mbsnrtowcs4.sh: New file.
42982         * tests/test-mbsnrtowcs.c: New file.
42983
42984         New module 'mbsnrtowcs'.
42985         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42986         * lib/mbsnrtowcs.c: New file.
42987         * lib/mbsrtowcs-state.c: New file.
42988         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42989         (internal_state): Remove variable.
42990         * m4/mbsnrtowcs.m4: New file.
42991         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42992         compilation units.
42993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42994         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42995         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42996         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42997         * modules/mbsnrtowcs: New file.
42998         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42999         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43000         portability problem.
43001
43002 2008-12-21  Bruno Haible  <bruno@clisp.org>
43003
43004         Work around mbsrtowcs bug.
43005         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43006         (gl_FUNC_MBSRTOWCS): Invoke it.
43007         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43008         m4/locale-zh.m4.
43009         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43010
43011 2008-12-21  Bruno Haible  <bruno@clisp.org>
43012
43013         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43014
43015 2008-12-21  Bruno Haible  <bruno@clisp.org>
43016
43017         Update doc for AIX.
43018         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43019         16-bit wchar_t type.
43020         * doc/posix-functions/btowc.texi: Likewise.
43021         * doc/posix-functions/fgetwc.texi: Likewise.
43022         * doc/posix-functions/fgetws.texi: Likewise.
43023         * doc/posix-functions/fputwc.texi: Likewise.
43024         * doc/posix-functions/fputws.texi: Likewise.
43025         * doc/posix-functions/fwide.texi: Likewise.
43026         * doc/posix-functions/fwprintf.texi: Likewise.
43027         * doc/posix-functions/fwscanf.texi: Likewise.
43028         * doc/posix-functions/getwchar.texi: Likewise.
43029         * doc/posix-functions/getwc.texi: Likewise.
43030         * doc/posix-functions/iswalnum.texi: Likewise.
43031         * doc/posix-functions/iswalpha.texi: Likewise.
43032         * doc/posix-functions/iswblank.texi: Likewise.
43033         * doc/posix-functions/iswcntrl.texi: Likewise.
43034         * doc/posix-functions/iswctype.texi: Likewise.
43035         * doc/posix-functions/iswdigit.texi: Likewise.
43036         * doc/posix-functions/iswgraph.texi: Likewise.
43037         * doc/posix-functions/iswlower.texi: Likewise.
43038         * doc/posix-functions/iswprint.texi: Likewise.
43039         * doc/posix-functions/iswpunct.texi: Likewise.
43040         * doc/posix-functions/iswspace.texi: Likewise.
43041         * doc/posix-functions/iswupper.texi: Likewise.
43042         * doc/posix-functions/iswxdigit.texi: Likewise.
43043         * doc/posix-functions/mbrtowc.texi: Likewise.
43044         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43045         * doc/posix-functions/mbstowcs.texi: Likewise.
43046         * doc/posix-functions/mbtowc.texi: Likewise.
43047         * doc/posix-functions/putwchar.texi: Likewise.
43048         * doc/posix-functions/putwc.texi: Likewise.
43049         * doc/posix-functions/swprintf.texi: Likewise.
43050         * doc/posix-functions/tolower.texi: Likewise.
43051         * doc/posix-functions/toupper.texi: Likewise.
43052         * doc/posix-functions/towctrans.texi: Likewise.
43053         * doc/posix-functions/ungetwc.texi: Likewise.
43054         * doc/posix-functions/vswprintf.texi: Likewise.
43055         * doc/posix-functions/wcrtomb.texi: Likewise.
43056         * doc/posix-functions/wcscat.texi: Likewise.
43057         * doc/posix-functions/wcschr.texi: Likewise.
43058         * doc/posix-functions/wcscmp.texi: Likewise.
43059         * doc/posix-functions/wcscoll.texi: Likewise.
43060         * doc/posix-functions/wcscpy.texi: Likewise.
43061         * doc/posix-functions/wcscspn.texi: Likewise.
43062         * doc/posix-functions/wcsftime.texi: Likewise.
43063         * doc/posix-functions/wcslen.texi: Likewise.
43064         * doc/posix-functions/wcsncat.texi: Likewise.
43065         * doc/posix-functions/wcsncmp.texi: Likewise.
43066         * doc/posix-functions/wcsncpy.texi: Likewise.
43067         * doc/posix-functions/wcspbrk.texi: Likewise.
43068         * doc/posix-functions/wcsrchr.texi: Likewise.
43069         * doc/posix-functions/wcsrtombs.texi: Likewise.
43070         * doc/posix-functions/wcsspn.texi: Likewise.
43071         * doc/posix-functions/wcsstr.texi: Likewise.
43072         * doc/posix-functions/wcstod.texi: Likewise.
43073         * doc/posix-functions/wcstof.texi: Likewise.
43074         * doc/posix-functions/wcstoimax.texi: Likewise.
43075         * doc/posix-functions/wcstok.texi: Likewise.
43076         * doc/posix-functions/wcstold.texi: Likewise.
43077         * doc/posix-functions/wcstoll.texi: Likewise.
43078         * doc/posix-functions/wcstol.texi: Likewise.
43079         * doc/posix-functions/wcstombs.texi: Likewise.
43080         * doc/posix-functions/wcstoull.texi: Likewise.
43081         * doc/posix-functions/wcstoul.texi: Likewise.
43082         * doc/posix-functions/wcstoumax.texi: Likewise.
43083         * doc/posix-functions/wcswidth.texi: Likewise.
43084         * doc/posix-functions/wcsxfrm.texi: Likewise.
43085         * doc/posix-functions/wctob.texi: Likewise.
43086         * doc/posix-functions/wctomb.texi: Likewise.
43087         * doc/posix-functions/wctrans.texi: Likewise.
43088         * doc/posix-functions/wctype.texi: Likewise.
43089         * doc/posix-functions/wcwidth.texi: Likewise.
43090         * doc/posix-functions/wmemchr.texi: Likewise.
43091         * doc/posix-functions/wmemcmp.texi: Likewise.
43092         * doc/posix-functions/wmemcpy.texi: Likewise.
43093         * doc/posix-functions/wmemmove.texi: Likewise.
43094         * doc/posix-functions/wmemset.texi: Likewise.
43095         * doc/posix-functions/wprintf.texi: Likewise.
43096         * doc/posix-functions/wscanf.texi: Likewise.
43097
43098 2008-12-21  Bruno Haible  <bruno@clisp.org>
43099
43100         Update doc for HP-UX 11.11.
43101         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43102         in HP-UX version 11.00, not in all versions of HP-UX 11.
43103         * doc/posix-functions/fwide.texi: Likewise.
43104         * doc/posix-functions/fwprintf.texi: Likewise.
43105         * doc/posix-functions/fwscanf.texi: Likewise.
43106         * doc/posix-functions/inet_ntop.texi: Likewise.
43107         * doc/posix-functions/inet_pton.texi: Likewise.
43108         * doc/posix-functions/mbrlen.texi: Likewise.
43109         * doc/posix-functions/mbrtowc.texi: Likewise.
43110         * doc/posix-functions/mbsinit.texi: Likewise.
43111         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43112         * doc/posix-functions/swprintf.texi: Likewise.
43113         * doc/posix-functions/swscanf.texi: Likewise.
43114         * doc/posix-functions/towctrans.texi: Likewise.
43115         * doc/posix-functions/vfwprintf.texi: Likewise.
43116         * doc/posix-functions/vswprintf.texi: Likewise.
43117         * doc/posix-functions/vwprintf.texi: Likewise.
43118         * doc/posix-functions/wcrtomb.texi: Likewise.
43119         * doc/posix-functions/wcsrtombs.texi: Likewise.
43120         * doc/posix-functions/wcsstr.texi: Likewise.
43121         * doc/posix-functions/wctob.texi: Likewise.
43122         * doc/posix-functions/wctrans.texi: Likewise.
43123         * doc/posix-functions/wmemchr.texi: Likewise.
43124         * doc/posix-functions/wmemcmp.texi: Likewise.
43125         * doc/posix-functions/wmemcpy.texi: Likewise.
43126         * doc/posix-functions/wmemmove.texi: Likewise.
43127         * doc/posix-functions/wmemset.texi: Likewise.
43128         * doc/posix-functions/wprintf.texi: Likewise.
43129         * doc/posix-functions/wscanf.texi: Likewise.
43130
43131 2008-12-21  Bruno Haible  <bruno@clisp.org>
43132
43133         Work around a portability problem.
43134         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43135         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43136
43137 2008-12-20  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43140         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43141         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43143         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43144
43145         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43146         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43147         set.
43148         (GNULIB_defined_mbstate_t): New macro.
43149         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43150         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43151         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43152         reuses the system's mbrtowc function but works around the bugs.
43153         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43154         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43155         macros.
43156         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43157         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43158         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43159         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43160         REPLACE_MBSINIT if mbsinit needs to be overridden.
43161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43162         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43163         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43164         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43165         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43166         m4/locale-zh.m4.
43167         (Depends): Add mbsinit.
43168         * modules/mbsinit (Depends): Add mbrtowc.
43169         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43170
43171 2008-12-20  Bruno Haible  <bruno@clisp.org>
43172
43173         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43174         so that there are no conversion errors on AIX.
43175         * tests/test-mbsrtowcs.c (main): LIkewise.
43176
43177 2008-12-20  Bruno Haible  <bruno@clisp.org>
43178
43179         Work around wctob bug on Solaris <= 9.
43180         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43181         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43183         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43184         * modules/wctob (Files): Add m4/locale-fr.m4.
43185         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43186
43187 2008-12-20  Bruno Haible  <bruno@clisp.org>
43188
43189         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43190         /dev/null.
43191         * tests/test-select-in.sh: Likewise.
43192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43193
43194 2008-12-20  Bruno Haible  <bruno@clisp.org>
43195
43196         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43197         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43198         Cygwin 1.5.x.
43199
43200 2008-12-20  Bruno Haible  <bruno@clisp.org>
43201
43202         Ensure mbstate_t is defined on HP-UX 11.11.
43203         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43204         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43205         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43206         AC_USE_SYSTEM_EXTENSIONS.
43207         * modules/fnmatch (Depends-on): Add extensions.
43208         * modules/mbrlen (Depends-on): Likewise.
43209         * modules/mbrtowc (Depends-on): Likewise.
43210         * modules/mbsinit (Depends-on): Likewise.
43211         * modules/mbsrtowcs (Depends-on): Likewise.
43212         * modules/mbswidth (Depends-on): Likewise.
43213         * modules/quotearg (Depends-on): Likewise.
43214         * modules/strftime (Depends-on): Likewise.
43215
43216 2008-12-20  Bruno Haible  <bruno@clisp.org>
43217
43218         Ensure wctob is declared on IRIX 6.5.
43219         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43220         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43221         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43223         of HAVE_WCTOB.
43224         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43225         HAVE_WCTOB.
43226         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43227
43228 2008-12-19  Bruno Haible  <bruno@clisp.org>
43229
43230         * modules/mbsrtowcs-tests: New file.
43231         * tests/test-mbsrtowcs1.sh: New file.
43232         * tests/test-mbsrtowcs2.sh: New file.
43233         * tests/test-mbsrtowcs3.sh: New file.
43234         * tests/test-mbsrtowcs4.sh: New file.
43235         * tests/test-mbsrtowcs.c: New file.
43236
43237         New module 'mbsrtowcs'.
43238         * lib/wchar.in.h (mbsrtowcs): New declaration.
43239         * lib/mbsrtowcs.c: New file.
43240         * m4/mbsrtowcs.m4: New file.
43241         * modules/mbsrtowcs: New file.
43242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43243         HAVE_MBSRTOWCS.
43244         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43245         HAVE_MBSRTOWCS.
43246         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43247
43248 2008-12-19  Bruno Haible  <bruno@clisp.org>
43249
43250         New module 'mbrlen'.
43251         * lib/wchar.in.h (mbrlen): New declaration.
43252         * lib/mbrlen.c: New file.
43253         * m4/mbrlen.m4: New file.
43254         * modules/mbrlen: New file.
43255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43256         HAVE_MBRLEN.
43257         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43258         HAVE_MBRLEN.
43259         * doc/posix-functions/mbrlen.texi: Document the new module.
43260
43261 2008-12-19  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43264         * modules/mbrtowc (Depends-on): Add verify.
43265         Suggested by Paul Eggert.
43266
43267 2008-12-18  Bruno Haible  <bruno@clisp.org>
43268
43269         * modules/mbsinit-tests: New file.
43270         * tests/test-mbsinit.sh: New file.
43271         * tests/test-mbsinit.c: New file.
43272
43273 2008-12-18  Bruno Haible  <bruno@clisp.org>
43274
43275         * modules/mbrtowc-tests: New file.
43276         * tests/test-mbrtowc1.sh: New file.
43277         * tests/test-mbrtowc2.sh: New file.
43278         * tests/test-mbrtowc3.sh: New file.
43279         * tests/test-mbrtowc4.sh: New file.
43280         * tests/test-mbrtowc.c: New file.
43281
43282         New module 'mbrtowc'.
43283         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43284         mbsinit and mbrtowc.
43285         (mbrtowc): New declaration.
43286         * lib/mbrtowc.c: New file.
43287         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43288         * modules/mbrtowc: New file.
43289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43290         HAVE_MBRTOWC.
43291         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43292         HAVE_MBRTOWC.
43293         * doc/posix-functions/mbrtowc.texi: Document the new module.
43294
43295 2008-12-18  Bruno Haible  <bruno@clisp.org>
43296
43297         New module 'wctob'.
43298         * lib/wchar.in.h (wctob): New declaration.
43299         * lib/wctob.c: New file.
43300         * m4/wctob.m4: New file.
43301         * modules/wctob: New file.
43302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43303         HAVE_WCTOB.
43304         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43305         * doc/posix-functions/wctob.texi: Document the new module.
43306
43307 2008-12-18  Bruno Haible  <bruno@clisp.org>
43308
43309         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43310         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43311
43312 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43313
43314         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43315         G. Christensen" <tgc@jupiterrise.com>.
43316
43317         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43318         G. Christensen" <tgc@jupiterrise.com>.
43319
43320         * lib/flock.c: Need to include string.h.  Reported by "Tom
43321         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43322         <ebb9@byu.net>.
43323
43324 2008-12-18  Bruno Haible  <bruno@clisp.org>
43325
43326         * m4/locale-ja.m4: New file, from GNU gettext.
43327
43328 2008-12-17  Bruno Haible  <bruno@clisp.org>
43329
43330         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43331         Suggested by Eric Blake.
43332
43333 2008-12-17  Bruno Haible  <bruno@clisp.org>
43334
43335         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43336
43337 2008-12-17  Bruno Haible  <bruno@clisp.org>
43338
43339         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43340         * modules/mbsinit (Depends-on): Add verify.
43341         Suggested by Paul Eggert.
43342
43343 2008-12-17  Bruno Haible  <bruno@clisp.org>
43344
43345         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43346         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43347         gl_FUNC_MBRTOWC.
43348         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43349         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43350         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43351         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43352         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43353         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43354         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43355         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43356         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43357         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43358         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43359         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43360         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43361         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43362         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43363         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43364         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43365         * modules/trim (configure.ac): Likewise.
43366
43367 2008-12-17  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/btowc-tests: New file.
43370         * tests/test-btowc1.sh: New file.
43371         * tests/test-btowc2.sh: New file.
43372         * tests/test-btowc.c: New file.
43373
43374         New module 'btowc'.
43375         * lib/wchar.in.h (btowc): New declaration.
43376         * lib/btowc.c: New file.
43377         * m4/btowc.m4: New file.
43378         * modules/btowc: New file.
43379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43380         HAVE_BTOWC.
43381         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43382         * doc/posix-functions/btowc.texi: Document the new module.
43383
43384 2008-12-17  Bruno Haible  <bruno@clisp.org>
43385
43386         New module 'mbsinit'.
43387         * lib/wchar.in.h (mbsinit): New declaration.
43388         * lib/mbsinit.c: New file.
43389         * m4/mbsinit.m4: New file.
43390         * modules/mbsinit: New file.
43391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43392         HAVE_MBSINIT.
43393         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43394         HAVE_MBSINIT.
43395         * doc/posix-functions/mbsinit.texi: Document the new module.
43396
43397 2008-12-16  Bruno Haible  <bruno@clisp.org>
43398
43399         * lib/unistd.in.h: Add comment.
43400         * tests/test-environ.c: Don't include <stdlib.h>.
43401
43402 2008-12-16  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/parse-duration.h (parse_duration): Document return value
43405         convention.
43406         * lib/parse-duration.c: Include specification header first. Add
43407         comments.
43408         (_): Remove macro.
43409         (parse_year_month_day, parse_hour_minute_second): Move side effects
43410         outside of strchr call.
43411         (parse_non_iso8601): Move side effects outside of isspace call.
43412         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43413         call.
43414
43415 2008-12-16  Bruno Haible  <bruno@clisp.org>
43416
43417         * tests/test-parse-duration.sh: Produce no output when the test
43418         succeeds.
43419
43420 2008-12-16  Bruno Haible  <bruno@clisp.org>
43421
43422         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43423         expressions.
43424
43425 2008-12-15  Bruno Haible  <bruno@clisp.org>
43426
43427         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43428         * doc/glibc-functions/flistxattr.texi: Likewise.
43429         * doc/glibc-functions/fopencookie.texi: Likewise.
43430         * doc/glibc-functions/fremovexattr.texi: Likewise.
43431         * doc/glibc-functions/fsetxattr.texi: Likewise.
43432         * doc/glibc-functions/getxattr.texi: Likewise.
43433         * doc/glibc-functions/lgetxattr.texi: Likewise.
43434         * doc/glibc-functions/listxattr.texi: Likewise.
43435         * doc/glibc-functions/llistxattr.texi: Likewise.
43436         * doc/glibc-functions/lremovexattr.texi: Likewise.
43437         * doc/glibc-functions/lsetxattr.texi: Likewise.
43438         * doc/glibc-functions/removexattr.texi: Likewise.
43439         * doc/glibc-functions/setxattr.texi: Likewise.
43440         * doc/posix-functions/open_memstream.texi: Likewise.
43441
43442 2008-12-15  Eric Blake  <ebb9@byu.net>
43443
43444         Update doc for cygwin 1.7.
43445         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43446         functions.
43447         * doc/posix-functions/fchmodat.texi: Likewise.
43448         * doc/posix-functions/fchownat.texi: Likewise.
43449         * doc/posix-functions/fdopendir.texi: Likewise.
43450         * doc/posix-functions/fmemopen.texi: Likewise.
43451         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43452         * doc/posix-functions/fstatat.texi: Likewise.
43453         * doc/posix-functions/futimens.texi: Likewise.
43454         * doc/posix-functions/gai_strerror.texi: Likewise.
43455         * doc/posix-functions/getaddrinfo.texi: Likewise.
43456         * doc/posix-functions/getnameinfo.texi: Likewise.
43457         * doc/posix-functions/if_freenameindex.texi: Likewise.
43458         * doc/posix-functions/if_indextoname.texi: Likewise.
43459         * doc/posix-functions/if_nameindex.texi: Likewise.
43460         * doc/posix-functions/if_nametoindex.texi: Likewise.
43461         * doc/posix-functions/insque.texi: Likewise.
43462         * doc/posix-functions/linkat.texi: Likewise.
43463         * doc/posix-functions/llrint.texi: Likewise.
43464         * doc/posix-functions/llrintf.texi: Likewise.
43465         * doc/posix-functions/llrintl.texi: Likewise.
43466         * doc/posix-functions/lockf.texi: Likewise.
43467         * doc/posix-functions/lrintl.texi: Likewise.
43468         * doc/posix-functions/mkdirat.texi: Likewise.
43469         * doc/posix-functions/mkfifoat.texi: Likewise.
43470         * doc/posix-functions/mknodat.texi: Likewise.
43471         * doc/posix-functions/mq_close.texi: Likewise.
43472         * doc/posix-functions/mq_getattr.texi: Likewise.
43473         * doc/posix-functions/mq_notify.texi: Likewise.
43474         * doc/posix-functions/mq_open.texi: Likewise.
43475         * doc/posix-functions/mq_receive.texi: Likewise.
43476         * doc/posix-functions/mq_send.texi: Likewise.
43477         * doc/posix-functions/mq_setattr.texi: Likewise.
43478         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43479         * doc/posix-functions/mq_timedsend.texi: Likewise.
43480         * doc/posix-functions/mq_unlink.texi: Likewise.
43481         * doc/posix-functions/open_memstream.texi: Likewise.
43482         * doc/posix-functions/openat.texi: Likewise.
43483         * doc/posix-functions/posix_fadvise.texi: Likewise.
43484         * doc/posix-functions/posix_fallocate.texi: Likewise.
43485         * doc/posix-functions/posix_madvise.texi: Likewise.
43486         * doc/posix-functions/posix_memalign.texi: Likewise.
43487         * doc/posix-functions/posix_openpt.texi: Likewise.
43488         * doc/posix-functions/readlinkat.texi: Likewise.
43489         * doc/posix-functions/remque.texi: Likewise.
43490         * doc/posix-functions/renameat.texi: Likewise.
43491         * doc/posix-functions/rintl.texi: Likewise.
43492         * doc/posix-functions/sem_unlink.texi: Likewise.
43493         * doc/posix-functions/shm_open.texi: Likewise.
43494         * doc/posix-functions/shm_unlink.texi: Likewise.
43495         * doc/posix-functions/signgam.texi: Likewise.
43496         * doc/posix-functions/sigset.texi: Likewise.
43497         * doc/posix-functions/stpcpy.texi: Likewise.
43498         * doc/posix-functions/stpncpy.texi: Likewise.
43499         * doc/posix-functions/strerror.texi: Likewise.
43500         * doc/posix-functions/strtod.texi: Likewise.
43501         * doc/posix-functions/symlinkat.texi: Likewise.
43502         * doc/posix-functions/unlinkat.texi: Likewise.
43503         * doc/posix-functions/utimensat.texi: Likewise.
43504         * doc/glibc-functions/bindresvport.texi: Likewise.
43505         * doc/glibc-functions/dn_expand.texi: Likewise.
43506         * doc/glibc-functions/exp10.texi: Likewise.
43507         * doc/glibc-functions/exp10f.texi: Likewise.
43508         * doc/glibc-functions/fgetxattr.texi: Likewise.
43509         * doc/glibc-functions/flistxattr.texi: Likewise.
43510         * doc/glibc-functions/fopencookie.texi: Likewise.
43511         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43512         * doc/glibc-functions/fremovexattr.texi: Likewise.
43513         * doc/glibc-functions/fsetxattr.texi: Likewise.
43514         * doc/glibc-functions/getifaddrs.texi: Likewise.
43515         * doc/glibc-functions/getxattr.texi: Likewise.
43516         * doc/glibc-functions/lgetxattr.texi: Likewise.
43517         * doc/glibc-functions/listxattr.texi: Likewise.
43518         * doc/glibc-functions/llistxattr.texi: Likewise.
43519         * doc/glibc-functions/lremovexattr.texi: Likewise.
43520         * doc/glibc-functions/lsetxattr.texi: Likewise.
43521         * doc/glibc-functions/pow10.texi: Likewise.
43522         * doc/glibc-functions/pow10f.texi: Likewise.
43523         * doc/glibc-functions/rcmd_af.texi: Likewise.
43524         * doc/glibc-functions/removexattr.texi: Likewise.
43525         * doc/glibc-functions/res_init.texi: Likewise.
43526         * doc/glibc-functions/res_mkquery.texi: Likewise.
43527         * doc/glibc-functions/res_query.texi: Likewise.
43528         * doc/glibc-functions/res_querydomain.texi: Likewise.
43529         * doc/glibc-functions/res_send.texi: Likewise.
43530         * doc/glibc-functions/rresvport_af.texi: Likewise.
43531         * doc/glibc-functions/setxattr.texi: Likewise.
43532         * doc/glibc-functions/strcasestr.texi: Likewise.
43533
43534 2008-12-15  Bruno Haible  <bruno@clisp.org>
43535
43536         Fix compilation error on OSF/1 4.0.
43537         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43538         <sys/time.h>, simply delegate to the system header.
43539         Reported by Daniel Richard G. <oss@teragram.com>.
43540
43541 2008-12-15  Bruno Haible  <bruno@clisp.org>
43542
43543         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43544         * doc/posix-functions/fchmodat.texi: Likewise.
43545         * doc/posix-functions/fchownat.texi: Likewise.
43546         * doc/posix-functions/fdopendir.texi: Likewise.
43547         * doc/posix-functions/fstatat.texi: Likewise.
43548         * doc/posix-functions/mkdirat.texi: Likewise.
43549         * doc/posix-functions/unlinkat.texi: Likewise.
43550
43551 2008-12-14  Bruno Haible  <bruno@clisp.org>
43552
43553         Update doc for POSIX:2008.
43554         * doc/posix-functions/faccessat.texi: New file.
43555         * doc/posix-functions/fchmodat.texi: New file.
43556         * doc/posix-functions/fchownat.texi: New file.
43557         * doc/posix-functions/fdopendir.texi: New file.
43558         * doc/posix-functions/fstatat.texi: New file.
43559         * doc/posix-functions/futimens.texi: New file.
43560         * doc/posix-functions/linkat.texi: New file.
43561         * doc/posix-functions/mkdirat.texi: New file.
43562         * doc/posix-functions/mkfifoat.texi: New file.
43563         * doc/posix-functions/mknodat.texi: New file.
43564         * doc/posix-functions/open_wmemstream.texi: New file.
43565         * doc/posix-functions/openat.texi: New file.
43566         * doc/posix-functions/psiginfo.texi: New file.
43567         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43568         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43569         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43570         * doc/posix-functions/readlinkat.texi: New file.
43571         * doc/posix-functions/renameat.texi: New file.
43572         * doc/posix-functions/strerror_l.texi: New file.
43573         * doc/posix-functions/symlinkat.texi: New file.
43574         * doc/posix-functions/unlinkat.texi: New file.
43575         * doc/posix-functions/utimensat.texi: New file.
43576         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43577
43578 2008-12-14  Bruno Haible  <bruno@clisp.org>
43579
43580         Update doc for POSIX:2008.
43581         * doc/posix-functions/alphasort.texi: Renamed from
43582         doc/glibc-functions/alphasort.texi.
43583         * doc/posix-functions/dirfd.texi: Renamed from
43584         doc/glibc-functions/dirfd.texi.
43585         * doc/posix-functions/dprintf.texi: Renamed from
43586         doc/glibc-functions/dprintf.texi.
43587         * doc/posix-functions/duplocale.texi: Renamed from
43588         doc/glibc-functions/duplocale.texi.
43589         * doc/posix-functions/fexecve.texi: Renamed from
43590         doc/glibc-functions/fexecve.texi.
43591         * doc/posix-functions/fmemopen.texi: Renamed from
43592         doc/glibc-functions/fmemopen.texi.
43593         * doc/posix-functions/freelocale.texi: Renamed from
43594         doc/glibc-functions/freelocale.texi.
43595         * doc/posix-functions/getdate_err.texi: Renamed from
43596         doc/glibc-functions/getdate_err.texi.
43597         * doc/posix-functions/isalnum_l.texi: Renamed from
43598         doc/glibc-functions/isalnum_l.texi.
43599         * doc/posix-functions/isalpha_l.texi: Renamed from
43600         doc/glibc-functions/isalpha_l.texi.
43601         * doc/posix-functions/isblank_l.texi: Renamed from
43602         doc/glibc-functions/isblank_l.texi.
43603         * doc/posix-functions/iscntrl_l.texi: Renamed from
43604         doc/glibc-functions/iscntrl_l.texi.
43605         * doc/posix-functions/isdigit_l.texi: Renamed from
43606         doc/glibc-functions/isdigit_l.texi.
43607         * doc/posix-functions/isgraph_l.texi: Renamed from
43608         doc/glibc-functions/isgraph_l.texi.
43609         * doc/posix-functions/islower_l.texi: Renamed from
43610         doc/glibc-functions/islower_l.texi.
43611         * doc/posix-functions/isprint_l.texi: Renamed from
43612         doc/glibc-functions/isprint_l.texi.
43613         * doc/posix-functions/ispunct_l.texi: Renamed from
43614         doc/glibc-functions/ispunct_l.texi.
43615         * doc/posix-functions/isspace_l.texi: Renamed from
43616         doc/glibc-functions/isspace_l.texi.
43617         * doc/posix-functions/isupper_l.texi: Renamed from
43618         doc/glibc-functions/isupper_l.texi.
43619         * doc/posix-functions/iswalnum_l.texi: Renamed from
43620         doc/glibc-functions/iswalnum_l.texi.
43621         * doc/posix-functions/iswalpha_l.texi: Renamed from
43622         doc/glibc-functions/iswalpha_l.texi.
43623         * doc/posix-functions/iswblank_l.texi: Renamed from
43624         doc/glibc-functions/iswblank_l.texi.
43625         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43626         doc/glibc-functions/iswcntrl_l.texi.
43627         * doc/posix-functions/iswctype_l.texi: Renamed from
43628         doc/glibc-functions/iswctype_l.texi.
43629         * doc/posix-functions/iswdigit_l.texi: Renamed from
43630         doc/glibc-functions/iswdigit_l.texi.
43631         * doc/posix-functions/iswgraph_l.texi: Renamed from
43632         doc/glibc-functions/iswgraph_l.texi.
43633         * doc/posix-functions/iswlower_l.texi: Renamed from
43634         doc/glibc-functions/iswlower_l.texi.
43635         * doc/posix-functions/iswprint_l.texi: Renamed from
43636         doc/glibc-functions/iswprint_l.texi.
43637         * doc/posix-functions/iswpunct_l.texi: Renamed from
43638         doc/glibc-functions/iswpunct_l.texi.
43639         * doc/posix-functions/iswspace_l.texi: Renamed from
43640         doc/glibc-functions/iswspace_l.texi.
43641         * doc/posix-functions/iswupper_l.texi: Renamed from
43642         doc/glibc-functions/iswupper_l.texi.
43643         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43644         doc/glibc-functions/iswxdigit_l.texi.
43645         * doc/posix-functions/isxdigit_l.texi: Renamed from
43646         doc/glibc-functions/isxdigit_l.texi.
43647         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43648         doc/glibc-functions/mbsnrtowcs.texi.
43649         * doc/posix-functions/mkdtemp.texi: Renamed from
43650         doc/glibc-functions/mkdtemp.texi.
43651         * doc/posix-functions/newlocale.texi: Renamed from
43652         doc/glibc-functions/newlocale.texi.
43653         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43654         doc/glibc-functions/nl_langinfo_l.texi.
43655         * doc/posix-functions/open_memstream.texi: Renamed from
43656         doc/glibc-functions/open_memstream.texi.
43657         * doc/posix-functions/opterr.texi: Renamed from
43658         doc/glibc-functions/opterr.texi.
43659         * doc/posix-functions/optind.texi: Renamed from
43660         doc/glibc-functions/optind.texi.
43661         * doc/posix-functions/optopt.texi: Renamed from
43662         doc/glibc-functions/optopt.texi.
43663         * doc/posix-functions/psignal.texi: Renamed from
43664         doc/glibc-functions/psignal.texi.
43665         * doc/posix-functions/scandir.texi: Renamed from
43666         doc/glibc-functions/scandir.texi.
43667         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43668         doc/glibc-functions/sched_get_priority_min.texi.
43669         * doc/posix-functions/signgam.texi: Renamed from
43670         doc/glibc-functions/signgam.texi.
43671         * doc/posix-functions/stpcpy.texi: Renamed from
43672         doc/glibc-functions/stpcpy.texi.
43673         * doc/posix-functions/stpncpy.texi: Renamed from
43674         doc/glibc-functions/stpncpy.texi.
43675         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43676         doc/glibc-functions/strcasecmp_l.texi.
43677         * doc/posix-functions/strcoll_l.texi: Renamed from
43678         doc/glibc-functions/strcoll_l.texi.
43679         * doc/posix-functions/strfmon_l.texi: Renamed from
43680         doc/glibc-functions/strfmon_l.texi.
43681         * doc/posix-functions/strftime_l.texi: Renamed from
43682         doc/glibc-functions/strftime_l.texi.
43683         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43684         doc/glibc-functions/strncasecmp_l.texi.
43685         * doc/posix-functions/strndup.texi: Renamed from
43686         doc/glibc-functions/strndup.texi.
43687         * doc/posix-functions/strnlen.texi: Renamed from
43688         doc/glibc-functions/strnlen.texi.
43689         * doc/posix-functions/strsignal.texi: Renamed from
43690         doc/glibc-functions/strsignal.texi.
43691         * doc/posix-functions/strxfrm_l.texi: Renamed from
43692         doc/glibc-functions/strxfrm_l.texi.
43693         * doc/posix-functions/timer_gettime.texi: Renamed from
43694         doc/glibc-functions/timer_gettime.texi.
43695         * doc/posix-functions/tolower_l.texi: Renamed from
43696         doc/glibc-functions/tolower_l.texi.
43697         * doc/posix-functions/toupper_l.texi: Renamed from
43698         doc/glibc-functions/toupper_l.texi.
43699         * doc/posix-functions/towctrans_l.texi: Renamed from
43700         doc/glibc-functions/towctrans_l.texi.
43701         * doc/posix-functions/towlower_l.texi: Renamed from
43702         doc/glibc-functions/towlower_l.texi.
43703         * doc/posix-functions/towupper_l.texi: Renamed from
43704         doc/glibc-functions/towupper_l.texi.
43705         * doc/posix-functions/uselocale.texi: Renamed from
43706         doc/glibc-functions/uselocale.texi.
43707         * doc/posix-functions/vdprintf.texi: Renamed from
43708         doc/glibc-functions/vdprintf.texi.
43709         * doc/posix-functions/wcpcpy.texi:
43710         Renamed from doc/glibc-functions/wcpcpy.texi.
43711         * doc/posix-functions/wcpncpy.texi: Renamed from
43712         doc/glibc-functions/wcpncpy.texi.
43713         * doc/posix-functions/wcscasecmp.texi: Renamed from
43714         doc/glibc-functions/wcscasecmp.texi.
43715         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43716         doc/glibc-functions/wcscasecmp_l.texi.
43717         * doc/posix-functions/wcscoll_l.texi: Renamed from
43718         doc/glibc-functions/wcscoll_l.texi.
43719         * doc/posix-functions/wcsdup.texi: Renamed from
43720         doc/glibc-functions/wcsdup.texi.
43721         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43722         doc/glibc-functions/wcsncasecmp.texi.
43723         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43724         doc/glibc-functions/wcsncasecmp_l.texi.
43725         * doc/posix-functions/wcsnlen.texi: Renamed from
43726         doc/glibc-functions/wcsnlen.texi.
43727         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43728         doc/glibc-functions/wcsnrtombs.texi.
43729         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43730         doc/glibc-functions/wcsxfrm_l.texi.
43731         * doc/posix-functions/wctrans_l.texi: Renamed from
43732         doc/glibc-functions/wctrans_l.texi.
43733         * doc/posix-functions/wctype_l.texi: Renamed from
43734         doc/glibc-functions/wctype_l.texi.
43735         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43736         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43737         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43738         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43739         these subsections.
43740         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43741         Remove sections.
43742
43743 2008-12-14  Bruno Haible  <bruno@clisp.org>
43744
43745         Update doc for POSIX:2008.
43746         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43747
43748 2008-12-14  Bruno Haible  <bruno@clisp.org>
43749
43750         Update doc for POSIX:2008.
43751         * doc/pastposix-functions/bcmp.texi: Renamed from
43752         doc/posix-functions/bcmp.texi.
43753         * doc/pastposix-functions/bcopy.texi: Renamed from
43754         doc/posix-functions/bcopy.texi.
43755         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43756         doc/posix-functions/bsd_signal.texi.
43757         * doc/pastposix-functions/bzero.texi: Renamed from
43758         doc/posix-functions/bzero.texi.
43759         * doc/pastposix-functions/ecvt.texi: Renamed from
43760         doc/posix-functions/ecvt.texi.
43761         * doc/pastposix-functions/fcvt.texi: Renamed from
43762         doc/posix-functions/fcvt.texi.
43763         * doc/pastposix-functions/ftime.texi: Renamed from
43764         doc/posix-functions/ftime.texi.
43765         * doc/pastposix-functions/gcvt.texi: Renamed from
43766         doc/posix-functions/gcvt.texi.
43767         * doc/pastposix-functions/getcontext.texi: Renamed from
43768         doc/posix-functions/getcontext.texi.
43769         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43770         doc/posix-functions/gethostbyaddr.texi.
43771         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43772         doc/posix-functions/gethostbyname.texi.
43773         * doc/pastposix-functions/getwd.texi: Renamed from
43774         doc/posix-functions/getwd.texi.
43775         * doc/pastposix-functions/h_errno.texi: Renamed from
43776         doc/posix-functions/h_errno.texi.
43777         * doc/pastposix-functions/index.texi: Renamed from
43778         doc/posix-functions/index.texi.
43779         * doc/pastposix-functions/makecontext.texi: Renamed from
43780         doc/posix-functions/makecontext.texi.
43781         * doc/pastposix-functions/mktemp.texi: Renamed from
43782         doc/posix-functions/mktemp.texi.
43783         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43784         doc/posix-functions/pthread_attr_getstackaddr.texi.
43785         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43786         doc/posix-functions/pthread_attr_setstackaddr.texi.
43787         * doc/pastposix-functions/rindex.texi: Renamed from
43788         doc/posix-functions/rindex.texi.
43789         * doc/pastposix-functions/scalb.texi: Renamed from
43790         doc/posix-functions/scalb.texi.
43791         * doc/pastposix-functions/setcontext.texi: Renamed from
43792         doc/posix-functions/setcontext.texi.
43793         * doc/pastposix-functions/swapcontext.texi: Renamed from
43794         doc/posix-functions/swapcontext.texi.
43795         * doc/pastposix-functions/ualarm.texi: Renamed from
43796         doc/posix-functions/ualarm.texi.
43797         * doc/pastposix-functions/usleep.texi: Renamed from
43798         doc/posix-functions/usleep.texi.
43799         * doc/pastposix-functions/vfork.texi: Renamed from
43800         doc/posix-functions/vfork.texi.
43801         * doc/pastposix-functions/wcswcs.texi: Renamed from
43802         doc/posix-functions/wcswcs.texi.
43803         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43804         (Function Substitutes): Update.
43805
43806 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43807
43808         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43809         m4/strerror.m4.
43810
43811 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43812             Bruno Haible  <bruno@clisp.org>
43813
43814         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43815
43816 2008-12-13  Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/strtoull (Depends-on): Remove unistd.
43819
43820 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43821
43822         * modules/strtoull (Depends-on): Add stdlib.
43823
43824 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43825
43826         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43827
43828 2008-12-10  Jim Meyering  <meyering@redhat.com>
43829
43830         gl_ASSERT: don't say assertions are disabled when they're not
43831         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43832         "checking whether to enable assertions... no", when they are in
43833         fact enabled.  This is solely a bug in the output of configure.
43834         In spite of saying "no", NDEBUG was not defined in that case.
43835         Also, as noted by Eric Blake, leave assertions enabled upon
43836         --enable-assert=INVALID.
43837
43838 2008-12-10  Bruno Haible  <bruno@clisp.org>
43839
43840         Change MODULES.html to refer to POSIX:2008 where possible.
43841         * MODULES.html.sh (POSIX2008_URL): New variable.
43842         (posix_headers): Remove sys/timeb, ucontext.
43843         (posix2001_headers): New variable.
43844         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43845         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43846         index, makecontext, mktemp, pthread_attr_getstackaddr,
43847         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43848         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43849         (posix2001_functions): New variable.
43850         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43851         otherwise.
43852
43853 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43854
43855         add missing include to parse-duration.c
43856         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43857         * modules/parse-duration (Depends-on): Add xalloc.
43858
43859         fix sed script reading maint.mk
43860         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43861         (syntax-check-rules): Use it.
43862
43863 2008-12-09  Bruno Haible  <bruno@clisp.org>
43864
43865         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43866         MacOS X 10.4/PowerPC.
43867         Reported by Simon Josefsson.
43868
43869 2008-12-08  Jim Meyering  <meyering@redhat.com>
43870
43871         work around mingw's lack of some S_IF definitions
43872         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43873         Reported by Simon Josefsson.
43874
43875 2008-12-08  Bruno Haible  <bruno@clisp.org>
43876
43877         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43878         applied to variables. Needed on MacOS X 10.4/PowerPC.
43879         Reported by Simon Josefsson.
43880
43881 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43882         and Eric Blake  <ebb9@byu.net>
43883
43884         assert: honor --enable-assert
43885         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43886         order to honor --enable-assert, rather than treating it as a
43887         synonym for --disable-assert.
43888
43889 2008-12-08  Jim Meyering  <meyering@redhat.com>
43890
43891         * lib/posixtm.c: Remove now-useless declaration of mktime.
43892
43893         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43894
43895 2008-12-07  Bruno Haible  <bruno@clisp.org>
43896
43897         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43898         test_once): Mark functions as static.
43899         * tests/test-tls.c (test_tls): Likewise.
43900
43901 2008-12-07  Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43904         iconv_register_autodetect.
43905
43906 2008-12-07  Jim Meyering  <meyering@redhat.com>
43907
43908         posixtm.c: avoid a warning
43909         * lib/posixtm.c (posixtime): Don't initialize tm0.
43910         It's no longer needed to placate gcc4's -Wuninitialized,
43911         and the attempt to placate would elicit a new warning.
43912
43913         unicodeio.c: mark unused parameters
43914         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43915         (fallback_failure_callback): Likewise.
43916
43917 2008-12-07  Bruno Haible  <bruno@clisp.org>
43918
43919         * gnulib-tool (func_create_testdir): When building the tests
43920         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43921         Reported by Simon Josefsson.
43922
43923 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43924
43925         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43926
43927 2008-12-06  Bruno Haible  <bruno@clisp.org>
43928
43929         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43930         Suggested by Eric Blake.
43931
43932 2008-12-06  Bruno Haible  <bruno@clisp.org>
43933
43934         Fix a c-stack test failure on MacOS X.
43935         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43936         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43937         handler for SIGBUS as well.
43938         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43939         install a signal handler for SIGBUS as well.
43940         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43941
43942 2008-12-06  Bruno Haible  <bruno@clisp.org>
43943
43944         Advocacy documentation.
43945         * doc/gnulib-intro.texi (Benefits): New section.
43946         * doc/gnulib.texi: Update.
43947
43948 2008-12-06  Bruno Haible  <bruno@clisp.org>
43949
43950         Document the 'manywarnings' module.
43951         * doc/manywarnings.texi: New file.
43952         * doc/gnulib.texi: Include it.
43953
43954 2008-12-05  Eric Blake  <ebb9@byu.net>
43955
43956         tests: silence some gcc warnings
43957         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43958         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43959         type mismatches.
43960
43961 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43962             Bruno Haible  <bruno@clisp.org>
43963
43964         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43965
43966 2008-11-29  Jim Meyering  <meyering@redhat.com>
43967
43968         unicodeio.c: mark unused parameters
43969         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43970         (fallback_failure_callback): Likewise.
43971
43972         fts: fix a thinko
43973         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43974         (set_stat_type): Return S_IF*-valued "type" directly.
43975         Prompted by James Youngman's spotting a related bug.
43976         Confirmed by further testing through find.
43977
43978         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43979         * lib/fts.c (D_TYPE): Define.
43980         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43981         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43982         (s_ifmt_shift_bits): New function.
43983         (set_stat_type): New function.
43984         (fts_build): When not calling fts_stat, call set_stat_type
43985         to propagate dirent.d_type info to fts_read caller.
43986         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43987         fts_statp->st_mode type information may be valid.
43988
43989 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43990
43991         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43992         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43993         <sds@gnu.org>.
43994
43995 2008-11-20  Bruno Haible  <bruno@clisp.org>
43996
43997         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43998         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43999         INCLUDE_NEXT.
44000         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44001         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44002         * modules/math (Makefile.am): Substitute
44003         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44004         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44005
44006 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44007             Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/stdint.in.h: Define all type macros so that their expansion is
44010         a single typedef'ed token. Fixes a compilation failure in Boost which
44011         does "using ::int8_t;".
44012
44013 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44014
44015         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44016         gl_MANYWARN_ALL_GCC.
44017         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44018         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44019         * modules/manywarnings: New file.
44020         * MODULES.html.sh: Mention manywarnings module.
44021
44022 2008-11-18  Bruno Haible  <bruno@clisp.org>
44023
44024         * doc/gnulib-tool.texi (Unit tests): New section.
44025
44026 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44027
44028         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44029         paths like 'lib/po/foo.po'.
44030
44031 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44032
44033         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44034         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44035
44036 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44037
44038         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44039         parameter works.
44040
44041 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44042
44043         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44044
44045 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44046
44047         * modules/parse-duration-tests: New file.
44048         * tests/test-parse-duration.sh: New file.
44049         * tests/test-parse-duration.c: New file.
44050
44051         New module 'parse-duration'.
44052         * lib/parse-duration.h: New file.
44053         * lib/parse-duration.c: New file.
44054         * modules/parse-duration: New file.
44055
44056 2008-11-17  Bruno Haible  <bruno@clisp.org>
44057
44058         * tests/test-select-out.sh: Comment out the first pipe test.
44059         Reported by Simon Josefsson.
44060
44061 2008-11-17  Bruno Haible  <bruno@clisp.org>
44062
44063         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44064         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44065         gl_HOSTENT.
44066
44067 2008-11-17  Bruno Haible  <bruno@clisp.org>
44068
44069         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44070         -lnetwork and -lnet. Needed for Haiku and BeOS.
44071
44072 2008-11-16  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44075
44076 2008-11-16  Bruno Haible  <bruno@clisp.org>
44077
44078         Avoid test failure on Haiku.
44079         * tests/test-fsync.c: Include <errno.h>.
44080         (main): Don't require that fsync (0) fails.
44081
44082 2008-11-15  Bruno Haible  <bruno@clisp.org>
44083
44084         New module 'hostent'.
44085         * modules/hostent: New file.
44086         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44087
44088 2008-11-15  Bruno Haible  <bruno@clisp.org>
44089
44090         New module 'servent'.
44091         * modules/servent: New file.
44092         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44093
44094 2008-11-15  Bruno Haible  <bruno@clisp.org>
44095
44096         Avoid generating same test program with two different rules.
44097         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44098         test-frexp to test-frexp-nolibm.
44099         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44100         test-frexpl to test-frexpl-nolibm.
44101
44102 2008-11-15  Bruno Haible  <bruno@clisp.org>
44103
44104         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44105         $(FREXPL_LIBM).
44106
44107 2008-11-15  Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/netdb.in.h: Activate the definitions also when the system's
44110         <netdb.h> has 'struct addrinfo'.
44111         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44112         EAI_OVERFLOW or AI_NUMERICSERV.
44113         * doc/posix-headers/netdb.texi: Document the problem.
44114
44115 2008-11-15  Bruno Haible  <bruno@clisp.org>
44116
44117         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44118
44119         Make the 'sched' module work on platforms where <sched.h> exists but
44120         is incomplete (such as Haiku).
44121         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44122         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44123         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44124         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44125         HAVE_STRUCT_SCHED_PARAM.
44126         * modules/sched (Depends-on): Add include_next.
44127         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44128         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44129         * doc/posix-headers/sched.texi: Document the issue.
44130
44131 2008-11-13  Jim Meyering  <meyering@redhat.com>
44132
44133         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44134         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44135         test would fail due to the difference in the Report bugs to ...
44136         line.  The expected address is empty, "<>", while the actual
44137         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44138
44139 2008-11-12  Bruno Haible  <bruno@clisp.org>
44140
44141         lstat: don't compile lstat.c on systems lacking lstat
44142         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44143         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44144         Reported by Daniel P. Berrange via Jim Meyering.
44145
44146 2008-11-12  Jim Meyering  <meyering@redhat.com>
44147
44148         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44149
44150 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44151
44152         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44153         instead.
44154
44155 2008-11-12  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/unicodeio.c: Include unistr.h.
44158         (utf8_wctomb): Remove function.
44159         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44160
44161 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44162
44163         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44164         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44165         <bruno@clisp.org>.
44166         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44167
44168 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44169
44170         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44171         * doc/gnulib.texi: Add section for warnings.
44172
44173 2008-11-11  Bruno Haible  <bruno@clisp.org>
44174
44175         * lib/sockets.h: Add a comment.
44176
44177 2008-11-11  Karl Berry  <karl@gnu.org>
44178
44179         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44180
44181 2008-11-11  Eric Blake  <ebb9@byu.net>
44182
44183         fdl.texi: avoid git symlinks
44184         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44185
44186 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44187
44188         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44189
44190 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44191
44192         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44193         (gl_WARN_ADD): Substitute $2 if literal.
44194
44195 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44196
44197         * m4/warning.m4: Remove.
44198
44199 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44200
44201         * m4/warnings.m4: Almost complete rewrite. :-)
44202
44203 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44204
44205         * modules/warnings: New module.
44206         * m4/warnings.m4: New file.
44207         * MODULES.html.sh: Mention warnings module.
44208         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44209         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44210
44211 2008-11-10  Eric Blake  <ebb9@byu.net>
44212
44213         fdl.texi: make a symlink to the latest version
44214         * doc/standards.texi: Revert today's earlier change.
44215         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44216         * doc/fdl.texi: ...and replace this with a symlink to the newer
44217         fdl-1.3.texi.
44218
44219 2008-11-10  Bruno Haible  <bruno@clisp.org>
44220
44221         * tests/test-select-fd.c (main): Accept the result file name as fourth
44222         argument.
44223         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44224         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44225
44226 2008-11-10  Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44229         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44230         as autoconf-substituted macros.
44231         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44233         gl_NETDB_H_DEFAULTS. Set these variables.
44234         * modules/netdb (Makefile.am): Substitute these variables.
44235
44236 2008-11-10  Eric Blake  <ebb9@byu.net>
44237
44238         standards.texi: include correct file for FDL 1.3
44239         * doc/standards.texi (GNU Free Documentation License): Change
44240         include file to pull in FDL 1.3, not 1.2.
44241
44242         fdl.texi: revert accidental change to license
44243         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44244
44245 2008-11-10  Bruno Haible  <bruno@clisp.org>
44246
44247         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44248         cross-compiling guesses also when the native compile gives no result.
44249
44250 2008-11-10  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/spawni.c (__spawni): Force variable into the stack.
44253
44254 2008-11-10  Bruno Haible  <bruno@clisp.org>
44255
44256         Add support for Haiku.
44257         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44258         glibc and BeOS, but also on Haiku.
44259         * lib/fpurge.c (fpurge): Likewise.
44260         * lib/freadable.c (freadable): Likewise.
44261         * lib/freadahead.c (freadahead): Likewise.
44262         * lib/freading.c (freading): Likewise.
44263         * lib/freadptr.c (freadptr): Likewise.
44264         * lib/freadseek.c (freadptrinc): Likewise.
44265         * lib/fseeko.c (rpl_fseeko): Likewise.
44266         * lib/fseterr.c (fseterr): Likewise.
44267         * lib/fwritable.c (fwritable): Likewise.
44268         * lib/fwriting.c (fwriting): Likewise.
44269         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44270
44271 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44272
44273         * lib/config.charset: Treat Haiku like BeOS.
44274
44275 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44276
44277         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44278         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44279
44280 2008-11-08  Bruno Haible  <bruno@clisp.org>
44281
44282         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44283         AC_CACHE_CHECK.
44284
44285 2008-11-08  Bruno Haible  <bruno@clisp.org>
44286
44287         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44288
44289 2008-11-08  Bruno Haible  <bruno@clisp.org>
44290
44291         * tests/test-select-fd.c: New file.
44292         * tests/test-select-in.sh: New file.
44293         * tests/test-select-out.sh: New file.
44294         * tests/test-select-stdin.c: New file.
44295         * modules/select-tests (Files): Add the new files.
44296         (Depends-on): Add gettimeofday.
44297         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44298         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44299         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44300
44301 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44302             Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44305
44306 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44307
44308         * build-aux/pmccabe2html: Added support for C++ source files.
44309
44310 2008-11-05  Ben Pfaff  <blp@gnu.org>
44311
44312         Fix lib/close.c build on Windows.
44313         * modules/close (Files): Add lib/w32sock.h.
44314
44315 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44316
44317         Accept Bison's NEWS format.
44318         * build-aux/announce-gen (print_news_deltas): Tweak
44319         $re_prefix.
44320
44321 2008-11-04  Bruno Haible  <bruno@clisp.org>
44322
44323         * modules/random_r (Maintainer): Add glibc.
44324
44325 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44326
44327         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44328         by karl@freefriends.org (Karl Berry).
44329         * doc/alloca.texi: Likewise.
44330         * doc/c-ctype.texi: Likewise.
44331         * doc/c-strcase.texi: Likewise.
44332         * doc/c-strcaseeq.texi: Likewise.
44333         * doc/c-strcasestr.texi: Likewise.
44334         * doc/c-strstr.texi: Likewise.
44335         * doc/c-strtod.texi: Likewise.
44336         * doc/c-strtold.texi: Likewise.
44337         * doc/ctime.texi: Likewise.
44338         * doc/error.texi: Likewise.
44339         * doc/fdl.texi: Likewise.
44340         * doc/gcd.texi: Likewise.
44341         * doc/getdate.texi: Likewise.
44342         * doc/gnulib-intro.texi: Likewise.
44343         * doc/gnulib-tool.texi: Likewise.
44344         * doc/gnulib.texi: Likewise.
44345         * doc/inet_ntoa.texi: Likewise.
44346         * doc/maintain.texi: Likewise.
44347         * doc/make-stds.texi: Likewise.
44348         * doc/quote.texi: Likewise.
44349         * doc/regexprops-generic.texi: Likewise.
44350         * doc/standards.texi: Likewise.
44351         * doc/verify.texi: Likewise.
44352         * doc/visibility.texi: Likewise.
44353         * doc/gnulib.texi (GNU Free Documentation License): Include
44354         fdl-1.3.texi instead of fdl.texi.
44355
44356 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44357
44358         * doc/fdl-1.3.texi: New file, from
44359         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44360         * modules/fdl-1.3: Add.
44361         * MODULES.html.sh: Add fdl-1.3.
44362
44363 2008-11-03  Bruno Haible  <bruno@clisp.org>
44364
44365         Make determination of absolute name of header file work with AIX xlc.
44366         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44367         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44368         preprocessing.
44369         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44370         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44371
44372 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44373
44374         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44375         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44376         <ludo@gnu.org>.
44377
44378 2008-11-02  Bruno Haible  <bruno@clisp.org>
44379
44380         Mark 'strpbrk' obsolete.
44381         * modules/strpbrk (Status, Notice): New sections.
44382         * modules/strtok_r (Depends-on): Add strpbrk.
44383
44384 2008-11-02  Bruno Haible  <bruno@clisp.org>
44385
44386         Mark 'strdup' obsolete.
44387         * modules/strdup (Status, Notice): New sections.
44388         * modules/findprog (Depends-on): Add strdup.
44389         * modules/getaddrinfo (Depends-on): Likewise.
44390         * modules/localename (Depends-on): Likewise.
44391         * modules/relocatable-lib (Depends-on): Likewise.
44392         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44393         * modules/relocatable-prog (Depends-on): Likewise.
44394         * modules/trim (Depends-on): Likewise.
44395         * modules/unictype/gen-ctype (Depends-on): Likewise.
44396         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44397
44398 2008-11-02  Bruno Haible  <bruno@clisp.org>
44399
44400         Mark 'strcspn' obsolete.
44401         * modules/strcspn (Status, Notice): New sections.
44402
44403 2008-11-02  Bruno Haible  <bruno@clisp.org>
44404
44405         Mark 'rmdir' obsolete.
44406         * modules/rmdir (Status, Notice): New sections.
44407         * modules/clean-temp (Depends-on): Add rmdir.
44408         * modules/openat (Depends-on): Likewise.
44409
44410 2008-11-02  Bruno Haible  <bruno@clisp.org>
44411
44412         Mark 'raise' obsolete.
44413         * modules/raise (Status, Notice): New sections.
44414         (Include): Specify <signal.h>.
44415         * modules/stdio (Depends-on): Add raise.
44416         * modules/write (Depends-on): Likewise.
44417
44418 2008-11-02  Bruno Haible  <bruno@clisp.org>
44419
44420         Mark 'memset' obsolete.
44421         * modules/memset (Status, Notice): New sections.
44422
44423 2008-11-02  Bruno Haible  <bruno@clisp.org>
44424
44425         Mark 'memmove' obsolete.
44426         * modules/memmove (Status, Notice): New sections.
44427         * modules/argp (Depends-on): Add memmove.
44428         * modules/argz (Depends-on): Likewise.
44429         * modules/canonicalize (Depends-on): Likewise.
44430         * modules/canonicalize-lgpl (Depends-on): Likewise.
44431         * modules/fts (Depends-on): Likewise.
44432         * modules/getcwd (Depends-on): Likewise.
44433         * modules/human (Depends-on): Likewise.
44434         * modules/regex (Depends-on): Likewise.
44435         * modules/striconveh (Depends-on): Likewise.
44436         * modules/trim (Depends-on): Likewise.
44437         * modules/unistr/u8-move (Depends-on): Likewise.
44438         * modules/unistr/u16-move (Depends-on): Likewise.
44439         * modules/unistr/u32-move (Depends-on): Likewise.
44440
44441 2008-11-02  Bruno Haible  <bruno@clisp.org>
44442
44443         Mark 'memcpy' obsolete.
44444         * modules/memcpy (Status, Notice): New sections.
44445
44446 2008-11-02  Bruno Haible  <bruno@clisp.org>
44447
44448         Mark 'memcmp' obsolete.
44449         * modules/memcmp (Status, Notice): New sections.
44450         * modules/argmatch (Depends-on): Add memchr.
44451         * modules/backupfile (Depends-on): Likewise.
44452         * modules/c-strcasestr (Depends-on): Likewise.
44453         * modules/crypto/des (Depends-on): Likewise.
44454         * modules/csharpcomp (Depends-on): Likewise.
44455         * modules/fnmatch (Depends-on): Likewise.
44456         * modules/git-merge-changelog (Depends-on): Likewise.
44457         * modules/isnand (Depends-on): Likewise.
44458         * modules/isnand-nolibm (Depends-on): Likewise.
44459         * modules/isnanf (Depends-on): Likewise.
44460         * modules/isnanf-nolibm (Depends-on): Likewise.
44461         * modules/isnanl (Depends-on): Likewise.
44462         * modules/isnanl-nolibm (Depends-on): Likewise.
44463         * modules/mbchar (Depends-on): Likewise.
44464         * modules/memcoll (Depends-on): Likewise.
44465         * modules/quotearg (Depends-on): Likewise.
44466         * modules/regex (Depends-on): Likewise.
44467         * modules/relocatable-prog (Depends-on): Likewise.
44468         * modules/same (Depends-on): Likewise.
44469         * modules/signbit (Depends-on): Likewise.
44470         * modules/strcasestr-simple (Depends-on): Likewise.
44471         * modules/unictype/gen-ctype (Depends-on): Likewise.
44472         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44473         * modules/uniname/uniname (Depends-on): Likewise.
44474         * modules/unistr/u8-cmp (Depends-on): Likewise.
44475
44476 2008-11-02  Bruno Haible  <bruno@clisp.org>
44477
44478         Mark 'memchr' obsolete.
44479         * modules/memchr (Status, Notice): New sections.
44480         * modules/argp (Depends-on): Add memchr.
44481         * modules/base64 (Depends-on): Likewise.
44482         * modules/c-strcasestr (Depends-on): Likewise.
44483         * modules/chdir-long (Depends-on): Likewise.
44484         * modules/fnmatch (Depends-on): Likewise.
44485         * modules/getsubopt (Depends-on): Likewise.
44486         * modules/git-merge-changelog (Depends-on): Likewise.
44487         * modules/glob (Depends-on): Likewise.
44488         * modules/strcasestr-simple (Depends-on): Likewise.
44489         * modules/strnlen (Depends-on): Likewise.
44490
44491 2008-11-02  Bruno Haible  <bruno@clisp.org>
44492
44493         Mark 'atexit' obsolete.
44494         * modules/atexit (Status, Notice): New sections.
44495         * modules/chdir-long (Depends-on): Add atexit.
44496         * modules/wait-process (Depends-on): Likewise.
44497
44498 2008-11-02  Bruno Haible  <bruno@clisp.org>
44499
44500         * gnulib-tool: New option --with-obsolete.
44501         (func_usage): Document it.
44502         (func_modules_transitive_closure): Drop obsolete dependencies if
44503         incobsolete is not true.
44504         (func_import): Read and save the incobsolete variable to the cache.
44505
44506 2008-11-02  Bruno Haible  <bruno@clisp.org>
44507
44508         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44509         * gnulib-tool: New option --extract-status.
44510         (func_usage): Document it.
44511         (sed_extract_prog): Recognize it.
44512         (func_get_status): New function.
44513
44514 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44515
44516         * modules/sockets (License): Change from LGPL to LGPLv2+.
44517
44518 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44519
44520         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44521
44522 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44523
44524         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44525         Mention times and sys_times.
44526         * modules/sys_times, modules/sys_times-tests: New modules.
44527         * modules/times, modules/times-tests: Likewise
44528         * m4/sys_times_h.m4: New file.
44529         * lib/sys_times.in.h: Likewise
44530         * lib/times.c: Likewise.
44531         * tests/test-sys_times.c: Likewise.
44532         * tests/test-times.c: Likewise.
44533         * doc/posix-headers/sys_times.texi: Update.
44534         * doc/posix-functions/times.texi: Update.
44535
44536 2008-10-28  Jim Meyering  <meyering@redhat.com>
44537
44538         * modules/tempname (Depends-on): Add lstat.
44539
44540         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44541
44542 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44543
44544         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44545         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44546         using idiom used elsewhere in gnulib.
44547
44548 2008-10-27  Jim Meyering  <meyering@redhat.com>
44549
44550         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44551
44552 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44553
44554         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44555         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44556         programs.
44557         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44558
44559 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44560
44561         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44562
44563 2008-10-27  Bruno Haible  <bruno@clisp.org>
44564
44565         * tests/test-lstat.c: Include <stdio.h>.
44566
44567 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44568
44569         * modules/lstat-tests: New module.
44570         * tests/test-lstat.c: New file.
44571
44572 2008-10-26  Jim Meyering  <meyering@redhat.com>
44573
44574         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44575
44576 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44577             Bruno Haible  <bruno@clisp.org>
44578
44579         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44580         * modules/configmake (Include): Add a note that the include must come
44581         after all system headers.
44582         * lib/javaversion.c: Include configmake.h after all other includes.
44583
44584 2008-10-26  Bruno Haible  <bruno@clisp.org>
44585
44586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44587         HAVE_STRUCT_RANDOM_DATA to 1.
44588         (gl_STDLIB_H): Simplify.
44589
44590 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44591
44592         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44593         substitute HAVE_STRUCT_RANDOM_DATA.
44594         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44595         random_data.
44596         * modules/stdlib (Makefile.am): Substitute
44597         HAVE_STRUCT_RANDOM_DATA.
44598
44599 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44600
44601         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44602         * doc/gnulib-intro.texi (Copyright): Likewise.
44603
44604 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44605
44606         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44607         findings.
44608
44609 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44610             Bruno Haible  <bruno@clisp.org>
44611
44612         * lib/unistd.in.h: Include <winsock2.h>.
44613         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44614         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44615         Provide dummy declarations.
44616         (gethostname): Override.
44617         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44618         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44619         gl_PREREQ_SYS_H_WINSOCK2.
44620         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44621         * doc/posix-functions/gethostname.texi: More details.
44622
44623 2008-10-25  Bruno Haible  <bruno@clisp.org>
44624
44625         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44626         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44627         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44628
44629         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44630         here ...
44631         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44632         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44633         gl_UNISTD_H_DEFAULTS.
44634
44635 2008-10-25  Eric Blake  <ebb9@byu.net>
44636
44637         signbit: avoid spurious compiler failure
44638         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44639         declarations inside function.
44640
44641 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44642             Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44645         * modules/random_r (Depends-on): Add stdint.
44646
44647 2008-10-24  Bruno Haible  <bruno@clisp.org>
44648
44649         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44650         Eggert.
44651         * modules/strerror (License): Likewise.
44652
44653 2008-10-24  Jim Meyering  <meyering@redhat.com>
44654
44655         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44656         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44657
44658 2008-10-24  Eric Blake  <ebb9@byu.net>
44659
44660         getgroups: fix compilation when getgroups is available
44661         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44662         but with <config.h> override of getgroups disabled.
44663
44664 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44665
44666         * doc/gnulib.texi (Header files): Add note about C++ problems.
44667         Explained by Bruno Haible <bruno@clisp.org>.
44668
44669 2008-10-23  Bruno Haible  <bruno@clisp.org>
44670
44671         Define a dummy SA_NODEFER macro on Interix.
44672         * lib/signal.in.h (SA_NODEFER): Define fallback.
44673         Reported by Aleksey Cheusov <cheusov@tut.by> via
44674         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44675
44676 2008-10-23  Bruno Haible  <bruno@clisp.org>
44677
44678         * modules/freadahead (License): Change to LGPLv2+.
44679         Suggested by Simon Josefsson.
44680
44681 2008-10-23  Jim Meyering  <meyering@redhat.com>
44682
44683         random_r: new module
44684         * modules/random_r: New file.
44685         * m4/random_r.m4: New file.
44686         * lib/random_r.c: New file, from glibc.
44687         * modules/random_r-tests: New file.
44688         * tests/test-random_r.c: New file.
44689         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44690          Declare.
44691         (RAND_MAX): Define.
44692         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44693         * modules/stdlib: Substitute them, too.
44694         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44695         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44696         * doc/glibc-functions/random_r.texi: Likewise.
44697         * doc/glibc-functions/setstate_r.texi: Likewise.
44698         * doc/glibc-functions/srandom_r.texi: Likewise.
44699         * config/srclist.txt: Mention it.
44700
44701 2008-10-23  David Lutterkort  <lutter@redhat.com>
44702
44703         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44704         link requirement
44705
44706 2008-10-23  Jim Meyering  <meyering@redhat.com>
44707
44708         selinux-h: mark parameters of stub functions as intentionally unused
44709         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44710         * lib/se-context.in.h: Likewise.
44711
44712 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44713
44714         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44715
44716 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44717
44718         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44719
44720 2008-10-22  Eric Blake  <ebb9@byu.net>
44721
44722         glthread/thread: avoid compiler warning
44723         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44724         Add unreachable abort to silence compiler.
44725
44726 2008-10-22  Eric Blake  <ebb9@byu.net>
44727
44728         netdb: also supply struct addrinfo for cygwin 1.5.x
44729         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44730         older cygwin.
44731         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44732         cygwin.
44733         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44734
44735 2008-10-22  Bruno Haible  <bruno@clisp.org>
44736
44737         * users.txt: Update entry about pspp.
44738
44739 2008-10-21  Bruno Haible  <bruno@clisp.org>
44740
44741         Simplification.
44742         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44743         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44744
44745         Simplification.
44746         * lib/ioctl.c (ioctl): Don't undefine.
44747         * lib/socket.c (socket): Don't undefine.
44748
44749         Remove unused module indicator macros.
44750         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44751         GNULIB_$1 as a C macro.
44752
44753         * doc/posix-functions/close.texi: Undo last change.
44754         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44755         Windows platforms.
44756
44757 2008-10-21  Bruno Haible  <bruno@clisp.org>
44758
44759         Add gethostname() declaration to <unistd.h>.
44760         * lib/unistd.in.h (gethostname): New declaration.
44761         * lib/gethostname.c: Include <unistd.h>.
44762         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44763         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44765         and HAVE_GETHOSTNAME.
44766         * modules/gethostname (Depends-on): Add unistd.
44767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44768         (Include): Specify <unistd.h>.
44769         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44770         HAVE_GETHOSTNAME.
44771         * tests/test-gethostname.c: Include <unistd.h> first.
44772
44773 2008-10-21  Bruno Haible  <bruno@clisp.org>
44774
44775         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44776         * modules/select-tests (Depends-on): Likewise.
44777         Reported by Simon Josefsson.
44778
44779 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44780
44781         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44782         * lib/accept.c: New file, based on winsock.c.
44783         * lib/bind.c: New file, based on winsock.c.
44784         * lib/connect.c: New file, based on winsock.c.
44785         * lib/getpeername.c: New file, based on winsock.c.
44786         * lib/getsockname.c: New file, based on winsock.c.
44787         * lib/getsockopt.c: New file, based on winsock.c.
44788         * lib/ioctl.c: New file, based on winsock.c.
44789         * lib/listen.c: New file, based on winsock.c.
44790         * lib/recv.c: New file, based on winsock.c.
44791         * lib/recvfrom.c: New file, based on winsock.c.
44792         * lib/send.c: New file, based on winsock.c.
44793         * lib/sendto.c: New file, based on winsock.c.
44794         * lib/setsockopt.c: New file, based on winsock.c.
44795         * lib/shutdown.c: New file, based on winsock.c.
44796         * lib/socket.c: New file, based on winsock.c.
44797         * lib/w32sock.h: New file, based on winsock.c.
44798         * lib/winsock.c: Remove file.
44799         * modules/accept: Likewise.
44800         * modules/bind: Likewise.
44801         * modules/connect: Likewise.
44802         * modules/getpeername: Likewise.
44803         * modules/getsockname: Likewise.
44804         * modules/getsockopt: Likewise.
44805         * modules/ioctl: Likewise.
44806         * modules/listen: Likewise.
44807         * modules/recv: Likewise.
44808         * modules/recvfrom: Likewise.
44809         * modules/send: Likewise.
44810         * modules/sendto: Likewise.
44811         * modules/setsockopt: Likewise.
44812         * modules/shutdown: Likewise.
44813         * modules/socket: Use socket.c instead of winsock.c.
44814         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44815         * doc/posix-functions/accept.texi: Doc fix.
44816         * doc/posix-functions/bind.texi: Doc fix.
44817         * doc/posix-functions/close.texi: Doc fix.
44818         * doc/posix-functions/connect.texi: Doc fix.
44819         * doc/posix-functions/getpeername.texi: Doc fix.
44820         * doc/posix-functions/getsockname.texi: Doc fix.
44821         * doc/posix-functions/getsockopt.texi: Doc fix.
44822         * doc/posix-functions/ioctl.texi: Doc fix.
44823         * doc/posix-functions/listen.texi: Doc fix.
44824         * doc/posix-functions/recv.texi: Doc fix.
44825         * doc/posix-functions/recvfrom.texi: Doc fix.
44826         * doc/posix-functions/send.texi: Doc fix.
44827         * doc/posix-functions/sendto.texi: Doc fix.
44828         * doc/posix-functions/setsockopt.texi: Doc fix.
44829         * doc/posix-functions/shutdown.texi: Doc fix.
44830         * doc/posix-functions/socket.texi: Doc fix.
44831
44832 2008-10-20  Bruno Haible  <bruno@clisp.org>
44833
44834         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44835         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44836         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44837         as an alias for SIGABRT.
44838         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44839         (sigaction): Map it to SIGABRT.
44840         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44841
44842 2008-10-20  Bruno Haible  <bruno@clisp.org>
44843
44844         * lib/fts.c: Don't include lstat.h.
44845         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44846
44847         Move the lstat() declaration to <sys/stat.h>.
44848         * lib/lstat.h: Remove file.
44849         * lib/sys_stat.in.h: Add special invocation convention.
44850         (lstat): New declaration.
44851         * lib/lstat.c (orig_lstat): New function.
44852         (rpl_lstat): Use orig_lstat instead of lstat.
44853         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44854         AC_C_INLINE. Set REPLACE_LSTAT.
44855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44856         and REPLACE_LSTAT.
44857         * modules/lstat (Files): Remove lib/lstat.h.
44858         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44859         (Include): Specify <sys/stat.h> instead of lstat.h.
44860         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44861         REPLACE_LSTAT.
44862         * NEWS: Mention the change.
44863
44864 2008-10-20  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/posix_spawn-tests: New file.
44867         * tests/test-posix_spawn3.c: New file.
44868
44869 2008-10-20  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44872         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44873         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44874         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44875         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44876
44877 2008-10-20  Bruno Haible  <bruno@clisp.org>
44878
44879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44880         of posix_spawn on AIX 5.3.
44881
44882 2008-10-20  Bruno Haible  <bruno@clisp.org>
44883
44884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44885
44886 2008-10-20  Bruno Haible  <bruno@clisp.org>
44887
44888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44889         of AC_LANG_PROGRAM.
44890
44891 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44892
44893         * lib/netdb.in.h: Don't define GNU specific constants until they
44894         are supported or needed.  Reported by Bruno Haible
44895         <bruno@clisp.org>.
44896
44897 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44898
44899         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44900
44901 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44902
44903         * lib/getaddrinfo.h: Remove file.
44904         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44905         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44906         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44907         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44908         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44909         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44910         * tests/test-getaddrinfo.c: Likewise.
44911         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44912         * NEWS: Mention change.
44913
44914 2008-10-19  Bruno Haible  <bruno@clisp.org>
44915
44916         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44917
44918 2008-10-19  Bruno Haible  <bruno@clisp.org>
44919
44920         * lib/wait-process.c: Include simply <sys/wait.h>.
44921         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44922         WIFSTOPPED): Remove fallback definitions.
44923         * modules/wait-process (Depends-on): Add sys_wait.
44924
44925         New module 'sys_wait'.
44926         * modules/sys_wait: New file.
44927         * lib/sys_wait.in.h: New file, partially copied from
44928         lib/wait-process.c.
44929         * m4/sys_wait_h.m4: New file.
44930         * doc/posix-headers/sys_wait.texi: Mention the new module.
44931
44932 2008-10-19  Bruno Haible  <bruno@clisp.org>
44933
44934         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44935
44936 2008-10-19  Bruno Haible  <bruno@clisp.org>
44937
44938         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44939         * lib/wait-process.c (WAIT_T): Remove type.
44940         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44941         (wait_subprocess): Update.
44942
44943 2008-10-19  Bruno Haible  <bruno@clisp.org>
44944
44945         New module 'atoll'.
44946         * modules/atoll: New file.
44947         * lib/stdlib.in.h (atoll): New declaration.
44948         * lib/atoll.c: New file, from glibc with modifications.
44949         * m4/atoll.m4: New file.
44950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44951         HAVE_ATOLL.
44952         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44953         * doc/posix-functions/atoll.texi: Mention the new module.
44954
44955 2008-10-19  Bruno Haible  <bruno@clisp.org>
44956
44957         Add strtoull() declaration to <stdlib.h>.
44958         * lib/stdlib.in.h (strtoull): New declaration.
44959         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44960         Set HAVE_STRTOULL.
44961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44962         HAVE_STRTOULL.
44963         * modules/strtoull (Depends-on): Add stdlib.
44964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44965         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44966         HAVE_STRTOULL.
44967
44968 2008-10-19  Bruno Haible  <bruno@clisp.org>
44969
44970         Add strtoll() declaration to <stdlib.h>.
44971         * lib/stdlib.in.h (strtoll): New declaration.
44972         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44973         Set HAVE_STRTOLL.
44974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44975         HAVE_STRTOLL.
44976         * modules/strtoll (Depends-on): Add stdlib.
44977         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44978         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44979
44980 2008-10-19  Bruno Haible  <bruno@clisp.org>
44981
44982         * modules/bcopy (Depends-on): Add strings.
44983         (Include): Specify <strings.h>.
44984
44985 2008-10-19  Bruno Haible  <bruno@clisp.org>
44986
44987         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44988
44989 2008-10-19  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44992         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44993         mingw.
44994
44995 2008-10-19  Bruno Haible  <bruno@clisp.org>
44996
44997         * lib/atanl.c: Don't include isnanl.h.
44998         * lib/cosl.c: Likewise.
44999         * lib/ldexpl.c: Likewise.
45000         * lib/logl.c: Likewise.
45001         * lib/sinl.c: Likewise.
45002         * lib/sqrtl.c: Likewise.
45003         * lib/tanl.c: Likewise.
45004
45005         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45006         * lib/isnanf.h: Remove file.
45007         * lib/isnand.h: Remove file.
45008         * lib/isnanl.h: Remove file.
45009         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45010         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45011         macros.
45012         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45013         HAVE_ISNANF, don't define it as a C macro.
45014         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45015         HAVE_ISNAND, don't define it as a C macro.
45016         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45017         HAVE_ISNANL, don't define it as a C macro.
45018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45019         HAVE_ISNAN[FDL].
45020         * modules/isnanf (Files): Remove lib/isnanf.h.
45021         (Depends-on): Add math.
45022         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45023         (Include): Specify <math.h> instead of isnanf.h.
45024         * modules/isnand (Files): Remove lib/isnand.h.
45025         (Depends-on): Add math.
45026         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45027         (Include): Specify <math.h> instead of isnand.h.
45028         * modules/isnanl (Files): Remove lib/isnanl.h.
45029         (Depends-on): Add math.
45030         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45031         (Include): Specify <math.h> instead of isnanl.h.
45032         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45033         HAVE_ISNAN[FDL].
45034         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45035         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45036         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45037         * NEWS: Mention the change.
45038
45039 2008-10-18  Bruno Haible  <bruno@clisp.org>
45040
45041         Add getusershell(), setusershell(), endusershell() declarations to
45042         <unistd.h>.
45043         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45044         declarations.
45045         * lib/getusershell.c: Include unistd.h.
45046         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45047         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45048         HAVE_GETUSERSHELL.
45049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45050         and HAVE_GETUSERSHELL.
45051         * modules/getusershell (Depends-on): Add unistd, extensions.
45052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45053         (Include): Specify <unistd.h>.
45054         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45055         HAVE_GETUSERSHELL.
45056
45057 2008-10-18  Bruno Haible  <bruno@clisp.org>
45058
45059         Add a getloadavg() declaration to <stdlib.h>.
45060         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45061         getloadavg declaration.
45062         (getloadavg): New declaration.
45063         * lib/getloadavg.c: Include <stdlib.h> first.
45064         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45065         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45066         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45068         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45069         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45071         (Include): Specify <stdlib.h>.
45072         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45073         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45074
45075 2008-10-18  Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/dirchownmod.c: Don't include lchmod.h.
45078
45079         Move the lchmod() declaration to <sys/stat.h>.
45080         * lib/lchmod.h: Remove file.
45081         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45082         (lchmod): New declaration, moved here from lib/lchown.h.
45083         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45084         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45086         and HAVE_LCHMOD.
45087         * modules/lchmod (Files): Remove lib/lchmod.h.
45088         (Depends-on): Add sys_stat, extensions.
45089         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45090         (Include): Specify <sys/stat.h> instead of lchmod.h.
45091         * modules/sys_stat (Depends-on): Add link-warning.
45092         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45093         definition of GL_LINK_WARNING.
45094         * NEWS: Mention the change.
45095
45096 2008-10-18  Bruno Haible  <bruno@clisp.org>
45097
45098         * lib/fchdir.c: Don't include dirfd.h.
45099         * lib/fts.c: Likewise.
45100         * lib/getcwd.c: Likewise.
45101         * lib/glob.c: Likewise.
45102
45103         Move the dirfd() declaration to <dirent.h>.
45104         * lib/dirfd.h: Remove file.
45105         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45106         (dirfd): New declaration.
45107         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45108         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45109         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45110         HAVE_DECL_DIRFD.
45111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45112         HAVE_DECL_DIRFD.
45113         * modules/dirfd (Files): Remove lib/dirfd.h.
45114         (Depends-on): Add dirent, extensions.
45115         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45116         (Include): Specify <dirent.h> instead of dirfd.h.
45117         * modules/dirent (Depends-on): Add link-warning.
45118         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45119         definition of GL_LINK_WARNING.
45120         * NEWS: Mention the change.
45121
45122 2008-10-18  Bruno Haible  <bruno@clisp.org>
45123
45124         Move the euidaccess() declaration to <unistd.h>.
45125         * lib/euidaccess.h: Remove file.
45126         * lib/unistd.in.h (euidaccess): New declaration.
45127         * lib/euidaccess.c: Don't include euidaccess.h.
45128         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45129         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45131         and HAVE_EUIDACCESS.
45132         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45133         (Depends-on): Add unistd.
45134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45135         (Include): Specify <unistd.h> instead of euidaccess.h.
45136         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45137         HAVE_EUIDACCESS.
45138         * NEWS: Mention the change.
45139
45140 2008-10-18  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45143
45144         Move the getdomainname() declaration to <unistd.h>.
45145         * lib/getdomainname.h: Remove file.
45146         * lib/unistd.in.h (getdomainname): New declaration.
45147         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45148         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45149         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45150         HAVE_GETDOMAINNAME.
45151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45152         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45153         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45154         (Depends-on): Add unistd, extensions.
45155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45156         (Includes): Specify <unistd.h> instead of getdomainname.h.
45157         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45158         HAVE_GETDOMAINNAME.
45159         * NEWS: Mention the change.
45160
45161 2008-10-18  Bruno Haible  <bruno@clisp.org>
45162
45163         * modules/dirent: New file.
45164         * m4/dirent_h.m4: New file.
45165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45166         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45167         * modules/fchdir (Files): Remove lib/dirent.in.h.
45168         (Depends-on): Add dirent.
45169         (Makefile.am): Move rules to modules/dirent.
45170         * doc/posix-headers/dirent.texi: Mention the new module.
45171
45172 2008-10-18  Bruno Haible  <bruno@clisp.org>
45173
45174         Avoid -Wunused-parameter warnings in public gnulib header files.
45175         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45176         macro.
45177         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45178
45179 2008-10-18  Bruno Haible  <bruno@clisp.org>
45180
45181         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45182         * doc/glibc-functions/error.texi: Mention the module 'error'.
45183         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45184         * doc/glibc-functions/getdomainname.texi: Mention the module
45185         'getdomainname'.
45186         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45187         * doc/glibc-functions/getpagesize.texi: Mention the module
45188         'getpagesize'.
45189         * doc/glibc-functions/getusershell.texi: Mention the module
45190         'getusershell'.
45191         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45192         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45193         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45194         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45195         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45196         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45197         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45198         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45199         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45200         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45201         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45202         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45203         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45204         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45205
45206 2008-10-17  Bruno Haible  <bruno@clisp.org>
45207
45208         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45209         HP-UX and IRIX, use -0.0L.
45210         * tests/test-ceill.c (minus_zero): Likewise.
45211         * tests/test-floorl.c (minus_zero): Likewise.
45212         * tests/test-frexpl.c (minus_zero): Likewise.
45213         * tests/test-isnan.c (minus_zerol): Likewise.
45214         * tests/test-isnanl.h (minus_zero): Likewise.
45215         * tests/test-ldexpl.c (minus_zero): Likewise.
45216         * tests/test-roundl.c (minus_zero): Likewise.
45217         * tests/test-signbit.c (minus_zerol): Likewise.
45218         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45219         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45220         * tests/test-truncl.c (minus_zero): Likewise.
45221         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45222         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45223         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45224         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45225
45226 2008-10-17  Bruno Haible  <bruno@clisp.org>
45227
45228         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45229         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45230         that it gets activated only for gcc >= 3.0.
45231         * lib/dirent.in.h: Likewise.
45232         * lib/errno.in.h: Likewise.
45233         * lib/fcntl.in.h: Likewise.
45234         * lib/float.in.h: Likewise.
45235         * lib/iconv.in.h: Likewise.
45236         * lib/inttypes.in.h: Likewise.
45237         * lib/locale.in.h: Likewise.
45238         * lib/math.in.h: Likewise.
45239         * lib/netdb.in.h: Likewise.
45240         * lib/netinet_in.in.h: Likewise.
45241         * lib/search.in.h: Likewise.
45242         * lib/signal.in.h: Likewise.
45243         * lib/spawn.in.h: Likewise.
45244         * lib/stdarg.in.h: Likewise.
45245         * lib/stdint.in.h: Likewise.
45246         * lib/stdio.in.h: Likewise.
45247         * lib/stdlib.in.h: Likewise.
45248         * lib/string.in.h: Likewise.
45249         * lib/strings.in.h: Likewise.
45250         * lib/sys_file.in.h: Likewise.
45251         * lib/sys_ioctl.in.h: Likewise.
45252         * lib/sys_select.in.h: Likewise.
45253         * lib/sys_socket.in.h: Likewise.
45254         * lib/sys_stat.in.h: Likewise.
45255         * lib/sys_time.in.h: Likewise.
45256         * lib/sysexits.in.h: Likewise.
45257         * lib/time.in.h: Likewise.
45258         * lib/unistd.in.h: Likewise.
45259         * lib/wchar.in.h: Likewise.
45260         * lib/wctype.in.h: Likewise.
45261         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45262
45263 2008-10-17  Jim Meyering  <meyering@redhat.com>
45264
45265         ignore-value: don't depend on inline module
45266         * modules/ignore-value (Depends-on): Remove 'inline'.
45267         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45268         Suggestion from Bruno Haible.
45269
45270 2008-10-17  Bruno Haible  <bruno@clisp.org>
45271
45272         New implementation of condition variables for Win32.
45273         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45274         (gl_linked_waitqueue_t): New type.
45275         (gl_cond_t): Use it.
45276         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45277         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45278         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45279         (glthread_cond_init_func, glthread_cond_wait_func,
45280         glthread_cond_timedwait_func, glthread_cond_signal_func,
45281         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45282         Reimplemented on the basis of gl_linked_waitqueue_t.
45283         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45284         gl_waitqueue_t.
45285         (gl_rwlock_t): Update.
45286         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45287
45288 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45289
45290         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45291         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45292
45293 2008-10-17  Jim Meyering  <meyering@redhat.com>
45294
45295         ignore-value: new module
45296         * modules/ignore-value: New file.
45297         * lib/ignore-value.h: New file.
45298         * MODULES.html.sh (Compiler warning management): New section,
45299         just for this module.  More to come.
45300
45301 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45302
45303         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45304         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45305         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45306
45307 2008-10-16  Jim Meyering  <meyering@redhat.com>
45308
45309         openat-die.c: avoid 'no previous prototype' warning
45310         * lib/openat-die.c: Include "openat.h".
45311         Reported by Reuben Thomas <rrt@sc3d.org>.
45312
45313 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45314
45315         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45316         * lib/netdb.in.h: Fix typo.
45317         Reported by Bruno Haible  <bruno@clisp.org>
45318
45319         * lib/netdb.in.h: Include sys/socket.h for platforms without
45320         netdb.h, to get structures like hostent on MinGW.
45321         * modules/netdb (Depends-on): Add sys_socket.
45322
45323 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45324
45325         * modules/netdb, modules/netdb-tests: New file.
45326         * m4/netdb_h.m4: New file.
45327         * lib/netdb.in.h: Add, currently just an empty file pending
45328         definitions.
45329         * tests/test-netdb.c: New file.
45330         * doc/posix-headers/netdb.texi: Mention that we replace it if
45331         needed.
45332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45333         netdb.
45334
45335 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45336
45337         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45338         with code.
45339
45340 2008-10-13  Bruno Haible  <bruno@clisp.org>
45341
45342         * lib/glthread/cond.c (glthread_cond_wait_func,
45343         glthread_cond_timedwait_func): Add a comment.
45344
45345 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45346
45347         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45348         * tests/test-select.c: Likewise,
45349
45350 2008-10-13  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/glthread/cond.c (glthread_cond_wait_func,
45353         glthread_cond_timedwait_func): Fix variable name.
45354         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45355
45356 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45357
45358         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45360         struct sockaddr.sa_len.
45361         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45362
45363 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45364
45365         * build-aux/pmccabe2html: Add css and css_url parameters.
45366
45367 2008-10-12  Bruno Haible  <bruno@clisp.org>
45368
45369         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45370         calling aclx_get.
45371         Reported by Rainer Tammer <tammer@tammer.net>.
45372
45373 2008-10-12  Bruno Haible  <bruno@clisp.org>
45374
45375         Use msvcrt aware primitives for creation/termination of Win32 threads.
45376         * lib/glthread/thread.c: Include <process.h>.
45377         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45378         (wrapper_func): Update signature.
45379         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45380
45381 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45382             Bruno Haible  <bruno@clisp.org>
45383
45384         Provide a Win32 implementation of the 'cond' module.
45385         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45386         * lib/glthread/cond.c (glthread_cond_init_func,
45387         glthread_cond_wait_func, glthread_cond_timedwait_func,
45388         glthread_cond_signal_func, glthread_cond_broadcast_func,
45389         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45390         * modules/cond (Dependencies): Add gettimeofday.
45391
45392 2008-10-11  Bruno Haible  <bruno@clisp.org>
45393
45394         Make sleep work on older versions of mingw.
45395         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45396         only whether it exists.
45397         * doc/posix-functions/sleep.texi: Mention the problem with older
45398         versions of mingw.
45399
45400 2008-10-11  Bruno Haible  <bruno@clisp.org>
45401
45402         New module 'shutdown'.
45403         * modules/shutdown: New file.
45404         * lib/sys_socket.in.h (shutdown): New declaration.
45405         * lib/winsock.c (shutdown): New function.
45406         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45407         GNULIB_SHUTDOWN.
45408         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45409         * doc/posix-functions/shutdown.texi: Document the new module.
45410
45411 2008-10-11  Jim Meyering  <meyering@redhat.com>
45412
45413         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45414
45415 2008-10-11  Bruno Haible  <bruno@clisp.org>
45416
45417         New module 'fclose'.
45418         * modules/fclose: New file.
45419         * lib/stdio.in.h (fclose): New declaration.
45420         * lib/fclose.c: New file.
45421         * m4/fclose.m4: New file.
45422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45423         REPLACE_FCLOSE.
45424         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45425         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45426         REPLACE_FCLOSE.
45427         * modules/close (Depends-on): fclose.
45428         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45429
45430 2008-10-11  Bruno Haible  <bruno@clisp.org>
45431
45432         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45433         set errno and don't call _close.
45434
45435 2008-10-10  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45438         ACL, not afterwards. Fixes test failure on Cygwin.
45439
45440 2008-10-09  Ben Pfaff  <blp@gnu.org>
45441
45442         * build-aux/announce-gen: Fix gnulib version related part of usage
45443         message.  Die with a useful error message if no tarballs are
45444         found.
45445
45446 2008-10-10  Jim Meyering  <meyering@redhat.com>
45447
45448         bootstrap: use git's --depth=N option only if it's supported
45449         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45450         recognize the --depth option.  Reported by Pádraig Brady.
45451
45452 2008-10-09  Bruno Haible  <bruno@clisp.org>
45453
45454         New module 'ioctl'.
45455         * modules/ioctl: New file.
45456         * lib/sys_socket.in.h (ioctl): Remove declaration.
45457         * lib/winsock.c: Include <sys/ioctl.h>.
45458         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45459         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45460         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45461         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45462         * doc/posix-functions/ioctl.texi: Mention the new module.
45463
45464 2008-10-09  Bruno Haible  <bruno@clisp.org>
45465
45466         New module 'sys_ioctl'.
45467         * lib/sys_ioctl.in.h: New file.
45468         * m4/sys_ioctl_h.m4: New file.
45469         * modules/sys_ioctl: New file.
45470         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45471
45472 2008-10-09  Bruno Haible  <bruno@clisp.org>
45473
45474         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45475         * lib/winsock.c: Include <stdarg.h>.
45476         (rpl_ioctl): Change to second argument 'int' and then varargs.
45477
45478 2008-10-09  Bruno Haible  <bruno@clisp.org>
45479
45480         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45481         when the sys_socket module is present and the system has <winsock2.h>.
45482
45483 2008-10-09  Bruno Haible  <bruno@clisp.org>
45484
45485         * doc/posix-functions/close.texi: Mention module 'close' instead of
45486         module 'sys_socket'.
45487
45488 2008-10-09  Bruno Haible  <bruno@clisp.org>
45489
45490         * doc/glibc-headers/sys_ioctl.texi: New file.
45491         * doc/gnulib.texi: Include it.
45492
45493 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45494             Bruno Haible  <bruno@clisp.org>
45495
45496         Combine the two replacements of 'close'.
45497         * lib/sys_socket.in.h (close): Define to a reminder to include
45498         <unistd.h>.
45499         (_gl_close_fd_maybe_socket): New declaration.
45500         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45501         * lib/winsock.c (close): Remove undefinition.
45502         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45503         needed for the gnulib module 'close'.
45504         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45505         define to an error symbol or to a warning, if suitable.
45506         * lib/close.c: Include <sys/socket.h>.
45507         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45508         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45509         UNISTD_H_HAVE_WINSOCK2_H.
45510         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45512         UNISTD_H_HAVE_WINSOCK2_H.
45513         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45514         (configure.ac): Set a module indicator.
45515         (Makefile.am): Substitute GNULIB_CLOSE.
45516         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45517         * modules/poll-tests (Depends-on): Add close.
45518         * modules/select-tests (Depends-on): Likewise.
45519
45520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45521             Bruno Haible  <bruno@clisp.org>
45522
45523         New module 'close'.
45524         * modules/close: New file.
45525         * lib/unistd.in.h (close): Move declaration out of the
45526         FCHDIR_REPLACEMENT scope.
45527         (_gl_unregister_fd): New declaration.
45528         * lib/close.c: New file.
45529         * lib/fchdir.c (rpl_close): Remove function.
45530         * m4/close.m4: New file.
45531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45532         close.
45533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45534         REPLACE_CLOSE.
45535         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45536         REPLACE_CLOSE.
45537         * modules/fchdir (Depends-on): Add close.
45538
45539 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45540             Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/fcntl.in.h (open): Simplify conditionals.
45543         (_gl_register_fd): New declaration.
45544         * lib/fchdir.c (rpl_open): Remove function.
45545         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45546         also.
45547         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45549         open.
45550
45551 2008-10-09  Jim Meyering  <meyering@redhat.com>
45552
45553         GNUmakefile: use the more name-space-friendly "_version"
45554         * top/GNUmakefile (_dummy): Update.
45555         (_version): Rename from "version".
45556
45557 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45558             Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45561         rpl_close.
45562         (_gl_register_fd): New function, extracted from rpl_open.
45563         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45564         (rpl_open, rpl_opendir): Use _gl_register_fd.
45565
45566 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45567
45568         Fix organization of 'open' replacement.
45569         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45570         (gl_FUNC_OPEN): Use it.
45571         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45572
45573 2008-10-08  Bruno Haible  <bruno@clisp.org>
45574
45575         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45576
45577 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45578
45579         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45580         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45581         listen).
45582
45583 2008-10-08  Eric Blake  <ebb9@byu.net>
45584
45585         GNUmakefile: add 'make version' target
45586         * top/GNUmakefile (_curr-ver): Split version update rules...
45587         (version): ...into a target.
45588
45589 2008-10-07  Bruno Haible  <bruno@clisp.org>
45590
45591         Use a more portable replacement expression for -0.0L.
45592         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45593         instead of -0.0L. Fix m4 quotation.
45594
45595         * tests/test-signbit.c: Include <float.h>.
45596         (minus_zero): New variable.
45597         (test_signbitl): Use minus_zero instead of -zero.
45598         * modules/signbit-tests (Depends-on): Add float.
45599
45600         * tests/test-ceill.c: Include <float.h>.
45601         (zero): Remove variable.
45602         (minus_zero): New variable.
45603         (main): Use minus_zero instead of -zero.
45604         * modules/ceill-tests (Depends-on): Add float.
45605
45606         * tests/test-floorl.c: Include <float.h>.
45607         (zero): Remove variable.
45608         (minus_zero): New variable.
45609         (main): Use minus_zero instead of -zero.
45610         * modules/floorl-tests (Depends-on): Add float.
45611
45612         * tests/test-roundl.c: Include <float.h>.
45613         (zero): Remove variable.
45614         (minus_zero): New variable.
45615         (main): Use minus_zero instead of -zero.
45616         * modules/roundl-tests (Depends-on): Add float.
45617
45618         * tests/test-truncl.c: Include <float.h>.
45619         (zero): Remove variable.
45620         (minus_zero): New variable.
45621         (main): Use minus_zero instead of -zero.
45622         * modules/truncl-tests (Depends-on): Add float.
45623
45624         * tests/test-frexpl.c (zero): Remove variable.
45625         (minus_zero): New variable.
45626         (main): Use minus_zero instead of -zero.
45627         * modules/frexpl-tests (Depends-on): Add float.
45628
45629         * tests/test-isnan.c (zerol): Remove variable.
45630         (minus_zerol): New variable.
45631         (test_long_double): Use minus_zerol instead of -zerol.
45632         * modules/isnan-tests (Depends-on): Add float.
45633
45634         * tests/test-isnanl.h (zero): Remove variable.
45635         (minus_zero): New variable.
45636         (main): Use minus_zero instead of -zero.
45637         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45638         * modules/isnanl-tests (Depends-on): Add float.
45639
45640         * tests/test-ldexpl.c (zero): Remove variable.
45641         (minus_zero): New variable.
45642         (main): Use minus_zero instead of -zero.
45643         * modules/ldexpl-tests (Depends-on): Add float.
45644
45645         * tests/test-snprintf-posix.h (zerol): Remove variable.
45646         (minus_zerol): New variable.
45647         (test_function): Use minus_zerol instead of -zerol.
45648         * modules/snprintf-posix-tests (Depends-on): Add float.
45649         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45650
45651         * tests/test-sprintf-posix.h (zerol): Remove variable.
45652         (minus_zerol): New variable.
45653         (test_function): Use minus_zerol instead of -zerol.
45654         * modules/sprintf-posix-tests (Depends-on): Add float.
45655         * modules/vsprintf-posix-tests (Depends-on): Add float.
45656
45657         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45658         (minus_zerol): New variable.
45659         (test_function): Use minus_zerol instead of -zerol.
45660         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45661
45662         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45663         (minus_zerol): New variable.
45664         (test_function): Use minus_zerol instead of -zerol.
45665         * modules/vasprintf-posix-tests (Depends-on): Add float.
45666
45667 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45668
45669         * MODULES.html.sh (Support for building documentation): Mention
45670         pmccabe2html.  Sort entries.
45671
45672         Add pmccabe2html module, from gnupdf.
45673         * build-aux/pmccabe.css: New file.
45674         * build-aux/pmccabe2html: New file.
45675         * m4/pmccabe2html.m4: New file.
45676         * modules/pmccabe2html: New file.
45677
45678 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45679
45680         flock: new module
45681         * MODULES.html.sh: Add to list of modules.
45682         * lib/flock.c: flock implementation for Windows and Unix systems
45683         which have fcntl.
45684         * doc/glibc-functions/flock.texi: Update documentation.
45685         * lib/sys_file.in.h: <sys/file.h> header file.
45686         * m4/flock.m4: M4 macros.
45687         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45688         * modules/flock: flock module.
45689         * modules/flock-tests: flock tests module.
45690         * modules/sys_file: sys/file.h module.
45691         * tests/test-flock.c: test suite for flock.
45692
45693 2008-10-06  Jim Meyering  <meyering@redhat.com>
45694
45695         bootstrap: check for LT_INIT more portably still ;-)
45696         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45697         Spotted by Bruno Haible.
45698
45699 2008-10-06  Eric Blake  <ebb9@byu.net>
45700
45701         test-signbit: avoid tripping Irix cc bug on -0.0L
45702         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45703         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45704         entire testsuite consistent and avoids an Irix 6.2 bug.
45705
45706 2008-10-05  Bruno Haible  <bruno@clisp.org>
45707             Jim Meyering  <jim@meyering.net>
45708
45709         Add an option for ignoring EPIPE during close_stdout.
45710         * lib/closeout.h: Include <stdbool.h>.
45711         (close_stdout_set_ignore_EPIPE): New declaration.
45712         * lib/closeout.c: Include <stdbool.h>.
45713         (ignore_EPIPE): New variable.
45714         (close_stdout_set_ignore_EPIPE): New function.
45715         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45716         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45717         failure.
45718         * modules/closeout (Depends-on): Add stdbool.
45719
45720 2008-10-05  Bruno Haible  <bruno@clisp.org>
45721
45722         * modules/accept: New file.
45723         * modules/bind: New file.
45724         * modules/connect: New file.
45725         * modules/getpeername: New file.
45726         * modules/getsockname: New file.
45727         * modules/getsockopt: New file.
45728         * modules/listen: New file.
45729         * modules/recv: New file.
45730         * modules/recvfrom: New file.
45731         * modules/send: New file.
45732         * modules/sendto: New file.
45733         * modules/setsockopt: New file.
45734         * modules/socket: New file.
45735         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45736         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45737         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45738         the particular module is requested. Add a link warning when the
45739         particular module is not requested.
45740         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45741         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45742         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45743         the particular module is requested.
45744         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45745         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45746         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45747         * modules/sys_socket (Depends-on): Add link-warning.
45748         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45749         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45750         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45751         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45752         GL_LINK_WARNING.
45753         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45754         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45755         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45756         * doc/posix-functions/getpeername.texi: Mention the new module
45757         'getpeername'.
45758         * doc/posix-functions/getsockname.texi: Mention the new module
45759         'getsockname'.
45760         * doc/posix-functions/getsockopt.texi: Mention the new module
45761         'getsockopt'.
45762         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45763         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45764         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45765         * doc/posix-functions/send.texi: Mention the new module 'send'.
45766         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45767         * doc/posix-functions/setsockopt.texi: Mention the new module
45768         'setsockopt'.
45769         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45770         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45771         listen, connect, accept.
45772         * modules/select-tests (Depends-on): Likewise.
45773
45774 2008-10-05  Bruno Haible  <bruno@clisp.org>
45775
45776         * lib/winsock.c (strerror): Remove unused #undef.
45777         (rpl_close): Remove unused local variable.
45778
45779         * modules/sys_socket (Depends-on); Add errno.
45780
45781 2008-10-05  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45784         (select): Add a link warning when the 'select' module is not used.
45785         * modules/sys_select (Depends-on): Add link-warning.
45786         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45787         Suggested by Paolo Bonzini.
45788
45789 2008-10-05  Jim Meyering  <meyering@redhat.com>
45790
45791         bootstrap: check for LT_INIT more portably
45792         * build-aux/bootstrap: Avoid using grep -E, since it's not
45793         portable enough.  Suggestion from Bruno Haible.
45794
45795 2008-10-05  Bruno Haible  <bruno@clisp.org>
45796
45797         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45798         as being fixed by gnulib.
45799
45800 2008-10-05  Bruno Haible  <bruno@clisp.org>
45801
45802         * modules/select-tests: New file, mostly copied from
45803         modules/sys_select-tests.
45804         * tests/test-select.c: New file, mostly copied from
45805         tests/test-sys_select.c.
45806         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45807         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45808         (Makefile.am): Remove test_sys_select_LDADD.
45809
45810         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45811         to an undefined symbol, for an error message.
45812         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45813         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45814         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45815         winsock-select.c here.
45816         * modules/sys_select (Files): Remove lib/winsock-select.c.
45817         (Depends-on): Remove alloca.
45818         (Makefile.am): Substitute GNULIB_SELECT.
45819         * modules/select: New file.
45820         * doc/posix-functions/select.texi: Update.
45821
45822 2008-10-05  Bruno Haible  <bruno@clisp.org>
45823
45824         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45825         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45826         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45827         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45828         getdtablesize.
45829         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45830         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45831
45832 2008-10-05  Bruno Haible  <bruno@clisp.org>
45833
45834         * modules/getdtablesize-tests: New file.
45835         * tests/test-getdtablesize.c: New file.
45836
45837         New module 'getdtablesize'.
45838         * lib/unistd.in.h (getdtablesize): New declaration.
45839         * lib/getdtablesize.c: New file.
45840         * m4/getdtablesize.m4: New file.
45841         * modules/getdtablesize: New file.
45842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45843         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45844         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45845         HAVE_GETDTABLESIZE.
45846         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45847
45848 2008-10-05  Bruno Haible  <bruno@clisp.org>
45849
45850         * modules/sched (Makefile.am): Fix typo.
45851         Reported by Simon Josefsson.
45852
45853 2008-10-05  Jim Meyering  <meyering@redhat.com>
45854
45855         bootstrap: check for LT_INIT, too
45856         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45857         are deprecated.  Suggestion from Ralf Wildenhues.
45858
45859 2008-10-05  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45862         overriding them by ours.
45863         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45864
45865 2008-10-05  Jim Meyering  <meyering@redhat.com>
45866
45867         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45868         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45869         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45870
45871 2008-10-04  Bruno Haible  <bruno@clisp.org>
45872
45873         * modules/dup2 (License): Change to LGPLv2+.
45874         * modules/sleep (License): Likewise.
45875         * modules/perror (License): Likewise.
45876         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45877         Blake.
45878         * modules/signal (License): Likewise.
45879         * modules/sigprocmask (License): Likewise.
45880         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45881         Meyering.
45882
45883 2008-10-04  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45886         Reported by Rainer Tammer <tammer@tammer.net>.
45887
45888 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45889             Bruno Haible  <bruno@clisp.org>
45890
45891         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45892         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45893         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45894
45895 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45896
45897         filevercmp: new module
45898         * lib/filevercmp.h: New function filevercmp comparing version strings.
45899         * lib/filevercmp.c: Implementation of filevercmp function.
45900         * modules/filevercmp: Module metadata.
45901         * tests/test-filevercmp.c: Unit test for new module.
45902         * modules/filevercmp-tests: Unit test metadata.
45903         * MODULES.html.sh: Add filevercmp module.
45904
45905 2008-10-03  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/c-ctype.h: Add comment.
45908         Reported by Jim Meyering.
45909
45910 2008-10-02  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45913
45914 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45915
45916         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45917         name of bootstrap.conf accordingly.
45918
45919 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45920
45921         * build-aux/bootstrap: Install git-merge-changelog configuration
45922         items into .gitconfig if needed.
45923
45924 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45925
45926         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45927         git repository, and initialize/update it accordingly.
45928
45929 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45930
45931         * modules/fsync-tests: New file.
45932         * tests/test-fsync.c: New file.
45933
45934         New module 'fsync'.
45935         * lib/fsync.c: New file.
45936         * m4/fsync.m4: New file.
45937         * modules/fsync: New file.
45938         * lib/unistd.in.h (fsync): New declaration.
45939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45940         GNULIB_FSYNC and HAVE_FSYNC.
45941         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45942         * MODULES.html.sh (posix_functions): Add fsync.
45943         * doc/posix-functions/fsync.texi: Mention the new module.
45944
45945 2008-10-02  Jim Meyering  <meyering@redhat.com>
45946
45947         fts.c: sync with similar code from coreutils' remove.c
45948         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45949         Guard also with "#if defined __linux__", since for now at least,
45950         this code is Linux-kernel-specific.
45951
45952 2008-10-02  Jim Meyering  <meyering@redhat.com>
45953
45954         fts: bug fixes
45955         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45956         Include <sys/vfs.h>, not <sys/statfs.h>.
45957
45958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45959         Include <sys/vfs.h>, not <sys/statfs.h>.
45960
45961 2008-10-01  Bruno Haible  <bruno@clisp.org>
45962
45963         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45964         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45965         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45966         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45967         * doc/posix-functions/posix_spawnp.texi: Likewise.
45968         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45969         whether posix_spawn actually works.
45970         * m4/pipe.m4 (gl_PIPE): Likewise.
45971         * modules/execute (Files): Add m4/posix_spawn.m4.
45972         * modules/pipe (Files): Add m4/posix_spawn.m4.
45973         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45974
45975 2008-10-01  Jim Meyering  <meyering@redhat.com>
45976
45977         remove trailing spaces
45978         * NEWS: Likewise.
45979         * lib/poll.c (poll): Likewise.
45980         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45981         * lib/winsock.c (rpl_close): Likewise.
45982         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45983         * modules/yield: Likewise.
45984         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45985         * tests/test-sys_select.c (connect_to_socket): Likewise.
45986
45987         fts.c: adjust a new interface to be more generally useful
45988         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45989         (fts_build): Adjust caller.
45990
45991 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45992
45993         * modules/cond-tests: New file.
45994         * tests/test-cond.c: New file.
45995
45996 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45997             Bruno Haible  <bruno@clisp.org>
45998
45999         * modules/cond (Dependencies): Add errno, time.
46000         * lib/glthread/cond.h: Include <time.h>.
46001         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46002         across platforms.
46003
46004 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46005             Bruno Haible  <bruno@clisp.org>
46006
46007         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46008
46009 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46010             Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/tls-tests (Depends-on): Add thread, yield.
46013         (configure.ac): Remove all checks.
46014         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46015         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46016         gl_thread_self): Remove definitions. Include glthread/thread.h and
46017         glthread/yield.h instead.
46018         (test_tls): Pass an additional NULL argument to gl_thread_join.
46019
46020 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46021             Bruno Haible  <bruno@clisp.org>
46022
46023         * modules/lock-tests (Depends-on): Add thread, yield.
46024         (configure.ac): Remove all checks.
46025         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46026         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46027         gl_thread_self): Remove definitions. Include glthread/thread.h and
46028         glthread/yield.h instead.
46029         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46030         additional NULL argument to gl_thread_join.
46031
46032 2008-09-30  Bruno Haible  <bruno@clisp.org>
46033
46034         Fix the Win32 implementation of the 'thread' module.
46035         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46036         pointer type.
46037         (gl_thread_self): Invoke gl_thread_self_func.
46038         (gl_thread_self_func): New declaration.
46039         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46040         (do_init_self_key, init_self_key): New functions.
46041         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46042         Remove some fields.
46043         (running_threads, running_lock): Remove variables.
46044         (get_current_thread_handle): New function.
46045         (gl_thread_self_func, wrapper_func, glthread_create_func,
46046         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46047         simplified.
46048
46049 2008-09-30  Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46052         files.
46053
46054 2008-09-30  Jim Meyering  <meyering@redhat.com>
46055
46056         fts.m4: correct the test for statfs.f_type
46057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46058         when checking for statfs.f_type.
46059
46060 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46061
46062         tests: avoid some compiler warnings
46063         * tests/test-memchr.c (main): Pass NULL indirectly.
46064         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46065
46066 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46067
46068         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46069         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46070         exactly specified dayshifts.
46071         (dayshift): New rule.
46072         (rel): Add dayshift.
46073         (relative_time_table) [tomorrow, yesterday, today, now]:
46074         Use tDAY_SHIFT in place of tDAY_UNIT.
46075         * tests/test-getdate.c: Add tests for now-disallowed countable
46076         dayshifts, e.g., "4 yesterday ago".
46077
46078 2008-09-29  Bruno Haible  <bruno@clisp.org>
46079
46080         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46081         * tests/test-posix_spawn1.in.sh: Renamed from
46082         tests/test-posix_spawn.in.sh.
46083         * tests/test-posix_spawn2.c: New file.
46084         * tests/test-posix_spawn2.in.sh: New file.
46085         * modules/posix_spawnp-tests (Files): Update.
46086         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46087
46088 2008-09-29  Bruno Haible  <bruno@clisp.org>
46089
46090         Propagate effects of putenv/setenv/unsetenv to child processes.
46091         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46092         * lib/pipe.c (create_pipe): Likewise.
46093
46094 2008-09-29  Bruno Haible  <bruno@clisp.org>
46095
46096         Enable use of shell scripts as executables in mingw.
46097         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46098         run the program as a shell script.
46099         * lib/pipe.c (create_pipe): Likewise.
46100         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46101         resulting array.
46102
46103 2008-09-29  Eric Blake  <ebb9@byu.net>
46104
46105         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46106
46107 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46108
46109         * doc/posix-functions/accept.texi: Update mingw problems.
46110         * doc/posix-functions/bind.texi: Update mingw problems.
46111         * doc/posix-functions/close.texi: Update mingw problems.
46112         * doc/posix-functions/connect.texi: Update mingw problems.
46113         * doc/posix-functions/getpeername.texi: Update mingw problems.
46114         * doc/posix-functions/getsockname.texi: Update mingw problems.
46115         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46116         * doc/posix-functions/ioctl.texi: Update mingw problems.
46117         * doc/posix-functions/listen.texi: Update mingw problems.
46118         * doc/posix-functions/recv.texi: Update mingw problems.
46119         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46120         * doc/posix-functions/select.texi: Update mingw problems.
46121         * doc/posix-functions/send.texi: Update mingw problems.
46122         * doc/posix-functions/sendto.texi: Update mingw problems.
46123         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46124         * doc/posix-functions/socket.texi: Update mingw problems.
46125
46126 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46127             Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/sys_select.in.h: Include sys/time.h.
46130         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46131         * modules/sys_select: Depend on sys_time.
46132         * tests/test-sys_select.c: Test that sys/select.h defines struct
46133         timeval fully.
46134
46135 2008-09-29  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46138         * lib/sys_select.in.h: Likewise.
46139
46140 2008-09-29  Bruno Haible  <bruno@clisp.org>
46141
46142         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46143
46144 2008-09-29  Bruno Haible  <bruno@clisp.org>
46145
46146         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46147         Set LIBSOCKET instead of augmenting LIBS.
46148         * modules/sockets (Link): New section.
46149         * modules/sockets-tests (test_sockets_LDADD): New variable.
46150         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46151         * modules/poll-tests (test_poll_LDADD): New variable.
46152         * NEWS: Document the change.
46153
46154 2008-09-29  Bruno Haible  <bruno@clisp.org>
46155
46156         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46157         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46158         ARPA_INET_H directly.
46159         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46160
46161 2008-09-28  Bruno Haible  <bruno@clisp.org>
46162
46163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46164         from gl_HEADER_SYS_SOCKET.
46165         (gl_HEADER_SYS_SOCKET): Invoke it.
46166         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46167
46168 2008-09-28  Bruno Haible  <bruno@clisp.org>
46169
46170         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46171         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46172         Needed on OSF/1 4.0.
46173
46174 2008-09-28  Bruno Haible  <bruno@clisp.org>
46175
46176         Override open more carefully.
46177         * lib/open.c (orig_open): New function.
46178         (rpl_open): Use orig_open instead of open.
46179         * lib/fcntl.in.h: Add special invocation convention.
46180         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46181         (gl_FUNC_OPEN): Invoke it.
46182
46183         Override freopen more carefully.
46184         * lib/freopen.c (orig_freopen): New function.
46185         (rpl_freopen): Use orig_freopen instead of freopen.
46186         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46187         (gl_FUNC_FREOPEN): Invoke it.
46188
46189         Override fopen more carefully.
46190         * lib/fopen.c (orig_fopen): New function.
46191         (rpl_fopen): Use orig_fopen instead of fopen.
46192         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46193         (gl_FUNC_FOPEN): Invoke it.
46194         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46195
46196 2008-09-28  Bruno Haible  <bruno@clisp.org>
46197
46198         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46199         SIGPIPE.
46200
46201 2008-09-28  Bruno Haible  <bruno@clisp.org>
46202
46203         * tests/test-sigaction.c (handler, main): Disable the check whether
46204         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46205         glibc systems with LinuxThreads.
46206
46207 2008-09-28  Bruno Haible  <bruno@clisp.org>
46208
46209         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46210
46211         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46212         with AIX xlc.
46213         * lib/fcntl.in.h (open): Likewise.
46214         Reported by Rainer Tammer <tammer@tammer.net>.
46215
46216 2008-09-28  Bruno Haible  <bruno@clisp.org>
46217
46218         * modules/posix_spawnp-tests: New file.
46219         * tests/test-posix_spawn.c: New file.
46220         * tests/test-posix_spawn.in.sh: New file.
46221
46222         New module 'posix_spawnp'.
46223         * modules/posix_spawnp: New file.
46224         * lib/spawnp.c: New file, from GNU libc with modifications.
46225         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46226
46227         New module 'posix_spawn'.
46228         * modules/posix_spawn: New file.
46229         * lib/spawn.c: New file, from GNU libc with modifications.
46230         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46231
46232         New module 'posix_spawnattr_destroy'.
46233         * modules/posix_spawnattr_destroy: New file.
46234         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46235         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46236         module.
46237
46238         New module 'posix_spawnattr_setsigmask'.
46239         * modules/posix_spawnattr_setsigmask: New file.
46240         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46241         modifications.
46242         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46243         new module.
46244
46245         New module 'posix_spawnattr_getsigmask'.
46246         * modules/posix_spawnattr_getsigmask: New file.
46247         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46248         modifications.
46249         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46250         new module.
46251
46252         New module 'posix_spawnattr_setsigdefault'.
46253         * modules/posix_spawnattr_setsigdefault: New file.
46254         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46255         modifications.
46256         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46257         new module.
46258
46259         New module 'posix_spawnattr_getsigdefault'.
46260         * modules/posix_spawnattr_getsigdefault: New file.
46261         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46262         modifications.
46263         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46264         new module.
46265
46266         New module 'posix_spawnattr_setschedpolicy'.
46267         * modules/posix_spawnattr_setschedpolicy: New file.
46268         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46269         modifications.
46270         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46271         new module.
46272
46273         New module 'posix_spawnattr_getschedpolicy'.
46274         * modules/posix_spawnattr_getschedpolicy: New file.
46275         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46276         modifications.
46277         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46278         new module.
46279
46280         New module 'posix_spawnattr_setschedparam'.
46281         * modules/posix_spawnattr_setschedparam: New file.
46282         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46283         modifications.
46284         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46285         new module.
46286
46287         New module 'posix_spawnattr_getschedparam'.
46288         * modules/posix_spawnattr_getschedparam: New file.
46289         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46290         modifications.
46291         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46292         new module.
46293
46294         New module 'posix_spawnattr_setpgroup'.
46295         * modules/posix_spawnattr_setpgroup: New file.
46296         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46297         modifications.
46298         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46299         module.
46300
46301         New module 'posix_spawnattr_getpgroup'.
46302         * modules/posix_spawnattr_getpgroup: New file.
46303         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46304         modifications.
46305         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46306         module.
46307
46308         New module 'posix_spawnattr_setflags'.
46309         * modules/posix_spawnattr_setflags: New file.
46310         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46311         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46312         module.
46313
46314         New module 'posix_spawnattr_getflags'.
46315         * modules/posix_spawnattr_getflags: New file.
46316         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46317         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46318         module.
46319
46320         New module 'posix_spawnattr_init'.
46321         * modules/posix_spawnattr_init: New file.
46322         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46323         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46324         module.
46325
46326         New module 'posix_spawn_file_actions_destroy'.
46327         * modules/posix_spawn_file_actions_destroy: New file.
46328         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46329         modifications.
46330         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46331         the new module.
46332
46333         New module 'posix_spawn_file_actions_addopen'.
46334         * modules/posix_spawn_file_actions_addopen: New file.
46335         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46336         modifications.
46337         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46338         the new module.
46339
46340         New module 'posix_spawn_file_actions_adddup2'.
46341         * modules/posix_spawn_file_actions_adddup2: New file.
46342         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46343         modifications.
46344         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46345         the new module.
46346
46347         New module 'posix_spawn_file_actions_addclose'.
46348         * modules/posix_spawn_file_actions_addclose: New file.
46349         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46350         modifications.
46351         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46352         the new module.
46353
46354         New module 'posix_spawn_file_actions_init'.
46355         * modules/posix_spawn_file_actions_init: New file.
46356         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46357         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46358         new module.
46359
46360         New module 'posix_spawn-internal'.
46361         * modules/posix_spawn-internal: New file.
46362         * lib/spawn_int.h: New file, from GNU libc with modifications.
46363         * lib/spawni.c: New file, from GNU libc with modifications.
46364         * m4/posix_spawn.m4: New file.
46365
46366         New module 'spawn'.
46367         * modules/spawn: New file.
46368         * lib/spawn.in.h: New file, from GNU libc with modifications.
46369         * m4/spawn_h.m4: New file.
46370         * doc/posix-headers/spawn.texi: Mention the new module.
46371
46372 2008-09-28  Bruno Haible  <bruno@clisp.org>
46373
46374         * modules/sched-tests: New file.
46375         * tests/test-sched.c: New file.
46376
46377         New module 'sched'.
46378         * modules/sched: New file.
46379         * lib/sched.in.h: New file.
46380         * m4/sched_h.m4: New file.
46381         * doc/posix-headers/sched.texi: Mention the new module.
46382
46383 2008-09-27  Eric Blake  <ebb9@byu.net>
46384
46385         Fix previous patch, and tweak references to $0.
46386         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46387         (func_version, func_gnulib_dir): Don't call this program
46388         gnulib-tool.
46389         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46390         with using $0 in function.
46391         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46392         (func_fatal_error): Reuse the name the user invoked us with.
46393
46394 2008-09-27  Bruno Haible  <bruno@clisp.org>
46395
46396         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46397         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46398         (gl_ICONV_H): Not here.
46399         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46400         instead of assigning ICONV_H directly.
46401
46402         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46404         WCHAR_H directly.
46405
46406 2008-09-27  Bruno Haible  <bruno@clisp.org>
46407
46408         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46409         * modules/arpa_inet (Depends-on): Add link-warning.
46410         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46411         * modules/unistd (Makefile.am): Likewise.
46412
46413 2008-09-26  Bruno Haible  <bruno@clisp.org>
46414
46415         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46416         variables.
46417         (func_version): Essentially copied from gnulib-tool.
46418         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46419         func_readlink): Copied from gnulib-tool.
46420
46421 2008-09-26  Bruno Haible  <bruno@clisp.org>
46422
46423         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46424         invoking git-version-gen.
46425
46426 2008-09-26  Bruno Haible  <bruno@clisp.org>
46427
46428         * posix-modules: Update to directory names changed on 2008-01-19.
46429         Remove commas in output before splitting into words. No more need to
46430         avoid 'ftruncate' since 2007-02-19.
46431
46432 2008-09-26  Bruno Haible  <bruno@clisp.org>
46433
46434         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46435
46436 2008-09-26  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46439         * modules/fwriteerror (Depends-on): Add errno.
46440
46441 2008-09-26  Bruno Haible  <bruno@clisp.org>
46442
46443         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46444         * tests/test-vc-list-files-cvs.sh: Likewise.
46445
46446 2008-09-26  Bruno Haible  <bruno@clisp.org>
46447
46448         * doc/posix-headers/sys_resource.texi: Reorder items.
46449
46450 2008-09-26  Jim Meyering  <meyering@redhat.com>
46451
46452         fts: tweak inode comparison function
46453         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46454         inode numbers, as documented.
46455
46456         fts: sort dirent entries on inode number before traversing
46457         This avoids a quadratic, seek-related performance penalty when
46458         operating on a directory containing many entries (measurable at 10k;
46459         3.5 hours at 2 million entries with a cold cache) on certain types
46460         of file systems, including ext3 and ext4, but not tmpfs.
46461         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46462         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46463         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46464         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46465         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46466         (fts_build): Set the stat.st_ino member from D_INO.
46467         If it is likely to be useful, sort dirent entries on inode number.
46468
46469         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46470         and the struct statfs.f_type member.
46471         * modules/fts (Depends-on): Add d-ino.
46472
46473 2008-09-26  Bruno Haible  <bruno@clisp.org>
46474
46475         * modules/sigpipe-die (Depends-on): Add sigpipe.
46476
46477         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46478         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46479         and GNULIB_STDIO_H_SIGPIPE are set.
46480         * lib/stdio-write.c: New file.
46481         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46482         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46483         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46484         REPLACE_STDIO_WRITE_FUNCS.
46485         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46486         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46487         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46488         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46489         * modules/stdio (Files): Add lib/stdio-write.c.
46490         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46491         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46492         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46493         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46494         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46495         REPLACE_FPRINTF_POSIX.
46496         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46497         REPLACE_PRINTF_POSIX.
46498         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46499         REPLACE_VFPRINTF_POSIX.
46500         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46501         REPLACE_VPRINTF_POSIX.
46502         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46503         SIGPIPE issue.
46504         * doc/posix-functions/fputc.texi: Likewise.
46505         * doc/posix-functions/fputs.texi: Likewise.
46506         * doc/posix-functions/fwrite.texi: Likewise.
46507         * doc/posix-functions/printf.texi: Likewise.
46508         * doc/posix-functions/putc.texi: Likewise.
46509         * doc/posix-functions/putchar.texi: Likewise.
46510         * doc/posix-functions/puts.texi: Likewise.
46511         * doc/posix-functions/vfprintf.texi: Likewise.
46512         * doc/posix-functions/vprintf.texi: Likewise.
46513
46514         * modules/safe-write (Depends-on): Add write.
46515
46516         * modules/sigpipe-tests: New file.
46517         * tests/test-sigpipe.c: New file.
46518         * tests/test-sigpipe.sh: New file.
46519
46520         * modules/write: New file.
46521         * lib/unistd.in.h: Include <sys/types.h>.
46522         (write): New declaration.
46523         * lib/write.c: New file.
46524         * m4/write.m4: New file.
46525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46526         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46527         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46528         GNULIB_WRITE, REPLACE_WRITE.
46529         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46530         and the SIGPIPE issue.
46531
46532         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46533         (raise): New declaration.
46534         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46535         (ext_signal): New function.
46536         (rpl_raise): New function.
46537         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46538         GNULIB_SIGNAL_H_SIGPIPE.
46539         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46540         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46541
46542         * modules/sigpipe: New file.
46543         * m4/sigpipe.m4: New file.
46544
46545 2008-09-25  Derek Price  <derek@ximbiot.com>
46546             Bruno Haible  <bruno@clisp.org>
46547
46548         * gnulib-tool (func_import): Report all license incompatibilities, not
46549         just the first one.
46550
46551 2008-09-25  Bruno Haible  <bruno@clisp.org>
46552
46553         * gnulib-tool (func_import): When computing the edits, consider not
46554         only the Makefile.ams that exist but also those that will be generated.
46555
46556 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46557
46558         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46559         fixes gnulib-tool --test warning about duplicate dependency.
46560
46561 2008-09-25  Bruno Haible  <bruno@clisp.org>
46562
46563         * gnulib-tool: Don't ask the user to perform edits in the generated
46564         Makefile.ams.
46565         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46566         apply to the Makefile.am being generated.
46567         (func_emit_tests_Makefile_am): Execute edits that apply to the
46568         Makefile.am being generated.
46569         (func_import): Setup list of Makefile.am edits before emitting the
46570         Makefile.ams, not at the end.
46571         (func_create_testdir): Update.
46572         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46573
46574 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46575
46576         * gnulib-tool (func_import): Store the --tests-base option in the
46577         comment in gnulib-cache.m4.
46578
46579 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46580
46581         * NEWS: Document increased portability that sys_select now provides.
46582
46583         * lib/sys_select.in.h: Install select wrapper.
46584         * lib/sys_socket.in.h: Use more descriptive name when there is no
46585         select wrapper.
46586         * lib/winsock-select.c: New.
46587         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46588         Require gl_HEADER_SYS_SOCKET.
46589         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46590         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46591         * tests/test-sys_select.c: Add functional tests.
46592
46593 2008-09-24  Eric Blake  <ebb9@byu.net>
46594
46595         open, fopen: close fd leak in last patch
46596         * lib/open.c (rpl_open): Close fd before returning error.
46597         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46598         * doc/posix-functions/open.texi (open): Document that Irix also
46599         has the bug.
46600         * doc/posix-functions/fopen.texi (fopen): Likewise.
46601         Reported by Paolo Bonzini.
46602
46603 2008-09-24  Bruno Haible  <bruno@clisp.org>
46604
46605         Ensure that a filename ending in a slash cannot be used to access a
46606         non-directory.
46607         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46608         to check whether it's really a directory.
46609         * lib/fopen.c: Include fcntl.h, unistd.h.
46610         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46611         and fdopen().
46612         * modules/fopen (Depends-on): Add unistd.
46613         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46614         * tests/test-fopen.c (main): Likewise.
46615         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46616         * doc/posix-functions/fopen.texi: Likewise.
46617         Reported by Eric Blake.
46618
46619 2008-09-23  Eric Blake  <ebb9@byu.net>
46620
46621         c-stack: avoid compiler optimizations when provoking overflow
46622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46623         recursion harder to optimize, to ensure a stack overflow occurs.
46624         * tests/test-c-stack.c (recurse): Likewise.
46625         Borrowed from libsigsegv.
46626
46627         c-stack: work around Irix sigaltstack bug
46628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46629         whether sigaltstack uses wrong end of stack_t (copied in part from
46630         libsigsegv).
46631         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46632         Irix bug, without requiring an over-allocation.
46633         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46634         bug.
46635
46636         fopen: document mingw bug on directories
46637         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46638         not allowing a stream visiting a directory, even though reading
46639         from such a stream is not portable.
46640
46641 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46642
46643         * lib/poll.c: Rewrite.
46644         * modules/poll: Depend on alloca.
46645
46646 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46647
46648         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46649         instead define prototypes for a full set of wrappers.  Ensure
46650         that Cygwin does not use the compatibility code, which is only
46651         for MinGW.
46652         * lib/winsock.c: New.
46653         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46654         * modules/sys_socket: Add lib/winsock.c.
46655
46656         * modules/poll-tests: Add errno and perror.
46657         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46658
46659 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46660
46661         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46662
46663 2008-09-23  Bruno Haible  <bruno@clisp.org>
46664
46665         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46666         * doc/glibc-functions/*: Likewise.
46667
46668 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46669
46670         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46671         success.
46672
46673 2008-09-22  Eric Blake  <ebb9@byu.net>
46674             Bruno Haible  <bruno@clisp.org>
46675
46676         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46677         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46678         supply %A but mishandle pseudo-NaN.
46679         Reported by Simon Josefsson.
46680
46681 2008-09-21  Bruno Haible  <bruno@clisp.org>
46682
46683         * tests/test-lock.c (main): Tweak skip message.
46684         * tests/test-tls.c (main): Likewise.
46685
46686 2008-09-21  Bruno Haible  <bruno@clisp.org>
46687
46688         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46689         whether 'struct sigaction' has sa_sigaction here...
46690         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46691         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46692
46693 2008-09-21  Bruno Haible  <bruno@clisp.org>
46694
46695         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46696         section.
46697         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46698         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46699         the new section.
46700         (Support for obsolete systems lacking POSIX:2001): New section.
46701         (String handling <string.h>): Move strdup to the new section.
46702         Suggested by Simon Josefsson and Paolo Bonzini.
46703
46704 2008-09-21  Bruno Haible  <bruno@clisp.org>
46705
46706         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46707         exponents in %e and %g results on 'long double'. Needed for mingw's
46708         improved *printf functions.
46709         * tests/test-vasprintf-posix.c (test_function): Likewise.
46710         * tests/test-snprintf-posix.h (test_function): Likewise.
46711         * tests/test-sprintf-posix.h (test_function): Likewise.
46712         Reported by Eric Blake.
46713
46714 2008-09-21  Bruno Haible  <bruno@clisp.org>
46715
46716         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46717         * tests/test-sprintf-posix.h (test_function): Likewise.
46718
46719 2008-09-21  Bruno Haible  <bruno@clisp.org>
46720
46721         * modules/getpass (Depends-on): Add strdup-posix.
46722
46723         New module 'strdup-posix'.
46724         * modules/strdup-posix: New file.
46725         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46726         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46728         REPLACE_STRDUP.
46729         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46730         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46732         strdup-posix.
46733
46734         * modules/strdup (Depends-on): Remove malloc-posix.
46735
46736 2008-09-20  Bruno Haible  <bruno@clisp.org>
46737
46738         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46739         Wildenhues.
46740
46741 2008-09-20  Bruno Haible  <bruno@clisp.org>
46742
46743         Ensure that wint_t gets defined on IRIX 5.3.
46744         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46745         * lib/wctype.in.h (wint_t): Likewise.
46746         (__wctype_wint_t): Remove type.
46747         (isw*): Use wint_t instead of __wctype_wint_t.
46748         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46749         * modules/wchar (Files): Add m4/wint_t.m4.
46750         (Makefile.am): Substitute HAVE_WINT_T.
46751         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46752         * tests/test-wctype.c: Check that wint_t is defined.
46753         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46754         * doc/posix-headers/wctype.texi: Likewise.
46755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46756
46757 2008-09-18  Bruno Haible  <bruno@clisp.org>
46758
46759         * gnulib-tool (func_exit): Update comment.
46760
46761 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46762
46763         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46764         assumes strdup exists and does not depend on strdup to return
46765         ENOMEM on out of memory conditions.
46766
46767 2008-09-18  Bruno Haible  <bruno@clisp.org>
46768
46769         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46770         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46771         digits for the exponent.
46772
46773 2008-09-18  Jim Meyering  <meyering@redhat.com>
46774             Bruno Haible  <bruno@clisp.org>
46775
46776         * lib/vasnprintf.c (decimal_point_char): Define also if
46777         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46778
46779 2008-09-16  Bruno Haible  <bruno@clisp.org>
46780         and Eric Blake  <ebb9@byu.net>
46781
46782         vasnprintf: support Irix 5.3
46783         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46784         that mishandle long double infinity.
46785         Reported by Tom G. Christensen.
46786
46787 2008-09-16  Bruno Haible  <bruno@clisp.org>
46788
46789         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46790         Solaris 9.
46791         * doc/glibc-functions/alphasort.texi: Likewise.
46792         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46793
46794 2008-09-16  Jim Meyering  <meyering@redhat.com>
46795
46796         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46797         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46798         a umask modification leak out of a subshell.  Otherwise, the
46799         opensolaris /bin/sh would be accepted and thus cause unwarranted
46800         failures in the coreutils test suite.
46801
46802 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46803
46804         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46805         to succeed.
46806
46807 2008-09-16  Jim Meyering  <meyering@redhat.com>
46808
46809         avoid spurious test failure when library is built without ACL support
46810         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46811         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46812         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46813         * tests/test-copy-acl.sh: Likewise.
46814
46815 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46816
46817         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46818         based on character occurrence counts.
46819
46820 2008-09-15  Eric Blake  <ebb9@byu.net>
46821
46822         tests: avoid some compiler warnings
46823         * tests/test-memchr.c (main): Pass NULL indirectly.
46824         * tests/test-closein.c (main): Avoid unused variable.
46825
46826 2008-09-15  Bruno Haible  <bruno@clisp.org>
46827
46828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46829         are missing on OpenBSD 4.0 individually.
46830         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46831
46832 2008-09-15  Bruno Haible  <bruno@clisp.org>
46833
46834         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46835         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46836         * doc/posix-functions/perror.texi: Likewise.
46837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46838         is missing.
46839         Reported by Eric Blake.
46840
46841         * lib/errno.in.h: Use replacement values >= 2000.
46842         Reported by Eric Blake.
46843
46844 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46845
46846         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46847         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46848         limit.
46849         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46850         compareseq was aborted.
46851
46852 2008-09-14  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46855         yvec_edit_count.
46856         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46857         (fstrcmp_bounded): Simplify result computation accordingly.
46858
46859 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46860
46861         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46862         (fstrcmp): Define in terms of fstrcmp_bounded.
46863         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46864         lower_bound argument.
46865         Return quickly if the result is certainly < lower_bound.
46866         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46867
46868 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46869
46870         * lib/diffseq.h (EARLY_ABORT): New macro.
46871         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46872         evaluates to true.
46873
46874 2008-09-14  Bruno Haible  <bruno@clisp.org>
46875
46876         * modules/perror-tests: New file.
46877         * tests/test-perror.sh: New file.
46878         * tests/test-perror.c: New file.
46879
46880         New module 'perror'.
46881         * lib/stdio.in.h (perror): New declaration.
46882         * lib/perror.c: New file.
46883         * m4/perror.m4: New file.
46884         * modules/perror: New file.
46885         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46886         * doc/posix-functions/perror.texi: Mention the perror module.
46887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46888         REPLACE_PERROR.
46889         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46890         REPLACE_PERROR.
46891
46892 2008-09-14  Bruno Haible  <bruno@clisp.org>
46893
46894         * modules/stdio (Makefile.am): Reorder to match the order in
46895         lib/stdio.in.h.
46896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46897
46898 2008-09-13  Bruno Haible  <bruno@clisp.org>
46899
46900         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46901
46902 2008-09-13  Bruno Haible  <bruno@clisp.org>
46903
46904         Extend strerror to cover the added errno values.
46905         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46906         (rpl_strerror): Provide error messages for the added errno values and
46907         for the WSA* values.
46908         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46909         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46910         strerror.
46911         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46912         * modules/strerror (Depends-on): Add errno.
46913         * doc/posix-functions/strerror.texi: Document the change.
46914         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46915         and EOVERFLOW.
46916
46917 2008-09-13  Bruno Haible  <bruno@clisp.org>
46918
46919         * modules/EOVERFLOW: Remove file.
46920         * m4/eoverflow.m4: Remove file.
46921         * modules/EOVERFLOW-tests: Remove file.
46922         * tests/test-EOVERFLOW.c: Remove file.
46923         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46924         * modules/ftell (Depends-on): Likewise.
46925         * modules/getdelim (Depends-on): Likewise.
46926         * modules/getugroups (Depends-on): Likewise.
46927         * modules/poll (Depends-on): Likewise.
46928         * modules/snprintf (Depends-on): Likewise.
46929         * modules/sprintf-posix (Depends-on): Likewise.
46930         * modules/vasnprintf (Depends-on): Likewise.
46931         * modules/vasprintf (Depends-on): Likewise.
46932         * modules/vfprintf-posix (Depends-on): Likewise.
46933         * modules/vsnprintf (Depends-on): Likewise.
46934         * modules/vsprintf-posix (Depends-on): Likewise.
46935         * modules/xvasprintf (Depends-on): Likewise.
46936         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46937         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46938         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46939         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46941         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46942         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46943         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46944         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46945         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46946         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46947         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46948         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46949         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46950         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46951         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46953         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46954         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46955         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46956         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46957         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46958         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46959         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46960         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46961         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46962         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46963         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46964         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46965         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46966         * MODULES.html.sh: Remove EOVERFLOW.
46967         * NEWS: Mention the change.
46968
46969 2008-09-13  Bruno Haible  <bruno@clisp.org>
46970
46971         * modules/errno-tests: New file.
46972         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46973
46974         * lib/errno.in.h: New file.
46975         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46976         * modules/errno: New file.
46977         * doc/posix-headers/errno.texi: Update documentation.
46978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46979
46980 2008-09-13  Bruno Haible  <bruno@clisp.org>
46981
46982         * tests/test-poll.c: Use #if for native Windows, rather than testing
46983         __MSVCRT__.
46984
46985 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46986             Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/glob.c: Don't include <pwd.h> on native Windows.
46989         (WINDOWS32): New macro.
46990         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46991
46992 2008-09-13  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46995         (ETIMEDOUT): Remove macro.
46996         (glthread_cond_timedwait_multithreaded): New declaration.
46997         (glthread_cond_timedwait): Use it.
46998         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46999         (glthread_cond_timedwait_multithreaded): New function.
47000
47001 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47002
47003         * modules/poll-tests: Do not check for io.h.
47004         * tests/test-poll.c: Check for __MSVCRT__ instead.
47005
47006 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47007
47008         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47009         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47010         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47011
47012 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47013
47014         * modules/poll-tests: New.
47015         * tests/test-poll.c: New.
47016
47017 2008-09-12  Eric Blake  <ebb9@byu.net>
47018
47019         frexp: test for NetBSD failure on -0.0
47020         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47021         not all, bugs from NetBSD 3.0 have been fixed.
47022         * doc/posix-functions/frexp.texi (frexp): Document bug.
47023         Reported by Thomas Klausner.
47024
47025         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47026         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47027         literal -0.0.
47028         Reported by Jonathan C. Patschke <jp@centtech.com>.
47029
47030 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47031
47032         * lib/glthread/cond.h: Use dummy implementation also if
47033         USE_WIN32_THREADS.
47034
47035 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47036
47037         * modules/fnmatch-posix (License): Change to LGPLv2+.
47038         * modules/fnmatch-gnu (License): Likewise.
47039
47040 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47041
47042         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47043
47044 2008-09-11  Jim Meyering  <meyering@redhat.com>
47045
47046         * users.txt: Add gtk-vnc.
47047
47048 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47049
47050         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47051         rotate amounts.
47052
47053         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47054         required for 16-bit and 8-bit rotates.
47055         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47056         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47057         UINT8_MAX instead of hard-coded constants.
47058         Suggested by Paul Eggert.
47059
47060 2008-09-07  Bruno Haible  <bruno@clisp.org>
47061
47062         * tests/test-striconveh.c (main): Check behaviour when converting from
47063         UTF-7.
47064
47065         Make striconveh work better with stateful encodings.
47066         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47067         that iconv does not increment the inptr when returning -1/EINVAL.
47068
47069 2008-09-07  Bruno Haible  <bruno@clisp.org>
47070
47071         * build-aux/config.rpath: Update according to libtool-2.2.6.
47072         * build-aux/config.libpath: Likewise.
47073
47074 2008-09-06  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47077         * lib/freadptr.c (freadptr): Likewise.
47078         * lib/freadseek.c (freadptrinc): Likewise.
47079         Reported by Simon Josefsson.
47080
47081 2008-09-06  Bruno Haible  <bruno@clisp.org>
47082
47083         * modules/freadptr (License): Change to LGPLv2+.
47084         * modules/freadseek (License): Likewise.
47085         Suggested by Eric Blake.
47086
47087         * modules/memchr2 (License): Change to LGPLv2+.
47088         Approved by Eric Blake.
47089
47090 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47091             Bruno Haible  <bruno@clisp.org>
47092
47093         Make gnulib-tool work with native 'sed' on AIX.
47094         * gnulib-tool (sed_noop): New variable.
47095         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47096         func_add_or_update, func_create_testdir): Use it to initialize sed
47097         script variables.
47098         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47099
47100 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47101             Bruno Haible  <bruno@clisp.org>
47102
47103         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47104         also works after #include directives.
47105
47106 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47107
47108         getdate.y: reject an out-of-range timezone value
47109         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47110         the range [-24...+24].  When specified with only one or two digits,
47111         * tests/test-getdate.c: Tests for the fix.
47112         * doc/getdate.texi: Document this change.
47113
47114 2008-09-03  Bruno Haible  <bruno@clisp.org>
47115
47116         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47117
47118 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47119
47120         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47121         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47122         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47123         Blake <ebb9@byu.net>.
47124
47125         * tests/test-bitrotate.c: Add more test vectors.
47126
47127 2008-09-02  Eric Blake  <ebb9@byu.net>
47128
47129         vasnprintf-posix: handle large precision via %.*d
47130         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47131         when handling it ourselves.
47132         * tests/test-vasnprintf-posix.c (test_function): Add test.
47133         * tests/test-snprintf-posix.h (test_function): Likewise.
47134         * tests/test-sprintf-posix.h (test_function): Likewise.
47135         * tests/test-vasprintf-posix.c (test_function): Likewise.
47136         Reported by Alain Guibert.
47137
47138 2008-09-01  Eric Blake  <ebb9@byu.net>
47139
47140         c-stack: make configure-time check more robust
47141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47142         successful sigaction call.
47143         Reported by Tom G. Christensen.
47144
47145 2008-09-01  Bruno Haible  <bruno@clisp.org>
47146
47147         New module 'findprog-lgpl'.
47148         * modules/findprog-lgpl: New file.
47149         * lib/findprog-lgpl.c: New file.
47150         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47151         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47152         to decide whether to use strdup or xstrdup, concatenated_filename or
47153         xconcatenated_filename.
47154
47155 2008-09-01  Bruno Haible  <bruno@clisp.org>
47156
47157         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47158         'xconcat-filename' (GPL).
47159         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47160         (License): Change to LGPLv2+.
47161         * modules/xconcat-filename: New file.
47162         * lib/concat-filename.h (concatenated_filename): Change specification.
47163         (xconcatenated_filename): New declaration.
47164         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47165         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47166         memory situations.
47167         * lib/xconcat-filename.c: New file.
47168         * NEWS: Mention the change.
47169         * lib/findprog.c: Include concat-filename.h, not filename.h.
47170         (find_in_path): Use xconcatenated_filename instead of
47171         concatenated_filename.
47172         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47173         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47174         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47175         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47176         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47177         instead of concatenated_filename.
47178         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47179         (execute_java_class): Use xconcatenated_filename instead of
47180         concatenated_filename.
47181         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47182         * modules/javacomp (Depends-on): Likewise.
47183         * modules/javaexec (Depends-on): Likewise.
47184
47185 2008-09-01  Bruno Haible  <bruno@clisp.org>
47186
47187         Split module 'filename' into 'filename' and 'concat-filename'.
47188         * modules/filename: Keep only lib/filename.h.
47189         (License): Change to LGPLv2+.
47190         * modules/concat-filename: New file, extracted from modules/filename.
47191         * lib/filename.h (concatenated_filename): Remove declaration.
47192         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47193         * lib/concat-filename.c: Include concat-filename.h.
47194         * NEWS: Mention the change.
47195
47196 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47197
47198         * lib/bitrotate.h (rotl8, rotr8): Add.
47199
47200         * modules/bitrotate (configure.ac): Need
47201         AC_REQUIRE([AC_C_INLINE]).
47202         (Description): Mention stdint.h.  Reported by Bruno Haible
47203         <bruno@clisp.org>.
47204
47205         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47206         Paolo Bonzini <bonzini@gnu.org>.
47207
47208 2008-08-31  Bruno Haible  <bruno@clisp.org>
47209
47210         Assume Solaris specific bi-arch conventions on Solaris systems.
47211         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47212         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47213         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47214         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47215         like acl_libdirstem.
47216         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47217         acl_libdirstem.
47218         * NEWS: Mention the change.
47219         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47220
47221 2008-08-31  Jim Meyering  <meyering@redhat.com>
47222
47223         * lib/strftime.h: Add comments describing the two added arguments.
47224
47225         remove duplicate #include directives
47226         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47227         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47228
47229 2008-08-31  Bruno Haible  <bruno@clisp.org>
47230
47231         New module 'sigpipe-die'.
47232         * modules/sigpipe-die: New file.
47233         * lib/sigpipe-die.h: New file.
47234         * lib/sigpipe-die.c: New file.
47235         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47236
47237 2008-08-31  Bruno Haible  <bruno@clisp.org>
47238
47239         Don't override previously installed signal handlers.
47240         * lib/fatal-signal.c (saved_sigactions): New variable.
47241         (uninstall_handlers): Reset the signal to the saved handler, not
47242         to SIG_DFL (except when ignored).
47243         (install_handlers): Save the previous handlers.
47244
47245 2008-08-30  Bruno Haible  <bruno@clisp.org>
47246
47247         * gnulib-tool (func_reset_sigpipe): New function.
47248         (func_get_automake_snippet, func_modules_transitive_closure,
47249         func_import): Invoke it before a join command that reads from stdin,
47250         to avoid "echo: write error: Broken pipe" error messages on stderr.
47251         Reported by Sam Steingold <sds@gnu.org>.
47252
47253 2008-08-30  Bruno Haible  <bruno@clisp.org>
47254
47255         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47256         Code copied from m4/open.m4.
47257         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47258         access and the filename ends in a slash. Code copied from lib/open.c.
47259         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47260         * tests/test-fopen.c (main): Check against bug with trailing slash.
47261
47262 2008-08-29  Bruno Haible  <bruno@clisp.org>
47263
47264         Avoid some "gcc -pedantic" warnings.
47265         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47266         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47267         * lib/dirent.in.h: Likewise.
47268         * lib/fcntl.in.h: Likewise.
47269         * lib/float.in.h: Likewise.
47270         * lib/iconv.in.h: Likewise.
47271         * lib/inttypes.in.h: Likewise.
47272         * lib/locale.in.h: Likewise.
47273         * lib/math.in.h: Likewise.
47274         * lib/netinet_in.in.h: Likewise.
47275         * lib/search.in.h: Likewise.
47276         * lib/signal.in.h: Likewise.
47277         * lib/stdarg.in.h: Likewise.
47278         * lib/stdint.in.h: Likewise.
47279         * lib/stdio.in.h: Likewise.
47280         * lib/stdlib.in.h: Likewise.
47281         * lib/string.in.h: Likewise.
47282         * lib/strings.in.h: Likewise.
47283         * lib/sys_select.in.h: Likewise.
47284         * lib/sys_socket.in.h: Likewise.
47285         * lib/sys_stat.in.h: Likewise.
47286         * lib/sys_time.in.h: Likewise.
47287         * lib/sysexits.in.h: Likewise.
47288         * lib/time.in.h: Likewise.
47289         * lib/unistd.in.h: Likewise.
47290         * lib/wchar.in.h: Likewise.
47291         * lib/wctype.in.h: Likewise.
47292         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47293         * modules/fchdir (Makefile.am): Likewise.
47294         * modules/fcntl (Makefile.am): Likewise.
47295         * modules/float (Makefile.am): Likewise.
47296         * modules/iconv_open (Makefile.am): Likewise.
47297         * modules/inttypes (Makefile.am): Likewise.
47298         * modules/locale (Makefile.am): Likewise.
47299         * modules/math (Makefile.am): Likewise.
47300         * modules/netinet_in (Makefile.am): Likewise.
47301         * modules/search (Makefile.am): Likewise.
47302         * modules/signal (Makefile.am): Likewise.
47303         * modules/stdarg (Makefile.am): Likewise.
47304         * modules/stdint (Makefile.am): Likewise.
47305         * modules/stdio (Makefile.am): Likewise.
47306         * modules/stdlib (Makefile.am): Likewise.
47307         * modules/string (Makefile.am): Likewise.
47308         * modules/strings (Makefile.am): Likewise.
47309         * modules/sys_select (Makefile.am): Likewise.
47310         * modules/sys_socket (Makefile.am): Likewise.
47311         * modules/sys_stat (Makefile.am): Likewise.
47312         * modules/sys_time (Makefile.am): Likewise.
47313         * modules/sysexits (Makefile.am): Likewise.
47314         * modules/time (Makefile.am): Likewise.
47315         * modules/unistd (Makefile.am): Likewise.
47316         * modules/wchar (Makefile.am): Likewise.
47317         * modules/wctype (Makefile.am): Likewise.
47318         Reported by Reuben Thomas <rrt@sc3d.org>.
47319
47320 2008-08-29  Bruno Haible  <bruno@clisp.org>
47321
47322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47323         any more.
47324
47325 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47326
47327         * MODULES.html.sh (Misc): Add bitrotate.
47328
47329         * modules/bitrotate: New file.
47330
47331         * lib/bitrotate.h: New file.
47332
47333         * modules/bitrotate-tests: New file.
47334
47335         * tests/test-bitrotate.c: New file.
47336
47337         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47338         on the bitrotate module.
47339
47340         * lib/arctwo.c: Use new bitrotate module.
47341
47342 2008-08-29  Jim Meyering  <meyering@redhat.com>
47343
47344         bootstrap: merge changes from coreutils
47345         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47346         of copied files.  Remove a kludge, now that this is fixed.
47347         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47348         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47349         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47350
47351 2008-08-29  Bruno Haible  <bruno@clisp.org>
47352
47353         * MODULES.html.sh: Remove --cvs-urls option.
47354
47355 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47356
47357         maint.mk: adjust to file name change
47358         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47359
47360 2008-08-28  Jim Meyering  <meyering@redhat.com>
47361
47362         * modules/getndelim2 (License): Relicense to LGPLv2+.
47363         Approved by Richard Stallman for the version of 1995, and by
47364         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47365
47366 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47367
47368         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47369         dummy if one is not available.  Do not touch them if
47370         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47371         (getc_maybe_unlocked): New.
47372         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47373
47374 2008-08-26  Eric Blake  <ebb9@byu.net>
47375
47376         doc/INSTALL: resync from autoconf
47377         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47378         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47379         moving...
47380         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47381         * INSTALL: Regenerate.
47382         * INSTALL.ISO: New file.
47383         * INSTALL.UTF-8: Likewise.
47384
47385 2008-08-26  Jim Meyering  <meyering@redhat.com>
47386
47387         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47388         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47389         these definitions conditional, so that they may be overridden, too.
47390
47391 2008-08-26  Bruno Haible  <bruno@clisp.org>
47392
47393         Generate INSTALL file variants with prettier quotes.
47394         * doc/Makefile (INSTALL_PRELUDE): New macro.
47395         (INSTALL): Use it.
47396         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47397
47398 2008-08-26  Bruno Haible  <bruno@clisp.org>
47399
47400         Run makeinfo in an English locale.
47401         * doc/Makefile (MAKEINFO): New variable.
47402
47403 2008-08-26  Bruno Haible  <bruno@clisp.org>
47404
47405         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47406         Suggested by Eric Blake.
47407
47408 2008-08-25  Bruno Haible  <bruno@clisp.org>
47409
47410         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47411
47412 2008-08-25  Eric Blake  <ebb9@byu.net>
47413
47414         c-stack: test that stack overflow can be caught
47415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47416         that platform allows handling stack overflow; at least OS/2 EMX
47417         has sigaltstack, but crashes before transferring control to
47418         handler on stack overflow.
47419         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47420         check for HAVE_STACK_OVERFLOW_HANDLING.
47421         Reported by Elbert Pol.
47422
47423 2008-08-25  Bruno Haible  <bruno@clisp.org>
47424
47425         * doc/posix-functions/strftime.texi: Fix description of strftime
47426         module.
47427
47428 2008-08-24  Bruno Haible  <bruno@clisp.org>
47429
47430         * tests/uniwidth/test-uc_width2.c: New file.
47431         * tests/uniwidth/test-uc_width2.sh: New file.
47432         * modules/uniwidth/width-tests (Files): Add the new files.
47433         (TESTS): Add uniwidth/test-uc_width2.sh.
47434         (TESTS_ENVIRONMENT): New variable.
47435         (check_PROGRAMS): Add test-uc_width2.
47436         (test_uc_width2_SOURCES): New variable.
47437
47438         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47439         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47440         not 0x00AB.
47441         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47442
47443 2008-08-22  Eric Blake  <ebb9@byu.net>
47444
47445         test-lock, test-tls: mention why a test is skipped
47446         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47447         skipped.
47448         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47449
47450         count-one-bits: relax license
47451         * modules/count-one-bits (License): Relicense to LGPLv2+.
47452         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47453
47454 2008-08-22  Andreas Schwab  <schwab@suse.de>
47455
47456         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47457         Remove spurious space in assignment.
47458
47459 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47460
47461         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47462         Paul Eggert <eggert@CS.UCLA.EDU>.
47463
47464 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47465
47466         * modules/gettext: Add m4/threadlib.m4.
47467
47468 2008-08-19  Eric Blake  <ebb9@byu.net>
47469
47470         test-c-stack: fix compilation failure on FreeBSD 5.0
47471         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47472         headers before <sys/resource.h>.
47473         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47474         the bug.
47475         Reported by Nelson H. F. Beebe.
47476
47477         strverscmp: migrate from "strverscmp.h" to <string.h>
47478         * modules/string (Makefile.am): Add new hooks.
47479         * modules/strverscmp (Files): Remove strverscmp.h.
47480         (Depends-on): Add string.
47481         (configure.ac): Add indicator.
47482         (Include): Mention new header.
47483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47484         defaults.
47485         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47486         results.
47487         * lib/strverscmp.h: Delete.
47488         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47489         * tests/test-strverscmp.c (includes): Adjust client.
47490         * lib/check-version.c (includes): Likewise.
47491         * NEWS: Document the change.
47492
47493         strverscmp: add unit test
47494         * modules/strverscmp-tests: New file.
47495         * tests/test-strverscmp.c: Likewise.
47496
47497 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47498
47499         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47500         regarding Windows crypto stuff, from Mono.
47501
47502 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47503
47504         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47505         if present, for intel RND.  Return error on failures.
47506
47507 2008-08-18  Ben Pfaff  <blp@gnu.org>
47508
47509         gitlog-to-changelog: give better diagnostic for failed pipe-open
47510         * build-aux/gitlog-to-changelog: Improve error message: suggest
47511         that the version of Git may be too old.
47512
47513 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47514
47515         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47516         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47517
47518 2008-08-18  Bruno Haible  <bruno@clisp.org>
47519
47520         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47521         pthread_in_use().
47522
47523 2008-08-18  Bruno Haible  <bruno@clisp.org>
47524
47525         * lib/glthread/threadlib.c: Include <pthread.h>.
47526
47527 2008-08-18  Bruno Haible  <bruno@clisp.org>
47528
47529         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47530         glthread_recursive_lock_* macros.
47531         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47532         Fix syntax error.
47533
47534 2008-08-18  Bruno Haible  <bruno@clisp.org>
47535
47536         * lib/glthread/thread.c: Avoid forcing a context switch right after
47537         thread creation.
47538
47539 2008-08-17  Bruno Haible  <bruno@clisp.org>
47540
47541         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47542         * lib/glthread/thread.h: Provide Win32 specific implementation.
47543         * modules/thread (Files): Add lib/glthread/thread.c.
47544         (Depends-on): Add lock.
47545         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47546
47547 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47548
47549         New module 'yield'.
47550         * modules/yield: New file.
47551         * lib/glthread/yield.h: New file.
47552         * m4/yield.m4: New file.
47553         * MODULES.html.sh (Multithreading): Add yield.
47554
47555 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47556
47557         New module 'thread'.
47558         * modules/thread: New file.
47559         * lib/glthread/thread.h: New file.
47560         * m4/thread.m4: New file.
47561         * MODULES.html.sh (Multithreading): Add thread.
47562
47563 2008-08-17  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/glthread/lock.h: Include <stdlib.h> always.
47566         * lib/glthread/tls.h: Likewise.
47567         * lib/glthread/cond.h: Likewise.
47568
47569 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47570
47571         New module 'cond'.
47572         * modules/cond: New file.
47573         * lib/glthread/cond.h: New file.
47574         * lib/glthread/cond.c: New file.
47575         * m4/cond.m4: New file.
47576         * MODULES.html.sh (Multithreading): Add cond.
47577
47578 2008-08-16  Eric Blake  <ebb9@byu.net>
47579
47580         c-stack: fix regression on Irix 5.3 from 2008-06-21
47581         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47582         sa_sigaction...
47583         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47584         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47585         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47586         * modules/signal (Makefile.am): Use the value.
47587         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47588         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47589         * doc/posix-headers/signal.texi (signal.h): Document this
47590         portability issue.
47591         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47592         Reported by Tom G. Christensen.
47593
47594 2008-08-17  Bruno Haible  <bruno@clisp.org>
47595
47596         New module 'threadlib'.
47597         * modules/threadlib: New file.
47598         * lib/glthread/threadlib.c: New file, extracted from
47599         lib/glthread/lock.c.
47600         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47601         functions.
47602         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47603         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47604         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47605         macros.
47606         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47607         (gl_DISABLE_THREADS): Remove macro.
47608         * modules/lock (Files): Remove build-aux/config.rpath.
47609         (Depends-on): Remove havelib. Add threadlib.
47610         (configure.ac-early): Remove section.
47611         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47612         * modules/tls (Depends-on): Remove lock. Add threadlib.
47613         (Link): New section, copied from threadlib.
47614         * MODULES.html.sh (Multithreading): Add threadlib.
47615
47616 2008-08-14  Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47619         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47620         glthread_rwlock_unlock, glthread_rwlock_destroy,
47621         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47622         glthread_recursive_lock_destroy): Define as macros always.
47623         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47624         glthread_lock_lock.
47625         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47626         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47627         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47628         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47629         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47630         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47631         (glthread_recursive_lock_lock_func): Renamed from
47632         glthread_recursive_lock_lock.
47633         (glthread_recursive_lock_unlock_func): Renamed from
47634         glthread_recursive_lock_unlock.
47635         (glthread_recursive_lock_destroy_func): Renamed from
47636         glthread_recursive_lock_destroy.
47637
47638 2008-08-14  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/glthread/lock.h: Renamed from lib/lock.h.
47641         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47642         * lib/glthread/tls.h: Renamed from lib/tls.h.
47643         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47644         * lib/fstrcmp.c: Update includes.
47645         * lib/strsignal.c: Update includes.
47646         * modules/lock (Files, Makefile.am): Update.
47647         (Include): Change to "glthread/lock.h".
47648         * modules/tls (Files, Makefile.am): Update.
47649         (Include): Change to "glthread/tls.h".
47650         * tests/test-lock.c: Update includes.
47651         * tests/test-tls.c: Update includes.
47652         * NEWS: Mention the renamed header files.
47653
47654 2008-08-11  Jim Meyering  <meyering@redhat.com>
47655
47656         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47657
47658 2008-08-11  Eric Blake  <ebb9@byu.net>
47659
47660         test-c-stack: avoid C99-ism
47661         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47662         before statement.
47663         Reported by Alain Guibert.
47664
47665 2008-08-10  Jim Meyering  <meyering@redhat.com>
47666
47667         ensure that return value of uinttostr et al are not ignored
47668         * lib/inttostr.h (__GNUC_PREREQ): Define.
47669         (__attribute_warn_unused_result__): Define.
47670         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47671
47672 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47673
47674         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47675         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47676
47677 2008-08-07  Jim Meyering  <meyering@redhat.com>
47678
47679         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47680
47681         * modules/mkstemp (License): Relicense under LGPLv2+.
47682         * modules/tempname (License): Likewise.
47683
47684 2008-08-06  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/poll.c (poll): Further micro-optimization.
47687
47688 2008-08-06  Jim Meyering  <meyering@redhat.com>
47689
47690         inet_pton.c: use locale-independent tolower
47691         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47692         (inet_pton6): Use c_tolower rather than tolower.
47693         * modules/inet_pton (Depends-on): Add c-ctype.
47694
47695 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47696
47697         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47698         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47699
47700 2008-08-06  Jim Meyering  <meyering@redhat.com>
47701
47702         * modules/inet_pton (License): Relicense under LGPLv2+.
47703
47704 2008-08-03  Bruno Haible  <bruno@clisp.org>
47705
47706         Additional non-aborting API for lock and tls.
47707         * lib/lock.h: Include <errno.h>.
47708         (glthread_lock_init): New macro/function.
47709         (gl_lock_init): Define as wrapper around glthread_lock_init.
47710         (glthread_lock_lock): New macro/function.
47711         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47712         (glthread_lock_unlock): New macro/function.
47713         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47714         (glthread_lock_destroy): New macro/function.
47715         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47716         (glthread_rwlock_init): New macro/function.
47717         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47718         (glthread_rwlock_rdlock): New macro/function.
47719         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47720         (glthread_rwlock_wrlock): New macro/function.
47721         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47722         (glthread_rwlock_unlock): New macro/function.
47723         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47724         (glthread_rwlock_destroy): New macro/function.
47725         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47726         (glthread_recursive_lock_init): New macro/function.
47727         (gl_recursive_lock_init): Define as wrapper around
47728         glthread_recursive_lock_init.
47729         (glthread_recursive_lock_lock): New macro/function.
47730         (gl_recursive_lock_lock): Define as wrapper around
47731         glthread_recursive_lock_lock.
47732         (glthread_recursive_lock_unlock): New macro/function.
47733         (gl_recursive_lock_unlock): Define as wrapper around
47734         glthread_recursive_lock_unlock.
47735         (glthread_recursive_lock_destroy): New macro/function.
47736         (gl_recursive_lock_destroy): Define as wrapper around
47737         glthread_recursive_lock_destroy.
47738         (glthread_once): New macro/function.
47739         (gl_once): Define as wrapper around glthread_once.
47740         Update function declarations.
47741         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47742         glthread_rwlock_init. Return error code.
47743         (glthread_rwlock_rdlock_multithreaded): Renamed from
47744         glthread_rwlock_rdlock. Return error code.
47745         (glthread_rwlock_wrlock_multithreaded): Renamed from
47746         glthread_rwlock_wrlock. Return error code.
47747         (glthread_rwlock_unlock_multithreaded): Renamed from
47748         glthread_rwlock_unlock. Return error code.
47749         (glthread_rwlock_destroy_multithreaded): Renamed from
47750         glthread_rwlock_destroy. Return error code.
47751         (glthread_recursive_lock_init_multithreaded): Renamed from
47752         glthread_recursive_lock_init. Return error code.
47753         (glthread_recursive_lock_lock_multithreaded): Renamed from
47754         glthread_recursive_lock_lock. Return error code.
47755         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47756         glthread_recursive_lock_unlock. Return error code.
47757         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47758         glthread_recursive_lock_destroy. Return error code.
47759         (glthread_once_call): Make static.
47760         (glthread_once_multithreaded): Renamed from glthread_once.
47761         * lib/tls.h: Include <errno.h>.
47762         (glthread_tls_key_init): New macro/function.
47763         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47764         (glthread_tls_set): New macro/function.
47765         (gl_tls_set): Define as wrapper around glthread_tls_set.
47766         (glthread_tls_key_destroy): New macro/function.
47767         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47768         Update function declarations.
47769         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47770         glthread_tls_get.
47771         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47772
47773 2008-08-04  Eric Blake  <ebb9@byu.net>
47774
47775         gnumakefile: use space, not TAB, outside of targets
47776         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47777
47778 2008-08-02  Jim Meyering  <meyering@redhat.com>
47779
47780         getdate.y: avoid locale-dependent date parsing failure
47781         In Turkish locales, getdate would fail to recognize keywords
47782         containing a lowercase "i".  The solution is not to rely on
47783         locale-sensitive case-conversion.
47784         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47785         (lookup_word): Use c_toupper in place of toupper.
47786         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47787         Reported by Vefa Bicakci <bicave@superonline.com> in
47788         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47789         * modules/getdate (Depends-on): Add c-ctype.
47790
47791 2008-08-02  Bruno Haible  <bruno@clisp.org>
47792
47793         * gnulib-tool (func_import): When updating or creating a .gitignore
47794         file, prepend each added line with a slash, and ignore leading slashes
47795         from the existing lines.
47796         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47797
47798 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47799
47800         Portability fix for GNU make 3.79.1.
47801         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47802         versions do not understand.
47803
47804 2008-08-01  Bruno Haible  <bruno@clisp.org>
47805
47806         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47807         * tests/test-isnanf.h (zero): New variable.
47808         (main): Avoid literal -0.0f.
47809         * tests/test-isnand.h (zero): New variable.
47810         (main): Avoid literal -0.0.
47811         * tests/test-isnanl.h (zero): New variable.
47812         (main): Avoid literal -0.0L.
47813         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47814         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47815         -0.0, -0.0L.
47816         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47817         (test_signbitd): Avoid literal -0.0.
47818         (test_signbitl): Avoid literal -0.0L.
47819         * tests/test-ceilf1.c (zero): New variable.
47820         (main): Avoid literal -0.0f.
47821         * tests/test-ceill.c (zero): New variable.
47822         (main): Avoid literal -0.0L.
47823         * tests/test-floorf1.c (zero): New variable.
47824         (main): Avoid literal -0.0f.
47825         * tests/test-floorl.c (zero): New variable.
47826         (main): Avoid literal -0.0L.
47827         * tests/test-roundf1.c (zero): New variable.
47828         (main): Avoid literal -0.0f.
47829         * tests/test-round1.c (zero): New variable.
47830         (main): Avoid literal -0.0.
47831         * tests/test-roundl.c (zero): New variable.
47832         (main): Avoid literal -0.0L.
47833         * tests/test-truncf1.c (zero): New variable.
47834         (main): Avoid literal -0.0f.
47835         * tests/test-trunc1.c (zero): New variable.
47836         (main): Avoid literal -0.0.
47837         * tests/test-truncl.c (zero): New variable.
47838         (main): Avoid literal -0.0L.
47839         * tests/test-frexp.c (zero): New variable.
47840         (main): Avoid literal -0.0.
47841         * tests/test-frexpl.c (zero): New variable.
47842         (main): Avoid literal -0.0L.
47843         * tests/test-ldexpl.c (zero): New variable.
47844         (main): Avoid literal -0.0L.
47845         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47846         (zerod, zerol): New variables.
47847         (test_function): Avoid literals -0.0, -0.0L.
47848         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47849         (zerod, zerol): New variables.
47850         (test_function): Avoid literals -0.0, -0.0L.
47851         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47852         (zerod, zerol): New variables.
47853         (test_function): Avoid literals -0.0, -0.0L.
47854         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47855         (zerod, zerol): New variables.
47856         (test_function): Avoid literals -0.0, -0.0L.
47857         * tests/test-strtod.c (zero): New variable.
47858         (main): Avoid literal -0.0.
47859         Reported by Jonathan C. Patschke <jp@centtech.com>.
47860
47861 2008-07-31  Jim Meyering  <meyering@redhat.com>
47862
47863         sha256.h: correct definition of SHA224_DIGEST_SIZE
47864         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47865         Reported by Paulie Pena IV <paulie4@gmail.com>.
47866         Define as 224 / 8, rather than as a literal.
47867         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47868         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47869         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47870
47871 2008-07-31  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47874         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47875         Reported by Jonathan Patschke <jp@centtech.com>.
47876
47877 2008-07-31  Bruno Haible  <bruno@clisp.org>
47878
47879         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47880         Reported by Paolo Bonzini <bonzini@gnu.org>.
47881
47882 2008-07-30  Eric Blake  <ebb9@byu.net>
47883
47884         test-strtod: allow compilation without -lm
47885         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47886         Reported by Dennis Clarke <blastwave@gmail.com>.
47887
47888 2008-07-28  Jim Meyering  <meyering@redhat.com>
47889
47890         bootstrap: work also when there are no .po files in po/
47891         * build-aux/bootstrap (update_po_files): Complete the change
47892         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47893
47894 2008-07-27  Jim Meyering  <meyering@redhat.com>
47895
47896         * users.txt: Add zile.
47897
47898 2008-07-26  Ben Pfaff  <blp@gnu.org>
47899
47900         Add missing dependencies on new m4/exponent[fdl].m4 files.
47901         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47902         * modules/isnand-nolibm: Add m4/exponentd.m4.
47903         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47904         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47905         m4/isnan[fdl].m4, because the macros actually used moved.
47906         Reported by Jim Meyering.
47907
47908 2008-07-14  Ben Pfaff  <blp@gnu.org>
47909
47910         Add isinf module.
47911         * lib/isinf.c: New file.
47912         * lib/math.in.h: Define isinf macro if we have decided to replace
47913         it.
47914         * m4/isinf.m4: New file.
47915         * m4/math_h.m4: Initialize and substitute variables for isinf
47916         module.
47917         * modules/isinf: New file.
47918         * modules/isinf-tests: New file.
47919         * modules/math: Add substitutions for new module.
47920         * tests/test-isinf.c: New file.
47921         * doc/posix-functions/isinf.texi: Mention new module.
47922         * MODULES.html.sh: Mention new module.
47923
47924 2008-07-14  Ben Pfaff  <blp@gnu.org>
47925
47926         Factor out some macros for use by additional modules.
47927         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47928         exponentf.m4.
47929         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47930         exponentd.m4.
47931         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47932         file exponentl.m4.
47933         * m4/exponentf.m4: New file.
47934         * m4/exponentd.m4: New file.
47935         * m4/exponentl.m4: New file.
47936         * modules/isnanf: Use new file m4/exponentf.m4.
47937         * modules/isnand: Use new file m4/exponentd.m4.
47938         * modules/isnanl: Use new file m4/exponentl.m4.
47939
47940 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47941
47942         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47943         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47944         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47945         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47946
47947         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47948         readlink on platforms without PATH_MAX.
47949
47950 2008-07-21  Eric Blake  <ebb9@byu.net>
47951
47952         Warn, not fail, on stale version.
47953         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47954
47955         Don't allow installation with stale devel version number.
47956         * top/GNUmakefile (_is-install-target): New macro.
47957         (_curr-ver): Forbid installation with stale version number.
47958
47959 2008-07-20  Bruno Haible  <bruno@clisp.org>
47960
47961         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47962         TESTS_ENVIRONMENT.
47963         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47964
47965 2008-07-20  Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/c-stack.h (c_stack_action): Add documentation.
47968         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47969
47970 2008-07-20  Bruno Haible  <bruno@clisp.org>
47971
47972         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47973         * modules/readlink (License): Likewise.
47974
47975 2008-07-17  Eric Blake  <ebb9@byu.net>
47976
47977         * modules/c-stack (Link): Fix typo.
47978
47979         Make c-stack use libsigsegv, when available.
47980         * modules/c-stack (Depends-on): Add libsigsegv.
47981         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47982         needed.
47983         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47984         (segv_handler, overflow_handler, c_stack_action)
47985         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47986         implementation when libsigsegv is available, but only when using
47987         the library is necessary.
47988         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47989         comment, explaining why XSI check fails on Linux.
47990         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47991         * tests/test-c-stack2.sh: Tweak skip message.
47992         * NEWS: Document new link-time requirements.
47993
47994 2008-07-16  Eric Blake  <ebb9@byu.net>
47995
47996         c-stack: Expose false positives when not using libsigsegv.
47997         * modules/c-stack-tests (Files): Expand test.
47998         * tests/test-c-stack.c (main): Add means to conditionally trigger
47999         non-overflow SIGSEGV.
48000         * tests/test-c-stack2.sh: New file.
48001
48002 2008-07-14  Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48005         Reported by Eric Blake.
48006
48007 2008-07-14  Sam Steingold  <sds@gnu.org>
48008             Bruno Haible  <bruno@clisp.org>
48009
48010         New module libsigsegv.
48011         * modules/libsigsegv: New file.
48012         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48013         modifications.
48014         * MODULES.html.sh (Signal handling): New section.
48015
48016 2008-07-14  Bruno Haible  <bruno@clisp.org>
48017
48018         * modules/unictype/ctype-* (Description): Add the word "function".
48019         Improves the resulting doc in MODULES.html.
48020
48021 2008-07-12  Ben Pfaff  <blp@gnu.org>
48022
48023         Add longlong module.
48024         * modules/longlong: New file.
48025
48026 2008-07-12  Bruno Haible  <bruno@clisp.org>
48027
48028         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48029         to empty.
48030
48031 2008-07-10  Ben Pfaff  <blp@gnu.org>
48032
48033         Add isnan module.
48034         * doc/posix-functions/isnan.texi: Mention new module.
48035         * lib/math.in.h: Define isnan macro if we have decided to replace
48036         it.
48037         * m4/isnan.m4: New file.
48038         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48039         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48040         also.
48041         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48042         redundancy.
48043         * m4/math_h.m4: Initialize and substitute variables for isnan
48044         module.
48045         * modules/isnan: New file.
48046         * modules/isnan-tests: New file.
48047         * modules/math: Add substitutions for new module.
48048         * tests/test-isnan.c: New file.
48049         * MODULES.html.sh: Mention new module.
48050
48051 2008-07-10  Ben Pfaff  <blp@gnu.org>
48052
48053         Add isnanf module.
48054         * lib/isnanf.m4: New file.
48055         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48056         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48057         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48058         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48059         * modules/isnanf: New file.
48060         * modules/isnanf-tests: New file.
48061         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48062         files.
48063         * tests/test-isnanf-nolibm.c: factored most of its contents into
48064         new file tests/test-isnanf.h.
48065         * tests/test-isnanf.h: New file.
48066         * tests/test-isnanf.c: New file.
48067         * MODULES.html.sh: Mention new module.
48068         * doc/glibc-functions/isnanf.texi: Mention new module.
48069
48070 2008-07-10  Ben Pfaff  <blp@gnu.org>
48071
48072         Add isnand module.
48073         * lib/isnand.h: New file.
48074         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48075         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48076         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48077         functionality also.
48078         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48079         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48080         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48081         * modules/isnand: New file.
48082         * modules/isnand-tests: New file.
48083         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48084         files.
48085         * tests/test-isnand-nolibm.c: factored most of its contents into
48086         new file tests/test-isnand.h.
48087         * tests/test-isnand.h: New file.
48088         * tests/test-isnand.c: New file.
48089         * MODULES.html.sh: Mention new module.
48090
48091 2008-07-10  Ben Pfaff  <blp@gnu.org>
48092
48093         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48094         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48095         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48096         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48097         * modules/isnanf-nolibm: Update references to renamed files.
48098         * modules/isnand-nolibm: Likewise.
48099         * modules/isnanf-nolibm-tests: Likewise.
48100         * modules/isnand-nolibm-tests: Likewise.
48101         * lib/frexp.c: Likewise.
48102         * lib/isfinite.c: Likewise.
48103         * lib/signbitd.c: Likewise.
48104         * lib/signbitf.c: Likewise.
48105         * lib/vasnprintf.c: Likewise.
48106         * tests/test-ceilf1.c: Likewise.
48107         * tests/test-ceilf2.c: Likewise.
48108         * tests/test-floorf1.c: Likewise.
48109         * tests/test-floorf2.c: Likewise.
48110         * tests/test-frexp.c: Likewise.
48111         * tests/test-round1.c: Likewise.
48112         * tests/test-round2.c: Likewise.
48113         * tests/test-roundf1.c: Likewise.
48114         * tests/test-strtod.c: Likewise.
48115         * tests/test-trunc1.c: Likewise.
48116         * tests/test-trunc2.c: Likewise.
48117         * tests/test-truncf1.c: Likewise.
48118         * tests/test-truncf2.c: Likewise.
48119         * NEWS: Mention the renamed header files.
48120
48121 2008-07-11  Jim Meyering  <meyering@redhat.com>
48122
48123         vc-list-files: make the last-resort awk code more portable
48124         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48125         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48126         does not support it.
48127
48128 2008-07-10  Eric Blake  <ebb9@byu.net>
48129
48130         Work with tar's bootstrap.
48131         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48132         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48133         an m4 comment.
48134
48135 2008-07-09  Jim Meyering  <meyering@redhat.com>
48136
48137         posix-shell.m4: fix typo that made this test malfunction
48138         * m4/posix-shell.m4: Remove capitalization in variable name.
48139
48140 2008-07-08  Bruno Haible  <bruno@clisp.org>
48141
48142         * m4/onceonly.m4: Update comments.
48143         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48144
48145 2008-07-04  Jim Meyering  <meyering@redhat.com>
48146
48147         * users.txt: Add vc-dwim.
48148         (bison, coreutils): Use the gitweb URL.
48149
48150 2008-07-03  Jim Meyering  <meyering@redhat.com>
48151
48152         * users.txt: Add libffcall.  From Sam Steingold.
48153
48154 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48155
48156         getdate.y: do not ignore TZ with relative day, month or year offset
48157         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48158         relative-date-handling, since otherwise, the latter would clobber the
48159         sole output (an updated Start value) of the tz-handling block.
48160         * tests/test-getdate.c: Tests for the fix
48161
48162 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48163
48164         Recognize 'foo_LIBRARIES += libgnu.a'.
48165         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48166         makefile snippet has already specified an installation location,
48167         also using '+='.
48168
48169 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48170
48171         getdate.y: factor out common actions
48172         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48173         Use them in place of open-coded actions.
48174
48175 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48176
48177         Add self-test for getdate module.
48178         * modules/getdate-tests: New file.
48179         * tests/test-getdate.c: New file.
48180
48181 2008-06-29  Bruno Haible  <bruno@clisp.org>
48182
48183         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48184         .gitignore.
48185         Reported by Sylvain Beucler <beuc@beuc.net>.
48186
48187 2008-06-29  Bruno Haible  <bruno@clisp.org>
48188
48189         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48190         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48191
48192 2008-06-29  Bruno Haible  <bruno@clisp.org>
48193
48194         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48195         EXTRA_DIST.
48196         Reported by Sylvain Beucler <beuc@beuc.net>.
48197
48198 2008-06-26  Jim Meyering  <meyering@redhat.com>
48199
48200         make several modules depend on the "open" module
48201         This provides slightly increased consistency when opening-for-write
48202         the name of a non-directory spelled with a trailing slash.
48203         * modules/chdir-safer: Likewise.
48204         * modules/chown: Likewise.
48205         * modules/clean-temp: Likewise.
48206         * modules/copy-file: Likewise.
48207         * modules/fchdir: Likewise.
48208         * modules/fcntl-safer: Likewise.
48209         * modules/pipe: Likewise.
48210         * modules/utime: Likewise.
48211         Prompted by Eric Blake and Bruno Haible.
48212
48213 2008-06-24  Andreas Schwab  <schwab@suse.de>
48214
48215         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48216         literals can be used as initializers for global variables.
48217
48218 2008-06-23  Eric Blake  <ebb9@byu.net>
48219
48220         Make gnulib-cache.m4 easier to diff.
48221         * gnulib-tool (func_import): Allow newlines when reading cached
48222         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48223
48224 2008-06-23  Bruno Haible  <bruno@clisp.org>
48225
48226         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48227         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48228         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48229         m4/signalblocking.m4.
48230         (gl_PREREQ_SIGACTION): Don't invoke it.
48231         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48232         gl_PREREQ_SIG_HANDLER_H.
48233         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48234         Don't check for sigaction here.
48235
48236 2008-06-23  Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48239         (install_handlers): Don't set the SA_RESETHAND flag.
48240
48241 2008-06-23  Bruno Haible  <bruno@clisp.org>
48242
48243         * m4/sigaction.m4: Comment fixes.
48244         * lib/signal.in.h: Likewise.
48245
48246 2008-06-23  Eric Blake  <ebb9@byu.net>
48247
48248         Fix typo.
48249         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48250
48251         Avoid SA_ namespace.
48252         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48253         Reported by Ralf Wildenhues.
48254
48255         Avoid test failure due to SA_RESTORER.
48256         * tests/test-sigaction.c (SA_MASK): New macro.
48257         (main): Avoid failing due to extension flags being set.
48258         Reported by Jim Meyering.
48259
48260         Revert use of sig-handler.h in sigprocmask.c.
48261         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48262         it requires the existence of struct sigaction.
48263         * lib/sigprocmask.c (handler_t): Restore typedef.
48264         (rpl_signal, old_handlers): Use local type.
48265
48266 2008-06-22  Bruno Haible  <bruno@clisp.org>
48267
48268         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48269         conditionally.
48270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48271
48272 2008-06-22  Bruno Haible  <bruno@clisp.org>
48273
48274         * doc/posix-functions/siginterrupt.texi: Move note.
48275
48276         * lib/signal.in.h (SA_RESTART): New macro.
48277         * lib/sigaction.c: Update comment.
48278
48279         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48280
48281         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48282         (gl_PREREQ_SIGPROCMASK): Invoke it.
48283         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48284
48285         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48286
48287         * lib/sigprocmask.c: Update a comment.
48288
48289 2008-06-21  Eric Blake  <ebb9@byu.net>
48290
48291         Use sigaction module rather than signal().
48292         * modules/c-stack (Depends-on): Add sigaction.
48293         * modules/fatal-signal (Depends-on): Likewise.
48294         * modules/nanosleep (Depends-on): Likewise.
48295         * modules/sigprocmask (Files): Add sig-handler.h.
48296         * modules/sigaction (Files): Likewise.
48297         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48298         Eggert.
48299         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48300         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48301         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48302         (init_fatal_signals): Likewise.
48303         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48304         (siginterrupt): Delete fallback.
48305         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48306         instead.
48307         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48308         siginterrupt.
48309
48310         New module sigaction, for mingw.
48311         * modules/sigaction: New module...
48312         * modules/sigaction-tests: ...and its test.
48313         * m4/sigaction.m4: New file.
48314         * lib/sigaction.c: Likewise.
48315         * tests/test-sigaction.c: Likewise.
48316         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48317         * modules/signal (Makefile.am): Likewise.
48318         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48319         needed.
48320         * doc/posix-headers/signal.texi (signal.h): Mention provided
48321         types.
48322         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48323         that sigaction is preferable.
48324         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48325         module.
48326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48327         sigaction.
48328
48329         Improve robustness of sigprocmask by overriding signal.
48330         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48331         is in use.
48332         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48333         (SIGKILL, SIGSTOP): Provide fallbacks.
48334         (rpl_signal): Implement.
48335         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48336         signal can be called inside handlers.
48337
48338         Fix nanosleep module on mingw.
48339         * modules/nanosleep (Depends-on): Add sys_select.
48340         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48341
48342         Fix licensing of sigprocmask.
48343         * modules/raise (License): Relicense as LGPL.
48344
48345 2008-06-21  Bruno Haible  <bruno@clisp.org>
48346
48347         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48348         result if it contains question marks.
48349         Reported by Michael Geng <linux@michaelgeng.de>.
48350
48351 2008-06-19  Bruno Haible  <bruno@clisp.org>
48352
48353         Fix CVS-ism.
48354         * doc/gnulib.texi: Include updated-stamp.texi.
48355         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48356         (updated-stamp.texi): New rule.
48357         (gnulib.info): Depend on it.
48358         * doc/.gitignore: Add updated-stamp.texi.
48359         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48360
48361 2008-06-19  Bruno Haible  <bruno@clisp.org>
48362
48363         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48364         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48365
48366 2008-06-19  Eric Blake  <ebb9@byu.net>
48367
48368         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48369         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48370         Reported by Stepan Kasal.
48371
48372 2008-06-18  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48375         Reported by Eric Blake.
48376
48377 2008-06-18  Eric Blake  <ebb9@byu.net>
48378
48379         Work around cygwin 1.5.25 strsignal bug.
48380         * tests/test-strsignal.c: Allow for const char *.
48381         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48382
48383 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48384
48385         * users.txt: Update URL to article and add author/date
48386         information.
48387
48388 2008-06-17  Bruno Haible  <bruno@clisp.org>
48389
48390         New macro gl_DISABLE_THREADS.
48391         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48392         if the user did not pass --enable-threads or --disable-threads option.
48393         (gl_DISABLE_THREADS): New macro.
48394         Reported by Eric Blake <ebb9@byu.net>.
48395
48396 2008-06-17  Bruno Haible  <bruno@clisp.org>
48397
48398         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48399         when the macro ignores it.
48400         Based on a patch by Eric Blake <ebb9@byu.net>.
48401
48402 2008-06-17  Bruno Haible  <bruno@clisp.org>
48403
48404         * modules/tls (License): Change to LGPLv2+.
48405         Reported by Eric Blake.
48406
48407 2008-06-17  Eric Blake  <ebb9@byu.net>
48408
48409         Simplify c-stack prerequisites.
48410         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48412         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48413         check.
48414         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48415         <sys/resource.h>.
48416
48417         Move c-stack test into testsuite.
48418         * modules/c-stack-tests: New file.
48419         * lib/c-stack.c [DEBUG]: Move test program...
48420         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48421         fail test if sigaltstack is lacking.
48422         * tests/test-c-stack.sh: New driver file.
48423
48424 2008-06-16  Eric Blake  <ebb9@byu.net>
48425
48426         Use raise module consistently.
48427         * modules/fatal-signal (Depends-on): Add raise.
48428         * modules/sigprocmask (Depends-on): Likewise.
48429         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48430         * lib/sigprocmask.c (sigprocmask): Likewise.
48431         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48432         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48433
48434         Fix compliance bug in sigpending.
48435         * lib/sigprocmask.c (sigpending): Return pending array via
48436         parameter, not return value.
48437
48438 2008-06-14  Eric Blake  <ebb9@byu.net>
48439
48440         Improve obstack-printf test code.
48441         * tests/test-obstack-printf.c (test_function): Fix comment, and
48442         simplify usage of obstack_* in macros.  Add a test for coverage.
48443         Reported by Bruno Haible.
48444
48445 2008-06-14  Bruno Haible  <bruno@clisp.org>
48446
48447         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48448         array size as a constant, not as a const variable.
48449         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48450         AC_USE_SYSTEM_EXTENSIONS.
48451         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48452         Test whether the obstack_printf function actually exists.
48453         * modules/obstack-printf (Depends-on): Add extensions.
48454         (Include): Remove obstack.h.
48455         * modules/obstack-printf-posix (Depends-on): Add extensions.
48456         (Include): Remove obstack.h.
48457
48458 2008-06-13  Eric Blake  <ebb9@byu.net>
48459
48460         Add obstack-printf and obstack-printf-posix modules.
48461         * modules/obstack-printf: New file.
48462         * modules/obstack-printf-posix: Likewise.
48463         * MODULES.html.sh (Misc): Mention them.
48464         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48465         Likewise.
48466         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48467         Likewise.
48468         * modules/stdio (Makefile.am): Accomodate new modules.
48469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48470         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48471         Declare.
48472         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48473         functions.
48474         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48475         (gl_REPLACE_OBSTACK_PRINTF): New macros
48476         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48477         * tests/test-obstack-printf.c: New file.
48478         * modules/obstack-printf-tests: Likewise.
48479         * modules/obstack-printf-posix-tests: Likewise.
48480
48481 2008-06-11  Bruno Haible  <bruno@clisp.org>
48482
48483         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48484         * lib/open.c: Include errno.h.
48485         (open): Fail when attempting to write to a file that has a trailing
48486         slash.
48487         * tests/test-open.c (main): Test against trailing slash bug.
48488         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48489
48490 2008-06-10  Bruno Haible  <bruno@clisp.org>
48491
48492         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48493         for $? to work inside the trap command, with various /bin/sh-s.
48494         * tests/test-vc-list-files-cvs.sh: Likewise.
48495
48496 2008-06-10  Bruno Haible  <bruno@clisp.org>
48497
48498         * lib/acl-internal.h: Don't include gettext.h here.
48499         * lib/set-mode-acl.c: Include gettext.h here.
48500         * lib/copy-acl.c: Likewise.
48501
48502 2008-06-10  Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48505         * lib/wait-process.c (wait_subprocess): Likewise.
48506         * lib/execute.h (execute): Add termsigp argument.
48507         * lib/execute.c (execute): Likewise.
48508         * lib/csharpcomp.c (compile_csharp_using_pnet,
48509         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48510         * lib/csharpexec.c (execute_csharp_using_pnet,
48511         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48512         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48513         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48514         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48515         is_jikes_present): Update.
48516         * lib/javaexec.c (execute_java_class): Update.
48517         * lib/javaversion.c (execute_and_read_line): Update.
48518         * NEWS: Document the changes.
48519         Reported by Eric Blake.
48520
48521 2008-06-10  Eric Blake  <ebb9@byu.net>
48522
48523         Add missing include.
48524         * tests/test-strstr.c (includes): Add <signal.h>.
48525         * tests/test-strcasestr.c (includes): Likewise.
48526         * tests/test-memmem.c (includes): Likewise.
48527
48528 2008-06-10  Bruno Haible  <bruno@clisp.org>
48529
48530         * lib/wait-process.c (wait_subprocess): Add an assertion.
48531
48532 2008-06-10  Bruno Haible  <bruno@clisp.org>
48533
48534         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48535
48536 2008-06-10  Bruno Haible  <bruno@clisp.org>
48537
48538         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48539         using alarm().
48540         * tests/test-strcasestr.c (main): Likewise.
48541         * tests/test-strstr.c (main): Likewise.
48542
48543 2008-06-09  Bruno Haible  <bruno@clisp.org>
48544
48545         Work around the Solaris 10 ACE ACLs ABI change.
48546         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48547         declare if ACL_NO_TRIVIAL is present.
48548         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48549         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48550         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48551         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48552         define if ACL_NO_TRIVIAL is present.
48553         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48554         and use the current ABI.
48555         (file_has_acl): Use same #if condition as elsewhere.
48556         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48557         in use, and use the current ABI.
48558         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48559         Reported by Jim Meyering.
48560
48561 2008-06-09  Eric Blake  <ebb9@byu.net>
48562
48563         Work around environments that (stupidly) ignore SIGALRM.
48564         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48565         before using alarm().
48566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48568         Reported by Ian Beckwith <ianb@erislabs.net>.
48569
48570         Produce autobuild blurb earlier in log.
48571         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48572
48573 2008-06-09  Jim Meyering  <meyering@redhat.com>
48574         and Ondřej Vašík  <ovasik@redhat.com>
48575
48576         utimens.c: correct kernel bug work-around
48577         Ondřej Vašík found that the invalid return value of 280 indicates
48578         failure, not success, and the kernel bug we're trying to work
48579         around affects not just the utimensat call, but also the fallback
48580         futimens call.
48581         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48582         not success.
48583         [HAVE_FUTIMENS]: Use the same work-around, here.
48584
48585 2008-06-09  Jim Meyering  <meyering@redhat.com>
48586
48587         add more guards around definition of ACE_-related code
48588         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48589         ALLOW and ACE_OWNER are also defined.
48590
48591 2008-06-08  Bruno Haible  <bruno@clisp.org>
48592
48593         * lib/acl-internal.h: Add me as co-author.
48594         * lib/file-has-acl.c: Likewise.
48595         * lib/set-mode-acl.c: Likewise.
48596         * lib/copy-acl.c: Likewise.
48597
48598 2008-06-08  Bruno Haible  <bruno@clisp.org>
48599
48600         Add support for AIX ACLs.
48601         * lib/acl-internal.h (acl_nontrivial): New declaration.
48602         * lib/file-has-acl.c (acl_nontrivial): New function.
48603         (file_has_acl): Add implementation using AIX 4 ACL API.
48604         * lib/set-mode-acl.c (qset_acl): Likewise.
48605         * lib/copy-acl.c (qcopy_acl): Likewise.
48606
48607 2008-06-08  Bruno Haible  <bruno@clisp.org>
48608
48609         Add support for HP-UX ACLs.
48610         * lib/acl-internal.h (acl_nontrivial): New declaration.
48611         * lib/file-has-acl.c (acl_nontrivial): New function.
48612         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48613         * lib/set-mode-acl.c (qset_acl): Likewise.
48614         * lib/copy-acl.c (qcopy_acl): Likewise.
48615
48616 2008-06-08  Bruno Haible  <bruno@clisp.org>
48617
48618         Add support for Cygwin ACLs.
48619         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48620         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48621         the chmod_or_fchmod call.
48622         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48623
48624 2008-06-08  Bruno Haible  <bruno@clisp.org>
48625
48626         Fix bug with setuid modes in Solaris 10+ code.
48627         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48628         succeeded, when the mode contains some special bits.
48629
48630 2008-06-08  Bruno Haible  <bruno@clisp.org>
48631
48632         Add support for Solaris 7..10 ACLs.
48633         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48634         declarations.
48635         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48636         functions.
48637         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48638         * lib/set-mode-acl.c (qset_acl): Likewise.
48639         * lib/copy-acl.c (qcopy_acl): Likewise.
48640
48641 2008-06-08  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48644         declaration.
48645         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48646         (acl_access_nontrivial): Remove MacOS X case.
48647         (file_has_acl): Use acl_extended_nontrivial.
48648         * lib/copy-acl.c (qcopy_acl): Likewise.
48649
48650 2008-06-08  Bruno Haible  <bruno@clisp.org>
48651
48652         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48653
48654 2008-06-08  Jim Meyering  <meyering@redhat.com>
48655
48656         * modules/acl (Maintainer): Add Bruno Haible.
48657
48658 2008-06-07  Bruno Haible  <bruno@clisp.org>
48659
48660         Improve support for Tru64 ACLs.
48661         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48662         ACL on OSF/1.
48663
48664 2008-06-07  Bruno Haible  <bruno@clisp.org>
48665
48666         Add support for MacOS X ACLs.
48667         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48668         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48669         * lib/set-mode-acl.c (qset_acl): Likewise.
48670         * lib/copy-acl.c (qcopy_acl): Likewise.
48671
48672 2008-06-07  Bruno Haible  <bruno@clisp.org>
48673
48674         Fix memory leak introduced on 2008-05-22.
48675         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48676         use.
48677
48678 2008-06-07  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48681         to construct an empty ACL.
48682
48683 2008-06-07  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48686         precisely.
48687         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48688
48689 2008-06-07  Bruno Haible  <bruno@clisp.org>
48690
48691         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48692         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48693
48694 2008-06-07  Bruno Haible  <bruno@clisp.org>
48695
48696         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48697         regardless of POSIX.
48698         * doc/posix-functions/_longjmp.texi: Likewise.
48699         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48700         SystemV platform in this case.
48701
48702 2008-06-06  Eric Blake  <ebb9@byu.net>
48703
48704         Document abort() bugs.
48705         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48706
48707         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48708         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48709         sigsetjmp.
48710         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48711         siglongjmp, but only as a macro.
48712         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48713         is obsolete.
48714         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48715
48716         Tweak documentation to cover cygwin argz bugs.
48717         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48718         argz bug fix; no code change needed since no cygwin releases
48719         occurred between the last fix and the bug being tested.
48720         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48721         module and recently fixed cygwin bugs.
48722         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48723         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48724         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48725         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48726         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48727         Likewise.
48728         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48729         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48730         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48731         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48732         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48733         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48734         Likewise.
48735
48736         Avoid gcc warning on cygwin.
48737         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48738         !ACL_NO_TRIVIAL]: Avoid unused variable.
48739
48740 2008-06-05  Eric Blake  <ebb9@byu.net>
48741
48742         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48743         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48744         git-version-gen fails to come up with a version.
48745         Reported by Simon Josefsson.
48746
48747 2008-06-05  Jim Meyering  <meyering@redhat.com>
48748             Paul Eggert  <eggert@cs.ucla.edu>
48749
48750         utimens.c: work around a probable Linux kernel bug
48751         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48752         appears to be a kernel bug that causes utimensat to return 280
48753         instead of 0, indicating success.
48754
48755 2008-06-04  Bruno Haible  <bruno@clisp.org>
48756
48757         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48758         2008-06-01 commit.
48759
48760 2008-06-04  Bruno Haible  <bruno@clisp.org>
48761
48762         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48763         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48764         (file_has_acl): Use it. Save errno afterwards.
48765         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48766
48767 2008-06-03  Bruno Haible  <bruno@clisp.org>
48768
48769         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48770         draft code. Simplify #ifs.
48771         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48772         Put Solaris code after POSIX-draft code. Fix comments regarding
48773         Solaris 10, HP-UX. Mention Cygwin.
48774         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48775
48776 2008-06-03  Eric Blake  <ebb9@byu.net>
48777
48778         Provide fallback for older kernels.
48779         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48780         Provide runtime fallback if kernel lacks support.
48781         Reported by Mike Frysinger.
48782
48783 2008-06-02  Bruno Haible  <bruno@clisp.org>
48784
48785         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48786         it exists.
48787
48788 2008-06-02  Bruno Haible  <bruno@clisp.org>
48789
48790         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48791         * lib/copy-acl.c (qcopy_acl): Update comment.
48792
48793 2008-06-02  Bruno Haible  <bruno@clisp.org>
48794
48795         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48796         like ACL APIs.
48797
48798 2008-06-02  Bruno Haible  <bruno@clisp.org>
48799
48800         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48801         * tests/test-set-mode-acl.sh: Likewise.
48802         * tests/test-copy-acl.sh: Likewise.
48803         * tests/test-copy-file.sh: Likewise.
48804
48805 2008-06-02  Bruno Haible  <bruno@clisp.org>
48806
48807         * tests/test-file-has-acl.sh: Remove unused code.
48808
48809 2008-06-01  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48812         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48813         messages.
48814         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48815
48816 2008-06-01  Bruno Haible  <bruno@clisp.org>
48817
48818         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48819         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48820         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48821         APIs.
48822         * modules/acl-tests (configure.ac): Remove tests now contained in
48823         m4/acl.m4.
48824
48825 2008-06-02  Jim Meyering  <meyering@redhat.com>
48826
48827         announce-gen: use a better key-server host name
48828         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48829         it may be more consistently reliable.  Suggested by Werner Koch
48830         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48831
48832 2008-06-01  Bruno Haible  <bruno@clisp.org>
48833
48834         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48835         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48836
48837 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48838
48839         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48840
48841 2008-06-01  Bruno Haible  <bruno@clisp.org>
48842
48843         New ACL tests.
48844         * tests/test-file-has-acl.sh: New file.
48845         * tests/test-file-has-acl.c: New file.
48846         * tests/test-set-mode-acl.sh: New file.
48847         * tests/test-set-mode-acl.c: New file.
48848         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48849         * tests/test-copy-acl.c: New file.
48850         * modules/acl-tests: New file, based on modules/copy-file-tests.
48851         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48852         (Depends-on): Add acl-tests.
48853         (configure.ac): Remove checks.
48854         (Makefile.am): Don't create test-sameacls program here any more.
48855
48856 2008-06-01  Bruno Haible  <bruno@clisp.org>
48857
48858         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48859         * tests/test-sameacls.c: Include progname.h.
48860         (main): Invoke set_program_name. Portability fixes for MacOS X,
48861         Solaris, HP-UX.
48862
48863 2008-06-01  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48866         function.
48867         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48868
48869 2008-06-01  Bruno Haible  <bruno@clisp.org>
48870
48871         * modules/rpmatch (Depends-on): Add strdup.
48872
48873 2008-06-01  Bruno Haible  <bruno@clisp.org>
48874
48875         * lib/pipe.c: Include unistd-safer.h.
48876         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48877         * modules/pipe (Depends-on): Add unistd-safer.
48878
48879 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48880
48881         * modules/autobuild (configure.ac): Call AB_INIT.
48882
48883 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48884
48885         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48886         Suggested by Bruno Haible <bruno@clisp.org>.
48887
48888 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48889
48890         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48891         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48892         <bruno@clisp.org>.
48893
48894 2008-05-29  Eric Blake  <ebb9@byu.net>
48895
48896         Prefer new POSIX 200x interfaces over futimesat.
48897         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48898         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48899         when available.
48900         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48901
48902 2008-05-28  Bruno Haible  <bruno@clisp.org>
48903
48904         * modules/stpcpy (License): Change to LGPLv2+.
48905         Requested by David Lutterkort <dlutter@redhat.com>.
48906
48907 2008-05-27  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48910         current mingw.
48911         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48912
48913 2008-05-27  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/iconv_open (Link): New section, from module 'iconv'.
48916         * modules/striconv (Link): Likewise.
48917         * modules/striconveh (Link): Likewise.
48918         * modules/xstriconv (Link): Likewise.
48919         * modules/unicodeio (Link): Likewise.
48920         * modules/propername (Link): Likewise.
48921         Reported by Jim Meyering.
48922
48923 2008-05-26  Jim Meyering  <meyering@redhat.com>
48924
48925         sha256: do not artificially restrict buffer length to be < 2^32
48926         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48927         uint32_t to size_t.
48928         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48929         to match.
48930
48931         avoid unaligned access errors, e.g., on sparc
48932         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48933         direct access through a possibly-unaligned uint64* pointer.
48934         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48935         direct access through a possibly-unaligned uint32* pointer.
48936         Prompted by this patch from Tom "spot" Callaway:
48937         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48938
48939         sha512.c: fix typo in comment
48940         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48941
48942 2008-05-25  Bruno Haible  <bruno@clisp.org>
48943
48944         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48945         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48946         (Makefile.am): Update lib_SOURCES.
48947
48948 2008-05-25  Bruno Haible  <bruno@clisp.org>
48949
48950         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48951
48952 2008-05-25  Jim Meyering  <meyering@redhat.com>
48953
48954         useless-if-before-free: freed expr may have white-space differences
48955         * build-aux/useless-if-before-free: Recognize cases in which the
48956         freed expression differs from the tested one in embedded white
48957         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48958         $1 was used, so we can't make any regexp shy.  Improved tests now
48959         detect this.
48960
48961         useless-if-before-free: accept white space in the expression.
48962         * build-aux/useless-if-before-free: For now, any white space
48963         in the expression must be identical in the free argument.
48964
48965         useless-if-before-free: efficiency tweak
48966         * build-aux/useless-if-before-free: Make the expression-matching
48967         regexp "shy".
48968         Make the *outer* regexp shy, not the expr-matching one.
48969
48970         update code-in-comment to accept cast of free arg
48971         * build-aux/useless-if-before-free: Update regexp.
48972
48973 2008-05-25  Bruno Haible  <bruno@clisp.org>
48974
48975         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48976         * modules/copy-file-tests (Files, Makefile.am): Update.
48977         * tests/test-copy-file.c (func_test_copy): Update.
48978
48979 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48980
48981         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48982
48983 2008-05-23  Bruno Haible  <bruno@clisp.org>
48984
48985         Improve support for ACLs on OSF/1.
48986         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48987         Remove fallback for unknown flavors of ACLs.
48988
48989 2008-05-22  Bruno Haible  <bruno@clisp.org>
48990
48991         Add support for ACLs on OSF/1.
48992         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48993         replacements.
48994         (acl_free_text): New macro fallback.
48995         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48996         acl_free.
48997         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48998         acl_free_text function. Require AC_C_INLINE.
48999
49000 2008-05-22  Bruno Haible  <bruno@clisp.org>
49001
49002         Make copy_acl work on MacOS X 10.5.
49003         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49004         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49005         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49006         If MODE_INSIDE_ACL, don't assume that every system has the same text
49007         representation for ACLs as FreeBSD.
49008         * lib/copy-acl.c (copy_acl): Add support for platforms with
49009         !MODE_INSIDE_ACL.
49010         * lib/file-has-acl.c (file_has_acl): Likewise.
49011         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49012         FreeBSD, MacOS X, or IRIX, respectively.
49013
49014 2008-05-22  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/acl.h: Don't include <sys/acl.h>.
49017         (GETACLCNT): Move fallback to lib/acl-internal.h.
49018         * lib/acl-internal.h: Include <sys/acl.h> here.
49019         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49020
49021 2008-05-22  Bruno Haible  <bruno@clisp.org>
49022
49023         Split off copy_acl function to separate file.
49024         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49025         * lib/acl.c (copy_acl): Moved function to separate file.
49026         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49027         * modules/acl (Files): Add lib/copy-acl.c.
49028         (Makefiles.am): Augment lib_SOURCES.
49029
49030 2008-05-22  Bruno Haible  <bruno@clisp.org>
49031
49032         * modules/copy-file-tests: New file.
49033         * tests/test-copy-file.sh: New file.
49034         * tests/test-copy-file.c: New file.
49035         * tests/test-copy-file-sameacls.c: New file.
49036
49037 2008-05-22  Eric Blake  <ebb9@byu.net>
49038
49039         Avoid gcc warning.
49040         * tests/test-memcmp.c (main): Pass NULL indirectly.
49041
49042 2008-05-21  Bruno Haible  <bruno@clisp.org>
49043
49044         Add reference doc about ACLs.
49045         * doc/acl-resources.txt: New file.
49046         * doc/acl-cygwin.txt: New file.
49047
49048 2008-05-21  Bruno Haible  <bruno@clisp.org>
49049
49050         Avoid one more warning from gcc.
49051         * lib/vasnprintf.c (IF_LINT): Update comments.
49052         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49053
49054 2008-05-21  Jim Meyering  <meyering@redhat.com>
49055
49056         avoid a warning from gcc
49057         * lib/vasnprintf.c (IF_LINT): Define.
49058         (scale10_round_decimal_long_double):
49059         Use it to avoid a "may be used uninitialized" warning.
49060         (scale10_round_decimal_double): Likewise.
49061
49062 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49063
49064         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49065         declared.
49066
49067 2008-05-20  Bruno Haible  <bruno@clisp.org>
49068
49069         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49070         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49071
49072 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49073
49074         * modules/memcmp-tests: New file.
49075         * tests/test-memcmp.c: New file.
49076
49077 2008-05-19  Bruno Haible  <bruno@clisp.org>
49078
49079         * modules/propername (Notice, configure.ac): Put quoted "..." into
49080         --keyword option.
49081         * lib/propername.h: Update comments accordingly.
49082         Reported by Eric Blake.
49083
49084 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49085
49086         * modules/getpass-gnu (Depends-on): Add fseeko.
49087
49088 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49089
49090         * modules/base64-tests: New file.
49091
49092 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49093
49094         * lib/base64.c (base64_decode_ctx): If a decode context structure
49095         was passed in use it to ignore newlines.  If a context structure
49096         was _not_ passed in, continue to treat newlines as garbage (this
49097         is the historical behavior).  Formerly base64_decode.
49098         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49099         takes a decode context structure.
49100         * lib/base64.h (base64_decode): Macro for four-argument calls.
49101         (base64_decode_alloc): Likewise.
49102         * lib/base64.c (base64_decode_ctx): If a decode context structure
49103         was passed in use it to ignore newlines.  If a context structure
49104         was _not_ passed in, continue to treat newlines as garbage (this
49105         is the historical behavior).  Formerly base64_decode.
49106         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49107         takes a decode context structure.
49108         * lib/base64.h (base64_decode): Macro for four-argument calls.
49109         (base64_decode_alloc): Likewise.
49110
49111 2008-05-19  Jim Meyering  <meyering@redhat.com>
49112
49113         avoid a warning from gcc
49114         * lib/trim.c (IF_LINT): Define.
49115         (trim2): Use it to avoid a "may be used uninitialized" warning.
49116
49117         Fix doc typo.
49118         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49119
49120 2008-05-19  Bruno Haible  <bruno@clisp.org>
49121
49122         * doc/glibc-functions/getpass.texi: Document limits of other
49123         implementations.
49124
49125 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49126             Bruno Haible <bruno@clisp.org>
49127
49128         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49129
49130 2008-05-18  Bruno Haible  <bruno@clisp.org>
49131
49132         * modules/propername: New file, from GNU gettext.
49133         * lib/propername.h: New file, from GNU gettext.
49134         * lib/propername.c: New file, from GNU gettext.
49135         * MODULES.html.sh (Internationalization functions): Add propername.
49136
49137 2008-05-16  Jim Meyering  <meyering@redhat.com>
49138             Bruno Haible  <bruno@clisp.org>
49139
49140         Avoid some warnings from "gcc -Wshadow".
49141         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49142
49143 2008-05-15  Eric Blake  <ebb9@byu.net>
49144
49145         Extend previous patch to cygwin 1.7.0.
49146         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49147         fast implementation in cygwin >= 1.7.0.
49148         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49150
49151 2008-05-15  Bruno Haible  <bruno@clisp.org>
49152
49153         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49154         implementation in glibc >= 2.9.
49155         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49157
49158 2008-05-15  Bruno Haible  <bruno@clisp.org>
49159
49160         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49161         (Unicode string functions): Add unilbrk/*.
49162         Reported by Karl Berry.
49163
49164 2008-05-15  Eric Blake  <ebb9@byu.net>
49165
49166         Fix violation of <stdbool.h> replacement in regex.
49167         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49168         * lib/regexec.c (re_search_internal): Likewise.
49169         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49170
49171 2008-05-15  Jim Meyering  <meyering@redhat.com>
49172
49173         avoid distracting test output when git or cvs is not found
49174         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49175         * tests/test-vc-list-files-git.sh: Likewise.
49176
49177 2008-05-15  Eric Blake  <ebb9@byu.net>
49178
49179         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49180         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49181         glibc version.
49182         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49183         * doc/posix-functions/strstr.texi (strstr): Likewise.
49184         * lib/str-two-way.h (MAX): Sychronize with glibc.
49185
49186 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49187
49188         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49189         opr.ctx_type.
49190         (calc_first): Initialize constraint field.
49191         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49192         Fix grammar.
49193         (duplicate_node): Merge constraint field for all node types.
49194         (calc_eclosure_iter): Look at constraint field for all node types.
49195         * lib/regex_internal.c (create_cd_newstate): Don't look at
49196         opr.ctx_type.
49197
49198 2008-05-14  Bruno Haible  <bruno@clisp.org>
49199
49200         Help GCC to do better code generation.
49201         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49202         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49203         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49204         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49205         Declare with attribute 'malloc' if supported.
49206
49207 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49208
49209         use "echo STR|wc -c" rather than unportable "expr length STR"
49210         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49211         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49212
49213 2008-05-14  Jim Meyering  <meyering@redhat.com>
49214
49215         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49216         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49217         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49218         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49219         via Collin Lasse.
49220
49221 2008-05-14  Eric Blake  <ebb9@byu.net>
49222
49223         Avoid quadratic growth in gl_LIBSOURCES.
49224         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49225         Suggested by Bruno Haible.
49226
49227         Test xmemdup0.
49228         * modules/xmemdup0-tests: New file.
49229         * tests/test-xmemdup0.c: Likewise.
49230
49231 2008-05-13  Eric Blake  <ebb9@byu.net>
49232
49233         Split xmemdup0 into its own module.
49234         * modules/xmemdup0: New file.
49235         * lib/xmemdup0.h: Likewise.
49236         * lib/xmemdup0.c: Likewise.
49237         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49238         * lib/xalloc.h (xmemdup0): Remove.
49239         * lib/xmalloc.c (xmemdup0): Likewise.
49240
49241 2008-05-13  Eric Blake  <ebb9@byu.net>
49242             Bruno Haible  <bruno@clisp.org>
49243
49244         Reduce number of forks required during autoconf.
49245         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49246         and gl_LIBSOURCES_DIR.
49247         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49248         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49249         m4_syscmd per file.
49250         <m4_foreach_w>: Move...
49251         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49252
49253 2008-05-13  Eric Blake  <ebb9@byu.net>
49254
49255         * gnulib-tool: Fix various comment typos.
49256
49257 2008-05-12  Bruno Haible  <bruno@clisp.org>
49258
49259         Tailor the linebreaking algorithm.
49260         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49261
49262 2008-05-12  Bruno Haible  <bruno@clisp.org>
49263
49264         Update to Unicode 5.0.0.
49265         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49266         LBP_JV, LBP_JT. Redistribute values.
49267         (unilbrk_table): Change size.
49268         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49269         Unicode TR#14 rev. 22.
49270         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49271         LBP_JV, LBP_JT. Redistribute values.
49272         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49273         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49274         Update.
49275         * lib/unilbrk/lbrkprop1.h: Regenerated.
49276         * lib/unilbrk/lbrkprop2.h: Regenerated.
49277         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49278         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49279         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49280         Likewise.
49281         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49282         Likewise.
49283         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49284         result.
49285         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49286         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49287         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49288         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49289         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49290         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49291
49292 2008-05-11  Bruno Haible  <bruno@clisp.org>
49293
49294         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49295
49296 2008-05-11  Bruno Haible  <bruno@clisp.org>
49297
49298         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49299         * modules/unilbrk/gen-lbrk: New file.
49300
49301 2008-05-11  Bruno Haible  <bruno@clisp.org>
49302
49303         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49304         * m4/sha512.m4 (gl_SHA512): Likewise.
49305
49306 2008-05-11  Jim Meyering  <meyering@redhat.com>
49307
49308         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49309         * modules/crypto/sha256: New file.
49310         * modules/crypto/sha512: Likewise.
49311         * lib/sha256.c: Likewise.
49312         * lib/sha256.h: Likewise.
49313         * lib/sha512.c: Likewise.
49314         * lib/sha512.h: Likewise.
49315         * lib/u64.h: Likewise.
49316         * m4/sha256.m4: Likewise.
49317         * m4/sha512.m4: Likewise.
49318         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49319
49320 2008-05-10  Bruno Haible  <bruno@clisp.org>
49321
49322         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49323         (Input/Output <stdio.h>): Add xprintf.
49324         (Signal handling <signal.h>): Add strsignal.
49325         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49326         (Core language properties): Add func.
49327         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49328         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49329         strings.
49330         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49331         (Input/output): New section.
49332         (File system functions): Add openat-die, stat-macros.
49333         (Networking functions): Add sockets.
49334         (Unicode string functions): Add unictype/*.
49335         (Support for building libraries and executables): Add gperf.
49336         (Support for building documentation): Add agpl-3.0.
49337         (Misc): Add nocrash.
49338
49339 2008-05-10  Bruno Haible  <bruno@clisp.org>
49340
49341         * modules/unictype/gen-ctype: New file.
49342
49343 2008-05-10  Jim Meyering  <meyering@redhat.com>
49344
49345         Make chdir-safer.c more efficient on a system with no symlinks.
49346         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49347         also if ELOOP is zero.  Suggested by Bruno Haible.
49348
49349         Make chdir-safer.c slightly safer.
49350         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49351         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49352
49353         Avoid compile failure on systems without ELOOP (like mingw).
49354         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49355         Reported by Bruno Haible.
49356
49357 2008-05-10  Bruno Haible  <bruno@clisp.org>
49358
49359         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49360         (is_utf8_encoding): Use a case-insensitive comparison.
49361         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49362         streq.
49363
49364 2008-05-10  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49367         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49368         * lib/unilbrk/ulc-common.h (iconv_string_length,
49369         iconv_string_keeping_offsets): Remove declarations.
49370         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49371         Don't include <iconv.h>, streq.h, xsize.h.
49372         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49373         conversion.
49374         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49375         <iconv.h>, streq.h, xsize.h.
49376         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49377         conversion.
49378         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49379         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49380         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49381         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49382
49383 2008-05-10  Bruno Haible  <bruno@clisp.org>
49384
49385         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49386         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49387
49388         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49389         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49390
49391         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49392         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49393
49394         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49395         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49396
49397         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49398         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49399
49400         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49401         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49402
49403         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49404         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49405
49406         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49407         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49408
49409 2008-05-10  Bruno Haible  <bruno@clisp.org>
49410
49411         Split up 'linebreak' module.
49412         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49413         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49414         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49415         modifications.
49416         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49417         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49418         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49419         lib/linebreak.c.
49420         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49421         lib/linebreak.c.
49422         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49423         lib/linebreak.c.
49424         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49425         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49426         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49427         lib/linebreak.c.
49428         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49429         lib/linebreak.c.
49430         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49431         lib/linebreak.c.
49432         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49433         lib/linebreak.c.
49434         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49435         lib/linebreak.c.
49436         * modules/unilbrk/base: New file.
49437         * modules/unilbrk/tables: New file.
49438         * modules/unilbrk/u8-possible-linebreaks: New file.
49439         * modules/unilbrk/u16-possible-linebreaks: New file.
49440         * modules/unilbrk/u32-possible-linebreaks: New file.
49441         * modules/unilbrk/ulc-common: New file.
49442         * modules/unilbrk/ulc-possible-linebreaks: New file.
49443         * modules/unilbrk/u8-width-linebreaks: New file.
49444         * modules/unilbrk/u16-width-linebreaks: New file.
49445         * modules/unilbrk/u32-width-linebreaks: New file.
49446         * modules/unilbrk/ulc-width-linebreaks: New file.
49447         * lib/linebreak.h: Remove file.
49448         * lib/linebreak.c: Remove file.
49449         * m4/linebreak.m4: Remove file.
49450         * modules/linebreak: Remove file.
49451         * NEWS: Mention the changes.
49452
49453 2008-05-09  Eric Blake  <ebb9@byu.net>
49454
49455         Add xmemdup0.
49456         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49457         implementation.
49458         * lib/xmalloc.c (xmemdup0): New C implementation.
49459
49460 2008-05-08  Bruno Haible  <bruno@clisp.org>
49461
49462         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49463
49464 2008-05-07  Eric Blake  <ebb9@byu.net>
49465
49466         Support cross-compilation of <wctype.h>.
49467         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49468         AC_CACHE_CHECK.
49469
49470 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49471
49472         * build-aux/vc-list-files: Add support for bzr.
49473
49474 2008-05-03  Jim Meyering  <meyering@redhat.com>
49475
49476         avoid failed assertion with tight malloc
49477         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49478
49479 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49480
49481         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49482         are needed from arpa/inet.h.
49483         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49484         Reported by Bruno Haible.
49485
49486 2008-05-02  Jim Meyering  <meyering@redhat.com>
49487
49488         avoid compilation error on FreeBSD 6
49489         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49490
49491 2008-05-01  Jim Meyering  <meyering@redhat.com>
49492
49493         useless-if-before-free: correct --help's exit status description
49494         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49495         for one or more matches, etc.  Reported by Bruno Haible.
49496
49497         vc-list-files: make the stand-alone gnulib test work
49498         * modules/vc-list-files-tests (configure.ac):
49499         Define and AC_SUBST abs_aux_dir.
49500         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49501         $(abs_top_srcdir) to each script and having each of them
49502         duplicate the work of setting PATH, set PATH here, using
49503         the new variable, abs_aux_dir instead.
49504         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49505         * tests/test-vc-list-files-git.sh: Likewise.
49506         Reported by Bruno Haible.
49507
49508 2008-05-01  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49511         reallocation. Rename 'done' to 'found_delimiter'.
49512
49513 2008-05-01  Jim Meyering  <meyering@redhat.com>
49514
49515         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49516         * build-aux/vc-list-files: Use `...`, not $(...).
49517
49518 2008-04-30  Jim Meyering  <meyering@redhat.com>
49519
49520         add tests for vc-list-files
49521         * modules/vc-list-files-tests: New module.
49522         * tests/test-vc-list-files-cvs.sh: New file.
49523         * tests/test-vc-list-files-git.sh: New file.
49524
49525         avoid a warning from gcc
49526         * lib/getndelim2.c (IF_LINT): Define.
49527         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49528
49529         vc-list-files: work properly with build-aux/cvsu, too
49530         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49531         to all cvs-based clauses.
49532
49533         vc-list-files: work properly in the CVS+awk case, too
49534         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49535
49536         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49537         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49538         take more than one file argument, so .  Add quotes, just in case $dir
49539         ever contains a shell meta-character.  Prompted by Soren Hansen in
49540         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49541
49542 2008-04-29  Eric Blake  <ebb9@byu.net>
49543
49544         Optimize getndelim2 to use block operations when possible.
49545         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49546         freadseek, and memchr2.
49547         * lib/getndelim2.c (getndelim2): Use them for block reads.
49548
49549 2008-04-29  Bruno Haible  <bruno@clisp.org>
49550
49551         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49552         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49553         * modules/inet_ntop (Depends-on): Add extensions.
49554         * modules/inet_pton (Depends-on): Likewise.
49555         Reported by Simon Josefsson.
49556
49557 2008-04-29  Jim Meyering  <meyering@redhat.com>
49558
49559         When the is more than one match in a block, match all of them.
49560         * build-aux/useless-if-before-free: Iterate through each block
49561         until there are no more matches.
49562
49563         Fix broken useless-if-before-free script.
49564         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49565         the expression to match cast of argument to free-like function.
49566
49567 2008-04-29  Eric Blake  <ebb9@byu.net>
49568
49569         Use new header.
49570         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49571
49572 2008-04-29  Jim Meyering  <meyering@redhat.com>
49573
49574         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49575         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49576         by gnulib to exist and to declare e.g., inet_ntop.
49577         Don't include "inet_ntop.h", now removed.
49578
49579         * m4/arpa_inet_h.m4: Remove trailing blanks.
49580
49581 2008-04-29  Eric Blake  <ebb9@byu.net>
49582
49583         Silence valgrind on safe reads beyond potential array bounds.
49584         * lib/rawmemchr.valgrind: New file.
49585         * lib/strchrnul.valgrind: Likewise.
49586         * modules/rawmemchr (Files): Distribute new file.
49587         * modules/strchrnul (Files): Likewise.
49588         Suggested by Bruno Haible.
49589
49590 2008-04-29  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49593         (inet_ntop, inet_pton): Change portability warning's wording.
49594         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49595         Invoke gl_CHECK_NEXT_HEADERS.
49596         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49597         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49598         set ARPA_INET_H.
49599         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49600         * modules/arpa_inet (Description): No longer only for systems that
49601         lack it.
49602         (Depends-on): Add include_next.
49603         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49604         HAVE_ARPA_INET_H.
49605
49606 2008-04-29  Jim Meyering  <meyering@redhat.com>
49607
49608         * modules/mkdir (License): Re-license as LGPLv2+.
49609
49610 2008-04-29  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/rawmemchr (Maintainer): Set to Eric.
49613         * modules/strchrnul (Maintainer): Likewise.
49614
49615 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49616
49617         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49618         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49619
49620         * modules/arpa_inet (arpa/inet.h): Use them.
49621
49622 2008-04-28  Eric Blake  <ebb9@byu.net>
49623
49624         Test getndelim2.
49625         * modules/getndelim2-tests: New file.
49626         * tests/test-getndelim2.c: Likewise.
49627         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49628         stream.
49629         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49630
49631         * MODULES.html.sh: Document new module.
49632
49633 2008-04-20  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/c-stack.c (die): Use raise.
49636         * modules/c-stack (Depends-on): Add raise.
49637
49638 2008-04-28  Bruno Haible  <bruno@clisp.org>
49639
49640         Expect rpmatch to be declared.
49641         * lib/yesno.c (rpmatch): Remove declaration.
49642
49643         Declare rpmatch.
49644         * lib/stdlib.in.h (rpmatch): New declaration.
49645         * lib/rpmatch.c: Include <stdlib.h> first.
49646         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49647         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49649         HAVE_RPMATCH.
49650         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49651         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49652         (Include): Set to <stdlib.h>.
49653         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49654         HAVE_RPMATCH.
49655         * NEWS: Document the change.
49656
49657 2008-04-28  Bruno Haible  <bruno@clisp.org>
49658
49659         Change rpmatch to use nl_langinfo when appropriate.
49660         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49661         (N_): New macro.
49662         (localized_pattern): New function/macro.
49663         (try): Remove match, nomatch arguments. Copy the pattern into safe
49664         memory before caching it.
49665         (rpmatch): Use localized_pattern. Add translator comments.
49666         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49667         Suggested by Eric Blake.
49668         * modules/rpmatch (Depends-on): Add stdbool.
49669
49670 2008-04-28  Eric Blake  <ebb9@byu.net>
49671
49672         Add rawmemchr module, matching glibc.
49673         * modules/string (Makefile.am): New indicator.
49674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49675         * lib/string.in.h (rawmemchr): Declare when appropriate.
49676         * modules/rawmemchr: New file.
49677         * m4/rawmemchr.m4: Likewise.
49678         * lib/rawmemchr.c: Likewise.
49679         * modules/rawmemchr-tests: Likewise.
49680         * tests/test-rawmemchr.c: Likewise.
49681         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49682         module.
49683         * modules/strchrnul (Depends-on): Add rawmemchr.
49684         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49685
49686         Whitespace cleanup.
49687         * tests/test-strchrnul.c: Reindent.
49688         * lib/strchrnul.c: Likewise.
49689
49690         Optimize and test strchrnul.
49691         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49692         * modules/strchrnul-tests: New file.
49693         * tests/test-strchrnul.c: Likewise.
49694
49695         Remove intprops dependency.
49696         * modules/memchr (Depends-on): Remove intprops.
49697         * modules/memrchr (Depends-on): Likewise.
49698         * modules/memchr2 (Depends-on): Likewise.
49699         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49700         * lib/memrchr.c (__memrchr): Likewise.
49701         * lib/memrchr2.c (memchr2): Likewise.
49702         Reported by Simon Josefsson.
49703
49704 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49705
49706         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49707         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49708
49709 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49710
49711         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49712
49713         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49714
49715         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49716
49717         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49718         declarations.
49719         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49720
49721         * m4/inet_pton.m4: Don't check for header files.
49722
49723         * m4/inet_ntop.m4: Don't check for header files.
49724
49725 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49726
49727         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49728         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49729         trigger for cygwin).
49730         Reported by Bruno Haible  <bruno@clisp.org>.
49731
49732 2008-04-28  Bruno Haible  <bruno@clisp.org>
49733
49734         * doc/posix-functions/strdup.texi: Mention mingw problem.
49735
49736 2008-04-27  Bruno Haible  <bruno@clisp.org>
49737
49738         * modules/stat-time-tests (Depends-on): Add sleep.
49739         * tests/test-stat-time.c (force_unlink): New function.
49740         (cleanup): Use it.
49741         (test_mtime): Remove the ctime related tests.
49742         (test_ctime): New function, containing the ctime related tests.
49743         (main): Call test_ctime, except on native Windows platforms.
49744
49745 2008-04-27  Bruno Haible  <bruno@clisp.org>
49746
49747         * lib/rpmatch.c (rpmatch): Add some comments.
49748         Reported by James Youngman <jay@gnu.org>.
49749
49750 2008-04-27  Bruno Haible  <bruno@clisp.org>
49751
49752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49753         quiet NaNs.
49754
49755 2008-04-27  Bruno Haible  <bruno@clisp.org>
49756
49757         Make test-yesno.sh work on mingw.
49758         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49759         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49760         (main): Set stdin to binary mode.
49761         * modules/yesno-tests (Depends-on): Add binary-io.
49762
49763 2008-04-27  Bruno Haible  <bruno@clisp.org>
49764
49765         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49766         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49767         argument that lie outside the IEEE 854 domain.
49768         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49769         (gl_ISFINITE): Use it.
49770         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49771
49772 2008-04-27  Bruno Haible  <bruno@clisp.org>
49773
49774         Allow local renaming in config.h.
49775         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49776
49777 2008-04-27  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/memchr.c (__memchr): Change type of 'i'.
49780         * lib/memchr2.c (memchr2): Likewise.
49781
49782 2008-04-26  Eric Blake  <ebb9@byu.net>
49783         and Bruno Haible  <bruno@clisp.org>
49784
49785         Optimize and test memrchr.
49786         * modules/memrchr (Depends-on): Add intprops.
49787         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49788         * modules/memrchr-tests: New file.
49789         * tests/test-memrchr.c: New file.
49790
49791 2008-04-26  Bruno Haible  <bruno@clisp.org>
49792
49793         Add tentative support for DragonFly BSD.
49794         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49795         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49796         fp.
49797         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49798         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49799         * lib/fpurge.c (fpurge): Likewise.
49800         * lib/freadable.c (freaadable): Likewise.
49801         * lib/freadahead.c (freadahead): Likewise.
49802         * lib/freading.c (freading): Likewise.
49803         * lib/freadptr.c (freadptr): Likewise.
49804         * lib/freadseek.c (freadptrinc): Likewise.
49805         * lib/fseeko.c (fseeko): Likewise.
49806         * lib/fseterr.c (fseterr): Likewise.
49807         * lib/fwritable.c (fwritable): Likewise.
49808         * lib/fwriting.c (fwriting): Likewise.
49809
49810 2008-04-26  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/stdio-impl.h: New file.
49813         * lib/fbufmode.c: Include stdio-impl.h.
49814         (fbufmode): Use fp_, remove redundant #defines.
49815         * lib/fflush.c: Include stdio-impl.h.
49816         (clear_ungetc_buffer): Remove redundant #defines.
49817         * lib/fpurge.c: Include stdio-impl.h.
49818         (fpurge): Remove redundant #defines.
49819         * lib/freadable.c: Include stdio-impl.h.
49820         (freadable): Remove redundant #defines.
49821         * lib/freadahead.c: Include stdio-impl.h.
49822         (freadahead): Remove redundant #defines.
49823         * lib/freading.c: Include stdio-impl.h.
49824         (freading): Remove redundant #defines.
49825         * lib/freadptr.c: Include stdio-impl.h.
49826         (freadptr): Remove redundant #defines.
49827         * lib/freadseek.c: Include stdio-impl.h.
49828         (freadptrinc): Remove redundant #defines.
49829         * lib/fseeko.c: Include stdio-impl.h.
49830         (rpl_fseeko): Remove redundant #defines.
49831         * lib/fseterr.c: Include stdio-impl.h.
49832         (fseterr): Remove redundant #defines.
49833         * lib/fwritable.c: Include stdio-impl.h.
49834         (fwritable: Remove redundant #defines.
49835         * lib/fwriting.c: Include stdio-impl.h.
49836         (fwriting): Remove redundant #defines.
49837         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49838         * modules/fflush (Files): Likewise.
49839         * modules/fpurge (Files): Likewise.
49840         * modules/freadable (Files): Likewise.
49841         * modules/freadahead (Files): Likewise.
49842         * modules/freading (Files): Likewise.
49843         * modules/freadptr (Files): Likewise.
49844         * modules/freadseek (Files): Likewise.
49845         * modules/fseeko (Files): Likewise.
49846         * modules/fseterr (Files): Likewise.
49847         * modules/fwritable (Files): Likewise.
49848         * modules/fwriting (Files): Likewise.
49849
49850 2008-04-26  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49853         restore_seek_optimization, update_fpos_cache): New functions, extracted
49854         from rpl_fflush.
49855         (rpl_fflush): Use them.
49856         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49857         (gl_REPLACE_FFLUSH): Use it.
49858
49859 2008-04-26  Bruno Haible  <bruno@clisp.org>
49860
49861         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49862         on Solaris.
49863         * tests/test-xstrtoimax.sh: Likewise.
49864         * tests/test-xstrtoumax.sh: Likewise.
49865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49866
49867 2008-04-26  Bruno Haible  <bruno@clisp.org>
49868
49869         * modules/memchr-tests: New file.
49870         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49871
49872 2008-04-26  Eric Blake  <ebb9@byu.net>
49873             Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/memchr.c: Include intprops.h.
49876         (__memchr): Optimize parallel detection of matching bytes. Rename local
49877         variables. Add explanatory comments.
49878
49879 2008-04-26  Bruno Haible  <bruno@clisp.org>
49880
49881         Fix module 'memchr', broken since 2000-10-28.
49882         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49883
49884 2008-04-26  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49887         comments.
49888
49889 2008-04-25  Eric Blake  <ebb9@byu.net>
49890
49891         Use native fstatat on cygwin 1.7.0.
49892         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49893         first.
49894
49895 2008-04-23  Eric Blake  <ebb9@byu.net>
49896
49897         Improve memchr2 performance.
49898         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49899         NUL bytes.
49900         * modules/memchr2 (Depends-on): Use intprops.h.
49901
49902 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49903
49904         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49905         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49906         <blp@cs.stanford.edu>.
49907
49908 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49909
49910         * lib/arpa_inet.in.h: New file.
49911
49912         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49913         (Makefile.am): Sed in substitute header file.
49914
49915         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49916         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49917
49918         * modules/inet_ntop (configure.ac): Use
49919         gl_ARPA_INET_MODULE_INDICATOR.
49920
49921         * modules/inet_pton (configure.ac): Use
49922         gl_ARPA_INET_MODULE_INDICATOR.
49923
49924 2008-04-22  Jim Meyering  <meyering@redhat.com>
49925
49926         * modules/verify (License): Re-license as LGPLv2+.
49927
49928 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49929
49930         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49931         parameter to void* as per POSIX standard (MinGW uses char*).
49932
49933 2008-04-21  Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49936         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49937         Define to replacements if REPLACE_ISWCNTRL is 1.
49938         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49939         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49940         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49941         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49942         what it fixes.
49943         * doc/posix-functions/iswalpha.texi: Likewise.
49944         * doc/posix-functions/iswblank.texi: Likewise.
49945         * doc/posix-functions/iswcntrl.texi: Likewise.
49946         * doc/posix-functions/iswdigit.texi: Likewise.
49947         * doc/posix-functions/iswgraph.texi: Likewise.
49948         * doc/posix-functions/iswlower.texi: Likewise.
49949         * doc/posix-functions/iswprint.texi: Likewise.
49950         * doc/posix-functions/iswpunct.texi: Likewise.
49951         * doc/posix-functions/iswspace.texi: Likewise.
49952         * doc/posix-functions/iswupper.texi: Likewise.
49953         * doc/posix-functions/iswxdigit.texi: Likewise.
49954         Reported by Alain Guibert.
49955
49956 2008-04-21  Bruno Haible  <bruno@clisp.org>
49957
49958         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49959         Patch by Alain Guibert.
49960
49961 2008-04-21  Bruno Haible  <bruno@clisp.org>
49962
49963         Fix test failures on mingw.
49964         * tests/test-xstrtol.c (print_no_progname): New function.
49965         (main): Install it in error_print_progname hook.
49966         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49967         * tests/test-xstrtoimax.sh: Likewise.
49968         * tests/test-xstrtoumax.sh: Likewise.
49969
49970 2008-04-21  Bruno Haible  <bruno@clisp.org>
49971
49972         Fix test failure on mingw.
49973         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49974
49975 2008-04-21  Bruno Haible  <bruno@clisp.org>
49976
49977         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49978         Actually assign a value.
49979
49980 2008-04-20  Bruno Haible  <bruno@clisp.org>
49981
49982         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49983         take 2.
49984         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49985         'canonicalize-lgpl' module is also used.
49986         * lib/canonicalize-lgpl.c: Undo last change.
49987         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49988
49989 2008-04-20  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49992         config.h. Provide _mkdir based fallback for mingw.
49993         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49994         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49995         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49996         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49997         rather than defining mkdir in config.h.
49998         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49999         (gl_SYS_STAT_H_DEFAULTS): New macro.
50000         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50001         HAVE_IO_H any more.
50002         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50003         HAVE_DECL_MKDIR and HAVE_IO_H.
50004
50005 2008-04-20  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/isapipe.c: Port to native Windows platforms.
50008
50009 2008-04-20  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50012
50013 2008-04-21  Eric Blake  <ebb9@byu.net>
50014
50015         Work around preprocessors that don't handle UINTMAX_MAX.
50016         * lib/memchr2.c (memchr2): Avoid embedded #if.
50017         Reported by Alain Guibert, fix suggested by Bruno Haible.
50018
50019 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50020
50021         * doc/posix-functions/strftime.texi (strftime): Explain better
50022         Windows incompatibility.  Suggested by Micah Cowan
50023         <micah@cowan.name>.
50024
50025 2008-04-20  Bruno Haible  <bruno@clisp.org>
50026
50027         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50028         unistr/u8-mblen.
50029
50030 2008-04-20  Bruno Haible  <bruno@clisp.org>
50031
50032         Fix test failure on platforms with non-GNU iconv.
50033         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50034         (U_TO_U8): Use it, rather than u16_to_u8.
50035         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50036         units at the end of the input string.
50037         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50038
50039 2008-04-20  Bruno Haible  <bruno@clisp.org>
50040
50041         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50042         when the resulting length is 0.
50043         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50044
50045 2008-04-20  Bruno Haible  <bruno@clisp.org>
50046
50047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50048         works.
50049         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50050
50051 2008-04-20  Bruno Haible  <bruno@clisp.org>
50052
50053         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50054         * modules/tsearch-tests (configure.ac): Test for initstate function.
50055
50056 2008-04-20  Bruno Haible  <bruno@clisp.org>
50057
50058         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50059         for nlink_t if missing.
50060         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50061
50062 2008-04-19  Bruno Haible  <bruno@clisp.org>
50063
50064         Work around snprintf bug on Linux libc5.
50065         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50067         gl_SNPRINTF_SIZE1.
50068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50069         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50070         that test failed.
50071         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50072         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50073         * modules/snprintf (Files): Add m4/printf.m4.
50074         * modules/vsnprintf (Files): Likewise.
50075         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50076         * doc/posix-functions/vsnprintf.texi: Likewise.
50077
50078 2008-04-19  Bruno Haible  <bruno@clisp.org>
50079
50080         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50081         from 0.0058 to less than 10^-7.
50082
50083 2008-04-19  Bruno Haible  <bruno@clisp.org>
50084
50085         Fix rounding when a precision is given.
50086         * lib/vasnprintf.c (is_borderline): New function.
50087         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50088         9...9x.
50089         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50090         %e, %g.
50091         * tests/test-vasprintf-posix.c (test_function): Likewise.
50092         * tests/test-snprintf-posix.h (test_function): Likewise.
50093         * tests/test-sprintf-posix.h (test_function): Likewise.
50094         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50095         * tests/test-printf-posix.h (test_function): Likewise.
50096         * tests/test-printf-posix.output: Update.
50097         Reported by John Darrington <john@darrington.wattle.id.au> via
50098         Ben Pfaff <blp@cs.stanford.edu>.
50099
50100 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50101
50102         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50103         Suggested by Bruno Haible <bruno@clisp.org>.
50104
50105 2008-04-17  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50108         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50109         implementation.
50110         Patch by Bruce Merry <bmerry@gmail.com>.
50111
50112 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50113
50114         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50115         doesn't work under Windows.
50116
50117 2008-04-16  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50120         New macros.
50121         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50122         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50123         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50124         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50125         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50126         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50127         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50128         macros.
50129         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50130         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50131         Northern Sotho, Uighur.
50132
50133 2008-04-16  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50136         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50137         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50138         Reported by Daniel Bergström <daniel@octocode.com>.
50139
50140 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50141             Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50144         function.
50145         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50146         New functions, mostly extracted from gl_locale_name_default.
50147         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50148
50149 2008-04-16  Eric Blake  <ebb9@byu.net>
50150
50151         Adjust strtod detection to catch glibc 2.7 bug.
50152         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50153         Reported by John Gatewood Ham.
50154
50155 2008-04-16  Bruno Haible  <bruno@clisp.org>
50156
50157         Add tentative support for Linux libc5.
50158         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50159         * lib/fpurge.c (fpurge): Likewise.
50160         * lib/freadable.c (freadable): Likewise.
50161         * lib/freadahead.c (freadahead): Likewise.
50162         * lib/freading.c (freading): Likewise.
50163         * lib/freadptr.c (freadptr): Likewise.
50164         * lib/freadseek.c (freadptrinc): Likewise.
50165         * lib/fseeko.c (rpl_fseeko): Likewise.
50166         * lib/fseterr.c (fseterr): Likewise.
50167         * lib/fwritable.c (fwritable): Likewise.
50168         * lib/fwriting.c (fwriting): Likewise.
50169         Reported by Alain Guibert <alguibert+bts@free.fr>.
50170
50171 2008-04-15  Bruno Haible  <bruno@clisp.org>
50172
50173         * modules/mathl (configure.ac): Define module indicator.
50174
50175 2008-04-15  Bruno Haible  <bruno@clisp.org>
50176
50177         * lib/logl.c (logl): Remove unused variables.
50178
50179 2008-04-15  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50182         fails.
50183
50184 2008-04-15  Bruno Haible  <bruno@clisp.org>
50185
50186         * lib/trim.c (trim2): Fix argument of isspace() macro.
50187
50188 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50189
50190         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50191         to 0.
50192         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50193
50194 2008-04-14  Bruno Haible  <bruno@clisp.org>
50195
50196         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50197         AC_LANG_PROGRAM argument.
50198         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50199         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50201         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50202         * m4/math_h.m4 (gl_MATH_H): Likewise.
50203         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50205         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50206         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50207         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50208         * m4/regex.m4 (gl_REGEX): Likewise.
50209         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50210         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50212         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50213         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50214         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50217
50218 2008-04-14  Jim Meyering  <meyering@redhat.com>
50219
50220         test-strtod: fix typos: s/abs/fabs/
50221         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50222
50223 2008-04-13  Bruno Haible  <bruno@clisp.org>
50224
50225         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50226         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50227         module is also used and while not building the reloc-wrapper.
50228
50229 2008-04-13  Bruno Haible  <bruno@clisp.org>
50230
50231         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50232
50233 2008-04-13  Bruno Haible  <bruno@clisp.org>
50234
50235         Fix AIX compilation failure introduced on 2008-04-02.
50236         * tests/test-frexp.c (exp): Undefine before redefining.
50237         * tests/test-frexpl.c (exp): Likewise.
50238
50239 2008-04-13  Bruno Haible  <bruno@clisp.org>
50240
50241         Work around a HP-UX stdio bug.
50242         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50243         * tests/test-ftello.c (main): Likewise.
50244         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50245         * doc/posix-functions/ftello.texi: Likewise.
50246
50247 2008-04-13  Bruno Haible  <bruno@clisp.org>
50248
50249         Make test-signbit pass on HP-UX/hppa.
50250         * tests/test-signbit.c (minus_zerol): New variable.
50251         (test_signbitl): Use it.
50252
50253 2008-04-13  Bruno Haible  <bruno@clisp.org>
50254
50255         Make truncl work on OSF/1 4.0.
50256         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50257         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50258         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50260         HAVE_DECL_TRUNCL.
50261         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50262         HAVE_DECL_TRUNCL.
50263         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50264
50265 2008-04-13  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50268
50269 2008-04-13  Bruno Haible  <bruno@clisp.org>
50270
50271         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50272         expression, so as to avoid HP-UX 11 cc compiler bug.
50273
50274 2008-04-13  Bruno Haible  <bruno@clisp.org>
50275
50276         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50277
50278 2008-04-13  Bruno Haible  <bruno@clisp.org>
50279
50280         * lib/git-merge-changelog.c: Remove empty declaration outside of
50281         functions.
50282
50283 2008-04-13  Bruno Haible  <bruno@clisp.org>
50284
50285         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50286
50287 2008-04-13  Bruno Haible  <bruno@clisp.org>
50288
50289         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50290         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50291         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50292         also if it exists but lacks definitions of the SHUT_* macros.
50293         * modules/sys_socket (Description): Update.
50294         Reported by Elbert Pol <e.pol@chello.nl>.
50295
50296 2008-04-13  Bruno Haible  <bruno@clisp.org>
50297
50298         * lib/localcharset.c (OS2): Don't redefine if already defined.
50299         Reported by Elbert Pol <e.pol@chello.nl>.
50300
50301 2008-04-13  Bruno Haible  <bruno@clisp.org>
50302
50303         * lib/binary-io.h [__EMX__]: Include <io.h>.
50304         Reported by Elbert Pol <e.pol@chello.nl>.
50305
50306 2008-04-12  Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/fpucw.h: Enable the definitions also for x86_64.
50309         Needed for NetBSD/x86_64.
50310         Reported by Thomas Klausner <tk@giga.or.at>.
50311
50312 2008-04-12  Bruno Haible  <bruno@clisp.org>
50313
50314         * tests/test-strtod.c: Include isnand.h.
50315         (main): Use isnand instead of isnan.
50316         Reported by Jim Meyering.
50317
50318 2008-04-12  Bruno Haible  <bruno@clisp.org>
50319
50320         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50321         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50322
50323 2008-04-12  Jim Meyering  <meyering@redhat.com>
50324
50325         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50326
50327 2008-04-12  Bruno Haible  <bruno@clisp.org>
50328
50329         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50330         Reported by Elbert Pol <e.pol@chello.nl>.
50331
50332 2008-04-12  Eric Blake  <ebb9@byu.net>
50333
50334         Work around Solaris 10 math.h bug.
50335         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50336         (gl_MATH_H_DEFAULTS): Set up default.
50337         * modules/math (Makefile.am): Replace new indicators.
50338         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50339         * tests/test-math.c (main): Test this.
50340         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50341         * doc/posix-headers/math.texi (math.h): Mention bug.
50342         Reported by Nelson H. F. Beebe and Jim Meyering.
50343
50344 2008-04-11  Bruno Haible  <bruno@clisp.org>
50345
50346         Adapt to future versions of Apple GCC.
50347         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50348         Reported by Peter O'Gorman <peter@pogma.com>.
50349
50350 2008-04-11  Bruno Haible  <bruno@clisp.org>
50351
50352         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50353
50354 2008-04-11  Bruno Haible  <bruno@clisp.org>
50355
50356         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50357
50358         * modules/getaddrinfo-tests (Makefile.am): Define
50359         test_getaddrinfo_LDADD.
50360
50361 2008-04-11  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50364         (init): Fix syntax error.
50365         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50366         is declared.
50367
50368 2008-04-11  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50371         * modules/glob (Depends-on): Add stdbool.
50372
50373 2008-04-11  Bruno Haible  <bruno@clisp.org>
50374
50375         * lib/trim.c: Include <string.h>.
50376
50377 2008-04-11  Eric Blake  <ebb9@byu.net>
50378
50379         Avoid compile failure on OS/2.
50380         * lib/regex_internal.h (internal_function): Disable optimization
50381         on OS/2 (__EMX__), where it caused compiler error.
50382         Reported by Elbert Pol.
50383
50384 2008-04-11  Bruno Haible  <bruno@clisp.org>
50385
50386         Flush the standard error stream before aborting. Needed on mingw.
50387         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50388         * tests/test-array_list.c (ASSERT): Likewise.
50389         * tests/test-array_oset.c (ASSERT): Likewise.
50390         * tests/test-avltree_list.c (ASSERT): Likewise.
50391         * tests/test-avltree_oset.c (ASSERT): Likewise.
50392         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50393         * tests/test-binary-io.c (ASSERT): Likewise.
50394         * tests/test-byteswap.c (ASSERT): Likewise.
50395         * tests/test-c-ctype.c (ASSERT): Likewise.
50396         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50397         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50398         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50399         * tests/test-c-strstr.c (ASSERT): Likewise.
50400         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50401         * tests/test-canonicalize.c (ASSERT): Likewise.
50402         * tests/test-carray_list.c (ASSERT): Likewise.
50403         * tests/test-ceilf1.c (ASSERT): Likewise.
50404         * tests/test-ceilf2.c (ASSERT): Likewise.
50405         * tests/test-ceill.c (ASSERT): Likewise.
50406         * tests/test-count-one-bits.c (ASSERT): Likewise.
50407         * tests/test-fbufmode.c (ASSERT): Likewise.
50408         * tests/test-fflush2.c (ASSERT): Likewise.
50409         * tests/test-floorf1.c (ASSERT): Likewise.
50410         * tests/test-floorf2.c (ASSERT): Likewise.
50411         * tests/test-floorl.c (ASSERT): Likewise.
50412         * tests/test-fopen.c (ASSERT): Likewise.
50413         * tests/test-fpending.c (ASSERT): Likewise.
50414         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50415         * tests/test-fpurge.c (ASSERT): Likewise.
50416         * tests/test-freadable.c (ASSERT): Likewise.
50417         * tests/test-freadahead.c (ASSERT): Likewise.
50418         * tests/test-freading.c (ASSERT): Likewise.
50419         * tests/test-freadptr.c (ASSERT): Likewise.
50420         * tests/test-freadptr2.c (ASSERT): Likewise.
50421         * tests/test-freadseek.c (ASSERT): Likewise.
50422         * tests/test-freopen.c (ASSERT): Likewise.
50423         * tests/test-frexp.c (ASSERT): Likewise.
50424         * tests/test-frexpl.c (ASSERT): Likewise.
50425         * tests/test-fseek.c (ASSERT): Likewise.
50426         * tests/test-fseeko.c (ASSERT): Likewise.
50427         * tests/test-fstrcmp.c (ASSERT): Likewise.
50428         * tests/test-ftell.c (ASSERT): Likewise.
50429         * tests/test-ftello.c (ASSERT): Likewise.
50430         * tests/test-func.c (ASSERT): Likewise.
50431         * tests/test-fwritable.c (ASSERT): Likewise.
50432         * tests/test-fwriting.c (ASSERT): Likewise.
50433         * tests/test-getdelim.c (ASSERT): Likewise.
50434         * tests/test-getline.c (ASSERT): Likewise.
50435         * tests/test-i-ring.c (ASSERT): Likewise.
50436         * tests/test-iconv-utf.c (ASSERT): Likewise.
50437         * tests/test-iconv.c (ASSERT): Likewise.
50438         * tests/test-isfinite.c (ASSERT): Likewise.
50439         * tests/test-isnand.c (ASSERT): Likewise.
50440         * tests/test-isnanf.c (ASSERT): Likewise.
50441         * tests/test-isnanl.h (ASSERT): Likewise.
50442         * tests/test-ldexpl.c (ASSERT): Likewise.
50443         * tests/test-linked_list.c (ASSERT): Likewise.
50444         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50445         * tests/test-localename.c (ASSERT): Likewise.
50446         * tests/test-lseek.c (ASSERT): Likewise.
50447         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50448         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50449         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50450         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50451         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50452         * tests/test-mbschr.c (ASSERT): Likewise.
50453         * tests/test-mbscspn.c (ASSERT): Likewise.
50454         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50455         * tests/test-mbspbrk.c (ASSERT): Likewise.
50456         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50457         * tests/test-mbsrchr.c (ASSERT): Likewise.
50458         * tests/test-mbsspn.c (ASSERT): Likewise.
50459         * tests/test-mbsstr1.c (ASSERT): Likewise.
50460         * tests/test-mbsstr2.c (ASSERT): Likewise.
50461         * tests/test-mbsstr3.c (ASSERT): Likewise.
50462         * tests/test-memchr2.c (ASSERT): Likewise.
50463         * tests/test-memmem.c (ASSERT): Likewise.
50464         * tests/test-open.c (ASSERT): Likewise.
50465         * tests/test-printf-frexp.c (ASSERT): Likewise.
50466         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50467         * tests/test-printf-posix.c (ASSERT): Likewise.
50468         * tests/test-quotearg.c (ASSERT): Likewise.
50469         * tests/test-rbtree_list.c (ASSERT): Likewise.
50470         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50471         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50472         * tests/test-round1.c (ASSERT): Likewise.
50473         * tests/test-roundf1.c (ASSERT): Likewise.
50474         * tests/test-roundl.c (ASSERT): Likewise.
50475         * tests/test-signbit.c (ASSERT): Likewise.
50476         * tests/test-sleep.c (ASSERT): Likewise.
50477         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50478         * tests/test-snprintf.c (ASSERT): Likewise.
50479         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50480         * tests/test-stat-time.c (ASSERT): Likewise.
50481         * tests/test-strcasestr.c (ASSERT): Likewise.
50482         * tests/test-strerror.c (ASSERT): Likewise.
50483         * tests/test-striconv.c (ASSERT): Likewise.
50484         * tests/test-striconveh.c (ASSERT): Likewise.
50485         * tests/test-striconveha.c (ASSERT): Likewise.
50486         * tests/test-strsignal.c (ASSERT): Likewise.
50487         * tests/test-strstr.c (ASSERT): Likewise.
50488         * tests/test-strtod.c (ASSERT): Likewise.
50489         * tests/test-trunc1.c (ASSERT): Likewise.
50490         * tests/test-trunc2.c (ASSERT): Likewise.
50491         * tests/test-truncf1.c (ASSERT): Likewise.
50492         * tests/test-truncf2.c (ASSERT): Likewise.
50493         * tests/test-truncl.c (ASSERT): Likewise.
50494         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50495         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50496         * tests/test-vasnprintf.c (ASSERT): Likewise.
50497         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50498         * tests/test-vasprintf.c (ASSERT): Likewise.
50499         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50500         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50501         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50502         * tests/test-vsnprintf.c (ASSERT): Likewise.
50503         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50504         * tests/test-wcwidth.c (ASSERT): Likewise.
50505         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50506         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50507         * tests/test-xvasprintf.c (ASSERT): Likewise.
50508         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50509         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50510         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50511         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50512         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50513         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50514         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50515         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50516         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50517         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50518         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50519         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50520         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50521         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50522         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50523         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50524         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50525         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50526         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50527         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50528         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50529         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50530         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50531         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50532         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50533         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50534         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50535         * tests/unictype/test-combining.c (ASSERT): Likewise.
50536         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50537         * tests/unictype/test-digit.c (ASSERT): Likewise.
50538         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50539         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50540         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50541         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50542         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50543         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50544         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50545         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50546         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50547         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50548         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50549         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50550         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50551         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50552         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50553         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50554         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50555         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50556         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50557         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50558         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50559         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50560         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50561         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50562         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50563         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50564         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50565         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50566         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50567         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50568         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50569         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50570         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50571         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50572         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50573         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50574         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50575         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50576         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50577         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50578         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50579         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50580         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50581         Reported by Eric Blake.
50582
50583 2008-04-11  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/wchar.in.h: Tweak comment.
50586
50587 2008-04-11  Bruno Haible  <bruno@clisp.org>
50588
50589         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50590         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50591         gl_COMMON.
50592         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50593
50594 2008-04-11  Bruno Haible  <bruno@clisp.org>
50595
50596         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50597
50598 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50599
50600         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50601         of attempting to use non-existing /dev/*random.  Based on patch
50602         from Adam Strzelecki <ono@java.pl> in
50603         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50604
50605 2008-04-08  Bruno Haible  <bruno@clisp.org>
50606
50607         Add tentative support for emx+gcc.
50608         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50609         * lib/fpurge.c (fpurge): Likewise.
50610         * lib/freadable.c (freadable): Likewise.
50611         * lib/freadahead.c (freadahead): Likewise.
50612         * lib/freading.c (freading): Likewise.
50613         * lib/freadptr.c (freadptr): Likewise.
50614         * lib/freadseek.c (freadptrinc): Likewise.
50615         * lib/fseeko.c (rpl_fseeko): Likewise.
50616         * lib/fseterr.c (fseterr): Likewise.
50617         * lib/fwritable.c (fwritable): Likewise.
50618         * lib/fwriting.c (fwriting): Likewise.
50619         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50620
50621 2008-04-09  Eric Blake  <ebb9@byu.net>
50622
50623         Avoid some autoconf warnings.
50624         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50625         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50626         * m4/afs.m4 (gl_AFS): Likewise.
50627         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50628         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50630         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50631         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50632         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50633         (AC_CHECK_DECLS_ONCE): Likewise.
50634         Rename file...
50635         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50636         gnulib-tool requires autoconf 2.59 or better.
50637         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50638
50639 2008-04-08  Eric Blake  <ebb9@byu.net>
50640
50641         Use 'git describe --match' if present (added in git 1.5.5).
50642         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50643         if possible.
50644
50645 2008-04-08  Bruno Haible  <bruno@clisp.org>
50646
50647         Add tentative support for OpenServer.
50648         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50649         _ptr, _cnt.
50650         * lib/fpurge.c (fpurge): Likewise.
50651         * lib/freadable.c (freadable): Likewise.
50652         * lib/freadahead.c (freadahead): Likewise.
50653         * lib/freading.c (freading): Likewise.
50654         * lib/freadptr.c (freadptr): Likewise.
50655         * lib/freadseek.c (freadptrinc): Likewise.
50656         * lib/fseeko.c (rpl_fseeko): Likewise.
50657         * lib/fseterr.c (fseterr): Likewise.
50658         * lib/fwritable.c (fwritable): Likewise.
50659         * lib/fwriting.c (fwriting): Likewise.
50660         Reported by Roger Cornelius <rac@tenzing.org> and
50661         Brian K. White <brian@aljex.com>.
50662
50663 2008-04-06  Jim Meyering  <meyering@redhat.com>
50664
50665         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50666
50667 2008-04-06  Bruno Haible  <bruno@clisp.org>
50668
50669         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50670         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50671         * tests/test-printf-posix.sh: Likewise.
50672         * tests/test-vfprintf-posix.sh: Likewise.
50673         * tests/test-vprintf-posix.sh: Likewise.
50674         * tests/test-xprintf-posix.sh: Likewise.
50675
50676 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50677
50678         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50679         hide error from 'ls', needed on OS/2.
50680         Report by Elbert Pol <elbert.pol@gmail.com>.
50681
50682 2008-04-04  Eric Blake  <ebb9@byu.net>
50683
50684         Make test-fseeko.c failures meaningful.
50685         * tests/test-fseeko.c: Print line number on failure.
50686         * tests/test-fseek.c: Likewise.
50687         Reported by Nelson H. F. Beebe.
50688
50689         Improve strtod bug detection check.
50690         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50691         required for Solaris 10.
50692         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50693
50694 2008-04-04  Bruno Haible  <bruno@clisp.org>
50695
50696         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50697         by m4/setenv.m4.
50698
50699 2008-04-03  Eric Blake  <ebb9@byu.net>
50700
50701         Ensure sane .version contents.
50702         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50703         version string.
50704         * build-aux/git-version-gen: Improve documentation.
50705
50706         Make GNU make output nicer.
50707         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50708         MAKECMDGOALS to enforce message for all command line targets.  Set
50709         srcdir for use in maint.mk.
50710
50711         Another maintainer tweak.
50712         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50713         a target that regenerates version.
50714
50715 2008-04-03  Jim Meyering  <meyering@redhat.com>
50716
50717         vc-list-files: don't cause coreutils "make po-check" failure
50718         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50719
50720 2008-04-03  Eric Blake  <ebb9@byu.net>
50721
50722         Allow VPATH usage of vc-list-files.
50723         * build-aux/vc-list-files (scriptversion): Add timestamp.
50724         (options): Add --help, --version, -C.
50725         (CVS): Support installed cvsu.
50726
50727 2008-04-02  Bruno Haible  <bruno@clisp.org>
50728
50729         Avoid some "statement with no effect" warnings from gcc.
50730         * tests/test-wctype.c (main): Explicitly ignore unused values.
50731         Reported by Jim Meyering.
50732
50733 2008-04-02  Jim Meyering  <meyering@redhat.com>
50734
50735         Avoid some warnings from "gcc -Wshadow".
50736         * tests/test-frexp.c (exp): Define to a different identifier.
50737         * tests/test-frexpl.c (exp): Likewise.
50738
50739 2008-04-03  Jim Meyering  <meyering@redhat.com>
50740
50741         bootstrap: remove dangling *.[ch] symlinks from lib
50742         * build-aux/bootstrap [dangling symlink removal]: Move find's
50743         -depth option to precede all others, to avoid a warning.
50744         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50745
50746 2008-04-02  Bruno Haible  <bruno@clisp.org>
50747
50748         Avoid some warnings from "gcc -Wshadow".
50749         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50750         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50751         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50752         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50753         Reported by Jim Meyering.
50754
50755 2008-04-01  Bruno Haible  <bruno@clisp.org>
50756
50757         Fix test to work on IRIX 6.5 with cc.
50758         * tests/test-math.c (numeric_equal): New function.
50759         (main): Use it.
50760
50761 2008-04-01  Bruno Haible  <bruno@clisp.org>
50762
50763         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50764
50765 2008-04-01  Bruno Haible  <bruno@clisp.org>
50766
50767         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50768         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50769         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50770         (Depends-on): Remove math.
50771
50772         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50773         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50774         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50775         (Depends-on): Remove math.
50776
50777         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50778         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50779         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50780         (Depends-on): Remove math.
50781         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50782         (Depends-on): Remove math.
50783
50784         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50785         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50786         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50787         (Depends-on): Remove math.
50788         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50789         (Depends-on): Remove math.
50790
50791         * tests/test-round1.c: Include nan.h.
50792         (main): Use NaNd instead of NAN.
50793         * modules/round-tests (Files): Add tests/nan.h.
50794
50795         * tests/test-trunc1.c: Include nan.h.
50796         (main): Use NaNd instead of NAN.
50797         * modules/trunc-tests (Files): Add tests/nan.h.
50798
50799         * tests/test-roundf1.c: Include nan.h.
50800         (main): Use NaNf instead of NAN.
50801         * modules/roundf-tests (Files): Add tests/nan.h.
50802
50803         * tests/test-truncf1.c: Include nan.h.
50804         (main): Use NaNf instead of NAN.
50805         * modules/truncf-tests (Files): Add tests/nan.h.
50806
50807         * tests/test-ceilf1.c: Include nan.h.
50808         (main): Use NaNf instead of NAN.
50809         * modules/ceilf-tests (Files): Add tests/nan.h.
50810
50811         * tests/test-floorf1.c: Include nan.h.
50812         (main): Use NaNf instead of NAN.
50813         * modules/floorf-tests (Files): Add tests/nan.h.
50814
50815         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50816         (main): Use NaNf instead of NAN.
50817         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50818
50819         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50820         (main): Use NaNd instead of NAN.
50821         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50822
50823         * tests/test-frexp.c: Include nan.h.
50824         (main): Use NaNd instead of NAN.
50825         * modules/frexp-tests (Files): Add tests/nan.h.
50826
50827         * lib/isnan.c: Don't include <math.h>.
50828         (FUNC): Don't use NAN macro.
50829         * modules/isnand-nolibm (Depends-on): Remove math.
50830         * modules/isnanf-nolibm (Depends-on): Remove math.
50831         * modules/isnanl (Depends-on): Remove math.
50832         * modules/isnanl-nolibm (Depends-on): Remove math.
50833
50834         * tests/nan.h: New file.
50835
50836 2008-04-01  Eric Blake  <ebb9@byu.net>
50837
50838         Fix typos.
50839         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50840         values to be the right type.
50841
50842         For now, cater to gnulib strtod inaccuracies.
50843         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50844         fractional results.  While not as nice from a QoI perspective, it
50845         is a quicker patch than correctly implementing decimal to binary
50846         rounding.
50847
50848 2008-03-31  Eric Blake  <ebb9@byu.net>
50849
50850         Guarantee a definition of NAN.
50851         * lib/math.in.h (NAN): Define if missing.
50852         * tests/test-math.c (main): Test it.
50853         * doc/posix-headers/math.texi (math.h): Document this.
50854         * lib/isnan.c (rpl_isnand): Use it.
50855         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50856         * tests/test-floorf1.c (NaN): Likewise.
50857         * tests/test-frexp.c (NaN): Likewise.
50858         * tests/test-isnand.c (NaN): Likewise.
50859         * tests/test-isnanf.c (NaN): Likewise.
50860         * tests/test-round1.c (NaN): Likewise.
50861         * tests/test-roundf1.c (NaN): Likewise.
50862         * tests/test-snprintf-posix.h (NaN): Likewise.
50863         * tests/test-sprintf-posix.h (NaN): Likewise.
50864         * tests/test-trunc1.c (NaN): Likewise.
50865         * tests/test-truncf1.c (NaN): Likewise.
50866         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50867         * tests/test-vasprintf-posix.c (NaN): Likewise.
50868         * modules/isnand-nolibm (Depends-on): Add math.
50869         * modules/isnanf-nolibm (Depends-on): Likewise.
50870         * modules/isnanl (Depends-on): Likewise.
50871         * modules/isnanl-nolibm (Depends-on): Likewise.
50872         * modules/snprintf-posix-tests (Depends-on): Likewise.
50873         * modules/sprintf-posix-tests (Depends-on): Likewise.
50874         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50875         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50876         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50877         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50878
50879 2008-03-31  Bruno Haible  <bruno@clisp.org>
50880
50881         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50882         * doc/posix-functions/strtod.texi: Likewise.
50883
50884 2008-03-31  Bruno Haible  <bruno@clisp.org>
50885
50886         * tests/test-strtod.c (main): Don't use C99 syntax.
50887
50888 2008-03-31  Bruno Haible  <bruno@clisp.org>
50889
50890         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50891         Reported by Eric Blake.
50892
50893 2008-03-31  Jim Meyering  <meyering@redhat.com>
50894
50895         Don't compare actual signbit return values.
50896         * tests/test-strtod.c (main): Rather, compare only their
50897         zero/non-zero nature.
50898
50899 2008-03-31  Eric Blake  <ebb9@byu.net>
50900
50901         More strtod documentation.
50902         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50903         failures as distinct bugs.
50904
50905 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50906
50907         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50908         Problem reported by Erik Benada in
50909         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50910
50911 2008-03-30  Bruno Haible  <bruno@clisp.org>
50912
50913         * tests/test-strtod.c: Add comments about which assertion fails on which
50914         platform.
50915         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50916
50917 2008-03-30  Eric Blake  <ebb9@byu.net>
50918
50919         Test signbit behavior on zeros.
50920         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50921         (test_signbitd, test_signbitl): Likewise.
50922
50923         More strtod touchups.
50924         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50925         sign of negative underflow, for now.  Use .5, not .1.
50926         * doc/posix-functions/strtod.texi (strtod): Mention these
50927         limitations.
50928         Reported by Jim Meyering.
50929
50930 2008-03-30  Bruno Haible  <bruno@clisp.org>
50931
50932         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50933         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50934
50935 2008-03-30  Bruno Haible  <bruno@clisp.org>
50936
50937         Avoid failure when attempting to return empty iconv results on some
50938         platforms.
50939         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50940         allocation, don't report ENOMEM when the resulting string is empty.
50941
50942 2008-03-30  Bruno Haible  <bruno@clisp.org>
50943
50944         Fix buffer overrun.
50945         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50946         Don't consider the width for tmp_length. Check count against tmp_length
50947         before doing the padding. Ensure enough allocation during padding.
50948
50949 2008-03-30  Eric Blake  <ebb9@byu.net>
50950
50951         strtod touchups.
50952         * lib/strtod.c (strtod): Avoid compiler warnings.
50953         Reported by Jim Meyering.
50954
50955 2008-03-30  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50958         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50959         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50960         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50961         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50962         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50963         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50964         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50965
50966         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50967         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50968         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50969         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50970         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50971         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50972         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50973         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50974
50975         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50976         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50977         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50978         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50979         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50980         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50981         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50982         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50983
50984         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50985         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50986
50987         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50988         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50989
50990         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50991         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50992
50993         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50994         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50995         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50996
50997         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50999         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51000
51001         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51002         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51003         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51004
51005         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51006         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51007         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51008
51009         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51010         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51011         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51012         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51013         (Depends-on): Add EOVERFLOW.
51014         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51015         (Depends-on): Add EOVERFLOW.
51016         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51017         (Depends-on): Add EOVERFLOW.
51018         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51019         (Depends-on): Add EOVERFLOW.
51020         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51021         (Depends-on): Add EOVERFLOW.
51022         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51023         (Depends-on): Add EOVERFLOW.
51024         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51025         (Depends-on): Add EOVERFLOW.
51026         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51027         (Depends-on): Add EOVERFLOW.
51028
51029         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51031         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51032
51033         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51035         * modules/snprintf (Depends-on): Add EOVERFLOW.
51036
51037         * lib/poll.c (EOVERFLOW): Remove fallback.
51038         * modules/poll (Depends-on): Add EOVERFLOW.
51039
51040         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51041         * modules/getugroups (Depends-on): Add EOVERFLOW.
51042
51043         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51044         * modules/getdelim (Depends-on): Add EOVERFLOW.
51045
51046         * lib/ftell.c (EOVERFLOW): Remove fallback.
51047         * modules/ftell (Depends-on): Add EOVERFLOW.
51048
51049         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51050         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51051         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51052
51053         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51054
51055         * modules/EOVERFLOW-tests: New file.
51056         * tests/test-EOVERFLOW.c: New file.
51057
51058         * modules/EOVERFLOW: New file.
51059         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51060
51061 2008-03-30  Bruno Haible  <bruno@clisp.org>
51062
51063         Fix bug introduced on 2007-06-10.
51064         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51065         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51066
51067 2008-03-30  Bruno Haible  <bruno@clisp.org>
51068
51069         Improve freadseek's efficiency after ungetc.
51070         * lib/freadseek.c: Include freadahead.h.
51071         (freadptrinc): New function, extracted from freadseek.
51072         (freadseek): Use it in a loop. Use freadahead to determine the number
51073         of loop iterations.
51074         * modules/freadseek (Depends-on): Add freadahead.
51075         (configure.ac): Require AC_C_INLINE.
51076
51077 2008-03-30  Bruno Haible  <bruno@clisp.org>
51078
51079         * lib/freadseek.c (freadseek): Don't ignore the return value of
51080         freadptr.
51081
51082 2008-03-29  Eric Blake  <ebb9@byu.net>
51083
51084         Add hex float support.
51085         * modules/strtod (Depends-on): Add c-ctype.
51086         (Link): Mention POW_LIB.
51087         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51088         whitespace between 'e' and exponent.
51089         * tests/test-strtod.c (main): Enable hex float tests.
51090         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51091         now provides.
51092
51093         Document various strtod bugs, with some fixes.
51094         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51095         "-0x", "inf", "nan", and hex constants.
51096         * doc/posix-functions/atof.texi (atof): Likewise.
51097         * modules/stdlib (Makefile.am): Support strtod.
51098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51099         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51100         detect additional strtod bugs.
51101         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51102         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51103         bool where appropriate.  Parse 'inf' and 'nan'.
51104         * tests/test-strtod.c: New file.
51105         * modules/strtod (Depends-on): Add stdbool, stdlib.
51106         (configure.ac): Turn on module indicator.
51107         * modules/strtod-tests: New module.
51108
51109 2008-03-29  Eric Blake  <ebb9@byu.net>
51110
51111         Fix ftell on mingw.
51112         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51113         * modules/ftell-tests (Depends-on): Add binary-io.
51114         * modules/ftello-tests (Depends-on): Likewise.
51115         * tests/test-ftell.c (main): Enhance test to cover behavior after
51116         ungetc.  Enforce binary mode.
51117         * tests/test-ftello.c (main): Likewise.
51118
51119         Pass test-freadseek on cygwin.
51120         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51121         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51122         ungetc buffer.
51123
51124         * tests/test-fflush2.c (main): Fix typo.
51125
51126 2008-03-29  Bruno Haible  <bruno@clisp.org>
51127
51128         * tests/test-fflush2.c (main): Temporarily disable the contents of
51129         this test.
51130         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51131         Reported by Eric Blake.
51132
51133 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51134
51135         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51136         (GC_SHA224_DIGEST_SIZE): Add.
51137
51138         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51139         (gc_hash_digest_length): Likewise.
51140         (gc_hash_buffer): Likewise.
51141
51142 2008-03-25  Bruno Haible  <bruno@clisp.org>
51143
51144         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51145         detail which gettext release to use.
51146         Reported by Simon Josefsson.
51147
51148 2008-03-26  Jim Meyering  <meyering@redhat.com>
51149
51150         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51151         * modules/gnumakefile (clean-GNUmakefile): Also, use
51152         test ... && ... || : syntax rather than if-then ... fi.
51153
51154         gnumakefile: Don't double-quote-expand $(VPATH) value.
51155         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51156
51157 2008-03-24  Eric Blake  <ebb9@byu.net>
51158
51159         Alter GNUmakefile to install into top directory.
51160         * modules/maintainer-makefile: Split, and add dependency...
51161         * modules/gnumakefile: to this new module.
51162         * build-aux/GNUmakefile: Move...
51163         * top/GNUmakefile: ...here.
51164         * build-aux/maint.mk: Move...
51165         * top/maint.mk: ...here.
51166         * MODULES.html.sh (Support for maintaining...): Document new
51167         module.
51168
51169 2008-03-23  Bruno Haible  <bruno@clisp.org>
51170
51171         * gnulib-tool: New options --vc-files, --no-vc-files.
51172         (func_usage): Document them.
51173         (vc_files): New variable.
51174         (func_import): Consider vc_files.
51175         (func_create_testdir): Set vc_files to empty.
51176         Suggested by Jim Meyering and Karl Berry.
51177
51178 2008-03-23  Bruno Haible  <bruno@clisp.org>
51179
51180         Fix regex compilation error on HP-UX 11.
51181         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51182         * modules/regex (Files): Add m4/mbstate_t.m4.
51183         Reported by Ton Voon <ton.voon@altinity.com>.
51184
51185 2008-03-23  Bruno Haible  <bruno@clisp.org>
51186
51187         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51188
51189 2008-03-23  Eric Blake  <ebb9@byu.net>
51190             Bruno Haible  <bruno@clisp.org>
51191
51192         Install files from top/ in the destination directory.
51193         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51194         augmentation also for the files from top/.
51195         (func_import, func_create_testdir): Rewrite file names:
51196         top/filename -> filename.
51197
51198 2008-03-23  Bruno Haible  <bruno@clisp.org>
51199
51200         Tweak "gnulib --version" output.
51201         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51202
51203 2008-03-23  Bruno Haible  <bruno@clisp.org>
51204
51205         Tweak "gnulib --version" output.
51206         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51207         rather than contents of ChangeLog, when possible.
51208
51209 2008-03-21  Eric Blake  <ebb9@byu.net>
51210
51211         More --version tweaks.
51212         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51213         date of last ChangeLog entry.
51214
51215 2008-03-21  Jim Meyering  <meyering@redhat.com>
51216
51217         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51218
51219 2008-03-20  Eric Blake  <ebb9@byu.net>
51220
51221         VPATH fix.
51222         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51223
51224 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51225
51226         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51227         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51228
51229 2008-03-20  Eric Blake  <ebb9@byu.net>
51230
51231         Sync GNUmakefile with coreutils.
51232         * build-aux/GNUmakefile (have-Makefile): Rename...
51233         (_have-Makefile): ...to this, for namespace consideration.
51234         (GNUmakefile.cfg): Include, if present.
51235         (_autoreconf): Define a default.
51236         (_is-dist-target): New rule for rebuilds to pick up intra-release
51237         version.
51238         (maint-cfg.mk): Rename...
51239         (cfg.mk): ...to this.
51240
51241 2008-03-18  Jim Meyering  <meyering@redhat.com>
51242
51243         New script and module: mktempd
51244         * MODULES.html.sh (maint+release support): Add mktempd.
51245         * build-aux/mktempd: New file.
51246         * modules/mktempd: New file.
51247
51248 2008-03-15  Jim Meyering  <meyering@redhat.com>
51249
51250         Undo last change.
51251         * lib/sha1.c, lib/md5.c: 63 != ~63.
51252         Reported by Andreas Schwab.
51253
51254         sha1.c, md5.c: Hoist a redundant expression.
51255         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51256         "ctx->buflen" only once, before calling *_process_block.
51257         * lib/md5.c (md5_process_bytes): Likewise.
51258
51259 2008-03-14  Eric Blake  <ebb9@byu.net>
51260
51261         Bump copyright year in files generated by gnulib-tool.
51262         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51263         gnulib-tool, rather than hard-coding it.
51264
51265         Fix 'gnulib-tool --version' output to work with git.
51266         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51267         (startup): ...here.
51268         (func_version): Use it to invoke git-version-gen, rather than
51269         relying on CVS keyword expansion.  Modernize wording.
51270         (cvsdatestamp, last_checkin_date, version): Kill unused
51271         variables.
51272
51273 2008-03-12  Jim Meyering  <meyering@redhat.com>
51274
51275         Recognize optional cast of the argument to free.
51276         * build-aux/useless-if-before-free: Update regexps.
51277
51278         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51279
51280 2008-03-11  Bruno Haible  <bruno@clisp.org>
51281
51282         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51283         by a single package.
51284         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51285         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51286         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51287         Reported by Sam Steingold <sds@gnu.org>.
51288
51289 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51290
51291         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51292         repositories.
51293
51294 2008-03-11  Bruno Haible  <bruno@clisp.org>
51295
51296         Avoid conflicts between local macro definitions.
51297         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51298         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51299
51300 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51301             Bruno Haible  <bruno@clisp.org>
51302
51303         Make va_copy work with some version of xlc on AIX 5.1.
51304         * lib/stdarg.in.h: New file.
51305         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51306         On AIX, use a <stdarg.h> file substitute.
51307         * modules/stdarg (Files): Add lib/stdarg.in.h.
51308         (Depends-on): Add include_next.
51309         (Makefile.am): Build a stdarg.h substitute if requested.
51310         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51311
51312 2008-03-10  Bruno Haible  <bruno@clisp.org>
51313
51314         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51315         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51316         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51317
51318 2008-03-10  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/stdlib (Depends-on): Add include_next, remove
51321         absolute-header.
51322
51323 2008-03-09  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/freadahead.h (freadahead): Document more precisely.
51326         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51327         the sum of both buffer sizes.
51328         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51329         * NEWS: Document the change.
51330
51331 2008-03-09  Bruno Haible  <bruno@clisp.org>
51332
51333         Extend freadptr to return also the buffer size.
51334         * lib/freadptr.h (freadptr): Add sizep argument.
51335         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51336         (freadptr): Add sizep argument. Determine buffer size like freadahead
51337         does.
51338         * tests/test-freadptr.c: Don't include freadahead.h.
51339         (main): Adapt for new calling convention of freadptr.
51340         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51341         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51342         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51343         tests/test-freadptr2.sh.
51344         (Depends): Remove freadahead.
51345         (TESTS): Add test-freadptr2.sh.
51346         (check_PROGRAMS): Add test-freadptr2.
51347
51348 2008-03-09  Bruno Haible  <bruno@clisp.org>
51349
51350         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51351         Report and solution by Simon Josefsson.
51352
51353 2008-03-06  Bruno Haible  <bruno@clisp.org>
51354
51355         Make fflush after ungetc work on BSD platforms.
51356         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51357         * tests/test-fflush2.c: New file.
51358         * tests/test-fflush2.sh: New file.
51359         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51360         tests/test-fflush2.c.
51361         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51362         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51363
51364 2008-03-06  Eric Blake  <ebb9@byu.net>
51365
51366         Likewise for ftello.
51367         * modules/ftello (Dependencies): Add extensions.
51368         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51369
51370 2008-03-06  Bruno Haible  <bruno@clisp.org>
51371
51372         * modules/fseeko (Dependencies): Add extensions.
51373         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51374         Needed on glibc systems.
51375
51376 2008-03-06  Bruno Haible  <bruno@clisp.org>
51377
51378         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51379         email address.
51380         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51381
51382 2008-03-06  Bruno Haible  <bruno@clisp.org>
51383
51384         * users.txt: Add libgnupdf.
51385
51386 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51387
51388         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51389         (Header File Substitutes, Function Substitutes,
51390         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51391         (Build robot for gnulib): Fix typo.
51392
51393 2008-03-06  Bruno Haible  <bruno@clisp.org>
51394
51395         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51396         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51397
51398 2008-03-06  Bruno Haible  <bruno@clisp.org>
51399
51400         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51401         * doc/gnulib.texi: Include it.
51402
51403 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51404
51405         * modules/func (License): Change license to unlimited; there was
51406         no LGPL parts in the module anyway.
51407
51408 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51409
51410         * modules/__func__: Renamed to modules/func.
51411         * modules/__func__-tests: Renamed to modules/func-tests.
51412         * tests/test-__func__.c: Renamed to tests/test-func.c.
51413         * m4/__func__.m4: Renamed to m4/func.m4.
51414         * doc/gnulib.texi (__func__): Section renamed to func.
51415         Suggested by Eric Blake <ebb9@byu.net>.
51416
51417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51418
51419         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51420         about __func__.  Make example self-contained.  Suggested by Eric
51421         Blake <ebb9@byu.net>.
51422
51423         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51424         Suggested by Eric Blake <ebb9@byu.net>.
51425
51426 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51427
51428         * modules/__func__: New file.
51429         * modules/__func__-tests: New file.
51430         * tests/test-__func__.c: New file.
51431         * m4/__func__.m4: New file.
51432         * doc/gnulib.texi (__func__): Document __func__ module.
51433
51434 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51435
51436         * modules/byteswap (License): Re-license as LGPLv2+.
51437
51438 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51439
51440         * doc/Makefile: Add pdf target.
51441
51442 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51443
51444         * modules/inline (License): Use 'unlimited', since there are only
51445         *.m4 files in this module.
51446
51447 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51448             Bruno Haible  <bruno@clisp.org>
51449
51450         Add support for HP C 7.1 on OpenVMS 8.3.
51451         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51452
51453 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51454
51455         Update VMS specifics.
51456         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51457
51458 2008-03-02  Jim Meyering  <meyering@redhat.com>
51459
51460         Remove the last dependency on the "free" module.
51461         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51462         Reported by Bob Proulx.
51463
51464         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51465
51466         Remove useless "if" tests before free.  Deprecate "free" module.
51467         * doc/posix-functions/free.texi: Mention that this
51468         module is no longer useful.
51469         * modules/free (Notice): Say this module is obsolete.
51470         * modules/readutmp (Depends-on): Remove free.
51471         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51472         * lib/putenv.c (putenv): Likewise.
51473         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51474         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51475         * tests/test-c-strcasestr.c (main): Likewise.
51476         * tests/test-c-strstr.c (main): Likewise.
51477         * tests/test-mbscasestr1.c (main): Likewise.
51478         * tests/test-mbscasestr2.c (main): Likewise.
51479         * tests/test-mbsstr1.c (main): Likewise.
51480         * tests/test-mbsstr2.c (main): Likewise.
51481         * tests/test-memmem.c (main): Likewise.
51482         * tests/test-strcasestr.c (main): Likewise.
51483         * tests/test-striconv.c (main): Likewise.
51484         * tests/test-striconveh.c (main): Likewise.
51485         * tests/test-striconveha.c (main): Likewise.
51486         * tests/test-strstr.c (main): Likewise.
51487
51488         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51489
51490         bootstrap: sync from coreutils again
51491         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51492
51493 2008-03-01  Jim Meyering  <meyering@redhat.com>
51494
51495         bootstrap: sync from coreutils
51496         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51497         also when the target doesn't exist.
51498
51499 2008-03-01  Eric Blake  <ebb9@byu.net>
51500
51501         Fix bugs in last patch.
51502         * lib/memchr2.c (memchr2): Fix typo.
51503         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51504         extension.
51505         Reported by Bruce Korb.
51506
51507         New module 'memchr2'.
51508         * modules/memchr2: New file.
51509         * modules/memchr2-tests: Likewise.
51510         * lib/memchr2.h: Likewise.
51511         * lib/memchr2.c: Likewise, based on memchr.c.
51512         * tests/test-memchr2.c: New test.
51513         * MODULES.html.sh (String handling): Add memchr2.
51514
51515 2008-02-29  Bruno Haible  <bruno@clisp.org>
51516
51517         * modules/freadseek-tests: New file.
51518         * tests/test-freadseek.sh: New file.
51519         * tests/test-freadseek.c: New file.
51520
51521         New module 'freadseek'.
51522         * modules/freadseek: New file.
51523         * lib/freadseek.h: New file.
51524         * lib/freadseek.c: New file.
51525         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51526
51527 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51528
51529         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51530         wydawca.
51531
51532         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51533         program_invocation_name and program_invocation_short_name are
51534         present.
51535
51536 2008-02-28  Bruno Haible  <bruno@clisp.org>
51537
51538         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51539         * tests/test-freadptr.sh: Also test non-seekable stdin.
51540
51541 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51542
51543         * build-aux/bootstrap (source_base, m4_base)
51544         (doc_base, tests_base): New variables.
51545         (gnulib_tool_options): Do not hardcode base directories, use
51546         the above variables instead.
51547
51548 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51549
51550         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51551
51552 2008-02-28  Bruno Haible  <bruno@clisp.org>
51553
51554         * modules/freadptr-tests: New file.
51555         * tests/test-freadptr.sh: New file.
51556         * tests/test-freadptr.c: New file.
51557
51558         New module 'freadptr'.
51559         * modules/freadptr: New file.
51560         * lib/freadptr.h: New file.
51561         * lib/freadptr.c: New file.
51562         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51563
51564 2008-02-26  Karl Berry  <karl@freefriends.org>
51565
51566         Sync from Libtool:
51567         * libltdl/argz.c (argz_add, argz_count): New functions.
51568         * libltdl/argz.in.h: Declare them.
51569         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51570
51571 2008-02-22  Bruno Haible  <bruno@clisp.org>
51572
51573         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51574         is a pointer type.  Needed for HP-UX 10.
51575         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51576         * doc/posix-functions/gmtime_r.texi: Likewise.
51577         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51578
51579 2008-02-24  Bruno Haible  <bruno@clisp.org>
51580
51581         * modules/environ-tests: New file.
51582         * tests/test-environ.c: New file.
51583
51584         New module 'environ'.
51585         * modules/environ: New file.
51586         * lib/unistd.in.h (environ): New declaration.
51587         * m4/environ.m4: New file.
51588         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51589         after use.
51590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51591         HAVE_DECL_ENVIRON.
51592         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51593         HAVE_DECL_ENVIRON.
51594         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51595         wrong claim that 'environ' is missing on some systems.
51596         * modules/execute (Depends-on): Add environ.
51597         * lib/execute.c (environ): Remove fallback declaration.
51598         * modules/pipe (Depends-on): Add environ.
51599         * lib/pipe.c (environ): Remove fallback declaration.
51600         * modules/setenv (Depends-on): Add environ.
51601         * lib/setenv.c (environ): Remove fallback declaration.
51602         * modules/unsetenv (Depends-on): Add environ.
51603         * lib/unsetenv.c (environ): Remove fallback declaration.
51604         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51605         m4/environ.m4.
51606         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51607         (gl_PREREQ_UNSETENV): Likewise.
51608
51609 2008-02-24  Bruno Haible  <bruno@clisp.org>
51610
51611         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51612
51613 2008-02-20  Bob Proulx  <bob@proulx.com>
51614
51615         Enable use of older two part flavor 'git describe'.
51616         * build-aux/git-version-gen: If using the older two part flavor of
51617         git version then recreate the third part now present in the
51618         newer three part flavor of git describe.
51619
51620 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51621
51622         * lib/fts.c (fts_build): Typo correction to comment.
51623
51624 2008-02-17  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51627         generating no-op conflicts.
51628
51629 2008-02-17  Bruno Haible  <bruno@clisp.org>
51630
51631         Speed up by 10%.
51632         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51633         result_entries, rather than an index-based loop.
51634
51635 2008-02-17  Bruno Haible  <bruno@clisp.org>
51636
51637         Speed up by 25%.
51638         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51639         'hashcode_cached'.
51640         (entry_create): New function.
51641         (entry_hashcode): Use the cached hashcode if possible.
51642         (read_changelog_file, try_split_merged_entry): Use entry_create.
51643
51644 2008-02-17  Bruno Haible  <bruno@clisp.org>
51645
51646         Speed up from O(n^2) to O(n) for long ChangeLog files.
51647         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51648         (read_changelog_file): Change implementation of entries_reversed list
51649         to rbtreehash.
51650         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51651
51652 2008-02-17  Bruno Haible  <bruno@clisp.org>
51653
51654         New option --split-merged-entry.
51655         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51656         (find_paragraph_end, try_split_merged_entry): New functions.
51657         (long_options): Add option --split-merged-entry.
51658         (usage): Document option --split-merged-entry.
51659         (main): Implement option --split-merged-entry.
51660         Reported by Eric Blake.
51661
51662 2008-02-17  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/git-merge-changelog.c: Include c-strstr.h.
51665         (main): Support the "git pull --rebase" situation.
51666         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51667         Reported by Eric Blake.
51668
51669 2008-02-16  Eric Blake  <ebb9@byu.net>
51670
51671         Avoid doubling \ in common case of "c-maybe" quoting style.
51672         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51673         eliding outer quotes.
51674         * lib/quotearg.h: Document this.
51675         * tests/test-quotearg.c (result_strings, inputs, results_g)
51676         (flag_results, locale_results): Test it by adding a new string to
51677         each test group.
51678         (compare_strings): Test new string.
51679
51680 2008-02-13  Eric Blake  <ebb9@byu.net>
51681
51682         Avoid trigraph quoting in default output.
51683         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51684         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51685         unless explicitly requested.
51686         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51687
51688 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51689
51690         Don't rely on signed integer overflowing to negative value.
51691         * lib/getugroups.c (getugroups): Include <limits.h>.
51692         Instead, compare against INT_MAX, and increment only if the test passes.
51693
51694 2008-02-13  Jim Meyering  <meyering@redhat.com>
51695         and Eric Blake  <ebb9@byu.net>
51696
51697         Avoid shadowing warning and compile errors on Linux.
51698         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51699         forwarding macros on Linux.
51700         (dcgettext): Define a stub, for Linux.
51701         (results_g, main): Avoid warnings.
51702
51703 2008-02-12  Eric Blake  <ebb9@byu.net>
51704
51705         Silence warning in last patch.
51706         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51707
51708         Quotearg part 4: add tests, fix c-maybe colon quoting.
51709         * lib/quotearg.h: Improve documentation.
51710         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51711         escapes when adding outer quotes.  When quoting trigraphs, use
51712         valid C notation.  When quoting NUL, omit extra characters if next
51713         character is not digit.  Alter prototype.
51714         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51715         callers.
51716         * modules/quotearg-tests: New module.
51717         * tests/test-quotearg.c: New test.
51718
51719 2008-02-07  Eric Blake  <ebb9@byu.net>
51720
51721         Quotearg part 3: add flag to control outer quote elision.
51722         * lib/quotearg.h (c_maybe_quoting_style): New style.
51723         (enum quoting_flags): Better documentation of flags.
51724         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51725         c-maybe style.
51726         (quotearg_buffer_restyled): Handle new flag to elide outer
51727         quotes.
51728
51729         Quotearg part 2: add flag that can control NUL elision.
51730         * lib/quotearg.h (set_quoting_flags): New prototype.
51731         * lib/quotearg.c (struct quoting_options): Add flag field.
51732         (set_quoting_flags): New function.
51733         (quotearg_buffer_restyled): Add flags parameter.
51734         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51735         (quotearg_n_options): Set the flag, since length cannot be
51736         returned.
51737         (quoting_options_from_style): Default flags correctly.
51738
51739         Quotearg part 1: more wrappers, restore quotearg_char state.
51740         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51741         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51742         (quotearg_colon_mem): New wrappers.
51743         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51744         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51745         functions.
51746         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51747         (quotearg_colon_mem): New functions.
51748
51749 2008-02-11  Bruno Haible  <bruno@clisp.org>
51750
51751         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51752         library in the current directory: it does not work with parallel make.
51753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51754
51755 2008-02-11  Bruno Haible  <bruno@clisp.org>
51756
51757         * .gitattributes: New file.
51758
51759 2008-02-11  Jim Meyering  <meyering@redhat.com>
51760
51761         useless-if-before-free: Fix reversed exit values.
51762         * build-aux/useless-if-before-free: Use correct values
51763         for EXIT_MATCH and EXIT_NO_MATCH.
51764
51765         * build-aux/useless-if-before-free: Close stdout carefully.
51766
51767 2008-02-10  Bruno Haible  <bruno@clisp.org>
51768
51769         New module 'git-merge-changelog'.
51770         * modules/git-merge-changelog: New file.
51771         * lib/git-merge-changelog.c: New file.
51772
51773 2008-02-10  Jim Meyering  <meyering@redhat.com>
51774
51775         useless-if-before-free: New option: --list (-l).
51776
51777         useless-if-before-free: Don't exit immediately upon open failure.
51778         * build-aux/useless-if-before-free: Exit 2 for errors.
51779         Upon failure to open a file, don't exit immediately.
51780         Rather, just warn and continue with any remaining files.
51781
51782 2008-02-10  Bruno Haible  <bruno@clisp.org>
51783
51784         New abstract list operation 'node_set_value'.
51785         * lib/gl_list.h (gl_list_node_set_value): New function.
51786         (struct gl_list_implementation): New field node_set_value.
51787         * lib/gl_list.c (gl_list_node_set_value): New function.
51788         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51789         (gl_array_list_implementation): Update.
51790         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51791         (gl_carray_list_implementation): Update.
51792         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51793         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51794         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51795         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51796         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51797         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51798         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51799         Update.
51800         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51801         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51802         (gl_sublist_list_implementation): Update.
51803
51804 2008-02-10  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51807         Needed when ELEMENT is #defined to 'some_type *'.
51808
51809 2008-02-10  Jim Meyering  <meyering@redhat.com>
51810
51811         New script and module: useless-if-before-free
51812         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51813         * build-aux/useless-if-before-free: New file.
51814         * modules/useless-if-before-free: New file.
51815
51816         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51817
51818         xstrtol_error: Fix typo.
51819         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51820         s/exit_failure/exit_status/.
51821
51822 2008-02-09  Jim Meyering  <meyering@redhat.com>
51823
51824         New script and module: gitlog-to-changelog
51825         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51826         * modules/gitlog-to-changelog: New file.
51827         * build-aux/gitlog-to-changelog: New file.
51828
51829 2008-02-08  Jim Meyering  <meyering@redhat.com>
51830
51831         Avoid two "parameter unused" warnings.
51832         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51833         Mark "st" as used.
51834
51835         Use "git COMMAND", not "git-COMMAND".
51836         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51837         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51838         * build-aux/git-version-gen: Use "git status", not "git-status".
51839
51840 2008-02-07  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51843         Avoids a crash on Windows Vista.
51844         Reported by Adam Strzelecki <ono@java.pl> via
51845         Simon Josefsson <simon@josefsson.org>.
51846
51847 2008-02-06  Bruno Haible  <bruno@clisp.org>
51848
51849         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51850         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51851         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51853         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51855         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51856         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51859         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51860         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51861         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51864         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51865         left-adjust flag.
51866         * tests/test-snprintf-posix.h (test_function): Likewise.
51867         * tests/test-sprintf-posix.h (test_function): Likewise.
51868         * tests/test-vasprintf-posix.c (test_function): Likewise.
51869         * doc/posix-functions/fprintf.texi: Update.
51870         * doc/posix-functions/printf.texi: Update.
51871         * doc/posix-functions/snprintf.texi: Update.
51872         * doc/posix-functions/sprintf.texi: Update.
51873         * doc/posix-functions/vfprintf.texi: Update.
51874         * doc/posix-functions/vprintf.texi: Update.
51875         * doc/posix-functions/vsnprintf.texi: Update.
51876         * doc/posix-functions/vsprintf.texi: Update.
51877         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51878
51879 2008-02-06  Bruno Haible  <bruno@clisp.org>
51880
51881         Fix bug introduced on 2008-01-26.
51882         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51883
51884 2008-02-06  Bruno Haible  <bruno@clisp.org>
51885
51886         Fix bug introduced on 2007-06-10.
51887         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51888         !NEED_PRINTF_FLAG_ZERO.
51889
51890 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51891
51892         getloadavg: use libperfstat on AIX5
51893         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51894
51895 2008-02-03  Bruno Haible  <bruno@clisp.org>
51896
51897         * lib/diffseq.h: Add comments about required #includes.
51898         Reported by Michael Biggs <gnulib@doubleplum.net>.
51899
51900 2008-02-01  Bruno Haible  <bruno@clisp.org>
51901
51902         * users.txt: Add gnuit.
51903
51904 2008-01-31  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/md4.c (set_uint32): Mark as inline.
51907         * lib/md5.c (set_uint32): Likewise.
51908         * lib/sha1.c (set_uint32): Likewise.
51909         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51910         * m4/md5.m4 (gl_MD5): Likewise.
51911         * m4/sha1.m4 (gl_SHA1): Likewise.
51912
51913 2008-01-31  Jim Meyering  <meyering@redhat.com>
51914
51915         Use "sizeof VAR", rather than a literal "4".
51916         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51917         * lib/md4.c (md4_read_ctx): Likewise.
51918         * lib/sha1.c (sha1_read_ctx): Likewise.
51919
51920 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51921
51922         * tests/test-sha1.c: New file, based on test-md5.c.
51923
51924         * modules/crypto/sha1-tests: New file.
51925
51926 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51927
51928         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51929
51930 2008-01-31  Jim Meyering  <meyering@redhat.com>
51931
51932         Prefer "sizeof v" over the equivalent "4".
51933         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51934         * lib/md5.c (set_uint32): Likewise.
51935         * lib/sha1.c (set_uint32): Likewise.
51936
51937 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51938
51939         * lib/sha1.c (set_uint32): Mark function as static.
51940
51941 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51942
51943         md2: clarify comments to say that alignment is not required.
51944         * lib/md2.h: Remove warning about alignment in comment.
51945         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51946         never been required.
51947
51948 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51949
51950         md4: adapt alignment constraint fix from sha1.
51951         * lib/md4.c (set_uint32): New function, from sha1.c
51952         (md4_read_ctx): Use it.
51953         (md4_finish_ctx): Doc fix.
51954         * lib/md4.h: Doc fix.
51955
51956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51957
51958         md5: adapt alignment constraint fix from sha1.
51959         * lib/md5.c (set_uint32): New function, from sha1.c
51960         (md5_read_ctx): Use it.
51961         (md5_finish_ctx): Doc fix.
51962         * lib/md5.h: Doc fix.
51963
51964 2008-01-30  Peter Palfrader  <weasel@debian.org>
51965
51966         sha1: remove the result buffer alignment constraint
51967         * lib/sha1.c (set_uint32): New function.
51968         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51969         constraint.
51970         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51971         * lib/sha1.h: Likewise.
51972
51973 2008-01-30  Andreas Schwab  <schwab@suse.de>
51974             Bruno Haible  <bruno@clisp.org>
51975
51976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51977         correct definition of LDBL_MIN_EXP.
51978
51979 2008-01-30  Karl Berry  <karl@gnu.org>
51980
51981         * config/srclist-update: try to preserve x bit on updates.
51982         * config/srclistvars.sh: update for karl.
51983
51984 2008-01-29  Jim Meyering  <meyering@redhat.com>
51985
51986         vasnprintf.c: Avoid warning about unused label
51987         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51988         "overflow" label definition and associated code with the
51989         same cpp condition that guards the sole use of that label.
51990
51991 2008-01-26  Bruno Haible  <bruno@clisp.org>
51992
51993         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51994         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51995         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51996         * lib/isnanl-nolibm.h (isnanl): Likewise.
51997         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51998
51999 2008-01-26  Bruno Haible  <bruno@clisp.org>
52000
52001         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52002         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52003
52004 2008-01-26  Bruno Haible  <bruno@clisp.org>
52005
52006         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52007         GCC >= 4.0 built-in.
52008         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52009
52010 2008-01-26  Bruno Haible  <bruno@clisp.org>
52011
52012         Rename isnan, applicable to 'double' only, to isnand.
52013         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52014         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52015         (configure.ac): Update.
52016         (Include): Replace "isnan.h" with "isnand.h".
52017         * m4/isnand.m4: Renamed from m4/isnan.m4.
52018         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52019         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52020         instead of isnan.c.
52021         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52022         instead of HAVE_ISNAN_IN_LIBC.
52023         (isnand): Renamed from isnan.
52024         * lib/isnand.c: New file.
52025         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52026         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52027         (Makefile.am): Update.
52028         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52029         Include isnand.h instead of isnan.h.
52030         (main): Test isnand instead of isnan.
52031         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52032         isnan-nolibm.
52033         * modules/frexp (Depends-on): Likewise.
52034         * modules/frexp-tests (Depends-on): Likewise.
52035         * modules/frexp-nolibm (Depends-on): Likewise.
52036         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52037         * modules/isfinite (Depends-on): Likewise.
52038         * modules/round-tests (Depends-on): Likewise.
52039         * modules/signbit (Depends-on): Likewise.
52040         * modules/signbit-tests (Depends-on): Likewise.
52041         * modules/snprintf-posix (Depends-on): Likewise.
52042         * modules/sprintf-posix (Depends-on): Likewise.
52043         * modules/trunc-tests (Depends-on): Likewise.
52044         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52045         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52046         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52047         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52048         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52049         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52050         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52051         * modules/vasnprintf-posix (Depends-on): Likewise.
52052         * modules/vasprintf-posix (Depends-on): Likewise.
52053         * modules/vfprintf-posix (Depends-on): Likewise.
52054         * modules/vsnprintf-posix (Depends-on): Likewise.
52055         * modules/vsprintf-posix (Depends-on): Likewise.
52056         * lib/frexp.c: Include isnand.h instead of isnan.h.
52057         (ISNAN): Set to isnand instead of isnan.
52058         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52059         (gl_isfinited): Use isnand instead of isnan.
52060         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52061         (gl_signbitd): Use isnand instead of isnan.
52062         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52063         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52064         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52065         (main): Use isnand instead of isnan.
52066         * tests/test-round1.c: Include isnand.h.
52067         (main): Use isnand instead of isnan.
52068         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52069         (ISNAN): Set to isnand instead of isnan.
52070         * tests/test-trunc1.c: Include isnand.h.
52071         (main): Use isnand instead of isnan.
52072         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52073         (equal): Use isnand instead of isnan.
52074         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52075         isnand-nolibm.
52076         * NEWS: Mention the change.
52077
52078 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52079             Bruno Haible  <bruno@clisp.org>
52080
52081         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52082         the GCC builtins for signbits are present and set
52083         REPLACE_SIGNBIT_USING_GCC if so.
52084         * lib/math.in.h (signbit): Define using GCC builtins if
52085         REPLACE_SIGNBIT_USING_GCC is set.
52086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52087         REPLACE_SIGNBIT_USING_GCC.
52088         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52089
52090 2008-01-25  Jim Meyering  <meyering@redhat.com>
52091
52092         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52093         * lib/poll.c: Include <config.h>, not "config.h".
52094         * tests/test-getaddrinfo.c: Likewise.
52095
52096 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52097
52098         * modules/sockets-tests: New file.
52099
52100 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52101
52102         * modules/sockets: New module, can be used to call WSA_Startup and
52103         WSA_Cleanup when needed.
52104
52105         * lib/sockets.h, lib/sockets.c: New files.
52106
52107         * m4/sockets.m4: New file.
52108
52109         * tests/test-sockets.c: New file.
52110
52111 2008-01-19  Bruno Haible  <bruno@clisp.org>
52112
52113         * doc/posix-headers: Renamed from doc/headers.
52114         * doc/posix-functions: Renamed from doc/functions.
52115         * doc/gnulib.texi: Update.
52116
52117 2008-01-19  Bruno Haible  <bruno@clisp.org>
52118
52119         * doc/glibc-functions/strcasestr.texi: Include contents of
52120         doc/functions/strcasestr.texi, fixing the list of platforms.
52121         * doc/functions/strcasestr.texi: Remove file.
52122
52123 2008-01-19  Bruno Haible  <bruno@clisp.org>
52124
52125         * doc/glibc-functions/memmem.texi: Include contents of
52126         doc/functions/memmem.texi.
52127         * doc/functions/memmem.texi: Remove file.
52128
52129 2008-01-18  Bruno Haible  <bruno@clisp.org>
52130
52131         * doc/glibc-functions/*.texi: New files.
52132         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52133         to use the new files.
52134
52135 2008-01-17  Bruno Haible  <bruno@clisp.org>
52136
52137         * tests/test-gethostname.c (main): Fix printf statement.
52138
52139 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52140
52141         * modules/gethostname-tests: New file.
52142
52143         * tests/test-gethostname.c: New file.
52144
52145 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52146
52147         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52148         used by the UNAME case.  Reported by Bruno Haible
52149         <bruno@clisp.org>.
52150
52151 2008-01-17  Eric Blake  <ebb9@byu.net>
52152
52153         Convert c-strcasestr to be more efficient.
52154         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52155         (Depends-on): Add c-strcase, remove malloca, strnlen.
52156         * tests/test-c-strcasestr.c (main): Enhance test.
52157         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52158
52159 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52160
52161         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52162         Use it in creating po/Makevars.
52163
52164 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52165
52166         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52167         Applications that requires it should initialize libgcrypt
52168         manually.
52169
52170 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52171
52172         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52173
52174 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         Fix problem with getdate on mingw32 reported by Simon Josefsson
52177         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52178         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52179         tzname", when deciding whether to declare tzname.
52180         * lib/strftime.c (tzname): Likewise.
52181
52182 2008-01-15  Bruno Haible  <bruno@clisp.org>
52183
52184         Work around a MacOS X 10.5 bug in frexpl().
52185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52186         * doc/functions/frexpl.texi: Document the bug.
52187         Reported by Elias Pipping <pipping@gentoo.org>.
52188
52189 2008-01-14  Eric Blake  <ebb9@byu.net>
52190
52191         Touch up previous patch.
52192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52193         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52194
52195         Convert strcasestr module to use Two-Way algorithm.
52196         * modules/strcasestr-simple: New module, based on the old
52197         strcasestr, but with Two-Way rather than KMP.
52198         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52199         * lib/string.in.h (rpl_strcasestr): Declare.
52200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52201         performance.
52202         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52203         * modules/string (Makefile.am): Support strcasestr.
52204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52205         * modules/strcasestr-tests (Depends-on): Check for alarm.
52206         * tests/test-strcasestr.c: Augment test.
52207         * lib/str-two-way.h: Clean up stray macro.
52208         * NEWS: Document new module.
52209         * MODULES.html.sh (string handling): Likewise.
52210         * doc/functions/strcasestr.texi: New file.
52211         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52212         here, since it is not a POSIX function.
52213
52214 2008-01-14  Colin Watson  <cjwatson@debian.org>
52215             Bruno Haible  <bruno@clisp.org>
52216
52217         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52218         works fine; if not, set REPLACE_STRSIGNAL.
52219         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52221         REPLACE_STRSIGNAL.
52222         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52223         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52224         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52225
52226 2008-01-14  Bruno Haible  <bruno@clisp.org>
52227
52228         * modules/strsignal (Include): Change to <string.h>.
52229
52230 2008-01-14  Colin Watson  <cjwatson@debian.org>
52231
52232         * modules/argp (Notice): Add a notice recommending to change
52233         XGETTEXT_OPTIONS.
52234         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52235
52236 2008-01-13  Colin Watson  <cjwatson@debian.org>
52237
52238         * modules/strsignal-tests: New file.
52239         * tests/test-strsignal.c: New file.
52240
52241         * lib/strsignal.c: New file, from glibc with modifications.
52242         * lib/siglist.h: New file, from glibc with modifications.
52243         * lib/string.in.h (strsignal): New declaration.
52244         * m4/strsignal.m4: New file.
52245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52246         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52247         * modules/strsignal: New file.
52248         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52249         HAVE_DECL_STRSIGNAL.
52250
52251 2008-01-13  Bruno Haible  <bruno@clisp.org>
52252
52253         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52254         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52257
52258 2008-01-13  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52261         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52262         * lib/argp.h (__attribute__): Likewise.
52263         * lib/c-stack.c (__attribute__): Likewise.
52264         * lib/error.h (__attribute__): Likewise.
52265         * lib/fts.c (__attribute__): Likewise.
52266         * lib/openat.h (__attribute__): Likewise.
52267         * lib/stdio.in.h (__attribute__): Likewise.
52268         * lib/string.in.h (__attribute__): Likewise.
52269         * lib/utimens.c (__attribute__): Likewise.
52270         * lib/vasnprintf.h (__attribute__): Likewise.
52271         * lib/xalloc.h (__attribute__): Likewise.
52272         * lib/xprintf.h (__attribute__): Likewise.
52273         * lib/xstrtol.h (__attribute__): Likewise.
52274         * lib/xvasprintf.h (__attribute__): Likewise.
52275
52276 2008-01-12  Bruno Haible  <bruno@clisp.org>
52277
52278         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52279         * doc/glibc-headers/a.out.texi: New file.
52280         * doc/glibc-headers/aliases.texi: New file.
52281         * doc/glibc-headers/alloca.texi: New file.
52282         * doc/glibc-headers/ar.texi: New file.
52283         * doc/glibc-headers/argp.texi: New file.
52284         * doc/glibc-headers/argz.texi: New file.
52285         * doc/glibc-headers/byteswap.texi: New file.
52286         * doc/glibc-headers/crypt.texi: New file.
52287         * doc/glibc-headers/endian.texi: New file.
52288         * doc/glibc-headers/envz.texi: New file.
52289         * doc/glibc-headers/err.texi: New file.
52290         * doc/glibc-headers/error.texi: New file.
52291         * doc/glibc-headers/execinfo.texi: New file.
52292         * doc/glibc-headers/fpu_control.texi: New file.
52293         * doc/glibc-headers/fstab.texi: New file.
52294         * doc/glibc-headers/fts.texi: New file.
52295         * doc/glibc-headers/getopt.texi: New file.
52296         * doc/glibc-headers/ieee754.texi: New file.
52297         * doc/glibc-headers/ifaddrs.texi: New file.
52298         * doc/glibc-headers/libintl.texi: New file.
52299         * doc/glibc-headers/mcheck.texi: New file.
52300         * doc/glibc-headers/mntent.texi: New file.
52301         * doc/glibc-headers/obstack.texi: New file.
52302         * doc/glibc-headers/paths.texi: New file.
52303         * doc/glibc-headers/printf.texi: New file.
52304         * doc/glibc-headers/pty.texi: New file.
52305         * doc/glibc-headers/resolv.texi: New file.
52306         * doc/glibc-headers/shadow.texi: New file.
52307         * doc/glibc-headers/sysexits.texi: New file.
52308         * doc/glibc-headers/ttyent.texi: New file.
52309
52310 2008-01-12  Jim Meyering  <meyering@redhat.com>
52311
52312         announce-gen: emit Gnulib's git-based version string.
52313         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52314         New option --gnulib-version=V, where V is expected to be
52315         the output of running git describe in the gnulib directory.
52316         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52317         not useful, and plan to stop publishing an xdelta file with each
52318         coreutils release.
52319
52320         * build-aux/announce-gen: Also check for lzma-compressed files.
52321
52322 2008-01-11  Bruno Haible  <bruno@clisp.org>
52323
52324         * tests/test-memmem.c (main): Increase maximum allowed time.
52325         * tests/test-strstr.c (main): Likewise.
52326
52327 2008-01-11  Bruno Haible  <bruno@clisp.org>
52328
52329         * doc/functions/memmem.texi: Add more precisions about platforms.
52330         * doc/functions/strstr.texi: Likewise.
52331
52332 2008-01-10  Eric Blake  <ebb9@byu.net>
52333
52334         * m4/strstr.m4: Delete cruft from copy-n-paste.
52335         Reported by Bruno Haible.
52336
52337 2008-01-10  Bruno Haible  <bruno@clisp.org>
52338
52339         Make c-strstr rely on strstr.
52340         * lib/c-strstr.c: Don't include str-kmp.h.
52341         (c_strstr): Define in terms of strstr.
52342         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52343         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52344
52345 2008-01-10  Bruno Haible  <bruno@clisp.org>
52346
52347         * doc/gnulib.texi (String Functions in C Locale): New section.
52348         * doc/c-ctype.texi: New file.
52349         * doc/c-strcase.texi: New file.
52350         * doc/c-strcaseeq.texi: New file.
52351         * doc/c-strcasestr.texi: New file.
52352         * doc/c-strstr.texi: New file.
52353         * doc/c-strtod.texi: New file.
52354         * doc/c-strtold.texi: New file.
52355
52356 2008-01-10  Eric Blake  <ebb9@byu.net>
52357
52358         * lib/relocatable.h: Fix a comment.
52359
52360 2008-01-10  Eric Blake  <ebb9@byu.net>
52361
52362         Share two-way algorithm.
52363         * lib/str-two-way.h: New file, merged from...
52364         * lib/memmem.c: ...here...
52365         * lib/strstr.c: ...and here.
52366         * modules/memmem (Files): Use it.
52367         * modules/strstr (Files): Likewise.
52368
52369         Avoid quadratic strstr implementations.
52370         * lib/strstr.c: New file.
52371         * m4/strstr.m4: Likewise.
52372         * modules/strstr: Likewise.
52373         * modules/strstr-tests: Likewise.
52374         * tests/test-strstr.c: Likewise.
52375         * lib/string.in.h (rpl_strstr): Declare.
52376         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52378         * modules/string (Makefile.am): Likewise.
52379         * MODULES.html.sh (string handling): Mention new module.
52380         * doc/functions/strstr.texi (strstr): Document the bug.
52381
52382 2008-01-10  Bruno Haible  <bruno@clisp.org>
52383
52384         * lib/relocatable.h (relocate): State whether result is freshly
52385         allocated or not.
52386         * lib/relocatable.c (relocate): Return a freshly allocated string
52387         instead of a pointer to a privately held string.
52388         Reported by Sylvain Beucler <beuc@gnu.org>.
52389
52390 2008-01-10  Colin Watson  <cjwatson@debian.org>
52391
52392         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52393         s/S_ISNLK/S_ISLNK/.
52394
52395 2008-01-09  Bruno Haible  <bruno@clisp.org>
52396
52397         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52398         and other files.
52399         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52400         if it's only a guess.
52401         * modules/memmem: Simplify by depending on memmem-simple.
52402
52403 2008-01-09  Bruno Haible  <bruno@clisp.org>
52404
52405         Work around OpenBSD 4.0 tdelete() bug.
52406         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52407         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52408         macros and don't redefine the enum values.
52409         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52410         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52411         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52412
52413 2008-01-09  Bruno Haible  <bruno@clisp.org>
52414
52415         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52416         (main): Don't perform the tests if setlocale did not install a UTF-8
52417         locale. Needed on OpenBSD 4.0.
52418         * modules/wcwidth-tests (Depends-on): Add localcharset.
52419
52420 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52421
52422         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52423         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52424         * NEWS: announce this.
52425         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52426
52427 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52428         and Eric Blake  <ebb9@byu.net>
52429
52430         Add memmem-simple module.
52431         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52432         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52433         * modules/memmem-simple: New file.
52434         * modules/memmem (Description): Tweak.
52435         * MODULES.html.sh (string handling): Mention new module.
52436         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52437         addressed by memmem-simple.
52438         * NEWS: Document the difference.
52439
52440 2008-01-09  Eric Blake  <ebb9@byu.net>
52441
52442         Give gcc some memmem optimization hints.
52443         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52444         (strcasestr): Declare as pure.
52445         * modules/memmem (Maintainer): Claim my implementation.
52446
52447 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52448
52449         Support AIX 6.1 and higher.
52450         * build-aux/config.libpath: Likewise.
52451         * build-aux/config.rpath: Likewise.
52452
52453 2008-01-08  Jim Meyering  <meyering@redhat.com>
52454             Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52457         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52458         Reported by Peter Fales in
52459         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52460
52461 2008-01-08  Bruno Haible  <bruno@clisp.org>
52462
52463         * modules/unictype/category-of (Depends-on): Add
52464         unictype/category-none.
52465         * modules/unictype/category-and-tests (Depends-on): Add
52466         unictype/category-{L,N,Lu,Nd}.
52467         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52468         * modules/unictype/category-or-tests (Depends-on): Add
52469         unictype/category-{L,N}.
52470         * modules/unictype/category-name-tests (Depends-on): Add
52471         unictype/category-{Z,Nl}.
52472         Reported by Simon Josefsson.
52473
52474 2008-01-08  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52477         convention better.
52478         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52479         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52480         Reported by Peter Miller <millerp@canb.auug.org.au>.
52481
52482 2008-01-08  Eric Blake  <ebb9@byu.net>
52483
52484         Rewrite memmem to guarantee linear complexity without malloc.
52485         * lib/memmem.c (memmem): Use Two-Way rather than
52486         Knuth-Morris-Pratt, to allow O(1) space usage.
52487         (critical_factorization, two_way_short_needle)
52488         (two_way_long_needle): New functions.
52489         (knuth_morris_pratt): Delete.
52490         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52491         Add stdint.
52492         * tests/test-memmem.c (main): Add tests for periodic needle and
52493         sublinear performance.
52494         * doc/functions/memmem.texi (memmem): Document other deficiencies
52495         in cygwin and older glibc.
52496
52497 2008-01-08  Bruno Haible  <bruno@clisp.org>
52498
52499         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52500         augmentation.
52501
52502 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52503
52504         Add a configure time option: --disable-acl.
52505         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52506         AC_ARG_ENABLE(acl).
52507
52508 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52509
52510         * tests/test-localename.c: Don't include obsolete "setenv.h".
52511
52512         * modules/localename-tests (Depends-on): Need unsetenv.
52513
52514 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52515
52516         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52517
52518 2008-01-06  Colin Watson  <cjwatson@debian.org>
52519
52520         * users.txt: Add man-db.
52521
52522 2008-01-07  Bruno Haible  <bruno@clisp.org>
52523
52524         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52525         previous section name.
52526
52527 2008-01-07  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/progname.c (set_program_name): Don't strip off a leading
52530         "lt-" prefix outside a .libs directory.
52531         Suggested by Paul Eggert.
52532
52533 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52534             Bruno Haible  <bruno@clisp.org>
52535
52536         Improve memory cleanup in 'relocatable' module.
52537         * lib/relocatable.h (compute_curr_prefix): Change return type to
52538         'char *'.
52539         * lib/relocatable.c (compute_curr_prefix): Change return type to
52540         'char *'. Free curr_installdir after use.
52541         (relocate): Free curr_prefix_better after use.
52542         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52543
52544 2008-01-01  Bruno Haible  <bruno@clisp.org>
52545
52546         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52547         failure on older glibc systems.
52548         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52549
52550 2008-01-05  Eric Blake  <ebb9@byu.net>
52551
52552         Avoid quadratic system memmem.
52553         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52554         Reported by Ralf Wildenhues.
52555
52556         Fix memmem test for mingw.
52557         * modules/memmem-tests (configure.ac): Check for alarm.
52558         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52559         it.
52560         * doc/functions/memmem.texi: New file.
52561         * doc/gnulib.texi (Function Substitutes): Add memmem.
52562         Reported by Bruno Haible.
52563
52564 2008-01-04  Bruno Haible  <bruno@clisp.org>
52565
52566         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52567         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52568         gl_HEADER_STRING_H_DEFAULTS.
52569
52570 2008-01-04  Eric Blake  <ebb9@byu.net>
52571
52572         Shorten duration of memmem test.
52573         * tests/test-memmem.c (main): Use alarm to declare failure if test
52574         is taking too long.
52575         Reported by Ralf Wildenhues.
52576
52577 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52578
52579         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52580         string, needed by strerror.
52581
52582 2008-01-03  Colin Watson  <cjwatson@debian.org>
52583             Bruno Haible  <bruno@clisp.org>
52584
52585         * doc/gnulib-tool.texi (Localization): New section.
52586
52587 2008-01-02  Bruno Haible  <bruno@clisp.org>
52588
52589         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52590         variables to 'unsigned char *' type.
52591         Reported by Paul Eggert.
52592
52593 2008-01-02  Jim Meyering  <jim@meyering.net>
52594
52595         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52596
52597 2007-12-31  Jim Meyering  <jim@meyering.net>
52598
52599         Avoid use of private FTS type name.
52600         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52601
52602 2007-12-30  Karl Berry  <karl@gnu.org>
52603
52604         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52605         work around defect in Texinfo and/or the standalone Info browser.
52606
52607 2007-12-30  Bruno Haible  <bruno@clisp.org>
52608
52609         Unify 5 copies of the KMP code.
52610         * lib/str-kmp.h: New file.
52611         * lib/c-strcasestr.c: Include str-kmp.h.
52612         (knuth_morris_pratt): Remove function.
52613         (c_strcasestr): Update.
52614         * lib/c-strstr.c: Include str-kmp.h.
52615         (knuth_morris_pratt): Remove function.
52616         (c_strcasestr): Update.
52617         * lib/mbscasestr.c: Include str-kmp.h.
52618         (knuth_morris_pratt_unibyte): Remove function.
52619         * lib/mbsstr.c: Include str-kmp.h.
52620         (knuth_morris_pratt_unibyte): Remove function.
52621         * lib/strcasestr.c: Include str-kmp.h.
52622         (knuth_morris_pratt): Remove function.
52623         (strcasestr): Update.
52624         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52625         * modules/c-strstr (Files): Likewise.
52626         * modules/mbscasestr (Files): Likewise.
52627         * modules/mbsstr (Files): Likewise.
52628         * modules/strcasestr (Files): Likewise.
52629         Suggested by Paul Eggert.
52630
52631 2007-12-30  Bruno Haible  <bruno@clisp.org>
52632
52633         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52634         defined.
52635
52636 2007-12-30  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/xmalloca.h: Include xalloc.h.
52639         (xnmalloca): New macro.
52640
52641 2007-12-30  Bruno Haible  <bruno@clisp.org>
52642
52643         * lib/malloca.h (nmalloca): New macro.
52644         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52645         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52646         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52647         knuth_morris_pratt_multibyte): Likewise.
52648         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52649         knuth_morris_pratt_multibyte): Likewise.
52650         * lib/memmem.c (knuth_morris_pratt): Likewise.
52651         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52652
52653 2007-12-25  Bruno Haible  <bruno@clisp.org>
52654
52655         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52656         * lib/glob.c: Don't include openat.h.
52657         (link_exists2_p): Add back the code that deals with the
52658         !GLOB_ALTDIRFUNC case.
52659         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52660         let it do the filename concatenation.
52661         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52662         * modules/glob (Depends-on): Remove openat.
52663
52664 2007-12-31  Bruno Haible  <bruno@clisp.org>
52665
52666         * modules/dirfd (License): Change to LGPLv2+.
52667         Approved by Jim Meyering.
52668
52669 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52672         when multiplying M by sizeof (size_t).
52673
52674 2007-12-10  Martin Lambers  <marlam@marlam.de>
52675
52676         Override getpagesize on mingw.
52677         * lib/getpagesize.c: New file.
52678         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52679         * modules/getpagesize (Files): Add lib/getpagesize.c.
52680         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52682         REPLACE_GETPAGESIZE.
52683         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52684
52685 2007-12-25  Bruno Haible  <bruno@clisp.org>
52686
52687         * modules/localcharset (Notice): New field.
52688         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52689         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52690
52691 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52692             Bruno Haible  <bruno@clisp.org>
52693
52694         Avoid using the syntax symbol() in formatted documentation.
52695         * MODULES.html.sh (func_module): When replacing symbol() with a
52696         hyperlink, remove the parentheses. Show an error if some remain.
52697         Recognize and render the '...' syntax.
52698         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52699         Rework. Add paragraph about GCC's inlining.
52700         * doc/alloca.texi: Likewise.
52701         * doc/error.texi: Remove parentheses from symbol reference.
52702         * doc/gnulib-intro.texi: Likewise.
52703         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52704         * modules/fnmatch (Description): Reword to say "the ... function".
52705         * modules/full-read (Description): Likewise.
52706         * modules/full-write (Description): Likewise.
52707         * modules/safe-read (Description): Likewise.
52708         * modules/safe-write (Description): Likewise.
52709         * modules/strchrnul (Description): Likewise.
52710         * modules/trim (Description): Likewise.
52711         * modules/error (Description): Remove parentheses from symbol
52712         references.
52713         * modules/verror (Description): Likewise.
52714         Reported by Karl Berry.
52715
52716 2007-12-25  Bruno Haible  <bruno@clisp.org>
52717
52718         Fixup after 2007-10-16 commit.
52719         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52720
52721 2007-12-24  Bruno Haible  <bruno@clisp.org>
52722
52723         Make --enable-relocatable work with DESTDIR.
52724         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52725         to compute installdir from destprog.
52726         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52727         also set the RELOC_DESTDIR variable.
52728         Reported by Левашев Иван <octagram@bluebottle.com>.
52729
52730 2007-12-24  Bruno Haible  <bruno@clisp.org>
52731
52732         Fix link error due to xalloc_die().
52733         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52734         of xreadlink.
52735         * lib/relocwrapper.c: Update comments.
52736         * build-aux/install-reloc: Remove xreadlink.c from file list.
52737         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52738         xreadlink.c.
52739         Reported by Левашев Иван <octagram@bluebottle.com>.
52740
52741 2007-12-24  Bruno Haible  <bruno@clisp.org>
52742
52743         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52744         * lib/setenv.h: Remove file.
52745         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52746         lib/setenv.h.
52747         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52748         (Depends-on): Add stdlib.
52749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52750         gl_FUNC_UNSETENV.
52751         (Include): Replace setenv.h with <stdlib.h>.
52752         * modules/unsetenv: New file.
52753         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52754         * lib/unsetenv.c: Include <stdlib.h> first.
52755         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52756         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52757         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52758         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52759         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52760         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52762         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52763         * doc/functions/unsetenv.texi: Update.
52764         * modules/xsetenv (Depends-on): Add unsetenv.
52765         * modules/getdate (Depends-on): Likewise.
52766         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52767         * lib/xsetenv.c: Don't include setenv.h.
52768         * lib/getdate.y: Likewise.
52769         * lib/relocwrapper.c: Likewise.
52770         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52771         (Depends-on): Add stdlib.
52772         * NEWS: Mention the changes.
52773         Reported by Левашев Иван <octagram@bluebottle.com>.
52774
52775 2007-12-23  Bruno Haible  <bruno@clisp.org>
52776
52777         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52778         indentation.
52779
52780 2007-12-23  Bruno Haible  <bruno@clisp.org>
52781
52782         * lib/c-strcasestr.c: Add more comments.
52783         * lib/c-strstr.c: Likewise.
52784         * lib/mbscasestr.c: Likewise.
52785         * lib/mbsstr.c: Likewise.
52786         * lib/strcasestr.c: Likewise.
52787         * lib/memmem.c: Likewise.
52788
52789 2007-12-23  Bruno Haible  <bruno@clisp.org>
52790
52791         * tests/test-memmem.c: Include <string.h> first.
52792
52793 2007-12-22  Bruno Haible  <bruno@clisp.org>
52794
52795         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52796         the contents of $testsbase.
52797         Reported by Ralf Wildenhues.
52798
52799 2007-12-22  Bruno Haible  <bruno@clisp.org>
52800
52801         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52802         two variables local_ldadd_before, local_ldadd_last.
52803
52804 2007-12-20  Eric Blake  <ebb9@byu.net>
52805
52806         Work around circular library issue when cross-compiling.
52807         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52808         that progname.o does not need to pull in rpl_memcmp.
52809
52810 2007-12-19  Eric Blake  <ebb9@byu.net>
52811
52812         Fix memmem to avoid O(n^2) worst-case complexity.
52813         * lib/memmem.c (knuth_morris_pratt): New function.
52814         (memmem): Use it if first few naive iterations fail.
52815         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52816         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52817         * modules/memchr (License): Likewise.
52818         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52819         malloca.
52820         * tests/test-memmem.c: Rewrite, borrowing ideas from
52821         test-mbsstr1.c; the old version wouldn't even compile!
52822         * modules/memmem-tests: New file.
52823         * lib/string.in.h (rpl_memmem): Add declaration.
52824         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52826         REPLACE_MEMMEM.
52827
52828 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52829
52830         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52831         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52832         before any system include files, and undef after them all.  This
52833         should fix a problem on VMS reported by John E. Malmberg in
52834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52835
52836 2007-12-17  Eric Blake  <ebb9@byu.net>
52837
52838         Revert addition of verify, for BSD/OS.
52839         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52840         can't handle large files, for the sake of obsolete platforms.
52841         * modules/fseeko (Depends-on): Remove verify.
52842         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52843         * doc/functions/ftello.texi (ftello): Likewise.
52844         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52845         Reported by Larry Jones.
52846
52847 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52848
52849         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52850         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52851
52852 2007-12-17  Jim Meyering  <meyering@redhat.com>
52853
52854         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52855         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52856         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52857         * modules/getcwd (Depends-on): Add openat.
52858         Reported by Petr Salinger.
52859
52860 2007-12-17  Bruno Haible  <bruno@clisp.org>
52861
52862         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52863         avoid a segmentation fault of the configure test on x86_64 systems.
52864
52865 2007-12-15  Jim Meyering  <meyering@redhat.com>
52866
52867         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52868
52869 2007-12-13  Eric Blake  <ebb9@byu.net>
52870
52871         Another fseek test.
52872         * tests/test-fseek.c (main): Also test ungetc handling.
52873         * tests/test-fseeko.c (main): Likewise.
52874         * modules/fseeko (Depends-on): Add verify.
52875         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52876         large.
52877         Reported by Larry Jones.
52878
52879         Fix fseeko on mingw.
52880         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52881         seek.
52882
52883         Beef up fseek tests.
52884         * tests/test-fseek.c (main): Also test eof handling.
52885         * tests/test-fseeko.c (main): Likewise.
52886         Reported by Larry Jones.
52887
52888 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52889
52890         Fix fseeko on BSD-based platforms.
52891         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52892         successful seek.
52893
52894 2007-12-12  Eric Blake  <ebb9@byu.net>
52895
52896         Allow circular dependency of separate libtests.a
52897         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52898         when use_libtests.
52899
52900 2007-12-11  Eric Blake  <ebb9@byu.net>
52901
52902         Fix bug with -0.0L in previous patch.
52903         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52904         * tests/test-isnan.c (main): Also test on zeroes.
52905         * tests/test-isnanf.c (main): Likewise.
52906         * tests/test-isnanl.h (main): Likewise.
52907
52908         Detect pseudo-denormals on x86 even when cross-compiling.
52909         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52910         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52911         invalid bit patterns that happen to satisfy ==.
52912
52913         Avoid link failures with separate libtests.a.
52914         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52915         last, to satisfy circular dependencies.
52916
52917 2007-12-11  Eric Blake  <ebb9@byu.net>
52918         and Bruno Haible  <bruno@clisp.org>
52919
52920         Fix OpenBSD 4.0 <float.h> handling of long double.
52921         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52922         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52923         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52924
52925 2007-12-11  Jim Meyering  <meyering@redhat.com>
52926
52927         * users.txt: Add libvirt.
52928
52929         Support versions of autoconf prior to 2.59c.
52930         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52931         if it is not already defined.
52932
52933 2007-12-09  Bruno Haible  <bruno@clisp.org>
52934
52935         Let 'gnulib-tool --import' collect sources needed for the tests in
52936         tests/ rather than in lib/.
52937         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52938         argument. If true, add rules to generate libtests.a, and put libtests.a
52939         into $(LDADD). Consider source files in subdirectories and set
52940         uses_subdirs.
52941         (func_emit_initmacro_start, func_emit_initmacro_end,
52942         func_emit_initmacro_done): Pass all arguments explicitly.
52943         (func_import): Determine two module lists main_modules,
52944         testsrelated_modules. Determine use_libtests. Determine two variables
52945         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52946         instead of just sed_transform_lib_file. Determine two variables
52947         main_files and testsrelated_files. Compute 'files' as the union of
52948         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52949         func_add_or_update. In the generated gnulib-comp.m4, collect the
52950         object files for tests/ in different variables than those for lib/.
52951         Substitute LIBTESTS_LIBDEPS.
52952         (func_create_testdir): Combine the uses_subdirs results from
52953         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52954
52955 2007-12-09  Bruno Haible  <bruno@clisp.org>
52956
52957         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52958         the build-aux directory.
52959
52960 2007-12-09  Bruno Haible  <bruno@clisp.org>
52961
52962         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52963         introduced on 2006-09-09.
52964
52965 2007-12-07  Jim Meyering  <meyering@redhat.com>
52966
52967         Let these macros work also with autoconf-2.59.
52968         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52969         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52970         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52971
52972 2007-12-06  Jim Meyering  <meyering@redhat.com>
52973
52974         Avoid a configure-time syntax error in gl_FUNC_ACL.
52975         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52976         function in each branch, before testing the cache variable.
52977
52978 2007-12-04  Eric Blake  <ebb9@byu.net>
52979
52980         Make scripts executable.
52981         * build-aux/config.guess: Add execute permissions.
52982         * build-aux/config.sub: Likewise.
52983         * build-aux/gendocs.sh: Likewise.
52984
52985         Fix frexp on mingw.
52986         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52987         cross-compiling.
52988         * doc/functions/frexp.texi (frexp): Document the bug.
52989
52990         Make cygwin fseeko check more reliable.
52991         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52992         version numbers, rather than unrelated feature check.
52993         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52994         * doc/functions/ftello.texi (ftello): Likewise.
52995         Reported by Bruno Haible.
52996
52997         * m4/strerror.m4: Bump version number.
52998
52999 2007-12-03  Bruno Haible  <bruno@clisp.org>
53000
53001         * doc/functions/mprotect.texi: Mention the mingw problem.
53002
53003 2007-12-03  Eric Blake  <ebb9@byu.net>
53004
53005         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53006         REPLACE_STRERROR is initialized before this macro.
53007
53008 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53009
53010         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53011         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53012         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53013         put -lsec in even for programs other than 'ls'.  This fixes a problem
53014         for gettext reported by Bruno Haible in
53015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53016         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53017         Add support for Solaris 10.  This isn't efficient, but should get the
53018         job done for now.
53019
53020 2007-12-03  James Youngman  <jay@gnu.org>
53021
53022         * doc/regexprops-generic.texi: change "an close-group" to "a
53023         close-group" and "illegal" to "not allowed".
53024
53025 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53026
53027         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53028         pr_byname.h. Needed for the rare case when the maintainer has done
53029         "make maintainer-clean" in the source directory and then attempts a
53030         build outside the source directory.
53031         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53032         scripts_byname.h.
53033
53034 2007-12-02  Martin Lambers <marlam@marlam.de>
53035             Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/getpagesize.h: Remove file.
53038         * lib/unistd.in.h: Include declaration of getpagesize here.
53039         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53040         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53041         HAVE_SYS_PARAM_H.
53042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53043         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53044         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53045         (Depends-on): Add unistd.
53046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53047         (Include): Use <unistd.h> instead of getpagesize.h.
53048         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53049         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53050         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53051         gl_GETPAGESIZE invocation, already handled by module dependency.
53052         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53053
53054 2007-12-02  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/strings-tests: New file.
53057         * tests/test-strings.c: New file.
53058
53059         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53060         * lib/strings.in.h: New file.
53061         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53062         * m4/strings_h.m4: New file.
53063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53064         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53065         * modules/strings: New file.
53066         * modules/string (Makefile.am): Update.
53067         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53068         Reported by Karl Berry.
53069
53070 2007-12-01  Eric Blake  <ebb9@byu.net>
53071
53072         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53073         accomodate fix in cygwin 1.5.25.
53074
53075 2007-12-01  Jim Meyering  <meyering@redhat.com>
53076
53077         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53078         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53079         that would inhibit utf8-optimization of a regexp containing line-
53080         or buffer-anchors, e.g., `^', `$'.
53081
53082 2007-11-30  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53085         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53086         glthread_recursive_lock_init.
53087         * lib/lock.c (glthread_recursive_lock_init)
53088         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53089         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53090
53091 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         New function qset_acl, like set_acl but with syscall semantics.
53094         * lib/acl.h (qset_acl): New decl.
53095         * lib/acl.c (qset_acl): New function.
53096         (set_acl): Use new function.  Use more-consistent diagnostics.
53097
53098 2007-11-28  Jim Meyering  <meyering@redhat.com>
53099
53100         * modules/physmem (License): Change from GPL to LGPLv2+.
53101
53102 2007-11-26  Bruno Haible  <bruno@clisp.org>
53103
53104         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53105         'long double' type has excess precision.
53106         Reported by Jim Meyering in
53107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53108
53109 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53110
53111         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53112         Sync from <http://gnu.org/licenses>.
53113         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53114         with license text from same location.
53115         * doc/maintain.texi, doc/standards.texi:  Sync from
53116         <http://savannah.gnu.org/projects/gnustandards>.
53117
53118 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53119         and Jim Meyering  <meyering@redhat.com>
53120
53121         Adjust getdate' grammar to accept a slightly more regular language.
53122         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53123         Before, the former was rejected.
53124         * lib/getdate.y (digits_to_date_time): New function, factored
53125         out of ...
53126         (number): ...here.  Just call digits_to_date_time.
53127         (hybrid): New non-terminal to handle an <unsigned number,
53128         signed relative offset> sequence consistently.
53129
53130 2007-11-18  Jim Meyering  <meyering@redhat.com>
53131
53132         Pull my changes from coreutils:
53133         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53134         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53135         use of $gnulib_tool_option_extras, so that it's separated from the
53136         preceding argument.
53137
53138         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53139         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53140         parent destination directories before copying a file into place.
53141
53142 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53143
53144         bootstrap: work also with 4-argument variant of AC_INIT
53145         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53146
53147 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         Port test-getaddrinfo to Solaris.
53150         Problem reported by Bruno Haible in
53151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53152         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53153         explanation of setting 'hints'.
53154         Don't reject an implementation merely because it returns EAI_SERVICE.
53155         (EAI_SERVICE): Define to 0 if not defined.
53156
53157 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53158
53159         The license of gnu-make and posix-shell is now "GPLed build tool".
53160         * modules/gnu-make (License): Likewise.
53161         * modules/posix-shell (License): Likewise.
53162
53163         New module posix-shell, for determining a POSIX shell
53164         or perhaps something that is close enough to a POSIX shell.
53165         * m4/posix-shell.m4: New file.
53166         * modules/posix-shell: New file.
53167
53168         * MODULES.html.sh: Mention new module.
53169
53170         New module gnu-make, for determining whether we're using GNU Make.
53171         * m4/gnu-make.m4: New file.
53172         * modules/gnu-make: New file.
53173         * MODULES.html.sh: Mention new module.
53174
53175 2007-11-14  Jim Meyering  <meyering@redhat.com>
53176
53177         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53178         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53179         use this macro to create a function _definition_.
53180         Remove useless "#undef ARGMATCH_DIE".
53181
53182 2007-11-14  Bruno Haible  <bruno@clisp.org>
53183
53184         * lib/config.charset: Update for OpenBSD 4.1.
53185         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53186
53187 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         Document 64-bit #if problems in stdint.texi.
53190         * doc/headers/stdint.texi (stdint.h): Mention problems with
53191         64-bit-#if, and how to work around them.
53192
53193         Don't insist on 'long long int' support in the preprocessor.  It
53194         breaks too many things.  For example, PRIdMAX still uses a 'long
53195         long int' format with the latest Sun compiler, even though
53196         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53197         preprocessor problem.  This causes the latest coreutils to dump
53198         core on Solaris 10 sparc with the Sun C compiler.
53199         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53200         the troublesome expressions at configure-time, not at #if-time.
53201         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53202         preprocessor.
53203         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53204         compile-time C checks, done at 'configure'-time.
53205         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53206         * modules/inttypes (Makefile): Substitute the new symbols that
53207         gl_INTTYPES_H now generates.
53208         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53209
53210 2007-11-12  Bruno Haible  <bruno@clisp.org>
53211
53212         Tests for Unicode character classification functions.
53213
53214         * modules/unictype/bidicategory-byname-tests: New file.
53215         * modules/unictype/bidicategory-name-tests: New file.
53216         * modules/unictype/bidicategory-of-tests: New file.
53217         * modules/unictype/bidicategory-test-tests: New file.
53218         * modules/unictype/block-list-tests: New file.
53219         * modules/unictype/block-of-tests: New file.
53220         * modules/unictype/block-test-tests: New file.
53221         * modules/unictype/category-C-tests: New file.
53222         * modules/unictype/category-Cc-tests: New file.
53223         * modules/unictype/category-Cf-tests: New file.
53224         * modules/unictype/category-Cn-tests: New file.
53225         * modules/unictype/category-Co-tests: New file.
53226         * modules/unictype/category-Cs-tests: New file.
53227         * modules/unictype/category-L-tests: New file.
53228         * modules/unictype/category-Ll-tests: New file.
53229         * modules/unictype/category-Lm-tests: New file.
53230         * modules/unictype/category-Lo-tests: New file.
53231         * modules/unictype/category-Lt-tests: New file.
53232         * modules/unictype/category-Lu-tests: New file.
53233         * modules/unictype/category-M-tests: New file.
53234         * modules/unictype/category-Mc-tests: New file.
53235         * modules/unictype/category-Me-tests: New file.
53236         * modules/unictype/category-Mn-tests: New file.
53237         * modules/unictype/category-N-tests: New file.
53238         * modules/unictype/category-Nd-tests: New file.
53239         * modules/unictype/category-Nl-tests: New file.
53240         * modules/unictype/category-No-tests: New file.
53241         * modules/unictype/category-P-tests: New file.
53242         * modules/unictype/category-Pc-tests: New file.
53243         * modules/unictype/category-Pd-tests: New file.
53244         * modules/unictype/category-Pe-tests: New file.
53245         * modules/unictype/category-Pf-tests: New file.
53246         * modules/unictype/category-Pi-tests: New file.
53247         * modules/unictype/category-Po-tests: New file.
53248         * modules/unictype/category-Ps-tests: New file.
53249         * modules/unictype/category-S-tests: New file.
53250         * modules/unictype/category-Sc-tests: New file.
53251         * modules/unictype/category-Sk-tests: New file.
53252         * modules/unictype/category-Sm-tests: New file.
53253         * modules/unictype/category-So-tests: New file.
53254         * modules/unictype/category-Z-tests: New file.
53255         * modules/unictype/category-Zl-tests: New file.
53256         * modules/unictype/category-Zp-tests: New file.
53257         * modules/unictype/category-Zs-tests: New file.
53258         * modules/unictype/category-and-not-tests: New file.
53259         * modules/unictype/category-and-tests: New file.
53260         * modules/unictype/category-byname-tests: New file.
53261         * modules/unictype/category-name-tests: New file.
53262         * modules/unictype/category-none-tests: New file.
53263         * modules/unictype/category-of-tests: New file.
53264         * modules/unictype/category-or-tests: New file.
53265         * modules/unictype/category-test-withtable-tests: New file.
53266         * modules/unictype/combining-class-tests: New file.
53267         * modules/unictype/ctype-alnum-tests: New file.
53268         * modules/unictype/ctype-alpha-tests: New file.
53269         * modules/unictype/ctype-blank-tests: New file.
53270         * modules/unictype/ctype-cntrl-tests: New file.
53271         * modules/unictype/ctype-digit-tests: New file.
53272         * modules/unictype/ctype-graph-tests: New file.
53273         * modules/unictype/ctype-lower-tests: New file.
53274         * modules/unictype/ctype-print-tests: New file.
53275         * modules/unictype/ctype-punct-tests: New file.
53276         * modules/unictype/ctype-space-tests: New file.
53277         * modules/unictype/ctype-upper-tests: New file.
53278         * modules/unictype/ctype-xdigit-tests: New file.
53279         * modules/unictype/decimal-digit-tests: New file.
53280         * modules/unictype/digit-tests: New file.
53281         * modules/unictype/mirror-tests: New file.
53282         * modules/unictype/numeric-tests: New file.
53283         * modules/unictype/property-alphabetic-tests: New file.
53284         * modules/unictype/property-ascii-hex-digit-tests: New file.
53285         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53286         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53287         * modules/unictype/property-bidi-block-separator-tests: New file.
53288         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53289         * modules/unictype/property-bidi-common-separator-tests: New file.
53290         * modules/unictype/property-bidi-control-tests: New file.
53291         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53292         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53293         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53294         * modules/unictype/property-bidi-european-digit-tests: New file.
53295         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53296         * modules/unictype/property-bidi-left-to-right-tests: New file.
53297         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53298         * modules/unictype/property-bidi-other-neutral-tests: New file.
53299         * modules/unictype/property-bidi-pdf-tests: New file.
53300         * modules/unictype/property-bidi-segment-separator-tests: New file.
53301         * modules/unictype/property-bidi-whitespace-tests: New file.
53302         * modules/unictype/property-byname-tests: New file.
53303         * modules/unictype/property-combining-tests: New file.
53304         * modules/unictype/property-composite-tests: New file.
53305         * modules/unictype/property-currency-symbol-tests: New file.
53306         * modules/unictype/property-dash-tests: New file.
53307         * modules/unictype/property-decimal-digit-tests: New file.
53308         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53309         * modules/unictype/property-deprecated-tests: New file.
53310         * modules/unictype/property-diacritic-tests: New file.
53311         * modules/unictype/property-extender-tests: New file.
53312         * modules/unictype/property-format-control-tests: New file.
53313         * modules/unictype/property-grapheme-base-tests: New file.
53314         * modules/unictype/property-grapheme-extend-tests: New file.
53315         * modules/unictype/property-grapheme-link-tests: New file.
53316         * modules/unictype/property-hex-digit-tests: New file.
53317         * modules/unictype/property-hyphen-tests: New file.
53318         * modules/unictype/property-id-continue-tests: New file.
53319         * modules/unictype/property-id-start-tests: New file.
53320         * modules/unictype/property-ideographic-tests: New file.
53321         * modules/unictype/property-ids-binary-operator-tests: New file.
53322         * modules/unictype/property-ids-trinary-operator-tests: New file.
53323         * modules/unictype/property-ignorable-control-tests: New file.
53324         * modules/unictype/property-iso-control-tests: New file.
53325         * modules/unictype/property-join-control-tests: New file.
53326         * modules/unictype/property-left-of-pair-tests: New file.
53327         * modules/unictype/property-line-separator-tests: New file.
53328         * modules/unictype/property-logical-order-exception-tests: New file.
53329         * modules/unictype/property-lowercase-tests: New file.
53330         * modules/unictype/property-math-tests: New file.
53331         * modules/unictype/property-non-break-tests: New file.
53332         * modules/unictype/property-not-a-character-tests: New file.
53333         * modules/unictype/property-numeric-tests: New file.
53334         * modules/unictype/property-other-alphabetic-tests: New file.
53335         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53336         * modules/unictype/property-other-grapheme-extend-tests: New file.
53337         * modules/unictype/property-other-id-continue-tests: New file.
53338         * modules/unictype/property-other-id-start-tests: New file.
53339         * modules/unictype/property-other-lowercase-tests: New file.
53340         * modules/unictype/property-other-math-tests: New file.
53341         * modules/unictype/property-other-uppercase-tests: New file.
53342         * modules/unictype/property-paired-punctuation-tests: New file.
53343         * modules/unictype/property-paragraph-separator-tests: New file.
53344         * modules/unictype/property-pattern-syntax-tests: New file.
53345         * modules/unictype/property-pattern-white-space-tests: New file.
53346         * modules/unictype/property-private-use-tests: New file.
53347         * modules/unictype/property-punctuation-tests: New file.
53348         * modules/unictype/property-quotation-mark-tests: New file.
53349         * modules/unictype/property-radical-tests: New file.
53350         * modules/unictype/property-sentence-terminal-tests: New file.
53351         * modules/unictype/property-soft-dotted-tests: New file.
53352         * modules/unictype/property-space-tests: New file.
53353         * modules/unictype/property-terminal-punctuation-tests: New file.
53354         * modules/unictype/property-test-tests: New file.
53355         * modules/unictype/property-titlecase-tests: New file.
53356         * modules/unictype/property-unassigned-code-value-tests: New file.
53357         * modules/unictype/property-unified-ideograph-tests: New file.
53358         * modules/unictype/property-uppercase-tests: New file.
53359         * modules/unictype/property-variation-selector-tests: New file.
53360         * modules/unictype/property-white-space-tests: New file.
53361         * modules/unictype/property-xid-continue-tests: New file.
53362         * modules/unictype/property-xid-start-tests: New file.
53363         * modules/unictype/property-zero-width-tests: New file.
53364         * modules/unictype/scripts-tests: New file.
53365         * modules/unictype/syntax-c-ident-tests: New file.
53366         * modules/unictype/syntax-c-whitespace-tests: New file.
53367         * modules/unictype/syntax-java-ident-tests: New file.
53368         * modules/unictype/syntax-java-whitespace-tests: New file.
53369         * tests/unictype/test-bidi_byname.c: New file.
53370         * tests/unictype/test-bidi_name.c: New file.
53371         * tests/unictype/test-bidi_of.c: New file.
53372         * tests/unictype/test-bidi_test.c: New file.
53373         * tests/unictype/test-block_list.c: New file.
53374         * tests/unictype/test-block_of.c: New file.
53375         * tests/unictype/test-block_test.c: New file.
53376         * tests/unictype/test-categ_and.c: New file.
53377         * tests/unictype/test-categ_and_not.c: New file.
53378         * tests/unictype/test-categ_byname.c: New file.
53379         * tests/unictype/test-categ_name.c: New file.
53380         * tests/unictype/test-categ_none.c: New file.
53381         * tests/unictype/test-categ_of.c: New file.
53382         * tests/unictype/test-categ_or.c: New file.
53383         * tests/unictype/test-categ_test_withtable.c: New file.
53384         * tests/unictype/test-combining.c: New file.
53385         * tests/unictype/test-decdigit.c: New file.
53386         * tests/unictype/test-digit.c: New file.
53387         * tests/unictype/test-mirror.c: New file.
53388         * tests/unictype/test-numeric.c: New file.
53389         * tests/unictype/test-pr_byname.c: New file.
53390         * tests/unictype/test-pr_test.c: New file.
53391         * tests/unictype/test-predicate-part1.h: New file.
53392         * tests/unictype/test-predicate-part2.h: New file.
53393         * tests/unictype/test-scripts.c: New file.
53394         * tests/unictype/test-sy_c_ident.c: New file.
53395         * tests/unictype/test-sy_java_ident.c: New file.
53396
53397         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53398         for Unicode 5.0.0.
53399         * tests/unictype/test-categ_Cc.c: Likewise.
53400         * tests/unictype/test-categ_Cf.c: Likewise.
53401         * tests/unictype/test-categ_Cn.c: Likewise.
53402         * tests/unictype/test-categ_Co.c: Likewise.
53403         * tests/unictype/test-categ_Cs.c: Likewise.
53404         * tests/unictype/test-categ_L.c: Likewise.
53405         * tests/unictype/test-categ_Ll.c: Likewise.
53406         * tests/unictype/test-categ_Lm.c: Likewise.
53407         * tests/unictype/test-categ_Lo.c: Likewise.
53408         * tests/unictype/test-categ_Lt.c: Likewise.
53409         * tests/unictype/test-categ_Lu.c: Likewise.
53410         * tests/unictype/test-categ_M.c: Likewise.
53411         * tests/unictype/test-categ_Mc.c: Likewise.
53412         * tests/unictype/test-categ_Me.c: Likewise.
53413         * tests/unictype/test-categ_Mn.c: Likewise.
53414         * tests/unictype/test-categ_N.c: Likewise.
53415         * tests/unictype/test-categ_Nd.c: Likewise.
53416         * tests/unictype/test-categ_Nl.c: Likewise.
53417         * tests/unictype/test-categ_No.c: Likewise.
53418         * tests/unictype/test-categ_P.c: Likewise.
53419         * tests/unictype/test-categ_Pc.c: Likewise.
53420         * tests/unictype/test-categ_Pd.c: Likewise.
53421         * tests/unictype/test-categ_Pe.c: Likewise.
53422         * tests/unictype/test-categ_Pf.c: Likewise.
53423         * tests/unictype/test-categ_Pi.c: Likewise.
53424         * tests/unictype/test-categ_Po.c: Likewise.
53425         * tests/unictype/test-categ_Ps.c: Likewise.
53426         * tests/unictype/test-categ_S.c: Likewise.
53427         * tests/unictype/test-categ_Sc.c: Likewise.
53428         * tests/unictype/test-categ_Sk.c: Likewise.
53429         * tests/unictype/test-categ_Sm.c: Likewise.
53430         * tests/unictype/test-categ_So.c: Likewise.
53431         * tests/unictype/test-categ_Z.c: Likewise.
53432         * tests/unictype/test-categ_Zl.c: Likewise.
53433         * tests/unictype/test-categ_Zp.c: Likewise.
53434         * tests/unictype/test-categ_Zs.c: Likewise.
53435         * tests/unictype/test-ctype_alnum.c: Likewise.
53436         * tests/unictype/test-ctype_alpha.c: Likewise.
53437         * tests/unictype/test-ctype_blank.c: Likewise.
53438         * tests/unictype/test-ctype_cntrl.c: Likewise.
53439         * tests/unictype/test-ctype_digit.c: Likewise.
53440         * tests/unictype/test-ctype_graph.c: Likewise.
53441         * tests/unictype/test-ctype_lower.c: Likewise.
53442         * tests/unictype/test-ctype_print.c: Likewise.
53443         * tests/unictype/test-ctype_punct.c: Likewise.
53444         * tests/unictype/test-ctype_space.c: Likewise.
53445         * tests/unictype/test-ctype_upper.c: Likewise.
53446         * tests/unictype/test-ctype_xdigit.c: Likewise.
53447         * tests/unictype/test-decdigit.h: Likewise.
53448         * tests/unictype/test-digit.h: Likewise.
53449         * tests/unictype/test-numeric.h: Likewise.
53450         * tests/unictype/test-pr_alphabetic.c: Likewise.
53451         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53452         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53453         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53454         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53455         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53456         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53457         * tests/unictype/test-pr_bidi_control.c: Likewise.
53458         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53459         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53460         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53461         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53462         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53463         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53464         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53465         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53466         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53467         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53468         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53469         * tests/unictype/test-pr_combining.c: Likewise.
53470         * tests/unictype/test-pr_composite.c: Likewise.
53471         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53472         * tests/unictype/test-pr_dash.c: Likewise.
53473         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53474         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53475         * tests/unictype/test-pr_deprecated.c: Likewise.
53476         * tests/unictype/test-pr_diacritic.c: Likewise.
53477         * tests/unictype/test-pr_extender.c: Likewise.
53478         * tests/unictype/test-pr_format_control.c: Likewise.
53479         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53480         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53481         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53482         * tests/unictype/test-pr_hex_digit.c: Likewise.
53483         * tests/unictype/test-pr_hyphen.c: Likewise.
53484         * tests/unictype/test-pr_id_continue.c: Likewise.
53485         * tests/unictype/test-pr_id_start.c: Likewise.
53486         * tests/unictype/test-pr_ideographic.c: Likewise.
53487         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53488         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53489         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53490         * tests/unictype/test-pr_iso_control.c: Likewise.
53491         * tests/unictype/test-pr_join_control.c: Likewise.
53492         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53493         * tests/unictype/test-pr_line_separator.c: Likewise.
53494         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53495         * tests/unictype/test-pr_lowercase.c: Likewise.
53496         * tests/unictype/test-pr_math.c: Likewise.
53497         * tests/unictype/test-pr_non_break.c: Likewise.
53498         * tests/unictype/test-pr_not_a_character.c: Likewise.
53499         * tests/unictype/test-pr_numeric.c: Likewise.
53500         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53501         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53502         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53503         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53504         * tests/unictype/test-pr_other_id_start.c: Likewise.
53505         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53506         * tests/unictype/test-pr_other_math.c: Likewise.
53507         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53508         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53509         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53510         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53511         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53512         * tests/unictype/test-pr_private_use.c: Likewise.
53513         * tests/unictype/test-pr_punctuation.c: Likewise.
53514         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53515         * tests/unictype/test-pr_radical.c: Likewise.
53516         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53517         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53518         * tests/unictype/test-pr_space.c: Likewise.
53519         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53520         * tests/unictype/test-pr_titlecase.c: Likewise.
53521         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53522         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53523         * tests/unictype/test-pr_uppercase.c: Likewise.
53524         * tests/unictype/test-pr_variation_selector.c: Likewise.
53525         * tests/unictype/test-pr_white_space.c: Likewise.
53526         * tests/unictype/test-pr_xid_continue.c: Likewise.
53527         * tests/unictype/test-pr_xid_start.c: Likewise.
53528         * tests/unictype/test-pr_zero_width.c: Likewise.
53529         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53530         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53531
53532 2007-11-12  Bruno Haible  <bruno@clisp.org>
53533
53534         Unicode character classification functions.
53535         * lib/unictype.h: New file.
53536         * modules/unictype/base: New file.
53537         * modules/unictype/category-L: New file.
53538         * modules/unictype/category-Lu: New file.
53539         * modules/unictype/category-Ll: New file.
53540         * modules/unictype/category-Lt: New file.
53541         * modules/unictype/category-Lm: New file.
53542         * modules/unictype/category-Lo: New file.
53543         * modules/unictype/category-M: New file.
53544         * modules/unictype/category-Mn: New file.
53545         * modules/unictype/category-Mc: New file.
53546         * modules/unictype/category-Me: New file.
53547         * modules/unictype/category-N: New file.
53548         * modules/unictype/category-Nd: New file.
53549         * modules/unictype/category-Nl: New file.
53550         * modules/unictype/category-No: New file.
53551         * modules/unictype/category-P: New file.
53552         * modules/unictype/category-Pc: New file.
53553         * modules/unictype/category-Pd: New file.
53554         * modules/unictype/category-Ps: New file.
53555         * modules/unictype/category-Pe: New file.
53556         * modules/unictype/category-Pi: New file.
53557         * modules/unictype/category-Pf: New file.
53558         * modules/unictype/category-Po: New file.
53559         * modules/unictype/category-S: New file.
53560         * modules/unictype/category-Sm: New file.
53561         * modules/unictype/category-Sc: New file.
53562         * modules/unictype/category-Sk: New file.
53563         * modules/unictype/category-So: New file.
53564         * modules/unictype/category-Z: New file.
53565         * modules/unictype/category-Zs: New file.
53566         * modules/unictype/category-Zl: New file.
53567         * modules/unictype/category-Zp: New file.
53568         * modules/unictype/category-C: New file.
53569         * modules/unictype/category-Cc: New file.
53570         * modules/unictype/category-Cf: New file.
53571         * modules/unictype/category-Cs: New file.
53572         * modules/unictype/category-Co: New file.
53573         * modules/unictype/category-Cn: New file.
53574         * modules/unictype/category-or: New file.
53575         * modules/unictype/category-of: New file.
53576         * modules/unictype/category-test: New file.
53577         * modules/unictype/category-test-withtable: New file.
53578         * modules/unictype/category-byname: New file.
53579         * modules/unictype/category-none: New file.
53580         * modules/unictype/category-and: New file.
53581         * modules/unictype/category-and-not: New file.
53582         * modules/unictype/category-name: New file.
53583         * modules/unictype/combining-class: New file.
53584         * modules/unictype/category-all: New file.
53585         * modules/unictype/bidicategory-all: New file.
53586         * modules/unictype/bidicategory-byname: New file.
53587         * modules/unictype/bidicategory-name: New file.
53588         * modules/unictype/bidicategory-of: New file.
53589         * modules/unictype/bidicategory-test: New file.
53590         * modules/unictype/decimal-digit: New file.
53591         * modules/unictype/digit: New file.
53592         * modules/unictype/numeric: New file.
53593         * modules/unictype/mirror: New file.
53594         * modules/unictype/property-white-space: New file.
53595         * modules/unictype/property-alphabetic: New file.
53596         * modules/unictype/property-other-alphabetic: New file.
53597         * modules/unictype/property-not-a-character: New file.
53598         * modules/unictype/property-default-ignorable-code-point: New file.
53599         * modules/unictype/property-other-default-ignorable-code-point: New
53600         file.
53601         * modules/unictype/property-deprecated: New file.
53602         * modules/unictype/property-logical-order-exception: New file.
53603         * modules/unictype/property-variation-selector: New file.
53604         * modules/unictype/property-private-use: New file.
53605         * modules/unictype/property-unassigned-code-value: New file.
53606         * modules/unictype/property-uppercase: New file.
53607         * modules/unictype/property-other-uppercase: New file.
53608         * modules/unictype/property-lowercase: New file.
53609         * modules/unictype/property-other-lowercase: New file.
53610         * modules/unictype/property-titlecase: New file.
53611         * modules/unictype/property-soft-dotted: New file.
53612         * modules/unictype/property-id-start: New file.
53613         * modules/unictype/property-other-id-start: New file.
53614         * modules/unictype/property-id-continue: New file.
53615         * modules/unictype/property-other-id-continue: New file.
53616         * modules/unictype/property-xid-start: New file.
53617         * modules/unictype/property-xid-continue: New file.
53618         * modules/unictype/property-pattern-white-space: New file.
53619         * modules/unictype/property-pattern-syntax: New file.
53620         * modules/unictype/property-join-control: New file.
53621         * modules/unictype/property-grapheme-base: New file.
53622         * modules/unictype/property-grapheme-extend: New file.
53623         * modules/unictype/property-other-grapheme-extend: New file.
53624         * modules/unictype/property-grapheme-link: New file.
53625         * modules/unictype/property-bidi-control: New file.
53626         * modules/unictype/property-bidi-left-to-right: New file.
53627         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53628         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53629         * modules/unictype/property-bidi-european-digit: New file.
53630         * modules/unictype/property-bidi-eur-num-separator: New file.
53631         * modules/unictype/property-bidi-eur-num-terminator: New file.
53632         * modules/unictype/property-bidi-arabic-digit: New file.
53633         * modules/unictype/property-bidi-common-separator: New file.
53634         * modules/unictype/property-bidi-block-separator: New file.
53635         * modules/unictype/property-bidi-segment-separator: New file.
53636         * modules/unictype/property-bidi-whitespace: New file.
53637         * modules/unictype/property-bidi-non-spacing-mark: New file.
53638         * modules/unictype/property-bidi-boundary-neutral: New file.
53639         * modules/unictype/property-bidi-pdf: New file.
53640         * modules/unictype/property-bidi-embedding-or-override: New file.
53641         * modules/unictype/property-bidi-other-neutral: New file.
53642         * modules/unictype/property-hex-digit: New file.
53643         * modules/unictype/property-ascii-hex-digit: New file.
53644         * modules/unictype/property-ideographic: New file.
53645         * modules/unictype/property-unified-ideograph: New file.
53646         * modules/unictype/property-radical: New file.
53647         * modules/unictype/property-ids-binary-operator: New file.
53648         * modules/unictype/property-ids-trinary-operator: New file.
53649         * modules/unictype/property-zero-width: New file.
53650         * modules/unictype/property-space: New file.
53651         * modules/unictype/property-non-break: New file.
53652         * modules/unictype/property-iso-control: New file.
53653         * modules/unictype/property-format-control: New file.
53654         * modules/unictype/property-dash: New file.
53655         * modules/unictype/property-hyphen: New file.
53656         * modules/unictype/property-punctuation: New file.
53657         * modules/unictype/property-line-separator: New file.
53658         * modules/unictype/property-paragraph-separator: New file.
53659         * modules/unictype/property-quotation-mark: New file.
53660         * modules/unictype/property-sentence-terminal: New file.
53661         * modules/unictype/property-terminal-punctuation: New file.
53662         * modules/unictype/property-currency-symbol: New file.
53663         * modules/unictype/property-math: New file.
53664         * modules/unictype/property-other-math: New file.
53665         * modules/unictype/property-paired-punctuation: New file.
53666         * modules/unictype/property-left-of-pair: New file.
53667         * modules/unictype/property-combining: New file.
53668         * modules/unictype/property-composite: New file.
53669         * modules/unictype/property-decimal-digit: New file.
53670         * modules/unictype/property-numeric: New file.
53671         * modules/unictype/property-diacritic: New file.
53672         * modules/unictype/property-extender: New file.
53673         * modules/unictype/property-ignorable-control: New file.
53674         * modules/unictype/property-test: New file.
53675         * modules/unictype/property-byname: New file.
53676         * modules/unictype/property-all: New file.
53677         * modules/unictype/scripts: New file.
53678         * modules/unictype/scripts-all: New file.
53679         * modules/unictype/block-of: New file.
53680         * modules/unictype/block-test: New file.
53681         * modules/unictype/block-list: New file.
53682         * modules/unictype/block-all: New file.
53683         * modules/unictype/syntax-c-whitespace: New file.
53684         * modules/unictype/syntax-java-whitespace: New file.
53685         * modules/unictype/syntax-c-ident: New file.
53686         * modules/unictype/syntax-java-ident: New file.
53687         * modules/unictype/ctype-alnum: New file.
53688         * modules/unictype/ctype-alpha: New file.
53689         * modules/unictype/ctype-cntrl: New file.
53690         * modules/unictype/ctype-digit: New file.
53691         * modules/unictype/ctype-graph: New file.
53692         * modules/unictype/ctype-lower: New file.
53693         * modules/unictype/ctype-print: New file.
53694         * modules/unictype/ctype-punct: New file.
53695         * modules/unictype/ctype-space: New file.
53696         * modules/unictype/ctype-upper: New file.
53697         * modules/unictype/ctype-xdigit: New file.
53698         * modules/unictype/ctype-blank: New file.
53699         * lib/unictype/bidi_byname.c: New file.
53700         * lib/unictype/bidi_name.c: New file.
53701         * lib/unictype/bidi_of.c: New file.
53702         * lib/unictype/bidi_test.c: New file.
53703         * lib/unictype/bitmap.h: New file.
53704         * lib/unictype/block_test.c: New file.
53705         * lib/unictype/blocks.c: New file.
53706         * lib/unictype/categ_C.c: New file.
53707         * lib/unictype/categ_Cc.c: New file.
53708         * lib/unictype/categ_Cf.c: New file.
53709         * lib/unictype/categ_Cn.c: New file.
53710         * lib/unictype/categ_Co.c: New file.
53711         * lib/unictype/categ_Cs.c: New file.
53712         * lib/unictype/categ_L.c: New file.
53713         * lib/unictype/categ_Ll.c: New file.
53714         * lib/unictype/categ_Lm.c: New file.
53715         * lib/unictype/categ_Lo.c: New file.
53716         * lib/unictype/categ_Lt.c: New file.
53717         * lib/unictype/categ_Lu.c: New file.
53718         * lib/unictype/categ_M.c: New file.
53719         * lib/unictype/categ_Mc.c: New file.
53720         * lib/unictype/categ_Me.c: New file.
53721         * lib/unictype/categ_Mn.c: New file.
53722         * lib/unictype/categ_N.c: New file.
53723         * lib/unictype/categ_Nd.c: New file.
53724         * lib/unictype/categ_Nl.c: New file.
53725         * lib/unictype/categ_No.c: New file.
53726         * lib/unictype/categ_P.c: New file.
53727         * lib/unictype/categ_Pc.c: New file.
53728         * lib/unictype/categ_Pd.c: New file.
53729         * lib/unictype/categ_Pe.c: New file.
53730         * lib/unictype/categ_Pf.c: New file.
53731         * lib/unictype/categ_Pi.c: New file.
53732         * lib/unictype/categ_Po.c: New file.
53733         * lib/unictype/categ_Ps.c: New file.
53734         * lib/unictype/categ_S.c: New file.
53735         * lib/unictype/categ_Sc.c: New file.
53736         * lib/unictype/categ_Sk.c: New file.
53737         * lib/unictype/categ_Sm.c: New file.
53738         * lib/unictype/categ_So.c: New file.
53739         * lib/unictype/categ_Z.c: New file.
53740         * lib/unictype/categ_Zl.c: New file.
53741         * lib/unictype/categ_Zp.c: New file.
53742         * lib/unictype/categ_Zs.c: New file.
53743         * lib/unictype/categ_and.c: New file.
53744         * lib/unictype/categ_and_not.c: New file.
53745         * lib/unictype/categ_byname.c: New file.
53746         * lib/unictype/categ_name.c: New file.
53747         * lib/unictype/categ_none.c: New file.
53748         * lib/unictype/categ_of.c: New file.
53749         * lib/unictype/categ_or.c: New file.
53750         * lib/unictype/categ_test.c: New file.
53751         * lib/unictype/combining.c: New file.
53752         * lib/unictype/ctype_alnum.c: New file.
53753         * lib/unictype/ctype_alpha.c: New file.
53754         * lib/unictype/ctype_blank.c: New file.
53755         * lib/unictype/ctype_cntrl.c: New file.
53756         * lib/unictype/ctype_digit.c: New file.
53757         * lib/unictype/ctype_graph.c: New file.
53758         * lib/unictype/ctype_lower.c: New file.
53759         * lib/unictype/ctype_print.c: New file.
53760         * lib/unictype/ctype_punct.c: New file.
53761         * lib/unictype/ctype_space.c: New file.
53762         * lib/unictype/ctype_upper.c: New file.
53763         * lib/unictype/ctype_xdigit.c: New file.
53764         * lib/unictype/decdigit.c: New file.
53765         * lib/unictype/digit.c: New file.
53766         * lib/unictype/identsyntaxmap.h: New file.
53767         * lib/unictype/mirror.c: New file.
53768         * lib/unictype/numeric.c: New file.
53769         * lib/unictype/pr_alphabetic.c: New file.
53770         * lib/unictype/pr_ascii_hex_digit.c: New file.
53771         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53772         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53773         * lib/unictype/pr_bidi_block_separator.c: New file.
53774         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53775         * lib/unictype/pr_bidi_common_separator.c: New file.
53776         * lib/unictype/pr_bidi_control.c: New file.
53777         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53778         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53779         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53780         * lib/unictype/pr_bidi_european_digit.c: New file.
53781         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53782         * lib/unictype/pr_bidi_left_to_right.c: New file.
53783         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53784         * lib/unictype/pr_bidi_other_neutral.c: New file.
53785         * lib/unictype/pr_bidi_pdf.c: New file.
53786         * lib/unictype/pr_bidi_segment_separator.c: New file.
53787         * lib/unictype/pr_bidi_whitespace.c: New file.
53788         * lib/unictype/pr_byname.c: New file.
53789         * lib/unictype/pr_byname.gperf: New file.
53790         * lib/unictype/pr_combining.c: New file.
53791         * lib/unictype/pr_composite.c: New file.
53792         * lib/unictype/pr_currency_symbol.c: New file.
53793         * lib/unictype/pr_dash.c: New file.
53794         * lib/unictype/pr_decimal_digit.c: New file.
53795         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53796         * lib/unictype/pr_deprecated.c: New file.
53797         * lib/unictype/pr_diacritic.c: New file.
53798         * lib/unictype/pr_extender.c: New file.
53799         * lib/unictype/pr_format_control.c: New file.
53800         * lib/unictype/pr_grapheme_base.c: New file.
53801         * lib/unictype/pr_grapheme_extend.c: New file.
53802         * lib/unictype/pr_grapheme_link.c: New file.
53803         * lib/unictype/pr_hex_digit.c: New file.
53804         * lib/unictype/pr_hyphen.c: New file.
53805         * lib/unictype/pr_id_continue.c: New file.
53806         * lib/unictype/pr_id_start.c: New file.
53807         * lib/unictype/pr_ideographic.c: New file.
53808         * lib/unictype/pr_ids_binary_operator.c: New file.
53809         * lib/unictype/pr_ids_trinary_operator.c: New file.
53810         * lib/unictype/pr_ignorable_control.c: New file.
53811         * lib/unictype/pr_iso_control.c: New file.
53812         * lib/unictype/pr_join_control.c: New file.
53813         * lib/unictype/pr_left_of_pair.c: New file.
53814         * lib/unictype/pr_line_separator.c: New file.
53815         * lib/unictype/pr_logical_order_exception.c: New file.
53816         * lib/unictype/pr_lowercase.c: New file.
53817         * lib/unictype/pr_math.c: New file.
53818         * lib/unictype/pr_non_break.c: New file.
53819         * lib/unictype/pr_not_a_character.c: New file.
53820         * lib/unictype/pr_numeric.c: New file.
53821         * lib/unictype/pr_other_alphabetic.c: New file.
53822         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53823         * lib/unictype/pr_other_grapheme_extend.c: New file.
53824         * lib/unictype/pr_other_id_continue.c: New file.
53825         * lib/unictype/pr_other_id_start.c: New file.
53826         * lib/unictype/pr_other_lowercase.c: New file.
53827         * lib/unictype/pr_other_math.c: New file.
53828         * lib/unictype/pr_other_uppercase.c: New file.
53829         * lib/unictype/pr_paired_punctuation.c: New file.
53830         * lib/unictype/pr_paragraph_separator.c: New file.
53831         * lib/unictype/pr_pattern_syntax.c: New file.
53832         * lib/unictype/pr_pattern_white_space.c: New file.
53833         * lib/unictype/pr_private_use.c: New file.
53834         * lib/unictype/pr_punctuation.c: New file.
53835         * lib/unictype/pr_quotation_mark.c: New file.
53836         * lib/unictype/pr_radical.c: New file.
53837         * lib/unictype/pr_sentence_terminal.c: New file.
53838         * lib/unictype/pr_soft_dotted.c: New file.
53839         * lib/unictype/pr_space.c: New file.
53840         * lib/unictype/pr_terminal_punctuation.c: New file.
53841         * lib/unictype/pr_test.c: New file.
53842         * lib/unictype/pr_titlecase.c: New file.
53843         * lib/unictype/pr_unassigned_code_value.c: New file.
53844         * lib/unictype/pr_unified_ideograph.c: New file.
53845         * lib/unictype/pr_uppercase.c: New file.
53846         * lib/unictype/pr_variation_selector.c: New file.
53847         * lib/unictype/pr_white_space.c: New file.
53848         * lib/unictype/pr_xid_continue.c: New file.
53849         * lib/unictype/pr_xid_start.c: New file.
53850         * lib/unictype/pr_zero_width.c: New file.
53851         * lib/unictype/scripts.c: New file.
53852         * lib/unictype/sy_c_ident.c: New file.
53853         * lib/unictype/sy_c_whitespace.c: New file.
53854         * lib/unictype/sy_java_ident.c: New file.
53855         * lib/unictype/sy_java_whitespace.c: New file.
53856
53857         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53858         Unicode 5.0.0.
53859         * lib/unictype/blocks.h: Likewise.
53860         * lib/unictype/categ_C.h: Likewise.
53861         * lib/unictype/categ_Cc.h: Likewise.
53862         * lib/unictype/categ_Cf.h: Likewise.
53863         * lib/unictype/categ_Cn.h: Likewise.
53864         * lib/unictype/categ_Co.h: Likewise.
53865         * lib/unictype/categ_Cs.h: Likewise.
53866         * lib/unictype/categ_L.h: Likewise.
53867         * lib/unictype/categ_Ll.h: Likewise.
53868         * lib/unictype/categ_Lm.h: Likewise.
53869         * lib/unictype/categ_Lo.h: Likewise.
53870         * lib/unictype/categ_Lt.h: Likewise.
53871         * lib/unictype/categ_Lu.h: Likewise.
53872         * lib/unictype/categ_M.h: Likewise.
53873         * lib/unictype/categ_Mc.h: Likewise.
53874         * lib/unictype/categ_Me.h: Likewise.
53875         * lib/unictype/categ_Mn.h: Likewise.
53876         * lib/unictype/categ_N.h: Likewise.
53877         * lib/unictype/categ_Nd.h: Likewise.
53878         * lib/unictype/categ_Nl.h: Likewise.
53879         * lib/unictype/categ_No.h: Likewise.
53880         * lib/unictype/categ_P.h: Likewise.
53881         * lib/unictype/categ_Pc.h: Likewise.
53882         * lib/unictype/categ_Pd.h: Likewise.
53883         * lib/unictype/categ_Pe.h: Likewise.
53884         * lib/unictype/categ_Pf.h: Likewise.
53885         * lib/unictype/categ_Pi.h: Likewise.
53886         * lib/unictype/categ_Po.h: Likewise.
53887         * lib/unictype/categ_Ps.h: Likewise.
53888         * lib/unictype/categ_S.h: Likewise.
53889         * lib/unictype/categ_Sc.h: Likewise.
53890         * lib/unictype/categ_Sk.h: Likewise.
53891         * lib/unictype/categ_Sm.h: Likewise.
53892         * lib/unictype/categ_So.h: Likewise.
53893         * lib/unictype/categ_Z.h: Likewise.
53894         * lib/unictype/categ_Zl.h: Likewise.
53895         * lib/unictype/categ_Zp.h: Likewise.
53896         * lib/unictype/categ_Zs.h: Likewise.
53897         * lib/unictype/categ_of.h: Likewise.
53898         * lib/unictype/combining.h: Likewise.
53899         * lib/unictype/ctype_alnum.h: Likewise.
53900         * lib/unictype/ctype_alpha.h: Likewise.
53901         * lib/unictype/ctype_blank.h: Likewise.
53902         * lib/unictype/ctype_cntrl.h: Likewise.
53903         * lib/unictype/ctype_digit.h: Likewise.
53904         * lib/unictype/ctype_graph.h: Likewise.
53905         * lib/unictype/ctype_lower.h: Likewise.
53906         * lib/unictype/ctype_print.h: Likewise.
53907         * lib/unictype/ctype_punct.h: Likewise.
53908         * lib/unictype/ctype_space.h: Likewise.
53909         * lib/unictype/ctype_upper.h: Likewise.
53910         * lib/unictype/ctype_xdigit.h: Likewise.
53911         * lib/unictype/decdigit.h: Likewise.
53912         * lib/unictype/digit.h: Likewise.
53913         * lib/unictype/mirror.h: Likewise.
53914         * lib/unictype/numeric.h: Likewise.
53915         * lib/unictype/pr_alphabetic.h: Likewise.
53916         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53917         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53918         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53919         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53920         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53921         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53922         * lib/unictype/pr_bidi_control.h: Likewise.
53923         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53924         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53925         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53926         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53927         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53928         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53929         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53930         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53931         * lib/unictype/pr_bidi_pdf.h: Likewise.
53932         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53933         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53934         * lib/unictype/pr_combining.h: Likewise.
53935         * lib/unictype/pr_composite.h: Likewise.
53936         * lib/unictype/pr_currency_symbol.h: Likewise.
53937         * lib/unictype/pr_dash.h: Likewise.
53938         * lib/unictype/pr_decimal_digit.h: Likewise.
53939         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53940         * lib/unictype/pr_deprecated.h: Likewise.
53941         * lib/unictype/pr_diacritic.h: Likewise.
53942         * lib/unictype/pr_extender.h: Likewise.
53943         * lib/unictype/pr_format_control.h: Likewise.
53944         * lib/unictype/pr_grapheme_base.h: Likewise.
53945         * lib/unictype/pr_grapheme_extend.h: Likewise.
53946         * lib/unictype/pr_grapheme_link.h: Likewise.
53947         * lib/unictype/pr_hex_digit.h: Likewise.
53948         * lib/unictype/pr_hyphen.h: Likewise.
53949         * lib/unictype/pr_id_continue.h: Likewise.
53950         * lib/unictype/pr_id_start.h: Likewise.
53951         * lib/unictype/pr_ideographic.h: Likewise.
53952         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53953         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53954         * lib/unictype/pr_ignorable_control.h: Likewise.
53955         * lib/unictype/pr_iso_control.h: Likewise.
53956         * lib/unictype/pr_join_control.h: Likewise.
53957         * lib/unictype/pr_left_of_pair.h: Likewise.
53958         * lib/unictype/pr_line_separator.h: Likewise.
53959         * lib/unictype/pr_logical_order_exception.h: Likewise.
53960         * lib/unictype/pr_lowercase.h: Likewise.
53961         * lib/unictype/pr_math.h: Likewise.
53962         * lib/unictype/pr_non_break.h: Likewise.
53963         * lib/unictype/pr_not_a_character.h: Likewise.
53964         * lib/unictype/pr_numeric.h: Likewise.
53965         * lib/unictype/pr_other_alphabetic.h: Likewise.
53966         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53967         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53968         * lib/unictype/pr_other_id_continue.h: Likewise.
53969         * lib/unictype/pr_other_id_start.h: Likewise.
53970         * lib/unictype/pr_other_lowercase.h: Likewise.
53971         * lib/unictype/pr_other_math.h: Likewise.
53972         * lib/unictype/pr_other_uppercase.h: Likewise.
53973         * lib/unictype/pr_paired_punctuation.h: Likewise.
53974         * lib/unictype/pr_paragraph_separator.h: Likewise.
53975         * lib/unictype/pr_pattern_syntax.h: Likewise.
53976         * lib/unictype/pr_pattern_white_space.h: Likewise.
53977         * lib/unictype/pr_private_use.h: Likewise.
53978         * lib/unictype/pr_punctuation.h: Likewise.
53979         * lib/unictype/pr_quotation_mark.h: Likewise.
53980         * lib/unictype/pr_radical.h: Likewise.
53981         * lib/unictype/pr_sentence_terminal.h: Likewise.
53982         * lib/unictype/pr_soft_dotted.h: Likewise.
53983         * lib/unictype/pr_space.h: Likewise.
53984         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53985         * lib/unictype/pr_titlecase.h: Likewise.
53986         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53987         * lib/unictype/pr_unified_ideograph.h: Likewise.
53988         * lib/unictype/pr_uppercase.h: Likewise.
53989         * lib/unictype/pr_variation_selector.h: Likewise.
53990         * lib/unictype/pr_white_space.h: Likewise.
53991         * lib/unictype/pr_xid_continue.h: Likewise.
53992         * lib/unictype/pr_xid_start.h: Likewise.
53993         * lib/unictype/pr_zero_width.h: Likewise.
53994         * lib/unictype/scripts.h: Likewise.
53995         * lib/unictype/scripts_byname.gperf: Likewise.
53996         * lib/unictype/sy_c_ident.h: Likewise.
53997         * lib/unictype/sy_c_whitespace.h: Likewise.
53998         * lib/unictype/sy_java_ident.h: Likewise.
53999         * lib/unictype/sy_java_whitespace.h: Likewise.
54000
54001         * lib/unictype/Makefile: New file.
54002         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54003         glibc.
54004         * lib/unictype/3level.h: New file, copied from glibc.
54005         * lib/unictype/3levelbit.h: New file.
54006
54007 2007-11-11  Bruno Haible  <bruno@clisp.org>
54008
54009         * modules/gperf: New file.
54010         * modules/iconv_open (Depends-on): Add it.
54011         (Makefile.am): Remove the GPERF definition.
54012
54013 2007-11-11  Bruno Haible  <bruno@clisp.org>
54014
54015         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54016         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54017
54018 2007-11-11  Bruno Haible  <bruno@clisp.org>
54019
54020         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54021         (usage): Remove function.
54022
54023 2007-11-11  Bruno Haible  <bruno@clisp.org>
54024
54025         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54026         gl_FUNC_CEILF_LIBS.
54027         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54028         gl_FUNC_CEIL_LIBS.
54029         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54030         gl_FUNC_CEILL_LIBS.
54031         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54032         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54033         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54034
54035 2007-11-11  Bruno Haible  <bruno@clisp.org>
54036
54037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54038         roundf were declared but do not exist on functions.
54039         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54040         roundl were declared but do not exist on functions.
54041         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54042         HAVE_FLOORL_AND_CEILL, respectively.
54043         Needed for Sun C on Solaris 10.
54044
54045 2007-11-11  Bruno Haible  <bruno@clisp.org>
54046
54047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54048         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54049         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54050         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54051         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54052         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54053         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54054         HAVE_DECL_ROUNDF.
54055         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54056         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54058         of HAVE_DECL_ROUND*.
54059         * modules/math (Makefile.am): Update.
54060
54061 2007-11-10  Bruno Haible  <bruno@clisp.org>
54062
54063         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54064         ptrdiff_t as m4/intl.m4.
54065
54066 2007-11-10  Jim Meyering  <meyering@redhat.com>
54067
54068         Avoid link failure for the argmatch test.
54069         * tests/test-argmatch.c (usage): Define function to avoid a link
54070         failure: argmatch_die requires a usage function.
54071
54072 2007-11-09  Bruno Haible  <bruno@clisp.org>
54073
54074         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54075         * doc/functions/vsnprintf.texi: Likewise.
54076         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54077         with a size argument < 2.
54078
54079 2007-11-09  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54082         buffer. Fixes an inefficiency introduced on 2007-11-03.
54083
54084 2007-11-09  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54087         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54088
54089 2007-11-08  Jim Meyering  <meyering@redhat.com>
54090
54091         Change cache variable name prefix "jm_" to "gl_" everywhere.
54092         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54093         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54094         * m4/uptime.m4: s/gl_/jm_/
54095
54096 2007-11-07  Bruno Haible  <bruno@clisp.org>
54097
54098         Update to GNU gettext 0.17.
54099         * m4/intl.m4: Update to GNU gettext 0.17.
54100         * m4/po.m4: Likewise.
54101         * modules/gettext (Files): Remove m4/ulonglong.m4.
54102         (configure.ac): Require gettext infrastructure from version 0.17.
54103
54104 2007-11-06  Bruno Haible  <bruno@clisp.org>
54105
54106         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54107         symbolic values are not defined in a public header.
54108         * lib/freadable.c (freadable) [QNX]: Likewise.
54109         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54110         * lib/freading.c (freading) [QNX]: Likewise.
54111         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54112         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54113         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54114         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54115         Reported by Alain Magloire.
54116
54117         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54118
54119 2007-11-05  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54122         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54123         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54124         Reported by Eric Blake.
54125
54126 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54127             Bruno Haible  <bruno@clisp.org>
54128
54129         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54130         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54131         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54132         (malloc): Undefine also before including <stdlib.h>.
54133         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54134         Needed on OSF/1 4.0.
54135
54136 2007-11-05  Jim Meyering  <meyering@redhat.com>
54137
54138         git-version-gen: sync from coreutils.
54139         * build-aux/git-version-gen: Add comments.
54140         Change the first '-' to '.' in the snapshot version string,
54141         e.g., 6.9-377-08144 -> 6.9.377-08144
54142         Remove first parameter.
54143         Don't declare a version "-dirty" merely because a time
54144         stamp has changed.
54145
54146 2007-11-04  Bruno Haible  <bruno@clisp.org>
54147
54148         * lib/lock.h: Protect all macro definitions containing an 'if'
54149         statement through a "do { ... } while (0)".
54150         * lib/tls.h: Likewise.
54151
54152 2007-11-04  Bruno Haible  <bruno@clisp.org>
54153
54154         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54155
54156 2007-11-04  Bruno Haible  <bruno@clisp.org>
54157
54158         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54159         * modules/fprintf-posix (Depends-on): Add nocrash.
54160         * modules/snprintf-posix (Depends-on): Likewise.
54161         * modules/sprintf-posix (Depends-on): Likewise.
54162         * modules/vasnprintf-posix (Depends-on): Likewise.
54163         * modules/vasprintf-posix (Depends-on): Likewise.
54164         * modules/vfprintf-posix (Depends-on): Likewise.
54165         * modules/vsnprintf-posix (Depends-on): Likewise.
54166         * modules/vsprintf-posix (Depends-on): Likewise.
54167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54174
54175 2007-11-04  Bruno Haible  <bruno@clisp.org>
54176
54177         * modules/nocrash: New file.
54178         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54179         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54180
54181 2007-11-04  Bruno Haible  <bruno@clisp.org>
54182
54183         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54184         precision handling.
54185         * tests/test-vasprintf-posix.c (test_function): Likewise.
54186         * tests/test-snprintf-posix.h (test_function): Likewise.
54187         * tests/test-sprintf-posix.h (test_function): Likewise.
54188
54189         Fix *printf behaviour for large precisions on mingw and BeOS.
54190         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54191         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54193         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54195         gl_PRINTF_PRECISION and test its result. Invoke
54196         gl_PREREQ_VASNPRINTF_PRECISION.
54197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54204         * doc/functions/fprintf.texi: Update.
54205         * doc/functions/printf.texi: Update.
54206         * doc/functions/snprintf.texi: Update.
54207         * doc/functions/sprintf.texi: Update.
54208         * doc/functions/vfprintf.texi: Update.
54209         * doc/functions/vprintf.texi: Update.
54210         * doc/functions/vsnprintf.texi: Update.
54211         * doc/functions/vsprintf.texi: Update.
54212
54213 2007-11-04  Bruno Haible  <bruno@clisp.org>
54214
54215         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54216
54217 2007-11-04  Bruno Haible  <bruno@clisp.org>
54218
54219         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54220         Reported by Sylvain Beucler <beuc@gnu.org>.
54221
54222 2007-11-03  Bruno Haible  <bruno@clisp.org>
54223
54224         * tests/test-fprintf-posix2.sh: New file.
54225         * tests/test-fprintf-posix2.c: New file.
54226         * modules/fprintf-posix-tests (Files): Add them.
54227         (TESTS): Add test-fprintf-posix2.sh.
54228         (configure.ac): Check for getrlimit and setrlimit.
54229         (check_PROGRAMS): Add test-fprintf-posix2.
54230
54231         * tests/test-printf-posix2.sh: New file.
54232         * tests/test-printf-posix2.c: New file.
54233         * modules/printf-posix-tests (Files): Add them.
54234         (TESTS): Add test-printf-posix2.sh.
54235         (configure.ac): Check for getrlimit and setrlimit.
54236         (check_PROGRAMS): Add test-printf-posix2.
54237
54238         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54239         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54240         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54241         (decode_double): New function, copied from decode_long_double.
54242         (scale10_round_decimal_decoded): New function, extracted from
54243         scale10_round_decimal_long_double.
54244         (scale10_round_decimal_long_double): Use it.
54245         (scale10_round_decimal_double): New function.
54246         (floorlog10): New function.
54247         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54249         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54250         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54251         gl_PRINTF_ENOMEM and test its result. Invoke
54252         gl_PREREQ_VASNPRINTF_ENOMEM.
54253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54254         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54260         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54261         * modules/snprintf-posix (Depends-on): Likewise.
54262         * modules/sprintf-posix (Depends-on): Likewise.
54263         * modules/vasnprintf-posix (Depends-on): Likewise.
54264         * modules/vasprintf-posix (Depends-on): Likewise.
54265         * modules/vfprintf-posix (Depends-on): Likewise.
54266         * modules/vsnprintf-posix (Depends-on): Likewise.
54267         * modules/vsprintf-posix (Depends-on): Likewise.
54268         * doc/functions/fprintf.texi: Update.
54269         * doc/functions/printf.texi: Update.
54270         * doc/functions/snprintf.texi: Update.
54271         * doc/functions/sprintf.texi: Update.
54272         * doc/functions/vfprintf.texi: Update.
54273         * doc/functions/vprintf.texi: Update.
54274         * doc/functions/vsnprintf.texi: Update.
54275         * doc/functions/vsprintf.texi: Update.
54276
54277 2007-11-03  Bruno Haible  <bruno@clisp.org>
54278
54279         * modules/frexp-nolibm-tests: New file.
54280
54281         * modules/frexp-nolibm: New file.
54282         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54283
54284 2007-11-03  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54287         value is C99 compliant.
54288         Needed for OSF/1 5.1.
54289
54290 2007-11-03  Bruno Haible  <bruno@clisp.org>
54291
54292         Fix out-of-memory handling of vasnprintf.
54293         * lib/printf-parse.c: Include <errno.h>.
54294         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54295         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54296         is already set.
54297
54298 2007-11-02  Eric Blake  <ebb9@byu.net>
54299
54300         Fix tests on cygwin.
54301         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54302
54303 2007-11-01  Bruno Haible  <bruno@clisp.org>
54304
54305         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54306         warning.
54307         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54308         needed for POSIX compatibility.
54309
54310 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54313         for compatibility with GNU.
54314
54315 2007-11-01  Bruno Haible  <bruno@clisp.org>
54316
54317         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54318         (putenv): Renamed from rpl_putenv. Change argument type from
54319         'const char *' to 'char *'.
54320         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54321         of defining putenv in config.h, just set REPLACE_PUTENV.
54322         * modules/putenv (Depends-on): Add stdlib.
54323         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54324         (Include): Use <stdlib.h>.
54325         * lib/stdlib.in.h (putenv): New declaration.
54326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54327         REPLACE_PUTENV.
54328         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54329         REPLACE_PUTENV.
54330         Needed for MacOS X 10.5.0.
54331         Reported by Peter O'Gorman <peter@pogma.com>.
54332
54333 2007-11-01  Jim Meyering  <meyering@redhat.com>
54334
54335         Treat an empty date string exactly like "0".
54336         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54337         if the remaining date string (to be parsed) is empty, use "0".
54338         Reported by Mischa Molhoek and discussed in this thread:
54339         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54340
54341 2007-10-31  Bruno Haible  <bruno@clisp.org>
54342
54343         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54344         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54345         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54346         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54347         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54348         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54349
54350 2007-10-31  Bruno Haible  <bruno@clisp.org>
54351
54352         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54353         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54354         (AC_TYPE_LONG_LONG_INT): Use it.
54355         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54356         it as well.
54357         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54358         to m4/longlong.m4.
54359         * modules/stdint (Files): Remove m4/ulonglong.m4.
54360         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54361         m4/ulonglong.m4.
54362         * modules/strtoumax (Files): Likewise.
54363
54364 2007-10-30  Bruno Haible  <bruno@clisp.org>
54365
54366         * modules/xvasprintf-posix: New file.
54367         Suggested by Eric Blake.
54368
54369 2007-10-30  Bruno Haible  <bruno@clisp.org>
54370
54371         * modules/xprintf-posix-tests: New file.
54372         * tests/test-xprintf-posix.sh: New file.
54373         * tests/test-xprintf-posix.c: New file.
54374         * tests/test-xfprintf-posix.c: New file.
54375
54376         * modules/xprintf-posix: New file.
54377
54378 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54379
54380         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54381         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54382         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54383
54384 2007-10-29  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54387         contain the special marker '_cv_'.
54388         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54389         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54390         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54391         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54392         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54393         Reported by Ralf Wildenhues.
54394
54395 2007-10-29  Bruno Haible  <bruno@clisp.org>
54396
54397         * gnulib-tool (func_import): When --lgpl is not specified, set
54398         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54399         GPLv3.
54400         Reported by Simon Josefsson.
54401
54402 2007-10-28  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54405         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54406         HAVE_DECL_ISFINITE.
54407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54408         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54409         HAVE_DECL_ISFINITE.
54410
54411 2007-10-28  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54414         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54415
54416 2007-10-28  Bruno Haible  <bruno@clisp.org>
54417
54418         Fix link errors with Sun C 5.0 on Solaris 10.
54419         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54420         function is declared but not present in the compiler's libm.
54421         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54422         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54423         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54424         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54425         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54426         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54427         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54429         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54430         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54431         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54432         HAVE_DECL_FLOORL.
54433
54434 2007-10-28  Bruno Haible  <bruno@clisp.org>
54435
54436         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54437         gl_FUNC_FLOORL. Cache the result.
54438         (gl_FUNC_FLOORL): Use it.
54439         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54440         gl_FUNC_CEILL. Cache the result.
54441         (gl_FUNC_CEILL): Use it.
54442
54443         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54444         gl_FUNC_FLOOR. Cache the result.
54445         (gl_FUNC_FLOOR): Use it.
54446         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54447         gl_FUNC_CEIL. Cache the result.
54448         (gl_FUNC_CEIL): Use it.
54449
54450         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54451         gl_FUNC_FLOORF. Cache the result.
54452         (gl_FUNC_FLOORF): Use it.
54453         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54454         gl_FUNC_CEILF. Cache the result.
54455         (gl_FUNC_CEILF): Use it.
54456
54457 2007-10-28  Bruno Haible  <bruno@clisp.org>
54458
54459         * gnulib-tool: Allow specifying the LGPL version number through
54460         --lgpl=2 or --lgpl=3.
54461         (func_usage): Document --lgpl with argument.
54462         Handle --lgpl=... arguments.
54463         (func_import): Recognize also gl_LGPL calls with an argument. When
54464         --lgpl=2 is used and the module's license is just LGPL, report an
54465         error. Set sed_transform_lib_file according to the lgpl variable. In
54466         the generated files, use --lgpl or gl_LGPL invocations with argument,
54467         if necessary.
54468         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54469         an LGPv2+ license.
54470         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54471         gl_LGPL macro.
54472
54473 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54474             Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54477         (u16_uctomb_aux): Likewise.
54478         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54479         !HAVE_INLINE.
54480         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54481
54482 2007-10-28  Bruno Haible  <bruno@clisp.org>
54483
54484         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54485         Invoke AM_GETTEXT_OPTION if it exists.
54486         * modules/vasprintf: Likewise.
54487         * modules/verror: Likewise.
54488         * modules/xprintf: Likewise.
54489         * modules/xvasprintf: Likewise.
54490
54491 2007-10-27  Ben Pfaff  <blp@gnu.org>
54492
54493         * lib/math.in.h: Define isfinite macro and prototypes for
54494         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54495         implementations.
54496         * m4/math_h.m4: New substitutions for isfinite module.
54497         * lib/isfinite.c: New file.
54498         * m4/isfinite.m4: New file.
54499         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54500         * modules/isfinite: New file.
54501         * modules/isfinite-tests: New file.
54502         * tests/tests-isfinite.c: New file.
54503         * doc/functions/isfinite.texi: Mention isfinite module.
54504         * MODULES.html.sh: Mention new module.
54505
54506 2007-10-27  Ben Pfaff  <blp@gnu.org>
54507
54508         Ralf Wildenhues reported that Tru64 4.0D declares the round
54509         functions but does not have definitions.
54510         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54511         cannot be found in any library, set the output variable to
54512         "missing" instead of "".
54513         * m4/round.m4: Also use our substitute if we cannot find round in
54514         any library, even if it is declared.
54515         * m4/roundf.m4: Likewise for roundf.
54516         * m4/roundl.m4: Likewise for roundl.
54517         * lib/math.in.h: Undefine roundf, round, roundl before defining
54518         their replacements, to allow for hypothetical systems where these
54519         may be defined as macros but not available in libraries.
54520
54521 2007-10-27  Bruno Haible  <bruno@clisp.org>
54522
54523         * doc/gnulib.texi: Invoke @firstparagraphindent.
54524         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54525         changes in gnulib.
54526         (Source changes): New section.
54527
54528 2007-10-26  Bruno Haible  <bruno@clisp.org>
54529
54530         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54531         borrowed from autoconf.
54532
54533 2007-10-26  Bruno Haible  <bruno@clisp.org>
54534
54535         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54536         strerror returned the empty string. Needed on HP-UX 11.00.
54537
54538 2007-10-24  Micah Cowan  <micah@cowan.name>
54539
54540         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54541         * build-aux/bootstrap: Remove support for now-unnecessary option,
54542         --cvs-user, and envvars CVS_USER, CVS_RSH.
54543
54544 2007-10-24  Jim Meyering  <meyering@redhat.com>
54545
54546         Avoid diagnostics from sha1sum when there is no cached checksum.
54547         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54548         if the po.s1 file hasn't been created yet.
54549
54550         * build-aux/bootstrap: Sync from coreutils:
54551         2007-10-24  Jim Meyering  <meyering@redhat.com>
54552         Get gnulib from the git repository, not from an obsolete cvs one.
54553         * build-aux/bootstrap: Suggestion from Micah Cowan.
54554         2007-10-04  Jim Meyering  <jim@meyering.net>
54555         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54556         (update_po_files): Work also when there are no .po files in po/.
54557
54558 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         * README: Append ".git" to git and cg examples.
54561         Problem reported by Benoit Sigoure.
54562
54563 2007-10-23  Micah Cowan  <micah@cowan.name>
54564
54565         * users.txt: Add wget.
54566
54567 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54568
54569         Fix linking of some unistdio tests on FreeBSD.
54570         * modules/unistdio/u16-vsnprintf-tests
54571         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54572         * modules/unistdio/u16-vsprintf-tests
54573         (test_u16_vsnprintf1_LDADD): Likewise.
54574         * modules/unistdio/u32-vsnprintf-tests
54575         (test_u32_vsnprintf1_LDADD): Likewise.
54576         * modules/unistdio/u32-vsprintf-tests
54577         (test_u32_vsprintf1_LDADD): Likewise.
54578         * modules/unistdio/u8-vsnprintf-tests
54579         (test_u8_vsnprintf1_LDADD): Likewise.
54580         * modules/unistdio/u8-vsprintf-tests
54581         (test_u8_vsprintf1_LDADD): Likewise.
54582         * modules/unistdio/ulc-vsnprintf-tests
54583         (test_ulc_vsnprintf1_LDADD): Likewise.
54584         * modules/unistdio/ulc-vsprintf-tests
54585         (test_ulc_vsprintf1_LDADD): Likewise.
54586
54587         Fix linking of some uniconv tests on FreeBSD.
54588         * modules/uniconv/u16-conv-from-enc-tests
54589         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54590         * modules/uniconv/u16-conv-to-enc-tests
54591         (test_u16_conv_to_enc_LDADD): Likewise.
54592         * modules/uniconv/u16-strconv-from-enc-tests
54593         (test_u16_strconv_from_enc_LDADD): Likewise.
54594         * modules/uniconv/u16-strconv-to-enc-tests
54595         (test_u16_strconv_to_enc_LDADD): Likewise.
54596         * modules/uniconv/u32-conv-from-enc-tests
54597         (test_u32_conv_from_enc_LDADD): Likewise.
54598         * modules/uniconv/u32-conv-to-enc-tests
54599         (test_u32_conv_to_enc_LDADD): Likewise.
54600         * modules/uniconv/u32-strconv-from-enc-tests
54601         (test_u32_strconv_from_enc_LDADD): Likewise.
54602         * modules/uniconv/u32-strconv-to-enc-tests
54603         (test_u32_strconv_to_enc_LDADD): Likewise.
54604         * modules/uniconv/u8-conv-from-enc-tests
54605         (test_u8_conv_from_enc_LDADD): Likewise.
54606         * modules/uniconv/u8-conv-to-enc-tests
54607         (test_u8_conv_to_enc_LDADD): Likewise.
54608         * modules/uniconv/u8-strconv-from-enc-tests
54609         (test_u8_strconv_from_enc_LDADD): Likewise.
54610         * modules/uniconv/u8-strconv-to-enc-tests
54611         (test_u8_strconv_to_enc_LDADD): Likewise.
54612
54613 2007-10-22  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54616         size.
54617
54618 2007-10-22  Eric Blake  <ebb9@byu.net>
54619
54620         Tweak x*printf documentation.
54621         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54622         variable name and comments.
54623         Suggested by Bruno Haible.
54624
54625 2007-10-22  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/acl.c (copy_acl): Fix file name in comment.
54628
54629 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         Fix Tru64 problem with stdbool.h.
54632         * lib/stdbool.in.h (false, true):
54633         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54634         Don't declare as an enum in this situation; it runs afoul of Tru64.
54635         Problem reported by Steven M. Schweda in
54636         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54637
54638 2007-10-22  Eric Blake  <ebb9@byu.net>
54639
54640         Also wrap vf?printf.
54641         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54642         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54643         (xvprintf, xvfprintf): New functions.
54644
54645 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54646
54647         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54648         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54649
54650         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54651         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54652
54653 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54656         by Bruno Haible.
54657
54658 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54659
54660         * lib/getloadavg.c
54661         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54662         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54663
54664         * tests/test-i-ring.c: Work for C89.
54665
54666 2007-10-22  Bruno Haible  <bruno@clisp.org>
54667
54668         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54669         -1u, in preprocessor expression, so that we don't test for the bug
54670         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54672
54673 2007-10-22  Eric Blake  <ebb9@byu.net>
54674
54675         * tests/test-yesno.sh: Silence stderr during test.
54676
54677 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54678
54679         * modules/crypto/gc-camellia: New file.
54680
54681         * m4/gc-camellia.m4: New file.
54682
54683         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54684
54685         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54686
54687 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54688
54689         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54690         --help to stdout.  Reported by sms@antinode.org (Steven
54691         M. Schweda).
54692
54693 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54694
54695         * users.txt: Fix link to libksba.
54696
54697 2007-10-21  Ben Pfaff  <blp@gnu.org>
54698
54699         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54700         round.c roundf implementation that depends on floorf and ceilf to
54701         be tested unconditionally.
54702
54703 2007-10-21  Ben Pfaff  <blp@gnu.org>
54704
54705         * m4/check-libm-func.m4: Removed.
54706         * m4/check-math-lib.m4: New file.
54707         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54708         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54709         definition and lack of AC_LIBOBJ([roundf]).
54710         * m4/roundl.m4: Ditto, and similarly for roundl.
54711         * modules/round: Reference new m4 file.
54712         * modules/roundf: Ditto.
54713         * modules/roundl: Ditto.
54714         * tests/test-round2.c (main): Use ROUND instead of round.
54715         Bug report from Bruno Haible.
54716
54717 2007-10-21  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54720         context.
54721
54722 2007-10-21  Bruno Haible  <bruno@clisp.org>
54723
54724         * tests/test-wcwidth.c (main): Allow negative result for some control
54725         characters.
54726
54727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54728         Needed on OSF/1 5.1.
54729
54730 2007-10-21  Bruno Haible  <bruno@clisp.org>
54731
54732         * tests/test-floorf1.c: Include isnanf.h.
54733         (main): Use isnanf() instead of isnan().
54734         * tests/test-ceilf1.c: Include isnanf.h.
54735         (main): Use isnanf() instead of isnan().
54736         * tests/test-truncf1.c: Include isnanf.h.
54737         (main): Use isnanf() instead of isnan().
54738         * tests/test-roundf1.c: Include isnanf.h.
54739         (main): Use isnanf() instead of isnan().
54740
54741 2007-10-21  Eric Blake  <ebb9@byu.net>
54742
54743         * users.txt: Update URL for m4.
54744
54745 2007-10-21  Bruno Haible  <bruno@clisp.org>
54746
54747         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54748
54749 2007-10-21  Bruno Haible  <bruno@clisp.org>
54750
54751         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54752         Git's management files if the CVS files are not present.
54753
54754 2007-10-20  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54757         gcc-3.4.x.
54758
54759 2007-10-20  Ben Pfaff  <blp@gnu.org>
54760
54761         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54762         implementations.
54763         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54764         * lib/round.c: New file.
54765         * lib/roundf.c: New file.
54766         * lib/roundl.c: New file.
54767         * m4/round.m4: New file.
54768         * m4/roundf.m4: New file.
54769         * m4/roundl.m4: New file.
54770         * m4/check-libm-func-m4: New file.
54771         * modules/math: Replace round, roundf, roundl related @VARS@ in
54772         math.in.h.
54773         * modules/round: New file.
54774         * modules/round-tests: New file.
54775         * modules/roundf: New file.
54776         * modules/roundf-tests: New file.
54777         * modules/roundl: New file.
54778         * modules/roundl-tests: New file.
54779         * tests/test-round1.c: New file.
54780         * tests/test-round2.c: New file.
54781         * tests/test-roundf1.c: New file.
54782         * tests/test-roundf2.c: New file.
54783         * tests/test-roundl.c: New file.
54784         * doc/functions/round.texi: Mention round module.
54785         * doc/functions/roundf.texi: Mention roundf module.
54786         * doc/functions/roundl.texi: Mention roundl module.
54787         * MODULES.html.sh: Mention new modules.
54788         Thanks to Bruno Haible for suggestions.
54789
54790 2007-10-20  Jim Meyering  <meyering@redhat.com>
54791
54792         * lib/xprintf.c: Include <config.h> unconditionally.
54793
54794         Change xprintf's license to GPL.
54795         * modules/xprintf (License): s/LGPL/GPL/, since this module
54796         depends on modules (exit and exitfail) which are GPL.
54797         Suggestion from Bruno Haible.
54798
54799         xprintf fixes.
54800         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54801         Use a clearer diagnostic.
54802         Patch from Bruno Haible.
54803
54804 2007-10-20  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54807         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54809
54810 2007-10-20  Bruno Haible  <bruno@clisp.org>
54811
54812         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54813         precision in the comparison result > x - 1 or similar.
54814         * tests/test-ceilf2.c (correct_result_p): Likewise.
54815         * tests/test-truncf2.c (correct_result_p): Likewise.
54816         * tests/test-trunc2.c (correct_result_p): Likewise.
54817         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54818
54819 2007-10-20  Bruno Haible  <bruno@clisp.org>
54820
54821         * modules/ceil: New file.
54822         * m4/ceil.m4: New file.
54823         * doc/functions/ceil.texi: Mention the 'ceil' module.
54824
54825 2007-10-20  Bruno Haible  <bruno@clisp.org>
54826
54827         * modules/floor: New file.
54828         * m4/floor.m4: New file.
54829         * doc/functions/floor.texi: Mention the 'floor' module.
54830
54831 2007-10-20  Bruno Haible  <bruno@clisp.org>
54832
54833         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54834         of %a.
54835         * modules/floorf-tests (Depends-on): Likewise.
54836         * modules/truncf-tests (Depends-on): Likewise.
54837         * modules/trunc-tests (Depends-on): Likewise.
54838         Reported by Ben Pfaff.
54839
54840 2007-10-19  Jim Meyering  <meyering@redhat.com>
54841
54842         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54843         Don't bother testing specific errno values.  Just test ferror.
54844
54845         New module: xprintf
54846         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54847
54848 2007-10-19  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54851         syntax.
54852         * modules/javaexec (Makefile.am): Likewise.
54853         * modules/relocatable-prog (Makefile.am): Likewise.
54854         Suggested by Jim Meyering.
54855
54856 2007-10-18  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54859         Reported by Jim Meyering.
54860
54861 2007-10-18  Eric Blake  <ebb9@byu.net>
54862
54863         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54864
54865 2007-10-18  Bruno Haible  <bruno@clisp.org>
54866
54867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54868         the format string into writable memory. Needed in Fortify conditions.
54869
54870 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54871             Bruno Haible  <bruno@clisp.org>
54872
54873         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54874         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54875         * modules/trim (Depends-on): Add mbchar.
54876         (configure.ac): Add gl_FUNC_MBRTOWC.
54877         (Makefile.am): Augment lib_SOURCES.
54878
54879 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54880
54881         Modify glob.c to use fstatat and dirfd, to simplify it.
54882         Suggested by Eric Blake.
54883         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54884         Don't include <stdbool.h>; not used.
54885         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54886         (link_exists_p): Simplify implementation, since we can now assume
54887         dirfd and fstatat.
54888         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54889
54890 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54891
54892         * gnulib-tool (func_get_dependencies): Fix sed script to
54893         match only tests.
54894
54895 2007-10-17  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54898         allow locale names without encoding suffix.
54899         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54900         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54901
54902 2007-10-16  Bruno Haible  <bruno@clisp.org>
54903
54904         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54905         * lib/getgroups.c (getgroups): Likewise.
54906         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54907
54908 2007-10-16  Bruno Haible  <bruno@clisp.org>
54909
54910         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54911         * modules/malloc-posix (License): Likewise.
54912         * modules/realloc-posix (License): Likewise.
54913         * modules/calloc-posix (License): Likewise.
54914         * modules/intprops (License): Change from GPL to LGPL, with
54915         Paul Eggert's approval.
54916
54917 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54918
54919         Merge glibc changes into lib/glob.c.
54920
54921         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54922         2007-10-15 04:59:03 UTC.  Here are the changes:
54923
54924         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54925
54926         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54927
54928         * lib/glob.c: Add some branch prediction throughout.
54929
54930         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54931
54932         [BZ #5103]
54933         * lib/glob.c (glob): Recognize patterns starting \/.
54934
54935         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54936
54937         [BZ #3996]
54938         * lib/glob.c (attribute_hidden): Define if not defined.
54939         (glob): Unescape dirname, filename or username when needed and not
54940         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54941         is NULL.  Handle unescaped [ in pattern without closing ].
54942         Don't pass GLOB_CHECK down to recursive glob for directories.
54943         (__glob_pattern_type): New function.
54944         (__glob_pattern_p): Implement using __glob_pattern_type.
54945         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54946         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54947         Remove unreachable code.
54948
54949         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54950
54951         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54952         explain why there are no leaks.
54953
54954         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54955
54956         [BZ #3253]
54957         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54958         time, rather allocate increasingly bigger arrays of pointers, if
54959         possible with alloca, if too large with malloc.
54960
54961 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54964         Problem reported by H.Merijn Brand in
54965         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54966         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54967         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54968
54969 2007-10-15  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54972         with explicit rpl_ prefix.
54973         * lib/fopen.c (fopen): Likewise.
54974         * lib/freopen.c (freopen): Likewise.
54975         * lib/iconv.c (iconv): Likewise.
54976         * lib/iconv_close.c (iconv_close): Likewise.
54977
54978 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54979
54980         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54981
54982 2007-10-15  Bruno Haible  <bruno@clisp.org>
54983
54984         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54985         <stddef.h> instead of <stdlib.h> since we only need NULL.
54986         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54987
54988 2007-10-15  Bruno Haible  <bruno@clisp.org>
54989
54990         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54991         Replace paragraph talking about LIBOBJS.
54992         Reported by Colin Watson <cjwatson@debian.org>.
54993
54994 2007-10-15  Bruno Haible  <bruno@clisp.org>
54995
54996         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54997         <stdlib.h> before using NULL.
54998
54999 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55000
55001         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55002         Reported by Albert Chin <china@thewrittenword.com>.
55003
55004 2007-10-14  Bruno Haible  <bruno@clisp.org>
55005
55006         * modules/iconv_open-utf-tests: New file.
55007         * tests/test-iconv-utf.c: New file.
55008
55009         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55010         * modules/iconv_open-utf: New file.
55011         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55012         (iconv, iconv_close): New declarations.
55013         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55014         be defined.
55015         (iconv_open): Add special handling of conversion between UTF-8 and
55016         UTF-{16,32}{BE,LE}.
55017         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55018         * lib/iconv_close.c: New file.
55019         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55020         gl_FUNC_ICONV_OPEN.
55021         (gl_FUNC_ICONV_OPEN): Use it.
55022         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55023         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55024         and REPLACE_ICONV_UTF.
55025         * modules/iconv_open (Depends-on): Add c-strcase.
55026         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55027         ICONV_CONST.
55028         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55029
55030 2007-10-13  Albert Chin  <china@thewrittenword.com>
55031             Bruno Haible  <bruno@clisp.org>
55032
55033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55034         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55035
55036 2007-10-13  Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55039         defined, use the ISO C99 inline semantics.
55040         * lib/argp.h (ARGP_EI): Likewise.
55041
55042 2007-10-13  Bruno Haible  <bruno@clisp.org>
55043
55044         Handle 'inline' change in gcc 4.3.0.
55045         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55046         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55047         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55048         argp_fmtstream_point): Disable 'extern' declaration if the function
55049         definition is going to be provided inline.
55050         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55051         semantics, not the ISO C99 inline semantics.
55052         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55053         'extern' declaration if the function definition is going to be provided
55054         inline.
55055         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55056         the GNU C inline semantics, not the ISO C99 inline semantics. With
55057         GCC 4.2, avoid a warning.
55058
55059 2007-10-13  Bruno Haible  <bruno@clisp.org>
55060
55061         * lib/freading.h (freading): Enable the use of __freading for
55062         glibc >= 2.7.
55063         * lib/freading.c (freading): Likewise.
55064
55065 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55068         "warning: C99 inline functions are not supported; using GNU89".
55069
55070 2007-10-12  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55073         of 2.
55074         * tests/test-ceilf2.c: New file.
55075         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55076
55077         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55078         * modules/ceilf-tests: Update.
55079
55080 2007-10-12  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55083         of 2.
55084         * tests/test-floorf2.c: New file.
55085         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55086
55087         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55088         * modules/floorf-tests: Update.
55089
55090 2007-10-12  Bruno Haible  <bruno@clisp.org>
55091
55092         * tests/test-trunc2.c: New file.
55093         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55094
55095         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55096         * modules/trunc-tests: Update.
55097
55098 2007-10-12  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55101         of 2.
55102         * tests/test-truncf2.c: New file.
55103         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55104
55105         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55106         * modules/truncf-tests: Update.
55107
55108 2007-10-11  Eric Blake  <ebb9@byu.net>
55109
55110         Don't claim strerror is broken on Interix.
55111         * doc/functions/strerror.texi (strerror): Known broken systems are
55112         now Solaris 8, and not Interix.
55113         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55114         Interix on cross-compile.
55115         Reported by Martin Koeppe in
55116         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55117
55118 2007-10-11  Bruno Haible  <bruno@clisp.org>
55119
55120         * modules/i-ring-tests: New file.
55121         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55122         instead of assert.
55123
55124 2007-10-11  Bruno Haible  <bruno@clisp.org>
55125
55126         * modules/filenamecat-tests: New file.
55127         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55128         * lib/filenamecat.c: Remove test code.
55129
55130 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55133
55134         * lib/strerror.c: Include <string.h> always, to test interface,
55135         and to remove the need for the dummy.
55136         Include intprops.h to compute width instead of doing it ourselves
55137         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55138         (strerror): Define it to return NULL if there's no system strerror.
55139         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55140         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55141         ancient pre-strerror Unix systems well any more.  Saying "unknown
55142         system error" is enough.
55143         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55144         simpler strerror.c implementation.
55145         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55146         Simplify the tests to reflect the simpler strerror implementation.
55147         * modules/strerror (Depends-on): Add intprops.
55148
55149 2007-10-09  Eric Blake  <ebb9@byu.net>
55150
55151         Silence test-fpending.
55152         * modules/fpending-tests (Files): Add wrapper script.
55153         * tests/test-fpending.sh: New file.
55154
55155 2007-10-09  Bruno Haible  <bruno@clisp.org>
55156
55157         * MODULES.html.sh (func_module): Don't create a hyperlink for
55158         function names like 'printf_frexp'.
55159         (Misc): Add crc, memxor.
55160         (Characteristics of floating types): New section.
55161         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55162         isnanf-nolibm, signbit, trunc, truncf, truncl.
55163         (Enhancements for ISO C 99 functions): New subsection Input/output.
55164         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55165         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55166         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55167         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55168         (Enhancements for POSIX:2001 functions): Add chdir-long.
55169         (File system functions): Add areadlink, chdir-safer, read-file.
55170         Remove cycle-check.
55171         (File system as inode set): New section.
55172         (Date and time): Add gethrxtime.
55173         (Multithreading): Add openmp.
55174         (Internationalization functions): Add localename.
55175         (Unicode string functions): Add unistr/u*-mbsnlen.
55176         (Support for maintaining and releasing projects): Add git-version-gen.
55177         (Lone files): Remove directories.
55178
55179 2007-10-08  Ben Pfaff  <blp@gnu.org>
55180
55181         * lib/xmalloca.h: Fix typo in comment.
55182
55183 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55184
55185         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55186         when avoiding problems with integer overflow.  Use a portable test
55187         instead.
55188
55189 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55190
55191         * modules/dummy (License): Change to LGPLv2+.
55192         * modules/float (License): Likewise
55193         * modules/realloc (License): Likewise
55194         * modules/stdlib (License): Likewise
55195
55196 2007-10-07  Bruno Haible  <bruno@clisp.org>
55197
55198         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55199         * floor.c (TWO_MANT_DIG): Likewise.
55200         * ceil.c (TWO_MANT_DIG): Likewise.
55201         Reported by Ben Pfaff.
55202
55203 2007-10-07  Bruno Haible  <bruno@clisp.org>
55204
55205         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55206         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55207         * lib/frexp.c (FUNC): Likewise.
55208         * lib/printf-frexp.h (printf_frexp): Likewise.
55209         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55210         * lib/printf-frexp.c (FUNC): Likewise.
55211         Suggested by Jim Meyering.
55212
55213 2007-10-07  Jim Meyering  <meyering@redhat.com>
55214
55215         Make xnanosleep's integer overflow test more robust.
55216         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55217         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55218
55219 2007-10-07  Bruno Haible  <bruno@clisp.org>
55220
55221         * NEWS: Mention the license change.
55222
55223         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55224         abbreviations in the modules files.
55225
55226         Change copyright notice from GPLv2+ to GPLv3+.
55227         * README: Change copyright notice.
55228         * MODULES.html.sh: Likewise.
55229         * build-aux/bootstrap.conf: Likewise.
55230         * build-aux/config.libpath: Likewise.
55231         * build-aux/csharpcomp.sh.in: Likewise.
55232         * build-aux/csharpexec.sh.in: Likewise.
55233         * build-aux/install-reloc: Likewise.
55234         * build-aux/javacomp.sh.in: Likewise.
55235         * build-aux/javaexec.sh.in: Likewise.
55236         * build-aux/ldd.sh.in: Likewise.
55237         * build-aux/reloc-ldflags: Likewise.
55238         * build-aux/relocatable.sh.in: Likewise.
55239         * build-aux/x-to-1.in: Likewise.
55240         * check-module: Likewise.
55241         * config/srclistvars.sh: Likewise.
55242         * gnulib-tool: Likewise.
55243         * lib/acl-internal.h: Likewise.
55244         * lib/acl.c: Likewise.
55245         * lib/acl.h: Likewise.
55246         * lib/acl_entries.c: Likewise.
55247         * lib/areadlink-with-size.c: Likewise.
55248         * lib/areadlink.c: Likewise.
55249         * lib/areadlink.h: Likewise.
55250         * lib/argmatch.c: Likewise.
55251         * lib/argmatch.h: Likewise.
55252         * lib/argp-ba.c: Likewise.
55253         * lib/argp-eexst.c: Likewise.
55254         * lib/argp-fmtstream.c: Likewise.
55255         * lib/argp-fmtstream.h: Likewise.
55256         * lib/argp-fs-xinl.c: Likewise.
55257         * lib/argp-help.c: Likewise.
55258         * lib/argp-namefrob.h: Likewise.
55259         * lib/argp-parse.c: Likewise.
55260         * lib/argp-pin.c: Likewise.
55261         * lib/argp-pv.c: Likewise.
55262         * lib/argp-pvh.c: Likewise.
55263         * lib/argp-xinl.c: Likewise.
55264         * lib/argp.h: Likewise.
55265         * lib/at-func.c: Likewise.
55266         * lib/atanl.c: Likewise.
55267         * lib/backupfile.c: Likewise.
55268         * lib/backupfile.h: Likewise.
55269         * lib/basename.c: Likewise.
55270         * lib/binary-io.h: Likewise.
55271         * lib/byteswap.in.h: Likewise.
55272         * lib/c-stack.c: Likewise.
55273         * lib/c-stack.h: Likewise.
55274         * lib/c-strcasestr.c: Likewise.
55275         * lib/c-strcasestr.h: Likewise.
55276         * lib/c-strstr.c: Likewise.
55277         * lib/c-strstr.h: Likewise.
55278         * lib/c-strtod.c: Likewise.
55279         * lib/calloc.c: Likewise.
55280         * lib/canon-host.c: Likewise.
55281         * lib/canon-host.h: Likewise.
55282         * lib/canonicalize-lgpl.c: Likewise.
55283         * lib/canonicalize.c: Likewise.
55284         * lib/canonicalize.h: Likewise.
55285         * lib/ceil.c: Likewise.
55286         * lib/ceilf.c: Likewise.
55287         * lib/ceill.c: Likewise.
55288         * lib/chdir-long.c: Likewise.
55289         * lib/chdir-long.h: Likewise.
55290         * lib/chdir-safer.c: Likewise.
55291         * lib/chdir-safer.h: Likewise.
55292         * lib/chown.c: Likewise.
55293         * lib/classpath.c: Likewise.
55294         * lib/classpath.h: Likewise.
55295         * lib/clean-temp.c: Likewise.
55296         * lib/clean-temp.h: Likewise.
55297         * lib/cloexec.c: Likewise.
55298         * lib/close-stream.c: Likewise.
55299         * lib/closein.c: Likewise.
55300         * lib/closein.h: Likewise.
55301         * lib/closeout.c: Likewise.
55302         * lib/closeout.h: Likewise.
55303         * lib/concat-filename.c: Likewise.
55304         * lib/copy-file.c: Likewise.
55305         * lib/copy-file.h: Likewise.
55306         * lib/count-one-bits.h: Likewise.
55307         * lib/crc.c: Likewise.
55308         * lib/crc.h: Likewise.
55309         * lib/creat-safer.c: Likewise.
55310         * lib/csharpcomp.c: Likewise.
55311         * lib/csharpcomp.h: Likewise.
55312         * lib/csharpexec.c: Likewise.
55313         * lib/csharpexec.h: Likewise.
55314         * lib/cycle-check.c: Likewise.
55315         * lib/cycle-check.h: Likewise.
55316         * lib/diacrit.c: Likewise.
55317         * lib/diacrit.h: Likewise.
55318         * lib/diffseq.h: Likewise.
55319         * lib/dirchownmod.c: Likewise.
55320         * lib/dirent.in.h: Likewise.
55321         * lib/dirfd.c: Likewise.
55322         * lib/dirfd.h: Likewise.
55323         * lib/dirname.c: Likewise.
55324         * lib/dirname.h: Likewise.
55325         * lib/dummy.c: Likewise.
55326         * lib/dup-safer.c: Likewise.
55327         * lib/dup2.c: Likewise.
55328         * lib/eealloc.h: Likewise.
55329         * lib/error.c: Likewise.
55330         * lib/error.h: Likewise.
55331         * lib/euidaccess.c: Likewise.
55332         * lib/exclude.c: Likewise.
55333         * lib/exclude.h: Likewise.
55334         * lib/execute.c: Likewise.
55335         * lib/execute.h: Likewise.
55336         * lib/exitfail.c: Likewise.
55337         * lib/exitfail.h: Likewise.
55338         * lib/expl.c: Likewise.
55339         * lib/fatal-signal.c: Likewise.
55340         * lib/fatal-signal.h: Likewise.
55341         * lib/fbufmode.c: Likewise.
55342         * lib/fbufmode.h: Likewise.
55343         * lib/fchdir.c: Likewise.
55344         * lib/fchmodat.c: Likewise.
55345         * lib/fchownat.c: Likewise.
55346         * lib/fcntl--.h: Likewise.
55347         * lib/fcntl-safer.h: Likewise.
55348         * lib/fcntl.in.h: Likewise.
55349         * lib/fd-safer.c: Likewise.
55350         * lib/fflush.c: Likewise.
55351         * lib/file-has-acl.c: Likewise.
55352         * lib/file-set.c: Likewise.
55353         * lib/file-type.c: Likewise.
55354         * lib/file-type.h: Likewise.
55355         * lib/fileblocks.c: Likewise.
55356         * lib/filemode.c: Likewise.
55357         * lib/filemode.h: Likewise.
55358         * lib/filename.h: Likewise.
55359         * lib/filenamecat.c: Likewise.
55360         * lib/filenamecat.h: Likewise.
55361         * lib/findprog.c: Likewise.
55362         * lib/findprog.h: Likewise.
55363         * lib/float.in.h: Likewise.
55364         * lib/floor.c: Likewise.
55365         * lib/floorf.c: Likewise.
55366         * lib/floorl.c: Likewise.
55367         * lib/fopen-safer.c: Likewise.
55368         * lib/fopen.c: Likewise.
55369         * lib/fpending.c: Likewise.
55370         * lib/fpending.h: Likewise.
55371         * lib/fprintf.c: Likewise.
55372         * lib/fprintftime.h: Likewise.
55373         * lib/fpucw.h: Likewise.
55374         * lib/fpurge.c: Likewise.
55375         * lib/fpurge.h: Likewise.
55376         * lib/freadable.c: Likewise.
55377         * lib/freadable.h: Likewise.
55378         * lib/freadahead.c: Likewise.
55379         * lib/freadahead.h: Likewise.
55380         * lib/freading.c: Likewise.
55381         * lib/freading.h: Likewise.
55382         * lib/free.c: Likewise.
55383         * lib/freopen.c: Likewise.
55384         * lib/frexp.c: Likewise.
55385         * lib/frexpl.c: Likewise.
55386         * lib/fseek.c: Likewise.
55387         * lib/fseterr.c: Likewise.
55388         * lib/fseterr.h: Likewise.
55389         * lib/fstatat.c: Likewise.
55390         * lib/fstrcmp.c: Likewise.
55391         * lib/fstrcmp.h: Likewise.
55392         * lib/fsusage.c: Likewise.
55393         * lib/fsusage.h: Likewise.
55394         * lib/ftell.c: Likewise.
55395         * lib/ftello.c: Likewise.
55396         * lib/fts-cycle.c: Likewise.
55397         * lib/fts.c: Likewise.
55398         * lib/fts_.h: Likewise.
55399         * lib/full-read.c: Likewise.
55400         * lib/full-read.h: Likewise.
55401         * lib/full-write.c: Likewise.
55402         * lib/full-write.h: Likewise.
55403         * lib/fwritable.c: Likewise.
55404         * lib/fwritable.h: Likewise.
55405         * lib/fwriteerror.c: Likewise.
55406         * lib/fwriteerror.h: Likewise.
55407         * lib/fwriting.c: Likewise.
55408         * lib/fwriting.h: Likewise.
55409         * lib/gcd.c: Likewise.
55410         * lib/gcd.h: Likewise.
55411         * lib/getcwd.c: Likewise.
55412         * lib/getdate.h: Likewise.
55413         * lib/getdate.y: Likewise.
55414         * lib/getdomainname.c: Likewise.
55415         * lib/getdomainname.h: Likewise.
55416         * lib/getgroups.c: Likewise.
55417         * lib/gethostname.c: Likewise.
55418         * lib/gethrxtime.c: Likewise.
55419         * lib/gethrxtime.h: Likewise.
55420         * lib/getloadavg.c: Likewise.
55421         * lib/getndelim2.c: Likewise.
55422         * lib/getndelim2.h: Likewise.
55423         * lib/getnline.c: Likewise.
55424         * lib/getnline.h: Likewise.
55425         * lib/getopt.c: Likewise.
55426         * lib/getopt.in.h: Likewise.
55427         * lib/getopt1.c: Likewise.
55428         * lib/getopt_int.h: Likewise.
55429         * lib/getpagesize.h: Likewise.
55430         * lib/getsubopt.c: Likewise.
55431         * lib/gettime.c: Likewise.
55432         * lib/getugroups.c: Likewise.
55433         * lib/getugroups.h: Likewise.
55434         * lib/getusershell.c: Likewise.
55435         * lib/gl_anyavltree_list1.h: Likewise.
55436         * lib/gl_anyavltree_list2.h: Likewise.
55437         * lib/gl_anyhash_list1.h: Likewise.
55438         * lib/gl_anyhash_list2.h: Likewise.
55439         * lib/gl_anylinked_list1.h: Likewise.
55440         * lib/gl_anylinked_list2.h: Likewise.
55441         * lib/gl_anyrbtree_list1.h: Likewise.
55442         * lib/gl_anyrbtree_list2.h: Likewise.
55443         * lib/gl_anytree_list1.h: Likewise.
55444         * lib/gl_anytree_list2.h: Likewise.
55445         * lib/gl_anytree_oset.h: Likewise.
55446         * lib/gl_anytreehash_list1.h: Likewise.
55447         * lib/gl_anytreehash_list2.h: Likewise.
55448         * lib/gl_array_list.c: Likewise.
55449         * lib/gl_array_list.h: Likewise.
55450         * lib/gl_array_oset.c: Likewise.
55451         * lib/gl_array_oset.h: Likewise.
55452         * lib/gl_avltree_list.c: Likewise.
55453         * lib/gl_avltree_list.h: Likewise.
55454         * lib/gl_avltree_oset.c: Likewise.
55455         * lib/gl_avltree_oset.h: Likewise.
55456         * lib/gl_avltreehash_list.c: Likewise.
55457         * lib/gl_avltreehash_list.h: Likewise.
55458         * lib/gl_carray_list.c: Likewise.
55459         * lib/gl_carray_list.h: Likewise.
55460         * lib/gl_linked_list.c: Likewise.
55461         * lib/gl_linked_list.h: Likewise.
55462         * lib/gl_linkedhash_list.c: Likewise.
55463         * lib/gl_linkedhash_list.h: Likewise.
55464         * lib/gl_list.c: Likewise.
55465         * lib/gl_list.h: Likewise.
55466         * lib/gl_oset.c: Likewise.
55467         * lib/gl_oset.h: Likewise.
55468         * lib/gl_rbtree_list.c: Likewise.
55469         * lib/gl_rbtree_list.h: Likewise.
55470         * lib/gl_rbtree_oset.c: Likewise.
55471         * lib/gl_rbtree_oset.h: Likewise.
55472         * lib/gl_rbtreehash_list.c: Likewise.
55473         * lib/gl_rbtreehash_list.h: Likewise.
55474         * lib/gl_sublist.c: Likewise.
55475         * lib/gl_sublist.h: Likewise.
55476         * lib/group-member.c: Likewise.
55477         * lib/group-member.h: Likewise.
55478         * lib/hard-locale.c: Likewise.
55479         * lib/hard-locale.h: Likewise.
55480         * lib/hash-pjw.c: Likewise.
55481         * lib/hash-pjw.h: Likewise.
55482         * lib/hash-triple.c: Likewise.
55483         * lib/hash.c: Likewise.
55484         * lib/hash.h: Likewise.
55485         * lib/human.c: Likewise.
55486         * lib/human.h: Likewise.
55487         * lib/i-ring.c: Likewise.
55488         * lib/i-ring.h: Likewise.
55489         * lib/idcache.c: Likewise.
55490         * lib/imaxabs.c: Likewise.
55491         * lib/imaxdiv.c: Likewise.
55492         * lib/inet_pton.c: Likewise.
55493         * lib/inet_pton.h: Likewise.
55494         * lib/intprops.h: Likewise.
55495         * lib/inttostr.c: Likewise.
55496         * lib/inttostr.h: Likewise.
55497         * lib/inttypes.in.h: Likewise.
55498         * lib/isapipe.c: Likewise.
55499         * lib/isdir.c: Likewise.
55500         * lib/isnan.c: Likewise.
55501         * lib/isnan.h: Likewise.
55502         * lib/isnanf.c: Likewise.
55503         * lib/isnanf.h: Likewise.
55504         * lib/isnanl-nolibm.h: Likewise.
55505         * lib/isnanl.c: Likewise.
55506         * lib/isnanl.h: Likewise.
55507         * lib/javacomp.c: Likewise.
55508         * lib/javacomp.h: Likewise.
55509         * lib/javaexec.c: Likewise.
55510         * lib/javaexec.h: Likewise.
55511         * lib/javaversion.c: Likewise.
55512         * lib/javaversion.h: Likewise.
55513         * lib/javaversion.java: Likewise.
55514         * lib/lbrkprop.h: Likewise.
55515         * lib/lchmod.h: Likewise.
55516         * lib/lchown.c: Likewise.
55517         * lib/ldexpl.c: Likewise.
55518         * lib/linebreak.c: Likewise.
55519         * lib/linebreak.h: Likewise.
55520         * lib/linebuffer.c: Likewise.
55521         * lib/linebuffer.h: Likewise.
55522         * lib/locale.in.h: Likewise.
55523         * lib/logl.c: Likewise.
55524         * lib/long-options.c: Likewise.
55525         * lib/long-options.h: Likewise.
55526         * lib/lstat.c: Likewise.
55527         * lib/lstat.h: Likewise.
55528         * lib/math.in.h: Likewise.
55529         * lib/mbchar.c: Likewise.
55530         * lib/mbchar.h: Likewise.
55531         * lib/mbfile.h: Likewise.
55532         * lib/mbiter.h: Likewise.
55533         * lib/mbscasecmp.c: Likewise.
55534         * lib/mbscasestr.c: Likewise.
55535         * lib/mbschr.c: Likewise.
55536         * lib/mbscspn.c: Likewise.
55537         * lib/mbslen.c: Likewise.
55538         * lib/mbsncasecmp.c: Likewise.
55539         * lib/mbsnlen.c: Likewise.
55540         * lib/mbspbrk.c: Likewise.
55541         * lib/mbspcasecmp.c: Likewise.
55542         * lib/mbsrchr.c: Likewise.
55543         * lib/mbssep.c: Likewise.
55544         * lib/mbsspn.c: Likewise.
55545         * lib/mbsstr.c: Likewise.
55546         * lib/mbstok_r.c: Likewise.
55547         * lib/mbswidth.c: Likewise.
55548         * lib/mbswidth.h: Likewise.
55549         * lib/mbuiter.h: Likewise.
55550         * lib/memcasecmp.c: Likewise.
55551         * lib/memcasecmp.h: Likewise.
55552         * lib/memchr.c: Likewise.
55553         * lib/memcmp.c: Likewise.
55554         * lib/memcoll.c: Likewise.
55555         * lib/memcoll.h: Likewise.
55556         * lib/memcpy.c: Likewise.
55557         * lib/memrchr.c: Likewise.
55558         * lib/mkancesdirs.c: Likewise.
55559         * lib/mkdir-p.c: Likewise.
55560         * lib/mkdir-p.h: Likewise.
55561         * lib/mkdir.c: Likewise.
55562         * lib/mkdirat.c: Likewise.
55563         * lib/mkdtemp.c: Likewise.
55564         * lib/mkstemp-safer.c: Likewise.
55565         * lib/mkstemp.c: Likewise.
55566         * lib/modechange.c: Likewise.
55567         * lib/modechange.h: Likewise.
55568         * lib/mountlist.c: Likewise.
55569         * lib/mountlist.h: Likewise.
55570         * lib/mpsort.c: Likewise.
55571         * lib/nanosleep.c: Likewise.
55572         * lib/obstack.c: Likewise.
55573         * lib/obstack.h: Likewise.
55574         * lib/open-safer.c: Likewise.
55575         * lib/open.c: Likewise.
55576         * lib/openat-die.c: Likewise.
55577         * lib/openat-priv.h: Likewise.
55578         * lib/openat-proc.c: Likewise.
55579         * lib/openat.c: Likewise.
55580         * lib/openat.h: Likewise.
55581         * lib/pagealign_alloc.c: Likewise.
55582         * lib/pagealign_alloc.h: Likewise.
55583         * lib/physmem.c: Likewise.
55584         * lib/physmem.h: Likewise.
55585         * lib/pipe-safer.c: Likewise.
55586         * lib/pipe.c: Likewise.
55587         * lib/pipe.h: Likewise.
55588         * lib/posixtm.c: Likewise.
55589         * lib/posixtm.h: Likewise.
55590         * lib/posixver.c: Likewise.
55591         * lib/printf-frexp.c: Likewise.
55592         * lib/printf-frexp.h: Likewise.
55593         * lib/printf-frexpl.c: Likewise.
55594         * lib/printf-frexpl.h: Likewise.
55595         * lib/printf.c: Likewise.
55596         * lib/progname.c: Likewise.
55597         * lib/progname.h: Likewise.
55598         * lib/progreloc.c: Likewise.
55599         * lib/putenv.c: Likewise.
55600         * lib/quote.c: Likewise.
55601         * lib/quote.h: Likewise.
55602         * lib/quotearg.c: Likewise.
55603         * lib/quotearg.h: Likewise.
55604         * lib/raise.c: Likewise.
55605         * lib/readline.c: Likewise.
55606         * lib/readline.h: Likewise.
55607         * lib/readlink.c: Likewise.
55608         * lib/readtokens.c: Likewise.
55609         * lib/readtokens.h: Likewise.
55610         * lib/readtokens0.c: Likewise.
55611         * lib/readtokens0.h: Likewise.
55612         * lib/readutmp.c: Likewise.
55613         * lib/readutmp.h: Likewise.
55614         * lib/realloc.c: Likewise.
55615         * lib/relocwrapper.c: Likewise.
55616         * lib/rename-dest-slash.c: Likewise.
55617         * lib/rename.c: Likewise.
55618         * lib/rmdir.c: Likewise.
55619         * lib/rpmatch.c: Likewise.
55620         * lib/safe-read.c: Likewise.
55621         * lib/safe-read.h: Likewise.
55622         * lib/safe-write.c: Likewise.
55623         * lib/safe-write.h: Likewise.
55624         * lib/same-inode.h: Likewise.
55625         * lib/same.c: Likewise.
55626         * lib/same.h: Likewise.
55627         * lib/save-cwd.c: Likewise.
55628         * lib/save-cwd.h: Likewise.
55629         * lib/savedir.c: Likewise.
55630         * lib/savedir.h: Likewise.
55631         * lib/savewd.c: Likewise.
55632         * lib/savewd.h: Likewise.
55633         * lib/search.in.h: Likewise.
55634         * lib/setenv.c: Likewise.
55635         * lib/setenv.h: Likewise.
55636         * lib/settime.c: Likewise.
55637         * lib/sh-quote.c: Likewise.
55638         * lib/sh-quote.h: Likewise.
55639         * lib/sig2str.c: Likewise.
55640         * lib/sig2str.h: Likewise.
55641         * lib/signal.in.h: Likewise.
55642         * lib/signbitd.c: Likewise.
55643         * lib/signbitf.c: Likewise.
55644         * lib/signbitl.c: Likewise.
55645         * lib/sigprocmask.c: Likewise.
55646         * lib/sincosl.c: Likewise.
55647         * lib/sleep.c: Likewise.
55648         * lib/sprintf.c: Likewise.
55649         * lib/sqrtl.c: Likewise.
55650         * lib/stat-time.h: Likewise.
55651         * lib/stdio--.h: Likewise.
55652         * lib/stdio-safer.h: Likewise.
55653         * lib/stdlib--.h: Likewise.
55654         * lib/stdlib-safer.h: Likewise.
55655         * lib/stdlib.in.h: Likewise.
55656         * lib/stpcpy.c: Likewise.
55657         * lib/stpncpy.c: Likewise.
55658         * lib/strchrnul.c: Likewise.
55659         * lib/strcspn.c: Likewise.
55660         * lib/strerror.c: Likewise.
55661         * lib/strftime.c: Likewise.
55662         * lib/strftime.h: Likewise.
55663         * lib/striconveh.c: Likewise.
55664         * lib/striconveh.h: Likewise.
55665         * lib/striconveha.c: Likewise.
55666         * lib/striconveha.h: Likewise.
55667         * lib/stripslash.c: Likewise.
55668         * lib/strnlen1.c: Likewise.
55669         * lib/strnlen1.h: Likewise.
55670         * lib/strtod.c: Likewise.
55671         * lib/strtoimax.c: Likewise.
55672         * lib/strtok_r.c: Likewise.
55673         * lib/strtol.c: Likewise.
55674         * lib/strtoll.c: Likewise.
55675         * lib/strtoul.c: Likewise.
55676         * lib/strtoull.c: Likewise.
55677         * lib/sysexits.in.h: Likewise.
55678         * lib/tempname.c: Likewise.
55679         * lib/tempname.h: Likewise.
55680         * lib/timespec.h: Likewise.
55681         * lib/tls.c: Likewise.
55682         * lib/tls.h: Likewise.
55683         * lib/tmpdir.c: Likewise.
55684         * lib/tmpdir.h: Likewise.
55685         * lib/tmpfile-safer.c: Likewise.
55686         * lib/tmpfile.c: Likewise.
55687         * lib/trigl.c: Likewise.
55688         * lib/trigl.h: Likewise.
55689         * lib/trim.c: Likewise.
55690         * lib/trim.h: Likewise.
55691         * lib/trunc.c: Likewise.
55692         * lib/truncf.c: Likewise.
55693         * lib/truncl.c: Likewise.
55694         * lib/tsearch.c: Likewise.
55695         * lib/unicodeio.c: Likewise.
55696         * lib/unicodeio.h: Likewise.
55697         * lib/unistd--.h: Likewise.
55698         * lib/unistd-safer.h: Likewise.
55699         * lib/unistdio/ulc-fprintf.c: Likewise.
55700         * lib/unistdio/ulc-vfprintf.c: Likewise.
55701         * lib/unlinkdir.c: Likewise.
55702         * lib/unlinkdir.h: Likewise.
55703         * lib/unlocked-io.h: Likewise.
55704         * lib/unsetenv.c: Likewise.
55705         * lib/userspec.c: Likewise.
55706         * lib/utime.c: Likewise.
55707         * lib/utimecmp.c: Likewise.
55708         * lib/utimecmp.h: Likewise.
55709         * lib/utimens.c: Likewise.
55710         * lib/verify.h: Likewise.
55711         * lib/verror.c: Likewise.
55712         * lib/verror.h: Likewise.
55713         * lib/version-etc-fsf.c: Likewise.
55714         * lib/version-etc.c: Likewise.
55715         * lib/version-etc.h: Likewise.
55716         * lib/vfprintf.c: Likewise.
55717         * lib/vprintf.c: Likewise.
55718         * lib/vsprintf.c: Likewise.
55719         * lib/w32spawn.h: Likewise.
55720         * lib/wait-process.c: Likewise.
55721         * lib/wait-process.h: Likewise.
55722         * lib/wcwidth.c: Likewise.
55723         * lib/write-any-file.c: Likewise.
55724         * lib/xalloc-die.c: Likewise.
55725         * lib/xalloc.h: Likewise.
55726         * lib/xasprintf.c: Likewise.
55727         * lib/xgetcwd.c: Likewise.
55728         * lib/xgetcwd.h: Likewise.
55729         * lib/xgetdomainname.c: Likewise.
55730         * lib/xgetdomainname.h: Likewise.
55731         * lib/xgethostname.c: Likewise.
55732         * lib/xmalloc.c: Likewise.
55733         * lib/xmalloca.c: Likewise.
55734         * lib/xmalloca.h: Likewise.
55735         * lib/xmemcoll.c: Likewise.
55736         * lib/xnanosleep.c: Likewise.
55737         * lib/xreadlink.c: Likewise.
55738         * lib/xreadlink.h: Likewise.
55739         * lib/xsetenv.c: Likewise.
55740         * lib/xsetenv.h: Likewise.
55741         * lib/xstriconv.c: Likewise.
55742         * lib/xstriconv.h: Likewise.
55743         * lib/xstrndup.c: Likewise.
55744         * lib/xstrndup.h: Likewise.
55745         * lib/xstrtod.c: Likewise.
55746         * lib/xstrtod.h: Likewise.
55747         * lib/xstrtol-error.c: Likewise.
55748         * lib/xstrtol.c: Likewise.
55749         * lib/xstrtol.h: Likewise.
55750         * lib/xtime.h: Likewise.
55751         * lib/xvasprintf.c: Likewise.
55752         * lib/xvasprintf.h: Likewise.
55753         * lib/yesno.c: Likewise.
55754         * lib/yesno.h: Likewise.
55755         * posix-modules: Likewise.
55756         * tests/test-alloca-opt.c: Likewise.
55757         * tests/test-arcfour.c: Likewise.
55758         * tests/test-arctwo.c: Likewise.
55759         * tests/test-argmatch.c: Likewise.
55760         * tests/test-argp-2.sh: Likewise.
55761         * tests/test-argp.c: Likewise.
55762         * tests/test-arpa_inet.c: Likewise.
55763         * tests/test-array_list.c: Likewise.
55764         * tests/test-array_oset.c: Likewise.
55765         * tests/test-atexit.c: Likewise.
55766         * tests/test-avltree_list.c: Likewise.
55767         * tests/test-avltree_oset.c: Likewise.
55768         * tests/test-avltreehash_list.c: Likewise.
55769         * tests/test-base64.c: Likewise.
55770         * tests/test-binary-io.c: Likewise.
55771         * tests/test-byteswap.c: Likewise.
55772         * tests/test-c-ctype.c: Likewise.
55773         * tests/test-c-strcasecmp.c: Likewise.
55774         * tests/test-c-strcasestr.c: Likewise.
55775         * tests/test-c-strncasecmp.c: Likewise.
55776         * tests/test-c-strstr.c: Likewise.
55777         * tests/test-canonicalize-lgpl.c: Likewise.
55778         * tests/test-canonicalize.c: Likewise.
55779         * tests/test-carray_list.c: Likewise.
55780         * tests/test-ceilf.c: Likewise.
55781         * tests/test-ceill.c: Likewise.
55782         * tests/test-count-one-bits.c: Likewise.
55783         * tests/test-crc.c: Likewise.
55784         * tests/test-dirname.c: Likewise.
55785         * tests/test-fbufmode.c: Likewise.
55786         * tests/test-fcntl.c: Likewise.
55787         * tests/test-fflush.c: Likewise.
55788         * tests/test-floorf.c: Likewise.
55789         * tests/test-floorl.c: Likewise.
55790         * tests/test-fopen.c: Likewise.
55791         * tests/test-fprintf-posix.c: Likewise.
55792         * tests/test-fprintf-posix.h: Likewise.
55793         * tests/test-fpurge.c: Likewise.
55794         * tests/test-freadable.c: Likewise.
55795         * tests/test-freadahead.c: Likewise.
55796         * tests/test-freading.c: Likewise.
55797         * tests/test-freopen.c: Likewise.
55798         * tests/test-frexp.c: Likewise.
55799         * tests/test-frexpl.c: Likewise.
55800         * tests/test-fseek.c: Likewise.
55801         * tests/test-fseeko.c: Likewise.
55802         * tests/test-fseterr.c: Likewise.
55803         * tests/test-fstrcmp.c: Likewise.
55804         * tests/test-ftell.c: Likewise.
55805         * tests/test-ftello.c: Likewise.
55806         * tests/test-fwritable.c: Likewise.
55807         * tests/test-fwriting.c: Likewise.
55808         * tests/test-getaddrinfo.c: Likewise.
55809         * tests/test-getpass.c: Likewise.
55810         * tests/test-gettimeofday.c: Likewise.
55811         * tests/test-hmac-md5.c: Likewise.
55812         * tests/test-hmac-sha1.c: Likewise.
55813         * tests/test-iconv.c: Likewise.
55814         * tests/test-iconvme.c: Likewise.
55815         * tests/test-inttypes.c: Likewise.
55816         * tests/test-isnan.c: Likewise.
55817         * tests/test-isnanf.c: Likewise.
55818         * tests/test-isnanl-nolibm.c: Likewise.
55819         * tests/test-isnanl.c: Likewise.
55820         * tests/test-isnanl.h: Likewise.
55821         * tests/test-ldexpl.c: Likewise.
55822         * tests/test-linked_list.c: Likewise.
55823         * tests/test-linkedhash_list.c: Likewise.
55824         * tests/test-locale.c: Likewise.
55825         * tests/test-localename.c: Likewise.
55826         * tests/test-lock.c: Likewise.
55827         * tests/test-lseek.c: Likewise.
55828         * tests/test-malloca.c: Likewise.
55829         * tests/test-math.c: Likewise.
55830         * tests/test-mbscasecmp.c: Likewise.
55831         * tests/test-mbscasestr1.c: Likewise.
55832         * tests/test-mbscasestr2.c: Likewise.
55833         * tests/test-mbscasestr3.c: Likewise.
55834         * tests/test-mbscasestr4.c: Likewise.
55835         * tests/test-mbschr.c: Likewise.
55836         * tests/test-mbscspn.c: Likewise.
55837         * tests/test-mbsncasecmp.c: Likewise.
55838         * tests/test-mbspbrk.c: Likewise.
55839         * tests/test-mbspcasecmp.c: Likewise.
55840         * tests/test-mbsrchr.c: Likewise.
55841         * tests/test-mbsspn.c: Likewise.
55842         * tests/test-mbsstr1.c: Likewise.
55843         * tests/test-mbsstr2.c: Likewise.
55844         * tests/test-mbsstr3.c: Likewise.
55845         * tests/test-md5.c: Likewise.
55846         * tests/test-memmem.c: Likewise.
55847         * tests/test-netinet_in.c: Likewise.
55848         * tests/test-open.c: Likewise.
55849         * tests/test-printf-frexp.c: Likewise.
55850         * tests/test-printf-frexpl.c: Likewise.
55851         * tests/test-printf-posix.c: Likewise.
55852         * tests/test-printf-posix.h: Likewise.
55853         * tests/test-rbtree_list.c: Likewise.
55854         * tests/test-rbtree_oset.c: Likewise.
55855         * tests/test-rbtreehash_list.c: Likewise.
55856         * tests/test-read-file.c: Likewise.
55857         * tests/test-rijndael.c: Likewise.
55858         * tests/test-search.c: Likewise.
55859         * tests/test-signbit.c: Likewise.
55860         * tests/test-sleep.c: Likewise.
55861         * tests/test-snprintf-posix.c: Likewise.
55862         * tests/test-snprintf-posix.h: Likewise.
55863         * tests/test-snprintf.c: Likewise.
55864         * tests/test-sprintf-posix.c: Likewise.
55865         * tests/test-sprintf-posix.h: Likewise.
55866         * tests/test-stat-time.c: Likewise.
55867         * tests/test-stdbool.c: Likewise.
55868         * tests/test-stdint.c: Likewise.
55869         * tests/test-stdio.c: Likewise.
55870         * tests/test-stdlib.c: Likewise.
55871         * tests/test-stpncpy.c: Likewise.
55872         * tests/test-strcasestr.c: Likewise.
55873         * tests/test-striconv.c: Likewise.
55874         * tests/test-striconveh.c: Likewise.
55875         * tests/test-striconveha.c: Likewise.
55876         * tests/test-string.c: Likewise.
55877         * tests/test-sys_select.c: Likewise.
55878         * tests/test-sys_socket.c: Likewise.
55879         * tests/test-sys_stat.c: Likewise.
55880         * tests/test-sys_time.c: Likewise.
55881         * tests/test-sysexits.c: Likewise.
55882         * tests/test-time.c: Likewise.
55883         * tests/test-tls.c: Likewise.
55884         * tests/test-trunc.c: Likewise.
55885         * tests/test-truncf.c: Likewise.
55886         * tests/test-truncl.c: Likewise.
55887         * tests/test-unistd.c: Likewise.
55888         * tests/test-vasnprintf-posix.c: Likewise.
55889         * tests/test-vasnprintf-posix2.c: Likewise.
55890         * tests/test-vasnprintf.c: Likewise.
55891         * tests/test-vasprintf-posix.c: Likewise.
55892         * tests/test-vasprintf.c: Likewise.
55893         * tests/test-verify.c: Likewise.
55894         * tests/test-vfprintf-posix.c: Likewise.
55895         * tests/test-vprintf-posix.c: Likewise.
55896         * tests/test-vsnprintf-posix.c: Likewise.
55897         * tests/test-vsnprintf.c: Likewise.
55898         * tests/test-vsprintf-posix.c: Likewise.
55899         * tests/test-wchar.c: Likewise.
55900         * tests/test-wctype.c: Likewise.
55901         * tests/test-wcwidth.c: Likewise.
55902         * tests/test-xstrtol.c: Likewise.
55903         * tests/test-xvasprintf.c: Likewise.
55904         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55905         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55906         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55907         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55908         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55909         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55910         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55911         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55912         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55913         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55914         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55915         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55916         * tests/uniname/test-uninames.c: Likewise.
55917         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55918         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55919         * tests/unistdio/test-u16-printf1.h: Likewise.
55920         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55921         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55922         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55923         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55924         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55925         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55926         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55927         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55928         * tests/unistdio/test-u32-printf1.h: Likewise.
55929         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55930         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55931         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55932         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55933         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55934         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55935         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55936         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55937         * tests/unistdio/test-u8-printf1.h: Likewise.
55938         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55939         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55940         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55941         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55942         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55943         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55944         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55945         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55946         * tests/unistdio/test-ulc-printf1.h: Likewise.
55947         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55948         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55949         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55950         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55951         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55952         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55953         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55954         * tests/uniwidth/test-u16-width.c: Likewise.
55955         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55956         * tests/uniwidth/test-u32-width.c: Likewise.
55957         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55958         * tests/uniwidth/test-u8-width.c: Likewise.
55959         * tests/uniwidth/test-uc_width.c: Likewise.
55960         * config/srclist-update: Likewise.
55961         (fixlicense): Update to GPLv3+.
55962
55963         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55964         * tests/test-tsearch.c: Change copyright notice.
55965
55966         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55967         * lib/c-strcaseeq.h: Change copyright notice.
55968         * lib/streq.h: Likewise.
55969         * lib/uniconv.h: Likewise.
55970         * lib/uniconv/u-conv-from-enc.h: Likewise.
55971         * lib/uniconv/u-conv-to-enc.h: Likewise.
55972         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55973         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55974         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55975         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55976         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55977         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55978         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55979         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55980         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55981         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55982         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55983         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55984         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55985         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55986         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55987         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55988         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55989         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55990         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55991         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55992         * lib/uniname.h: Likewise.
55993         * lib/uniname/uniname.c: Likewise.
55994         * lib/unistdio.h: Likewise.
55995         * lib/unistdio/u-asnprintf.h: Likewise.
55996         * lib/unistdio/u-asprintf.h: Likewise.
55997         * lib/unistdio/u-printf-args.c: Likewise.
55998         * lib/unistdio/u-printf-args.h: Likewise.
55999         * lib/unistdio/u-printf-parse.h: Likewise.
56000         * lib/unistdio/u-snprintf.h: Likewise.
56001         * lib/unistdio/u-sprintf.h: Likewise.
56002         * lib/unistdio/u-vasprintf.h: Likewise.
56003         * lib/unistdio/u-vsnprintf.h: Likewise.
56004         * lib/unistdio/u-vsprintf.h: Likewise.
56005         * lib/unistdio/u16-asnprintf.c: Likewise.
56006         * lib/unistdio/u16-asprintf.c: Likewise.
56007         * lib/unistdio/u16-printf-parse.c: Likewise.
56008         * lib/unistdio/u16-snprintf.c: Likewise.
56009         * lib/unistdio/u16-sprintf.c: Likewise.
56010         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56011         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56012         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56013         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56014         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56015         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56016         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56017         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56018         * lib/unistdio/u16-vasnprintf.c: Likewise.
56019         * lib/unistdio/u16-vasprintf.c: Likewise.
56020         * lib/unistdio/u16-vsnprintf.c: Likewise.
56021         * lib/unistdio/u16-vsprintf.c: Likewise.
56022         * lib/unistdio/u32-asnprintf.c: Likewise.
56023         * lib/unistdio/u32-asprintf.c: Likewise.
56024         * lib/unistdio/u32-printf-parse.c: Likewise.
56025         * lib/unistdio/u32-snprintf.c: Likewise.
56026         * lib/unistdio/u32-sprintf.c: Likewise.
56027         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56028         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56029         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56030         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56031         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56032         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56033         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56034         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56035         * lib/unistdio/u32-vasnprintf.c: Likewise.
56036         * lib/unistdio/u32-vasprintf.c: Likewise.
56037         * lib/unistdio/u32-vsnprintf.c: Likewise.
56038         * lib/unistdio/u32-vsprintf.c: Likewise.
56039         * lib/unistdio/u8-asnprintf.c: Likewise.
56040         * lib/unistdio/u8-asprintf.c: Likewise.
56041         * lib/unistdio/u8-printf-parse.c: Likewise.
56042         * lib/unistdio/u8-snprintf.c: Likewise.
56043         * lib/unistdio/u8-sprintf.c: Likewise.
56044         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56045         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56046         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56047         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56048         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56049         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56050         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56051         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56052         * lib/unistdio/u8-vasnprintf.c: Likewise.
56053         * lib/unistdio/u8-vasprintf.c: Likewise.
56054         * lib/unistdio/u8-vsnprintf.c: Likewise.
56055         * lib/unistdio/u8-vsprintf.c: Likewise.
56056         * lib/unistdio/ulc-asnprintf.c: Likewise.
56057         * lib/unistdio/ulc-asprintf.c: Likewise.
56058         * lib/unistdio/ulc-printf-parse.c: Likewise.
56059         * lib/unistdio/ulc-snprintf.c: Likewise.
56060         * lib/unistdio/ulc-sprintf.c: Likewise.
56061         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56062         * lib/unistdio/ulc-vasprintf.c: Likewise.
56063         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56064         * lib/unistdio/ulc-vsprintf.c: Likewise.
56065         * lib/unistr.h: Likewise.
56066         * lib/unistr/u-cpy-alloc.h: Likewise.
56067         * lib/unistr/u-cpy.h: Likewise.
56068         * lib/unistr/u-endswith.h: Likewise.
56069         * lib/unistr/u-move.h: Likewise.
56070         * lib/unistr/u-set.h: Likewise.
56071         * lib/unistr/u-startswith.h: Likewise.
56072         * lib/unistr/u-stpcpy.h: Likewise.
56073         * lib/unistr/u-stpncpy.h: Likewise.
56074         * lib/unistr/u-strcat.h: Likewise.
56075         * lib/unistr/u-strcpy.h: Likewise.
56076         * lib/unistr/u-strcspn.h: Likewise.
56077         * lib/unistr/u-strdup.h: Likewise.
56078         * lib/unistr/u-strlen.h: Likewise.
56079         * lib/unistr/u-strncat.h: Likewise.
56080         * lib/unistr/u-strncpy.h: Likewise.
56081         * lib/unistr/u-strnlen.h: Likewise.
56082         * lib/unistr/u-strpbrk.h: Likewise.
56083         * lib/unistr/u-strspn.h: Likewise.
56084         * lib/unistr/u-strstr.h: Likewise.
56085         * lib/unistr/u-strtok.h: Likewise.
56086         * lib/unistr/u16-check.c: Likewise.
56087         * lib/unistr/u16-chr.c: Likewise.
56088         * lib/unistr/u16-cmp.c: Likewise.
56089         * lib/unistr/u16-cpy-alloc.c: Likewise.
56090         * lib/unistr/u16-cpy.c: Likewise.
56091         * lib/unistr/u16-endswith.c: Likewise.
56092         * lib/unistr/u16-mblen.c: Likewise.
56093         * lib/unistr/u16-mbsnlen.c: Likewise.
56094         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56095         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56096         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56097         * lib/unistr/u16-mbtouc.c: Likewise.
56098         * lib/unistr/u16-mbtoucr.c: Likewise.
56099         * lib/unistr/u16-move.c: Likewise.
56100         * lib/unistr/u16-next.c: Likewise.
56101         * lib/unistr/u16-prev.c: Likewise.
56102         * lib/unistr/u16-set.c: Likewise.
56103         * lib/unistr/u16-startswith.c: Likewise.
56104         * lib/unistr/u16-stpcpy.c: Likewise.
56105         * lib/unistr/u16-stpncpy.c: Likewise.
56106         * lib/unistr/u16-strcat.c: Likewise.
56107         * lib/unistr/u16-strchr.c: Likewise.
56108         * lib/unistr/u16-strcmp.c: Likewise.
56109         * lib/unistr/u16-strcpy.c: Likewise.
56110         * lib/unistr/u16-strcspn.c: Likewise.
56111         * lib/unistr/u16-strdup.c: Likewise.
56112         * lib/unistr/u16-strlen.c: Likewise.
56113         * lib/unistr/u16-strmblen.c: Likewise.
56114         * lib/unistr/u16-strmbtouc.c: Likewise.
56115         * lib/unistr/u16-strncat.c: Likewise.
56116         * lib/unistr/u16-strncmp.c: Likewise.
56117         * lib/unistr/u16-strncpy.c: Likewise.
56118         * lib/unistr/u16-strnlen.c: Likewise.
56119         * lib/unistr/u16-strpbrk.c: Likewise.
56120         * lib/unistr/u16-strrchr.c: Likewise.
56121         * lib/unistr/u16-strspn.c: Likewise.
56122         * lib/unistr/u16-strstr.c: Likewise.
56123         * lib/unistr/u16-strtok.c: Likewise.
56124         * lib/unistr/u16-to-u32.c: Likewise.
56125         * lib/unistr/u16-to-u8.c: Likewise.
56126         * lib/unistr/u16-uctomb-aux.c: Likewise.
56127         * lib/unistr/u16-uctomb.c: Likewise.
56128         * lib/unistr/u32-check.c: Likewise.
56129         * lib/unistr/u32-chr.c: Likewise.
56130         * lib/unistr/u32-cmp.c: Likewise.
56131         * lib/unistr/u32-cpy-alloc.c: Likewise.
56132         * lib/unistr/u32-cpy.c: Likewise.
56133         * lib/unistr/u32-endswith.c: Likewise.
56134         * lib/unistr/u32-mblen.c: Likewise.
56135         * lib/unistr/u32-mbsnlen.c: Likewise.
56136         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56137         * lib/unistr/u32-mbtouc.c: Likewise.
56138         * lib/unistr/u32-mbtoucr.c: Likewise.
56139         * lib/unistr/u32-move.c: Likewise.
56140         * lib/unistr/u32-next.c: Likewise.
56141         * lib/unistr/u32-prev.c: Likewise.
56142         * lib/unistr/u32-set.c: Likewise.
56143         * lib/unistr/u32-startswith.c: Likewise.
56144         * lib/unistr/u32-stpcpy.c: Likewise.
56145         * lib/unistr/u32-stpncpy.c: Likewise.
56146         * lib/unistr/u32-strcat.c: Likewise.
56147         * lib/unistr/u32-strchr.c: Likewise.
56148         * lib/unistr/u32-strcmp.c: Likewise.
56149         * lib/unistr/u32-strcpy.c: Likewise.
56150         * lib/unistr/u32-strcspn.c: Likewise.
56151         * lib/unistr/u32-strdup.c: Likewise.
56152         * lib/unistr/u32-strlen.c: Likewise.
56153         * lib/unistr/u32-strmblen.c: Likewise.
56154         * lib/unistr/u32-strmbtouc.c: Likewise.
56155         * lib/unistr/u32-strncat.c: Likewise.
56156         * lib/unistr/u32-strncmp.c: Likewise.
56157         * lib/unistr/u32-strncpy.c: Likewise.
56158         * lib/unistr/u32-strnlen.c: Likewise.
56159         * lib/unistr/u32-strpbrk.c: Likewise.
56160         * lib/unistr/u32-strrchr.c: Likewise.
56161         * lib/unistr/u32-strspn.c: Likewise.
56162         * lib/unistr/u32-strstr.c: Likewise.
56163         * lib/unistr/u32-strtok.c: Likewise.
56164         * lib/unistr/u32-to-u16.c: Likewise.
56165         * lib/unistr/u32-to-u8.c: Likewise.
56166         * lib/unistr/u32-uctomb.c: Likewise.
56167         * lib/unistr/u8-check.c: Likewise.
56168         * lib/unistr/u8-chr.c: Likewise.
56169         * lib/unistr/u8-cmp.c: Likewise.
56170         * lib/unistr/u8-cpy-alloc.c: Likewise.
56171         * lib/unistr/u8-cpy.c: Likewise.
56172         * lib/unistr/u8-endswith.c: Likewise.
56173         * lib/unistr/u8-mblen.c: Likewise.
56174         * lib/unistr/u8-mbsnlen.c: Likewise.
56175         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56176         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56177         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56178         * lib/unistr/u8-mbtouc.c: Likewise.
56179         * lib/unistr/u8-mbtoucr.c: Likewise.
56180         * lib/unistr/u8-move.c: Likewise.
56181         * lib/unistr/u8-next.c: Likewise.
56182         * lib/unistr/u8-prev.c: Likewise.
56183         * lib/unistr/u8-set.c: Likewise.
56184         * lib/unistr/u8-startswith.c: Likewise.
56185         * lib/unistr/u8-stpcpy.c: Likewise.
56186         * lib/unistr/u8-stpncpy.c: Likewise.
56187         * lib/unistr/u8-strcat.c: Likewise.
56188         * lib/unistr/u8-strchr.c: Likewise.
56189         * lib/unistr/u8-strcmp.c: Likewise.
56190         * lib/unistr/u8-strcpy.c: Likewise.
56191         * lib/unistr/u8-strcspn.c: Likewise.
56192         * lib/unistr/u8-strdup.c: Likewise.
56193         * lib/unistr/u8-strlen.c: Likewise.
56194         * lib/unistr/u8-strmblen.c: Likewise.
56195         * lib/unistr/u8-strmbtouc.c: Likewise.
56196         * lib/unistr/u8-strncat.c: Likewise.
56197         * lib/unistr/u8-strncmp.c: Likewise.
56198         * lib/unistr/u8-strncpy.c: Likewise.
56199         * lib/unistr/u8-strnlen.c: Likewise.
56200         * lib/unistr/u8-strpbrk.c: Likewise.
56201         * lib/unistr/u8-strrchr.c: Likewise.
56202         * lib/unistr/u8-strspn.c: Likewise.
56203         * lib/unistr/u8-strstr.c: Likewise.
56204         * lib/unistr/u8-strtok.c: Likewise.
56205         * lib/unistr/u8-to-u16.c: Likewise.
56206         * lib/unistr/u8-to-u32.c: Likewise.
56207         * lib/unistr/u8-uctomb-aux.c: Likewise.
56208         * lib/unistr/u8-uctomb.c: Likewise.
56209         * lib/unitypes.h: Likewise.
56210         * lib/uniwidth.h: Likewise.
56211         * lib/uniwidth/cjk.h: Likewise.
56212         * lib/uniwidth/u16-strwidth.c: Likewise.
56213         * lib/uniwidth/u16-width.c: Likewise.
56214         * lib/uniwidth/u32-strwidth.c: Likewise.
56215         * lib/uniwidth/u32-width.c: Likewise.
56216         * lib/uniwidth/u8-strwidth.c: Likewise.
56217         * lib/uniwidth/u8-width.c: Likewise.
56218         * lib/uniwidth/width.c: Likewise.
56219
56220 2007-10-07  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56223         The file is still under LGPL (see modules/inttypes).
56224
56225 2007-10-06  Bruno Haible  <bruno@clisp.org>
56226
56227         * modules/trunc (Dependencies): Add 'extensions'.
56228         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56229         Reported by Ben Pfaff <blp@gnu.org>.
56230
56231 2007-10-06  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/freopen-tests: New file.
56234         * tests/test-freopen.c: New file.
56235
56236         * modules/fopen-tests: New file.
56237         * tests/test-fopen.c: New file.
56238
56239         * modules/fopen: New file.
56240         * lib/fopen.c: New file.
56241         * m4/fopen.m4: New file.
56242         * modules/freopen: New file.
56243         * lib/freopen.c: New file.
56244         * m4/freopen.m4: New file.
56245         * lib/stdio.in.h (fopen, freopen): New declarations.
56246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56247         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56248         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56249         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56250         * doc/functions/fopen.texi: Mention the 'fopen' module.
56251         * doc/functions/freopen.texi: Mention the 'freopen' module.
56252
56253 2007-10-06  Bruno Haible  <bruno@clisp.org>
56254
56255         * modules/open-tests: New file.
56256         * tests/test-open.c: New file.
56257
56258         * modules/open: New file.
56259         * lib/open.c: New file.
56260         * m4/open.m4: New file.
56261         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56262         lib/open.c does.
56263         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56264         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56265         macros.
56266         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56267         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56268         REPLACE_OPEN.
56269         * doc/functions/open.texi: Mention the 'open' module.
56270
56271 2007-10-04  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/ceill-tests: New file.
56274         * tests/test-ceill.c: New file.
56275
56276         * modules/ceill: New file.
56277         * lib/ceill.c: Replace entire file.
56278         * m4/ceill.m4: New file.
56279         * lib/math.in.h (ceill): Replace declaration.
56280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56281         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56282         * doc/functions/ceill.texi: Mention the 'ceill' module.
56283         * modules/mathl (Files): Remove lib/ceill.c.
56284         (Depends-on): Add ceill.
56285
56286 2007-10-04  Bruno Haible  <bruno@clisp.org>
56287
56288         * modules/ceilf-tests: New file.
56289         * tests/test-ceilf.c: New file.
56290
56291         * modules/ceilf: New file.
56292         * lib/ceil.c: New file.
56293         * lib/ceilf.c: New file.
56294         * m4/ceilf.m4: New file.
56295         * lib/math.in.h (ceilf): New declaration.
56296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56297         HAVE_DECL_CEILF.
56298         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56299         HAVE_DECL_CEILF.
56300         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56301
56302 2007-10-04  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/floorl-tests: New file.
56305         * tests/test-floorl.c: New file.
56306
56307         * modules/floorl: New file.
56308         * lib/floorl.c: Replace entire file.
56309         * m4/floorl.m4: New file.
56310         * lib/math.in.h (floorl): Replace declaration.
56311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56312         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56313         * doc/functions/floorl.texi: Mention the 'floorl' module.
56314         * modules/mathl (Files): Remove lib/floorl.c.
56315         (Depends-on): Add floorl.
56316
56317 2007-10-04  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/floorf-tests: New file.
56320         * tests/test-floorf.c: New file.
56321
56322         * modules/floorf: New file.
56323         * lib/floor.c: New file.
56324         * lib/floorf.c: New file.
56325         * m4/floorf.m4: New file.
56326         * lib/math.in.h (floorf): New declaration.
56327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56328         HAVE_DECL_FLOORF.
56329         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56330         HAVE_DECL_FLOORF.
56331         * doc/functions/floorf.texi: Mention the 'floorf' module.
56332
56333 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56334             Bruno Haible  <bruno@clisp.org>
56335
56336         Advertise for the Git server instead of the CVS server.
56337         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56338         repository instead of the CVS one.
56339         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56340         about all VCS systems generically.
56341         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56342
56343 2007-10-04  Bruno Haible  <bruno@clisp.org>
56344
56345         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56346         means.
56347         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56348
56349 2007-10-04  Bruno Haible  <bruno@clisp.org>
56350
56351         * modules/truncl-tests: New file.
56352         * tests/test-truncl.c: New file.
56353
56354         * modules/truncl: New file.
56355         * lib/truncl.c: New file.
56356         * m4/truncl.m4: New file.
56357         * lib/math.in.h (truncl): New declaration.
56358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56359         HAVE_DECL_TRUNCL.
56360         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56361         HAVE_DECL_TRUNCL.
56362         * doc/functions/truncl.texi: Mention the 'truncl' module.
56363
56364 2007-10-04  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/truncf-tests: New file.
56367         * tests/test-truncf.c: New file.
56368
56369         * modules/truncf: New file.
56370         * lib/trunc.c: Make paramerizable through USE_* macros.
56371         * lib/truncf.c: New file.
56372         * m4/truncf.m4: New file.
56373         * lib/math.in.h (truncf): New declaration.
56374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56375         HAVE_DECL_TRUNCF.
56376         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56377         HAVE_DECL_TRUNCF.
56378         * doc/functions/truncf.texi: Mention the 'truncf' module.
56379
56380 2007-10-03  Bruno Haible  <bruno@clisp.org>
56381
56382         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56383         augmentation also for tests modules.
56384         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56385         * modules/atexit-tests (Makefile.am): Likewise.
56386         * modules/binary-io-tests (Makefile.am): Likewise.
56387         * modules/c-strcase-tests (Makefile.am): Likewise.
56388         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56389         * modules/canonicalize-tests (Makefile.am): Likewise.
56390         * modules/closein-tests (Makefile.am): Likewise.
56391         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56392         * modules/freadahead-tests (Makefile.am): Likewise.
56393         * modules/fseek-tests (Makefile.am): Likewise.
56394         * modules/fseeko-tests (Makefile.am): Likewise.
56395         * modules/ftell-tests (Makefile.am): Likewise.
56396         * modules/ftello-tests (Makefile.am): Likewise.
56397         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56398         * modules/isnanl-tests (Makefile.am): Likewise.
56399         * modules/lseek-tests (Makefile.am): Likewise.
56400         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56401         * modules/mbscasestr-tests (Makefile.am): Likewise.
56402         * modules/mbschr-tests (Makefile.am): Likewise.
56403         * modules/mbscspn-tests (Makefile.am): Likewise.
56404         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56405         * modules/mbspbrk-tests (Makefile.am): Likewise.
56406         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56407         * modules/mbsrchr-tests (Makefile.am): Likewise.
56408         * modules/mbsspn-tests (Makefile.am): Likewise.
56409         * modules/mbsstr-tests (Makefile.am): Likewise.
56410         * modules/printf-posix-tests (Makefile.am): Likewise.
56411         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56412         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56413         * modules/tsearch-tests (Makefile.am): Likewise.
56414         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56415         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56416         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56417         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56418         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56419         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56420         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56421         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56422         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56423         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56424         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56425         * modules/xstrtol-tests (Makefile.am): Likewise.
56426         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56427         * modules/yesno-tests (Makefile.am): Likewise.
56428
56429 2007-10-03  Bruno Haible  <bruno@clisp.org>
56430
56431         * modules/trunc-tests: New file.
56432         * tests/test-trunc.c: New file.
56433
56434         * modules/trunc: New file.
56435         * lib/trunc.c: New file.
56436         * m4/trunc.m4: New file.
56437         * lib/math.in.h (trunc): New declaration.
56438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56439         HAVE_DECL_TRUNC.
56440         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56441         HAVE_DECL_TRUNC.
56442         * doc/functions/trunc.texi: Mention the 'trunc' module.
56443
56444 2007-10-03  Bruno Haible  <bruno@clisp.org>
56445
56446         * tests/test-fpending.c: New file, mostly copied
56447         from coreutils/lib/t-fpending.c.
56448         * modules/fpending-tests: New file.
56449
56450 2007-10-03  Bruno Haible  <bruno@clisp.org>
56451
56452         Port the stdio extensions to QNX (untested).
56453         * lib/fseterr.c (fseterr): Add support for QNX.
56454         * lib/fbufmode.c (fbufmode): Likewise.
56455         * lib/freadable.c (freadable): Likewise.
56456         * lib/fwritable.c (fwritable): Likewise.
56457         * lib/freading.c (freading): Likewise.
56458         * lib/fwriting.c (fwriting): Likewise.
56459         * lib/freadahead.c (freadahed): Likewise.
56460         * lib/fpurge.c (fpurge): Likewise.
56461         * lib/fseeko.c (rpl_fseeko): Likewise.
56462
56463 2007-10-03  Bruno Haible  <bruno@clisp.org>
56464             Jim Meyering  <jim@meyering.net>
56465             Eric Blake  <ebb9@byu.net>
56466
56467         * doc/relocatable.texi: Use @command instead of @program.
56468
56469 2007-10-02  Jim Meyering  <jim@meyering.net>
56470
56471         Perform one more "_.h" -> ".in.h" substitution.
56472         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56473         instead of unistd_.h here, too.
56474
56475 2007-10-01  Bruno Haible  <bruno@clisp.org>
56476
56477         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56478         Needed for the alloca-opt module.
56479
56480 2007-09-30  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56483         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56484         alloca_.h.
56485         * lib/argz.in.h: Renamed from lib/argz_.h.
56486         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56487         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56488         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56489         byteswap_.h.
56490         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56491         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56492         dirent_.h.
56493         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56494         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56495         fcntl_.h.
56496         * lib/float.in.h: Renamed from lib/float_.h.
56497         * modules/float (Files, Makefile.am): Use float.in.h instead of
56498         float_.h.
56499         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56500         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56501         fnmatch_.h.
56502         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56503         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56504         getopt_.h.
56505         * lib/glob.in.h: Renamed from lib/glob_.h.
56506         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56507         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56508         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56509         iconv_.h.
56510         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56511         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56512         inttypes_.h.
56513         * lib/locale.in.h: Renamed from lib/locale_.h.
56514         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56515         locale_.h.
56516         * lib/math.in.h: Renamed from lib/math_.h.
56517         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56518         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56519         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56520         of netinet_in_.h. Add dependency.
56521         * lib/poll.in.h: Renamed from lib/poll_.h.
56522         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56523         * lib/search.in.h: Renamed from lib/search_.h.
56524         * modules/search (Files, Makefile.am): Use search.in.h instead of
56525         search_.h.
56526         * lib/signal.in.h: Renamed from lib/signal_.h.
56527         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56528         _signal.h.
56529         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56530         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56531         stdbool_.h.
56532         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56533         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56534         stdint_.h.
56535         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56536         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56537         stdio_.h.
56538         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56539         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56540         stdlib_.h.
56541         * lib/string.in.h: Renamed from lib/string_.h.
56542         * modules/string (Files, Makefile.am): Use string.in.h instead of
56543         string_.h.
56544         * doc/gnulib-tool.texi (Initial import): Update.
56545         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56546         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56547         of sys_select_.h. Add dependency.
56548         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56549         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56550         of sys_socket_.h.
56551         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56552         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56553         sys_stat_.h.
56554         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56555         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56556         sys_time_.h.
56557         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56558         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56559         sysexits_.h.
56560         * lib/time.in.h: Renamed from lib/time_.h.
56561         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56562         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56563         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56564         unistd_.h.
56565         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56566         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56567         wchar_.h.
56568         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56569         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56570         wctype_.h.
56571         * build-aux/bootstrap (slurp): Update.
56572         * lib/.cppi-disable: Update.
56573
56574 2007-09-30  Bruno Haible  <bruno@clisp.org>
56575
56576         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56577         Needed on BeOS.
56578
56579 2007-09-30  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56582
56583 2007-09-29  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56586
56587 2007-09-29  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56590         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56591         * build-aux/install-reloc: Compile also areadlink.c.
56592         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56593
56594 2007-09-29  Bruno Haible  <bruno@clisp.org>
56595
56596         * gnulib-tool (func_emit_initmacro_done): Indentation.
56597
56598 2007-09-29  Bruno Haible  <bruno@clisp.org>
56599
56600         * README: Add CVS checkout update instructions.
56601         Info from Bob Proulx <bob@proulx.com>.
56602
56603 2007-09-28  Eric Blake  <ebb9@byu.net>
56604
56605         Provide move-if-change.
56606         * build-aux/move-if-change: New file, based on best practice
56607         rather than any canonical upstream location.
56608
56609 2007-09-28  Jim Meyering  <jim@meyering.net>
56610
56611         Fix canonicalize loop-detection corner case.
56612         Do not attempt to stat the symlink values stored via seen_triple.
56613         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56614         on linux-2.6.18, (but not 2.6.22).
56615         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56616         triple_compare.  The former compares dev,ino,filename, while the latter
56617         would actually stat dirname(filename) when dev and ino were equal.
56618         * lib/hash-triple.c: Install <string.h>.
56619         (STREQ): Define.
56620         (triple_compare_ino_str): New function.
56621         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56622
56623 2007-09-28  Eric Blake  <ebb9@byu.net>
56624
56625         Enforce that AC_REPLACE_FUNCS files exist.
56626         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56627         override check for typos.
56628
56629         Fix test-closein on Solaris 10.
56630         * tests/test-closein.c (main): Don't assume stdin can be inherited
56631         closed on all systems.
56632         * tests/test-closein.sh: Likewise.
56633         Reported by Piotr Tarnowski.
56634
56635 2007-09-28  Jim Meyering  <jim@meyering.net>
56636
56637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56638
56639 2007-09-27  Jim Meyering  <jim@meyering.net>
56640
56641         canonicalize: Avoid a false-positive cycle failure.
56642         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56643         Sort.  Remove cycle-check.
56644         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56645         not cycle-check.h.
56646         (seen_triple): New function.
56647         (canonicalize_filename_mode): Use it instead of cycle-check.
56648         * tests/test-canonicalize.c: Add a test for this bug.
56649         * tests/test-canonicalize.sh: Set up and run the test.
56650
56651         New module, file-set, from coreutils.
56652         * modules/file-set: Define it.
56653         * lib/file-set.c, lib/file-set.h: Implement.
56654
56655         New module, hash-triple, from coreutils.
56656         * modules/hash-triple: Define it.
56657         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56658
56659 2007-09-25  Eric Blake  <ebb9@byu.net>
56660
56661         Fix strerror on Interix.
56662         * lib/string_.h (strerror): Declare replacement.
56663         * doc/functions/strerror.texi (strerror): Document the Interix
56664         shortcoming.
56665         * modules/string (Makefile.am): Support new hooks.
56666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56667         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56668         gl_FUNC_STRERROR_SEPARATE.
56669         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56670         * lib/strerror.c (rpl_strerror): Provide replacement.
56671         * modules/strerror (Depends-on): Add string.
56672         (configure.ac): Detect use of module.
56673         * tests/test-strerror.c: New file.
56674         * modules/strerror-tests: New test module.
56675         * modules/argp (Depends-on): Add strerror.
56676         * modules/error (Depends-on): Likewise.
56677         Reported by Martin Koeppe.
56678
56679 2007-09-24  Bruno Haible  <bruno@clisp.org>
56680
56681         * README: Update git instructions.
56682
56683 2007-09-24  Eric Blake  <ebb9@byu.net>
56684
56685         Revert fpending breakage from 2007-09-08.
56686         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56687         __fpending.c.
56688
56689 2007-09-24  Jim Meyering  <jim@meyering.net>
56690
56691         filenamecat.c: Add a test.
56692         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56693         showing how the function works when DIR is the empty string.
56694
56695 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56696
56697         * tests/test-canonicalize.sh: Turn on executable bit.
56698
56699 2007-09-19  Eric Blake  <ebb9@byu.net>
56700
56701         * README: Update CVS instructions.
56702
56703 2007-09-18  Bruno Haible  <bruno@clisp.org>
56704
56705         * modules/areadlink: New file.
56706         * lib/areadlink.h (areadlink): New declaration.
56707         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56708
56709 2007-09-17  Jim Meyering  <jim@meyering.net>
56710
56711         * lib/savewd.c (ESTALE) [!defined]: Define.
56712         Reported to be required on Interix by Martin Koeppe.
56713
56714 2007-09-17  Bruno Haible  <bruno@clisp.org>
56715
56716         * gnulib-tool (func_version): Use $version.
56717
56718 2007-09-16  Bruno Haible  <bruno@clisp.org>
56719
56720         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56721         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56722         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56723         Reported by Greg Schafer <gschafer@zip.com.au>.
56724
56725 2007-09-15  Bruno Haible  <bruno@clisp.org>
56726
56727         * gnulib-tool (sed): Try a little harder to make bash understand the
56728         alias.
56729         Reported by Bruce Korb <bruce.korb@gmail.com>.
56730
56731 2007-09-13  Eric Blake  <ebb9@byu.net>
56732
56733         * ChangeLog: Remove conflict markers.
56734
56735 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56736
56737         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56738         Reported by Bruno Haible <bruno@clisp.org>.
56739
56740 2007-09-12  Bruno Haible  <bruno@clisp.org>
56741
56742         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56743         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56744         is not defined.
56745
56746 2007-09-12  Eric Blake  <ebb9@byu.net>
56747
56748         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56749         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56750         Autoconf definition.
56751         * modules/euidaccess (Depends-on): Add extensions, for
56752         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56753         * modules/fnmatch (Depends-on): Likewise.
56754         * modules/getaddrinfo (Depends-on): Likewise.
56755         * modules/getdelim (Depends-on): Likewise.
56756         * modules/getline (Depends-on): Likewise.
56757         * modules/getsubopt (Depends-on): Likewise.
56758         * modules/gettext (Depends-on): Likewise.
56759         * modules/group-member (Depends-on): Likewise.
56760         * modules/mbchar (Depends-on): Likewise.
56761         * modules/memmem (Depends-on): Likewise.
56762         * modules/mempcpy (Depends-on): Likewise.
56763         * modules/memrchr (Depends-on): Likewise.
56764         * modules/pagealign_alloc (Depends-on): Likewise.
56765         * modules/readutmp (Depends-on): Likewise.
56766         * modules/stpcpy (Depends-on): Likewise.
56767         * modules/stpncpy (Depends-on): Likewise.
56768         * modules/strchrnul (Depends-on): Likewise.
56769         * modules/strndup (Depends-on): Likewise.
56770         * modules/strsep (Depends-on): Likewise.
56771         * modules/strverscmp (Depends-on): Likewise.
56772         * modules/vasprintf (Depends-on): Likewise.
56773         * modules/wcwidth (Depends-on): Likewise.
56774         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56775         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56776         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56777         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56778         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56779         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56780         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56781         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56782         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56783         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56785         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56786         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56787         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56788         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56789         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56790         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56791         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56793         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56795         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56796         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56797         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56798         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56800         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56801         so that lock.m4 can be used in gettext without extensions module.
56802
56803 2007-09-11  Bruno Haible  <bruno@clisp.org>
56804
56805         * m4/isc-posix.m4: Remove file.
56806         Suggested by Eric Blake.
56807
56808 2007-09-11  Eric Blake  <ebb9@byu.net>
56809
56810         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56811
56812 2007-09-10  Bruno Haible  <bruno@clisp.org>
56813
56814         * posix-modules: Fix typo in error message.
56815         Reported by Matt <mkraai@beckman.com>.
56816
56817 2007-09-09  Bruno Haible  <bruno@clisp.org>
56818
56819         * doc/functions/getdelim.texi: Update list of platforms lacking the
56820         function.
56821         * doc/functions/getline.texi: Likewise.
56822
56823 2007-09-09  Jim Meyering  <jim@meyering.net>
56824
56825         * lib/hash.c (hash_initialize): Detect calloc failure.
56826         Reported by Bruno Haible.
56827
56828 2007-09-09  Bruno Haible  <bruno@clisp.org>
56829
56830         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56831         malloc or realloc fails.
56832
56833 2007-09-09  Bruno Haible  <bruno@clisp.org>
56834
56835         * modules/getcwd (Depends-on): Add malloc-posix.
56836         * modules/glob (Depends-on): Likewise.
56837         * modules/putenv (Depends-on): Likewise.
56838         * modules/strdup (Depends-on): Likewise.
56839         * modules/getdelim (Depends-on): Add realloc-posix.
56840         * modules/read-file (Depends-on): Likewise.
56841
56842 2007-09-09  Bruno Haible  <bruno@clisp.org>
56843
56844         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56845         (gl_FUNC_MALLOC_POSIX): Require it.
56846         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56847         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56848         * modules/realloc (Files): Add m4/malloc.m4.
56849         * modules/calloc (Files): Likewise.
56850
56851 2007-09-09  Bruno Haible  <bruno@clisp.org>
56852
56853         * modules/malloc-posix: New file.
56854         * modules/malloc (Depends-on): Add malloc-posix.
56855         * lib/malloc.c: Include errno.h.
56856         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56857         and a POSIX-compatible malloc into a single function. Set ENOMEM
56858         when returning NULL.
56859         * m4/malloc.m4: New file.
56860         * doc/functions/malloc.texi: Mention the malloc-posix module.
56861         * lib/stdlib_.h (malloc): New declaration.
56862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56863         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56864         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56865         and HAVE_MALLOC_POSIX.
56866
56867 2007-09-09  Bruno Haible  <bruno@clisp.org>
56868
56869         * modules/realloc-posix: New file.
56870         * modules/realloc (Depends-on): Add realloc-posix.
56871         * lib/realloc.c: Include errno.h.
56872         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56873         and a POSIX-compatible realloc into a single function. Set ENOMEM
56874         when returning NULL.
56875         * m4/realloc.m4: New file.
56876         * doc/functions/realloc.texi: Mention the realloc-posix module.
56877         * lib/stdlib_.h (realloc): New declaration.
56878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56879         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56880         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56881         and HAVE_REALLOC_POSIX.
56882
56883 2007-09-09  Bruno Haible  <bruno@clisp.org>
56884
56885         * modules/calloc-posix: New file.
56886         * modules/calloc (Depends-on): Add calloc-posix.
56887         * lib/calloc.c: Include errno.h.
56888         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56889         and a POSIX-compatible calloc into a single function. Set ENOMEM
56890         when returning NULL.
56891         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56892         * doc/functions/calloc.texi: Mention the calloc-posix module.
56893         * lib/stdlib_.h (calloc): New declaration.
56894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56895         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56896         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56897         and HAVE_CALLOC_POSIX.
56898
56899 2007-09-09  Bruno Haible  <bruno@clisp.org>
56900
56901         Allow for modules to show an arbitrary notice.
56902         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56903         * gnulib-tool: New option --extract-notice.
56904         (func_usage): Document it.
56905         (sed_extract_prog): Update.
56906         (func_get_notice): New function.
56907         (func_modules_notice): New function.
56908         (func_import, func_create_testdir): Invoke it.
56909         Suggested by Jim Meyering.
56910
56911 2007-09-09  Bruno Haible  <bruno@clisp.org>
56912
56913         * gnulib-tool: New options --verbose, --quiet.
56914         (func_usage): Document them.
56915         (verbose): New variable.
56916         (func_execute_command): New function.
56917         (func_import): Don't show the module list and the file list if
56918         $verbose < 0.
56919         (func_create_testdir): Likewise. Use func_execute_command.
56920         (func_create_megatestdir): Use func_execute_command.
56921
56922 2007-09-08  Bruno Haible  <bruno@clisp.org>
56923
56924         * gnulib-tool (func_import): Prefer rsync over wget when available,
56925         for fetching the PO files.
56926
56927 2007-09-08  Bruno Haible  <bruno@clisp.org>
56928
56929         * posix-modules: New file. Portions copied from gnulib-tool.
56930         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56931
56932 2007-09-08  Jim Meyering  <jim@meyering.net>
56933
56934         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56935         * lib/fpending.h: Rename from __fpending.h.
56936         * lib/fpending.c: Rename from __fpending.c.
56937         Include "fpending.h", not "__fpending.h".
56938         * lib/__fpending.h, lib/__fpending.c: Remove files.
56939         * modules/fpending (Files): Reflect new file names.
56940         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56941
56942 2007-09-08  Bruno Haible  <bruno@clisp.org>
56943
56944         * m4/inttypes-h.m4: Remove stub file.
56945
56946 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56947
56948         * doc/headers/stdint.texi: Discuss #include_next issue.
56949
56950 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56951
56952         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56953
56954 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56955
56956         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56957         in variable name.
56958
56959 2007-09-03  Jim Meyering  <jim@meyering.net>
56960
56961         New module: git-version-gen.
56962         * modules/git-version-gen: New file.
56963
56964         Import changes from coreutils for bootstrap script.
56965
56966         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56967
56968         bootstrap: uses rsync to download the .po files
56969         * build-aux/bootstrap (po_download_command_format): New global.
56970         (download_po_files): Use rsync.
56971         (update_po_files): Don't remove .po files after download,
56972         so future rsync runs can take advantage of the copies.
56973
56974         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56975
56976         Solve the unnecessary-.po-file-regeneration problem once and for all.
56977         * build-aux/bootstrap (download_po_files): New function, renamed from
56978         get_translations.  Now, downloads, but doesn't update LINGUAS.
56979         (update_po_files): New function.
56980
56981         bootstrap: Ignore more.
56982         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56983         uniwidth to e.g., lib/.gitignore.
56984         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56985
56986         * build-aux/bootstrap: New setting: vc_ignore.
56987         (insert_sorted_if_absent): Create $file if absent.
56988         Adapt to new, possibly empty, list: $vc_ignore.
56989
56990         bootstrap: generate more ignorable names
56991         * build-aux/bootstrap (slurp): When generating ignorable names,
56992         also map .sin to .sed, .gperf to .c, and .y to .c.
56993
56994 2007-09-03  Jim Meyering  <jim@meyering.net>
56995
56996         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56997         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56998
56999 2007-09-02  Bruno Haible  <bruno@clisp.org>
57000
57001         Fix mis-recognition of 'mcs' on QNX 6.
57002         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57003         output contains the string "Mono".
57004         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57005         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57006
57007 2007-09-01  Bruno Haible  <bruno@clisp.org>
57008
57009         Fix collision between uniwidth/* and linebreak modules.
57010         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57011         u32_width): Remove declarations.
57012         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57013         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57014         streq3, streq2, streq1, streq0): Remove functions.
57015         (STREQ): Remove macro.
57016         (is_cjk_encoding): Remove function.
57017         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57018         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57019         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57020         * NEWS: Document the change.
57021
57022 2007-09-01  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/streq.h: Add double-inclusion guard.
57025
57026 2007-09-01  Karl Berry  <karl@gnu.org>
57027
57028         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57029
57030 2007-08-28  Jim Meyering  <jim@meyering.net>
57031
57032         Rename mreadlink_with_size to areadlink_with_size.
57033         * NEWS: Document the change.
57034         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57035         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57036         * lib/mreadlink.h: Rename this to...
57037         * lib/areadlink.h: ...this.
57038         * modules/mreadlink-with-size: Rename this to...
57039         * modules/areadlink-with-size: ...this.
57040         * lib/canonicalize.c: Reflect the renaming.
57041         * modules/canonicalize: Likewise.
57042
57043 2007-08-26  Bruno Haible  <bruno@clisp.org>
57044
57045         * gnulib-tool (func_import): When deciding which files to remove,
57046         consider also dangling symbolic links.
57047         Reported by Eric Blake.
57048
57049 2007-08-26  Bruno Haible  <bruno@clisp.org>
57050
57051         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57052
57053 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57054
57055         * lib/readline.c: Don't include getline.h, the prototype is now
57056         found in stdio.h.
57057
57058 2007-08-23  Jim Meyering  <jim@meyering.net>
57059
57060         Getdelim touchup.
57061         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57062         around the funlockfile call, since funlockfile never sets errno.
57063         Don't set errno upon failed realloc.
57064
57065 2007-08-22  Eric Blake  <ebb9@byu.net>
57066
57067         Getline touchups.
57068         * lib/getdelim.c (getdelim): Revert regression that required *n to
57069         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57071         getdelim, rather than whether implementation is missing.
57072         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57073         * lib/stdio_.h (getline): Also declare if replacement is
57074         required.
57075         * doc/functions/getdelim.texi: New file.
57076         * doc/functions/getline.texi: Likewise.
57077         * doc/gnulib.texi (Function Substitutes): Add new files.
57078         Reported by Bruno Haible.
57079
57080 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57081
57082         * users.txt: Add Guile.
57083
57084 2007-08-22  Eric Blake  <ebb9@byu.net>
57085
57086         * tests/test-getdelim.c (main): Use remove, not unlink.
57087         * tests/test-getline.c (main): Likewise.
57088
57089         Move getline and getdelim into stdio.h, per POSIX 200x.
57090         * modules/getline (Files): Remove getline.h.
57091         (Depends-on): Add stdio.
57092         (configure.ac): Add module indicator.
57093         * modules/getdelim (Files): Remove getdelim.h.
57094         (Depends-on): Add stdio.
57095         (configure.ac): Add module indicator.
57096         * modules/stdio (Makefile.am): Work with new indicators.
57097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57098         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57099         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57100         * lib/getdelim.h: Delete.
57101         * lib/getline.h: Delete.
57102         * lib/stdio_.h (getdelim, getline): Declare.
57103         * modules/getdelim-tests: New module.
57104         * modules/getline-tests: Likewise.
57105         * tests/test-getdelim.c: New file.
57106         * tests/test-getline.c: Likewise.
57107         * NEWS: Document the change.
57108         * lib/getline.c: Update choice of header.
57109         * lib/csharpcomp.c: Likewise.
57110         * lib/getpass.c: Likewise.
57111         * lib/javacomp.c: Likewise.
57112         * lib/javaversion.c: Likewise.
57113         * lib/yesno.c: Likewise.
57114         * lib/getdelim.c: Likewise.
57115         (getdelim): Set errno on failure, and avoid memory leak.
57116
57117 2007-08-19  Bruno Haible  <bruno@clisp.org>
57118
57119         * modules/closein (Depends-on): Add freadahead.
57120         * lib/closein.c: Include freadahead.h.
57121         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57122         is zero.
57123
57124 2007-08-19  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/freadahead-tests: New file.
57127         * tests/test-freadahead.sh: New file.
57128         * tests/test-freadahead.c: New file.
57129
57130         * modules/freadahead: New file.
57131         * lib/freadahead.h: New file.
57132         * lib/freadahead.c: New file.
57133         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57134         fbufmode, fpurge, freadable, fwritable.
57135
57136 2007-08-19  Eric Blake  <ebb9@byu.net>
57137
57138         Test yesno in combination with closein.
57139         * lib/yesno.c (yesno): Document use of stdin.
57140         * modules/yesno-tests (Files): New module.
57141         * tests/test-yesno.c (main): New file.
57142         * tests/test-yesno.sh: Likewise.
57143
57144 2007-08-19  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57147         * lib/fseeko.c (rpl_fseeko): Likewise.
57148         * lib/fseterr.c (fseterr): Likewise.
57149
57150 2007-08-19  Bruno Haible  <bruno@clisp.org>
57151
57152         * tests/test-lseek.c (main): Disable a test for BeOS.
57153         * doc/functions/lseek.texi: Document the BeOS bug.
57154
57155 2007-08-19  Bruno Haible  <bruno@clisp.org>
57156             Eric Blake  <ebb9@byu.net>
57157
57158         * lib/lseek.c: Include <sys/stat.h>.
57159         (rpl_lseek): Add workaround code also for Unix platforms.
57160         Needed for BeOS.
57161         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57162         * doc/functions/lseek.texi: Document BeOS definiency.
57163
57164 2007-08-18  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/fstrcmp-tests: New file.
57167         * tests/test-fstrcmp.c: New file.
57168
57169 2007-08-18  Bruno Haible  <bruno@clisp.org>
57170
57171         * modules/fstrcmp: New file, from GNU gettext with modifications.
57172         * lib/fstrcmp.h: New file, from GNU gettext.
57173         * lib/fstrcmp.c: New file, from GNU gettext.
57174         * MODULES.html.sh (String handling): Add fstrcmp.
57175
57176 2007-08-18  Bruno Haible  <bruno@clisp.org>
57177
57178         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57179         'bool'.
57180         (diag, compareseq): Remove const from the ctxt argument.
57181         (USE_HEURISTIC): Undefine at the end.
57182
57183 2007-08-18  Jim Meyering  <jim@meyering.net>
57184
57185         New file: lib/idcache.h
57186         * NEWS: Mention the addition.
57187         * modules/idcache (Files): Add lib/idcache.h
57188         * lib/idcache.c: Include "idcache.h".
57189         Don't include <sys/types.h>.
57190         Add a FIXME comment.
57191         Move file-scoped "static" declarations to the top.
57192         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57193
57194 2007-08-17  Bruno Haible  <bruno@clisp.org>
57195         and Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * MODULES.html.sh: Add diffseq.
57198         * modules/diffseq: New file.
57199         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57200         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57201
57202 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         Import changes from coreutils for bootstrap script.
57205
57206         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         * build-aux/bootstrap (slurp): Work even in environments where
57209         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57210         current code does not slurp files whose names start with ".", and
57211         this looks like it might be a troublesome area.
57212
57213         2007-07-11  Jim Meyering  <jim@meyering.net>
57214
57215         If there's a GPL vN copyright comment, require that N == 3.
57216
57217         2007-07-08  Jim Meyering  <jim@meyering.net>
57218
57219         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57220         * build-aux/bootstrap (mam_template): Move definition out of loop.
57221
57222         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57223
57224         * build-aux/bootstrap (symlink_to_dir): Rename function from
57225         symlink_to_gnulib.  Add a directory parameter.  Update all
57226         callers.
57227         (cp_mark_as_generated): Also check for -- and link to -- files in
57228         gl/.
57229
57230         2007-07-08  Jim Meyering  <jim@meyering.net>
57231
57232         Adapt to deeper hierarchy in gnulib.
57233         * build-aux/bootstrap (symlink_to_dir): If the destination
57234         directory doesn't exist, create it. This is required at least for
57235         "lib/uniwidth/cjk.h".
57236
57237         2007-05-15  Jim Meyering  <jim@meyering.net>
57238
57239         * build-aux/bootstrap: Now that generated Makefile.am files
57240         are no longer under version control, they must be created at
57241         bootstrap time.
57242
57243 2007-08-14  Ben Pfaff  <blp@gnu.org>
57244
57245         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57246
57247 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57248
57249         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57250         given the changes below.
57251         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57252         even on hosts that have padding bits beyond the supported 64.
57253
57254 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57257         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57258         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57259         depends on it.
57260         (xstrtol_error): Remove.
57261         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57262         but with a different signature.
57263         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57264         * lib/xstrtol-error.c: Include exitfail.h.
57265         (xstrtol_fatal): New function, with a different signature from the
57266         old xstrtol_error, so that the caller need not worry about passing
57267         in an exit status, or about storage management of the option argument.
57268         (xstrtol_error): Now a static function.  Redo signature to
57269         implement xstrtol_fatal.  Output the correct number of hyphens in
57270         front of the option so that the caller need not worry about
57271         storage management.
57272         (N_): New macro.
57273         (_): Remove; not used now.
57274         * modules/xstrtol: Depend on getopt.
57275         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57276         of old STRTOL_FATAL_ERROR macro.
57277         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57278         of test program.
57279         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57280         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57281
57282 2007-08-08  Eric Blake  <ebb9@byu.net>
57283
57284         * lib/xstrtol-error.c: Add missing include.
57285
57286         Move xstrtol messages into gnulib domain, when --pobase is used.
57287         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57288         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57289         * modules/xstrtol (Files): Distribute new file.
57290         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57291         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57292         * tests/test-xstrtol.c: ...into new file.
57293         * tests/test-xstrtoul.c: Also test xstrtoul.
57294         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57295         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57296         * tests/test-xstrtol.sh: Drive the tests.
57297         * tests/test-xstrtoimax.sh: Likewise.
57298         * tests/test-xstrtoumax.sh: Likewise.
57299         * modules/xstrtol-tests: New module.
57300         * modules/xstrtoimax-tests: Likewise.
57301         * modules/xstrtoumax-tests: Likewise.
57302
57303 2007-08-08  Jim Meyering  <jim@meyering.net>
57304
57305         New function: mfile_name_concat.
57306         * lib/filenamecat.c (mfile_name_concat): New function, just like
57307         file_name_concat, but return NULL upon failure rather than exiting
57308         with a diagnostic.
57309         * lib/filenamecat.h: Declare it.
57310
57311 2007-08-07  Bruno Haible  <bruno@clisp.org>
57312
57313         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57314         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57315         warning from gcc.
57316         Reported by Eric Blake.
57317
57318 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57319
57320         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57321         * modules/crypto/arcfour (License): Likewise.
57322         * modules/crypto/des-tests (License): Likewise.
57323         * modules/crypto/gc-arctwo-tests (License): Likewise.
57324         * modules/crypto/gc-des-tests (License): Likewise.
57325         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57326         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57327         * modules/crypto/gc-md2-tests (License): Likewise.
57328         * modules/crypto/gc-md4-tests (License): Likewise.
57329         * modules/crypto/gc-md5-tests (License): Likewise.
57330         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57331         * modules/crypto/gc-rijndael-tests (License): Likewise.
57332         * modules/crypto/gc-sha1-tests (License): Likewise.
57333         * modules/crypto/gc-tests (License): Likewise.
57334         * modules/crypto/hmac-md5 (License): Likewise.
57335         * modules/crypto/hmac-sha1 (License): Likewise.
57336         * modules/crypto/md2-tests (License): Likewise.
57337         * modules/crypto/md4-tests (License): Likewise.
57338         * modules/crypto/md5 (License): Likewise.
57339         * modules/crypto/rijndael (License): Likewise.
57340         * modules/crypto/sha1 (License): Likewise.
57341         * modules/memxor (License): Likewise.
57342
57343 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57344         and Bruno Haible  <bruno@clisp.org>
57345
57346         * NEWS: Describe interface changes to human, xstrtol.
57347         * lib/human.h: Include <xstrtol.h>.
57348         (human_options): Return enum strtol_error, not int.  Remove
57349         bool arg; take int * instead.
57350         * lib/human.c: Don't include "gettext.h".
57351         (_): Remove; no longer used.
57352         Don't include <xstrtol.h>, since human.h does it.
57353         (human_options): Adjust to abovementioned interface changes.
57354         Do not report error to stderr; that's now the caller's
57355         responsibility.
57356         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57357         interface change.
57358         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57359         Str, Argument_type_string.  All uses changed.  Put " argument"
57360         in diagnostics to make them clearer.  Change wording of suffix
57361         message for clarity.
57362         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57363         Argument_type_string.
57364         (STRTOL_FATAL_WARN): Remove; no longer used.
57365         * modules/human (Depends-on): Remove gettext-h.
57366
57367 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57368
57369         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57370
57371 2007-07-31  Bruno Haible  <bruno@clisp.org>
57372
57373         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57374         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57375         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57376
57377 2007-07-31  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57380         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57381
57382 2007-07-30  Bruno Haible  <bruno@clisp.org>
57383
57384         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57385         * modules/c-ctype (License): Likewise.
57386         * modules/c-strcase (License): Likewise.
57387         * modules/check-version (License): Likewise.
57388         * modules/iconv (License): Likewise.
57389         * modules/iconv_open (License): Likewise.
57390         * modules/read-file (License): Likewise.
57391         * modules/striconv (License): Likewise.
57392         * modules/strverscmp (License): Likewise.
57393         * modules/vasprintf (License): Likewise.
57394         * modules/crypto/des (License): Likewise.
57395         * modules/crypto/gc (License): Likewise.
57396         * modules/crypto/gc-arcfour (License): Likewise.
57397         * modules/crypto/gc-arctwo (License): Likewise.
57398         * modules/crypto/gc-des (License): Likewise.
57399         * modules/crypto/gc-hmac-md5 (License): Likewise.
57400         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57401         * modules/crypto/gc-md2 (License): Likewise.
57402         * modules/crypto/gc-md4 (License): Likewise.
57403         * modules/crypto/gc-md5 (License): Likewise.
57404         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57405         * modules/crypto/gc-random (License): Likewise.
57406         * modules/crypto/gc-rijndael (License): Likewise.
57407         * modules/crypto/gc-sha1 (License): Likewise.
57408         * modules/crypto/md2 (License): Likewise.
57409         * modules/crypto/md4 (License): Likewise.
57410
57411 2007-07-30  Jim Meyering  <jim@meyering.net>
57412
57413         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57414         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57415         it has valid stat data.  This bug would cause du not to count the
57416         sizes of inaccessible directories.
57417         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57418         in <http://bugzilla.redhat.com/250077>.
57419
57420 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57421             Bruno Haible  <bruno@clisp.org>
57422
57423         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57424         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57425         #include_next, gives a diagnostic about it, but reports no error in
57426         the exit code.
57427         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57428
57429 2007-07-24  Ben Pfaff  <blp@gnu.org>
57430
57431         Improve name: "count-one-bits" is better than "popcount".
57432         * MODULES.html.sh: Update name.
57433         * lib/popcount.h: Renamed lib/count-one-bits.h.
57434         (popcount): Renamed count_one_bits.
57435         (popcountl): Renamed count_one_bits_l.
57436         (popcountll): Renamed count_one_bits_ll.
57437         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57438         * modules/popcount: Renamed module/count-one-bits.
57439         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57440         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57441
57442 2007-07-23  Ben Pfaff  <blp@gnu.org>
57443
57444         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57445         better code generation, and add U to large constants to avoid
57446         warnings, in non-GCC case.
57447         Suggested by Bruno Haible.
57448
57449 2007-07-23  Ben Pfaff  <blp@gnu.org>
57450
57451         * lib/popcount.h: Use verify_true instead of if...abort.
57452         * modules/popcount: Depend on verify module.
57453         Suggested by Jim Meyering.
57454
57455 2007-07-23  Bruno Haible  <bruno@clisp.org>
57456
57457         * gnulib-tool (func_import): Create a .cvsignore file also when the
57458         directory is not yet in CVS but the toplevel directory is. When
57459         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57460         Reported by Karl Berry.
57461
57462 2007-07-22  Ben Pfaff  <blp@gnu.org>
57463
57464         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57465         case.
57466         Suggested by Eric Blake.
57467
57468 2007-07-22  Ben Pfaff  <blp@gnu.org>
57469
57470         New module: popcount.
57471         * MODULES.html.sh: Add popcount.
57472         * modules/popcount: New file.
57473         * modules/popcount-tests: New file.
57474         * tests/test-popcount.c: New file.
57475         * lib/popcount.h: New file.
57476         * m4/popcount.m4: New file.
57477
57478 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57479
57480         * build-aux/announce-gen: Update to GPLv3.
57481
57482         * build-aux/config.guess: Update from config.
57483
57484 2007-07-21  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57487         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57488
57489 2007-07-20  Jim Meyering  <jim@meyering.net>
57490
57491         * check-module: Diagnose a self-dependency.
57492
57493 2007-07-19  Bruno Haible  <bruno@clisp.org>
57494
57495         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57496         empty.
57497         Reported by Eric Blake.
57498
57499 2007-07-18  Bruno Haible  <bruno@clisp.org>
57500
57501         * gnulib-tool: New options --po-base, --po-domain.
57502         (func_usage): Document them.
57503         (pobase, po_domain): New variables.
57504         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57505         DEFAULT_TEXT_DOMAIN.
57506         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57507         (func_import): Consider pobase and po_domain. Create a po/ directory.
57508         (func_create_testdir): Set pobase and po_domain to empty.
57509         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57510         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57511
57512 2007-07-18  Bruno Haible  <bruno@clisp.org>
57513
57514         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57515         EXTRA_DIST augmentation for files in build-aux/.
57516
57517 2007-07-16  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57520         * modules/getdelim (License): Likewise.
57521
57522 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57523
57524         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57525         * modules/d-type (License): Likewise.
57526         * modules/extensions (License): Likewise.
57527         * modules/fnmatch (License): Likewise.
57528         * modules/fseeko (License): Likewise.
57529         * modules/getaddrinfo (License): Likewise.
57530         * modules/getline (License): Likewise.
57531         * modules/getlogin_r (License): Likewise.
57532         * modules/getpass (License): Likewise.
57533         * modules/gettimeofday (License): Likewise.
57534         * modules/glob (License): Likewise.
57535         * modules/inet_ntop (License): Likewise.
57536         * modules/malloc (License): Likewise.
57537         * modules/malloca (License): Likewise.
57538         * modules/memmem (License): Likewise.
57539         * modules/mempcpy (License): Likewise.
57540         * modules/memset (License): Likewise.
57541         * modules/minmax (License): Likewise.
57542         * modules/mktime (License): Likewise.
57543         * modules/netinet_in (License): Likewise.
57544         * modules/pathmax (License): Likewise.
57545         * modules/poll (License): Likewise.
57546         * modules/regex (License): Likewise.
57547         * modules/snprintf (License): Likewise.
57548         * modules/stdbool (License): Likewise.
57549         * modules/stdint (License): Likewise.
57550         * modules/stdio (License): Likewise.
57551         * modules/strcase (License): Likewise.
57552         * modules/strcasestr (License): Likewise.
57553         * modules/strdup (License): Likewise.
57554         * modules/string (License): Likewise.
57555         * modules/strndup (License): Likewise.
57556         * modules/strnlen (License): Likewise.
57557         * modules/strpbrk (License): Likewise.
57558         * modules/strptime (License): Likewise.
57559         * modules/strsep (License): Likewise.
57560         * modules/sys_select (License): Likewise.
57561         * modules/sys_socket (License): Likewise.
57562         * modules/sys_stat (License): Likewise.
57563         * modules/sys_time (License): Likewise.
57564         * modules/time (License): Likewise.
57565         * modules/time_r (License): Likewise.
57566         * modules/timegm (License): Likewise.
57567         * modules/unistd (License): Likewise.
57568         * modules/vsnprintf (License): Likewise.
57569         * modules/wctype (License): Likewise.
57570
57571 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57572
57573         * modules/argz (License): LGPLv2+.
57574
57575 2007-07-15  Karl Berry  <karl@gnu.org>
57576
57577         * doc/gnulib.texi: revise node structure per new fdl.texi.
57578
57579 2007-07-14  Bruno Haible  <bruno@clisp.org>
57580
57581         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57582         the output file.
57583         * lib/uniname/uninames.h: Regenerated.
57584
57585 2007-07-14  Karl Berry  <karl@gnu.org>
57586
57587         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57588         omitting sectioning and index commands.
57589
57590 2007-07-13  Bruno Haible  <bruno@clisp.org>
57591
57592         New gnulib-tool option --more-symlinks.
57593         * gnulib-tool (func_usage): Document --more-symlinks.
57594         (do_copyrights): New variable.
57595         Recognize option --more-symlinks.
57596         (func_import): Don't add a copyright notice transform to
57597         sed_transform_lib_file if do_copyrights is empty.
57598
57599 2007-07-13  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/vasnprintf.c (decimal_point_char): Define also if
57602         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57603         && !NEED_PRINTF_DIRECTIVE_A.
57604         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57605         Gary V. Vaughan <gary@gnu.org>.
57606
57607 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57608
57609         * lib/inttypes_.h: Undo previous change, since it was fixed
57610         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57611
57612 2007-07-13  Bruno Haible  <bruno@clisp.org>
57613
57614         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57615         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57616
57617 2007-07-13  Jim Meyering  <jim@meyering.net>
57618
57619         df: Don't fail for Tru64's "file-on-file mount".
57620         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57621         so we fall through and use statfs instead.  Details here:
57622         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57623         Reported by Albert Chin.
57624
57625 2007-07-13  Bruno Haible  <bruno@clisp.org>
57626
57627         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57628         * modules/configmake (License): Likewise.
57629         * modules/gettext (License): Likewise.
57630         * modules/gettext-h (License): Likewise.
57631         * modules/include_next (License): Likewise.
57632         * modules/link-warning (License): Likewise.
57633         * modules/localcharset (License): Likewise.
57634         * modules/localename (License): Likewise.
57635         * modules/lock (License): Likewise.
57636         * modules/relocatable-lib-lgpl (License): Likewise.
57637         * modules/size_max (License): Likewise.
57638         * modules/vasnprintf (License): Likewise.
57639         * modules/wchar (License): Likewise.
57640         * modules/xsize (License): Likewise.
57641
57642 2007-07-13  Bruno Haible  <bruno@clisp.org>
57643
57644         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57645         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57646
57647 2007-07-12  Bruno Haible  <bruno@clisp.org>
57648
57649         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57650         in the modules files.
57651
57652 2007-07-11  Karl Berry  <karl@gnu.org>
57653
57654         * MODULES.html.sh (func_module): use
57655          sed -e '\|^'"${includefile}"'$|d'
57656          instead of /.../d, to avoid errors on $includefile's containing /.
57657
57658 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57659
57660         * gnulib-tool (func_import): Avoid duplication of --avoid
57661         statements
57662         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57663         names to `_' in variable names.
57664
57665 2007-07-10  Eric Blake  <ebb9@byu.net>
57666
57667         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57668         * NEWS: Document this change.
57669
57670 2007-07-08  Bruno Haible  <bruno@clisp.org>
57671
57672         Update to Unicode 5.0.
57673         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57674         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57675         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57676         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57677         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57678         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57679         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57680         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57681         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57682         U+10A3F, U+1D242..U+1D244.
57683         (nonspacing_table_ind): Update.
57684         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57685         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57686
57687 2007-07-08  Bruno Haible  <bruno@clisp.org>
57688
57689         Update to Unicode 5.0.
57690         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57691         code transform. Extend the name index field of unicode_name_to_code and
57692         unicode_code_to_name from 16 to 24 bits.
57693         * lib/uniname/uniname.c (unicode_character_name,
57694         unicode_name_character): Add the range 0x12xxx to the code transform.
57695         * lib/uniname/uninames.h: Regenerated.
57696         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57697
57698 2007-07-07  Bruno Haible  <bruno@clisp.org>
57699
57700         * modules/wcwidth-tests: New file.
57701         * tests/test-wcwidth.c: New file.
57702
57703         Work around MacOS X wcwidth() bug.
57704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57705         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57706         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57707         original wcwidth in non-UTF-8 locales.
57708         * modules/wcwidth (Depends-on): Add localcharset, streq,
57709         uniwidth/width.
57710         * doc/functions/wcwidth.texi: Update.
57711
57712 2007-07-07  Bruno Haible  <bruno@clisp.org>
57713
57714         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57715         (wcwidth): New declaration.
57716         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57717         macros.
57718         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57719         here. Prepare for creating <wchar.h> unconditionally.
57720         * modules/wchar (Depends-on): Add link-warning.
57721         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57722         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57723         * lib/wcwidth.h: Remove file.
57724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57725         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57726         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57727         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57728         (Include): Replace wcwidth.h with <wchar.h>.
57729         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57730         * lib/mbchar.h: Don't include wcwidth.h.
57731         * lib/mbswidth.c: Likewise.
57732         * NEWS: Mention the change.
57733
57734 2007-07-07  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57737         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57738         definition with an external declaration.
57739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57740         defined as a function. Remove AC_C_INLINE requirement.
57741         * modules/wcwidth (Files): Add lib/wcwidth.c.
57742         (Makefile.am): Remove redundant statement.
57743
57744 2007-07-07  Bruno Haible  <bruno@clisp.org>
57745
57746         * MODULES.html.sh (Unicode string functions): Add the new modules.
57747
57748         * tests/uniwidth/test-u32-strwidth.c: New file.
57749         * modules/uniwidth/u32-strwidth-tests: New file.
57750
57751         * lib/uniwidth/u32-strwidth.c: New file.
57752         * modules/uniwidth/u32-strwidth: New file.
57753
57754         * tests/uniwidth/test-u16-strwidth.c: New file.
57755         * modules/uniwidth/u16-strwidth-tests: New file.
57756
57757         * lib/uniwidth/u16-strwidth.c: New file.
57758         * modules/uniwidth/u16-strwidth: New file.
57759
57760         * tests/uniwidth/test-u8-strwidth.c: New file.
57761         * modules/uniwidth/u8-strwidth-tests: New file.
57762
57763         * lib/uniwidth/u8-strwidth.c: New file.
57764         * modules/uniwidth/u8-strwidth: New file.
57765
57766         * tests/uniwidth/test-u32-width.c: New file.
57767         * modules/uniwidth/u32-width-tests: New file.
57768
57769         * lib/uniwidth/u32-width.c: New file.
57770         * modules/uniwidth/u32-width: New file.
57771
57772         * tests/uniwidth/test-u16-width.c: New file.
57773         * modules/uniwidth/u16-width-tests: New file.
57774
57775         * lib/uniwidth/u16-width.c: New file.
57776         * modules/uniwidth/u16-width: New file.
57777
57778         * tests/uniwidth/test-u8-width.c: New file.
57779         * modules/uniwidth/u8-width-tests: New file.
57780
57781         * lib/uniwidth/u8-width.c: New file.
57782         * modules/uniwidth/u8-width: New file.
57783
57784         * tests/uniwidth/test-uc_width.c: New file.
57785         * modules/uniwidth/width-tests: New file.
57786
57787         * lib/uniwidth/width.c: New file, from GNU libiconv.
57788         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57789         * modules/uniwidth/width: New file.
57790
57791         * lib/uniwidth.h: New file, from GNU libiconv.
57792         * modules/uniwidth/base: New file.
57793
57794 2007-07-07  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/uniname.h: New file, from GNU gettext.
57797         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57798         * lib/uniname/uninames.h: New file, from GNU gettext.
57799         * lib/uniname/uniname.c: New file, from GNU gettext.
57800         * tests/uniname/test-uninames.sh: New file.
57801         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57802         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57803         * modules/uniname/base: New file.
57804         * modules/uniname/uniname: New file.
57805         * modules/uniname/uniname-tests: New file.
57806         * MODULES.html.sh (Unicode string functions): Add the new modules.
57807
57808 2007-07-06  Bruno Haible  <bruno@clisp.org>
57809
57810         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57811
57812 2007-07-06  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57815         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57816         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57817         include <sys/time.h>.
57818         Reported by Eric Blake.
57819
57820 2007-07-06  Eric Blake  <ebb9@byu.net>
57821
57822         Fix testing canonicalize on cygwin.
57823         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57824         Revert patch from 2007-06-19.
57825         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57826         canonicalize module is also in use.
57827         * tests/test-canonicalize.c: New file.
57828         * tests/test-canonicalize.sh: Likewise.
57829         * modules/canonicalize-tests: Likewise.
57830
57831 2007-07-06  Jim Meyering  <jim@meyering.net>
57832
57833         * lib/getugroups.c (getugroups): Detect getgrent failure.
57834         Adjust comment to reflect reality: this function may return -1.
57835
57836 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57837
57838         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57839         the new TP address.
57840         (usage): Fix typo
57841         (gnulib_mk): New variable.
57842
57843 2007-07-05  Jim Meyering  <jim@meyering.net>
57844
57845         Don't let endgrent clobber errno, no matter how improbable.
57846         * lib/getugroups.c (getugroups): Save and restore errno around
57847         endgrent call.
57848
57849         Close the group DB even when failing with 2^31 or more members.
57850         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57851
57852 2007-07-04  Jim Meyering  <jim@meyering.net>
57853
57854         * lib/getugroups.h: New file.
57855         * lib/getugroups.c: Include "getugroups.h".
57856         Remove uses of "register" keyword.
57857         Move local variable, "cp", down into scope where used.
57858         Give "username" parameter the "const" attribute.
57859         * modules/getugroups (Files): Add lib/getugroups.h
57860
57861 2007-07-04  Karl Berry  <karl@gnu.org>
57862
57863         * MODULES.html.sh (func_all_modules): Complete rename of
57864         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57865
57866 2007-07-02  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57869         mode, when inttypes.h comes from gnulib.
57870         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57871
57872 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57873
57874         * NEWS: Mention lgpl module name change.
57875
57876         * modules/lgpl-2.1: Renamed from lgpl.
57877
57878         * NEWS: Mention gpl module name change.
57879
57880         * modules/gpl-3.0: New file, based on gpl-2.0.
57881
57882         * modules/gpl-2.0: Renamed from gpl.
57883
57884         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57885         doc/gpl-2.0.texi.
57886
57887 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57890         #define __STDC_LIMIT_MACROS temporarily while including
57891         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57892         Problem reported by Joel E. Denny in
57893         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57894
57895 2007-07-01  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/unistdio.h: New file.
57898         * lib/unistdio/u-asnprintf.h: New file.
57899         * lib/unistdio/u-asprintf.h: New file.
57900         * lib/unistdio/u-printf-args.c: New file.
57901         * lib/unistdio/u-printf-args.h: New file.
57902         * lib/unistdio/u-printf-parse.h: New file.
57903         * lib/unistdio/u-snprintf.h: New file.
57904         * lib/unistdio/u-sprintf.h: New file.
57905         * lib/unistdio/u-vasprintf.h: New file.
57906         * lib/unistdio/u-vsnprintf.h: New file.
57907         * lib/unistdio/u-vsprintf.h: New file.
57908         * lib/unistdio/ulc-asnprintf.c: New file.
57909         * lib/unistdio/ulc-asprintf.c: New file.
57910         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57911         * lib/unistdio/ulc-printf-parse.c: New file.
57912         * lib/unistdio/ulc-snprintf.c: New file.
57913         * lib/unistdio/ulc-sprintf.c: New file.
57914         * lib/unistdio/ulc-vasnprintf.c: New file.
57915         * lib/unistdio/ulc-vasprintf.c: New file.
57916         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57917         * lib/unistdio/ulc-vsnprintf.c: New file.
57918         * lib/unistdio/ulc-vsprintf.c: New file.
57919         * lib/unistdio/u8-asnprintf.c: New file.
57920         * lib/unistdio/u8-asprintf.c: New file.
57921         * lib/unistdio/u8-printf-parse.c: New file.
57922         * lib/unistdio/u8-snprintf.c: New file.
57923         * lib/unistdio/u8-sprintf.c: New file.
57924         * lib/unistdio/u8-vasnprintf.c: New file.
57925         * lib/unistdio/u8-vasprintf.c: New file.
57926         * lib/unistdio/u8-vsnprintf.c: New file.
57927         * lib/unistdio/u8-vsprintf.c: New file.
57928         * lib/unistdio/u8-u8-asnprintf.c: New file.
57929         * lib/unistdio/u8-u8-asprintf.c: New file.
57930         * lib/unistdio/u8-u8-snprintf.c: New file.
57931         * lib/unistdio/u8-u8-sprintf.c: New file.
57932         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57933         * lib/unistdio/u8-u8-vasprintf.c: New file.
57934         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57935         * lib/unistdio/u8-u8-vsprintf.c: New file.
57936         * lib/unistdio/u16-asnprintf.c: New file.
57937         * lib/unistdio/u16-asprintf.c: New file.
57938         * lib/unistdio/u16-printf-parse.c: New file.
57939         * lib/unistdio/u16-snprintf.c: New file.
57940         * lib/unistdio/u16-sprintf.c: New file.
57941         * lib/unistdio/u16-vasnprintf.c: New file.
57942         * lib/unistdio/u16-vasprintf.c: New file.
57943         * lib/unistdio/u16-vsnprintf.c: New file.
57944         * lib/unistdio/u16-vsprintf.c: New file.
57945         * lib/unistdio/u16-u16-asnprintf.c: New file.
57946         * lib/unistdio/u16-u16-asprintf.c: New file.
57947         * lib/unistdio/u16-u16-snprintf.c: New file.
57948         * lib/unistdio/u16-u16-sprintf.c: New file.
57949         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57950         * lib/unistdio/u16-u16-vasprintf.c: New file.
57951         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57952         * lib/unistdio/u16-u16-vsprintf.c: New file.
57953         * lib/unistdio/u32-asnprintf.c: New file.
57954         * lib/unistdio/u32-asprintf.c: New file.
57955         * lib/unistdio/u32-printf-parse.c: New file.
57956         * lib/unistdio/u32-snprintf.c: New file.
57957         * lib/unistdio/u32-sprintf.c: New file.
57958         * lib/unistdio/u32-vasnprintf.c: New file.
57959         * lib/unistdio/u32-vasprintf.c: New file.
57960         * lib/unistdio/u32-vsnprintf.c: New file.
57961         * lib/unistdio/u32-vsprintf.c: New file.
57962         * lib/unistdio/u32-u32-asnprintf.c: New file.
57963         * lib/unistdio/u32-u32-asprintf.c: New file.
57964         * lib/unistdio/u32-u32-snprintf.c: New file.
57965         * lib/unistdio/u32-u32-sprintf.c: New file.
57966         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57967         * lib/unistdio/u32-u32-vasprintf.c: New file.
57968         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57969         * lib/unistdio/u32-u32-vsprintf.c: New file.
57970         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57971         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57972         * tests/unistdio/test-ulc-printf1.h: New file.
57973         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57974         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57975         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57976         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57977         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57978         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57979         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57980         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57981         * tests/unistdio/test-u8-asnprintf1.c: New file.
57982         * tests/unistdio/test-u8-asnprintf1.h: New file.
57983         * tests/unistdio/test-u8-printf1.h: New file.
57984         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57985         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57986         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57987         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57988         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57989         * tests/unistdio/test-u8-vasprintf1.c: New file.
57990         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57991         * tests/unistdio/test-u8-vsprintf1.c: New file.
57992         * tests/unistdio/test-u16-asnprintf1.c: New file.
57993         * tests/unistdio/test-u16-asnprintf1.h: New file.
57994         * tests/unistdio/test-u16-printf1.h: New file.
57995         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57996         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57997         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57998         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57999         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58000         * tests/unistdio/test-u16-vasprintf1.c: New file.
58001         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58002         * tests/unistdio/test-u16-vsprintf1.c: New file.
58003         * tests/unistdio/test-u32-asnprintf1.c: New file.
58004         * tests/unistdio/test-u32-asnprintf1.h: New file.
58005         * tests/unistdio/test-u32-printf1.h: New file.
58006         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58007         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58008         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58009         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58010         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58011         * tests/unistdio/test-u32-vasprintf1.c: New file.
58012         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58013         * tests/unistdio/test-u32-vsprintf1.c: New file.
58014         * modules/unistdio/base: New file.
58015         * modules/unistdio/u-printf-args: New file.
58016         * modules/unistdio/ulc-asnprintf: New file.
58017         * modules/unistdio/ulc-asprintf: New file.
58018         * modules/unistdio/ulc-fprintf: New file.
58019         * modules/unistdio/ulc-printf-parse: New file.
58020         * modules/unistdio/ulc-snprintf: New file.
58021         * modules/unistdio/ulc-sprintf: New file.
58022         * modules/unistdio/ulc-vasnprintf: New file.
58023         * modules/unistdio/ulc-vasprintf: New file.
58024         * modules/unistdio/ulc-vfprintf: New file.
58025         * modules/unistdio/ulc-vsnprintf: New file.
58026         * modules/unistdio/ulc-vsprintf: New file.
58027         * modules/unistdio/u8-asnprintf: New file.
58028         * modules/unistdio/u8-asprintf: New file.
58029         * modules/unistdio/u8-printf-parse: New file.
58030         * modules/unistdio/u8-snprintf: New file.
58031         * modules/unistdio/u8-sprintf: New file.
58032         * modules/unistdio/u8-vasnprintf: New file.
58033         * modules/unistdio/u8-vasprintf: New file.
58034         * modules/unistdio/u8-vsnprintf: New file.
58035         * modules/unistdio/u8-vsprintf: New file.
58036         * modules/unistdio/u8-u8-asnprintf: New file.
58037         * modules/unistdio/u8-u8-asprintf: New file.
58038         * modules/unistdio/u8-u8-snprintf: New file.
58039         * modules/unistdio/u8-u8-sprintf: New file.
58040         * modules/unistdio/u8-u8-vasnprintf: New file.
58041         * modules/unistdio/u8-u8-vasprintf: New file.
58042         * modules/unistdio/u8-u8-vsnprintf: New file.
58043         * modules/unistdio/u8-u8-vsprintf: New file.
58044         * modules/unistdio/u16-asnprintf: New file.
58045         * modules/unistdio/u16-asprintf: New file.
58046         * modules/unistdio/u16-printf-parse: New file.
58047         * modules/unistdio/u16-snprintf: New file.
58048         * modules/unistdio/u16-sprintf: New file.
58049         * modules/unistdio/u16-vasnprintf: New file.
58050         * modules/unistdio/u16-vasprintf: New file.
58051         * modules/unistdio/u16-vsnprintf: New file.
58052         * modules/unistdio/u16-vsprintf: New file.
58053         * modules/unistdio/u16-u16-asnprintf: New file.
58054         * modules/unistdio/u16-u16-asprintf: New file.
58055         * modules/unistdio/u16-u16-snprintf: New file.
58056         * modules/unistdio/u16-u16-sprintf: New file.
58057         * modules/unistdio/u16-u16-vasnprintf: New file.
58058         * modules/unistdio/u16-u16-vasprintf: New file.
58059         * modules/unistdio/u16-u16-vsnprintf: New file.
58060         * modules/unistdio/u16-u16-vsprintf: New file.
58061         * modules/unistdio/u32-asnprintf: New file.
58062         * modules/unistdio/u32-asprintf: New file.
58063         * modules/unistdio/u32-printf-parse: New file.
58064         * modules/unistdio/u32-snprintf: New file.
58065         * modules/unistdio/u32-sprintf: New file.
58066         * modules/unistdio/u32-vasnprintf: New file.
58067         * modules/unistdio/u32-vasprintf: New file.
58068         * modules/unistdio/u32-vsnprintf: New file.
58069         * modules/unistdio/u32-vsprintf: New file.
58070         * modules/unistdio/u32-u32-asnprintf: New file.
58071         * modules/unistdio/u32-u32-asprintf: New file.
58072         * modules/unistdio/u32-u32-snprintf: New file.
58073         * modules/unistdio/u32-u32-sprintf: New file.
58074         * modules/unistdio/u32-u32-vasnprintf: New file.
58075         * modules/unistdio/u32-u32-vasprintf: New file.
58076         * modules/unistdio/u32-u32-vsnprintf: New file.
58077         * modules/unistdio/u32-u32-vsprintf: New file.
58078         * modules/unistdio/ulc-asnprintf-tests: New file.
58079         * modules/unistdio/ulc-vasnprintf-tests: New file.
58080         * modules/unistdio/ulc-vasprintf-tests: New file.
58081         * modules/unistdio/ulc-vsnprintf-tests: New file.
58082         * modules/unistdio/ulc-vsprintf-tests: New file.
58083         * modules/unistdio/u8-asnprintf-tests: New file.
58084         * modules/unistdio/u8-vasnprintf-tests: New file.
58085         * modules/unistdio/u8-vasprintf-tests: New file.
58086         * modules/unistdio/u8-vsnprintf-tests: New file.
58087         * modules/unistdio/u8-vsprintf-tests: New file.
58088         * modules/unistdio/u16-asnprintf-tests: New file.
58089         * modules/unistdio/u16-vasnprintf-tests: New file.
58090         * modules/unistdio/u16-vasprintf-tests: New file.
58091         * modules/unistdio/u16-vsnprintf-tests: New file.
58092         * modules/unistdio/u16-vsprintf-tests: New file.
58093         * modules/unistdio/u32-asnprintf-tests: New file.
58094         * modules/unistdio/u32-vasnprintf-tests: New file.
58095         * modules/unistdio/u32-vasprintf-tests: New file.
58096         * modules/unistdio/u32-vsnprintf-tests: New file.
58097         * modules/unistdio/u32-vsprintf-tests: New file.
58098         * MODULES.html.sh (Unicode string functions): Add the new modules.
58099
58100 2007-07-01  Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/sprintf.c (sprintf): Limit the available length estimation,
58103         to avoid address wraparound.
58104         * lib/vsprintf.c (vsprintf): Likewise.
58105         * modules/sprintf-posix (Dependencies): Add stdint.
58106         * modules/vsprintf-posix (Dependencies): Likewise.
58107
58108 2007-07-01  Bruno Haible  <bruno@clisp.org>
58109
58110         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58111         Windows PATH as well. Conservative double-quoting. Comments.
58112
58113 2007-07-01  Bruno Haible  <bruno@clisp.org>
58114             Eric Blake  <ebb9@byu.net>
58115             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58116
58117         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58118         empty components in $PATH, denoting '.'.
58119
58120 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58121
58122         * gnulib-tool: Fix indentation.
58123         (func_create_megatestdir): Likewise.
58124         Report by Bruno Haible.
58125
58126 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58127
58128         Sync from Automake.
58129         * build-aux/gnupload: Fix shell portability issues with for loops.
58130         Report by Karl Berry.
58131
58132 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58133
58134         * build-aux/maint.mk (POURL): Use translationproject.org.
58135
58136 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58137             Bruno Haible  <bruno@clisp.org>
58138
58139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58140         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58141         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58142         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58143         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58144
58145 2007-06-27  Bruno Haible  <bruno@clisp.org>
58146
58147         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58148         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58149
58150 2007-06-26  Karl Berry  <karl@gnu.org>
58151
58152         * MODULES.html.sh: remove xreadlink-with-size.
58153
58154 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58157         method that I hope also handles the double-include problem noted
58158         by Bruno Haible in
58159         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58160
58161 2007-06-23  Bruno Haible  <bruno@clisp.org>
58162
58163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58164         Don't let the 'mostlyclean' target fail if the last subdirectory could
58165         not be removed.
58166         Reported by Karl Berry.
58167
58168 2007-06-23  Bruno Haible  <bruno@clisp.org>
58169
58170         * gnulib-tool (echo): Add a speedier workaround for ksh.
58171         * tests/test-echo.sh: Likewise.
58172
58173 2007-06-23  Bruno Haible  <bruno@clisp.org>
58174
58175         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58176         * tests/test-echo.sh: Likewise.
58177
58178 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58179
58180         * gnulib-tool (IFS): Initialize early, so we don't set it to
58181         empty later.
58182         (self_abspathname): Rewrite algorithm to set it, reindent.
58183         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58184         (func_create_megatestdir): Merge some sed scripts.
58185
58186 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58187
58188         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58189         exposed by Sun Studio 11 cc on Solaris 8.
58190
58191 2007-06-22  Bruno Haible  <bruno@clisp.org>
58192
58193         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58194         backslashes.
58195         * tests/test-echo.sh: New file.
58196
58197 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58198
58199         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58200         simplify `sed_replace_build_aux' scripts, they are portable but
58201         echoing them with `echo' is not.
58202         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58203
58204 2007-06-21  Karl Berry  <karl@gnu.org>
58205
58206         * config/srclist.txt: guess we can't handle the licenses via
58207         srclist at the moment.
58208
58209 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58210
58211         * MODULES.html.sh: Add include_next.
58212         * modules/include_next: New file.
58213
58214 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58217         INCLUDE_NEXT.
58218         (gl_CHECK_NEXT_HEADERS): New macro.
58219         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58220         the obsolescent gl_ABSOLUTE_HEADER.
58221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58222         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58223         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58224         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58225         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58226         * m4/math_h.m4 (gl_MATH_H): Likewise.
58227         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58228         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58229         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58230         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58231         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58232         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58233         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58237         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58238         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58239         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58240         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58241         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58242         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58243         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58244         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58245         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58246         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58247         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58248         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58249         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58250         * lib/float_.h: Likewise.
58251         * lib/inttypes_.h: Likewise.
58252         * lib/math_.h: Likewise.
58253         * lib/search_.h: Likewise.
58254         * lib/signal_.h: Likewise.
58255         * lib/stdint_.h: Likewise.
58256         * lib/stdio_.h: Likewise.
58257         * lib/stdlib_.h: Likewise.
58258         * lib/string_.h: Likewise.
58259         * lib/sys_stat_.h: Likewise.
58260         * lib/sys_time_.h: Likewise.
58261         * lib/time_.h: Likewise.
58262         * lib/unistd_.h: Likewise.
58263         * lib/wchar_.h: Likewise.
58264         * lib/wctype_.h: Likewise.
58265         * lib/dirent_.h: Likewise.
58266         * lib/iconv_.h: Likewise.
58267         * lib/locale_.h: Likewise.
58268         * lib/netinet_in_.h: Likewise.
58269         * lib/sys_select_.h: Likewise.
58270         * lib/sys_socket_.h: Likewise.
58271         * lib/sysexits_.h: Likewise.
58272         * modules/fcntl (Depends-on): Depend on include_next, not
58273         absolute_header.
58274         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58275         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58276         * modules/fchdir: Likewise.
58277         * modules/float: Likewise.
58278         * modules/iconv_open: Likewise.
58279         * modules/inttypes: Likewise.
58280         * modules/locale: Likewise.
58281         * modules/math: Likewise.
58282         * modules/netinet_in: Likewise.
58283         * modules/search: Likewise.
58284         * modules/signal: Likewise.
58285         * modules/stdint: Likewise.
58286         * modules/stdio: Likewise.
58287         * modules/stdlib: Likewise.
58288         * modules/string: Likewise.
58289         * modules/sys_select: Likewise.
58290         * modules/sys_socket: Likewise.
58291         * modules/sys_stat: Likewise.
58292         * modules/sys_time: Likewise.
58293         * modules/sysexits: Likewise.
58294         * modules/time: Likewise.
58295         * modules/unistd: Likewise.
58296         * modules/wchar: Likewise.
58297         * modules/wctype: Likewise.
58298         * modules/sys_stat: Change maintainer to "all".
58299         * modules/unistd: Likewise.
58300
58301 2007-06-20  Karl Berry  <karl@gnu.org>
58302
58303         * config/srclist.txt: track www changes in license files.
58304
58305 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58306
58307         * build-aux/bootstrap: Remove stray dot.
58308         Make sure build_aux settings are honored when linking
58309         gnulib_extra_files.
58310
58311 2007-06-19  Eric Blake  <ebb9@byu.net>
58312
58313         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58314         Allow compilation on cygwin.
58315
58316 2007-06-19  Jim Meyering  <jim@meyering.net>
58317
58318         xreadlink-with-size: Remove module.  No longer used.
58319         Ex-callers now use xreadlink or mreadlink-with-size.
58320         * modules/xreadlink-with-size: Remove module.
58321         * lib/xreadlink-with-size.c: Remove file.
58322         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58323         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58324         just before the function definition *is* accurate.
58325
58326         Eliminate one way canonicalize_filename_mode could exit.
58327         * lib/canonicalize.c (canonicalize_filename_mode):
58328         Use mreadlink_with_size, not xreadlink_with_size.
58329
58330 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         Detect porting problems to FreeBSD/arm, which has time_t wider than
58333         long int.  Original problem reported for GNU diff by Xin Li in
58334         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58335         * modules/getdate (Depends-on): Add intprops, verify.
58336         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58337         is an integer type no wider than long int.
58338
58339 2007-06-18  Jim Meyering  <jim@meyering.net>
58340
58341         New module: mreadlink-with-size.
58342         * MODULES.html.sh: Add mreadlink-with-size.
58343         * modules/mreadlink-with-size: New module
58344         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58345         not xreadlink-with-size.
58346         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58347
58348 2007-06-16  Bruno Haible  <bruno@clisp.org>
58349
58350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58351         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58352         Reported by Gary V. Vaughan <gary@gnu.org>.
58353
58354 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58355
58356         Revamp lchown so that it lives in unistd.h where it belongs.
58357         * lib/lchown.h: Remove.
58358         * lib/dirchownmod.c: Don't include lib/lchown.h.
58359         * lib/fchownat.c: Likewise.
58360         * lib/openat.c: Likewise.
58361         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58362         does not follow symlinks.
58363         (EOPNOTSUPP): Define if not defined.
58364         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58365         is defined to 0.
58366         (lchown): New decl.
58367         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58368         Do not check for lchown decl.
58369         Set REPLACE_LCHOWN.
58370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58371         REPLACE_LCHOWN.
58372         * modules/chown: Make it clear it follows symlinks.
58373         * modules/lchown: Make it clear it doesn't follow symlinks.
58374         (Files): Remove lib/lchown.h
58375         (Depends-on): Add unistd.
58376         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58377         (Include): Include <unistd.h>, not "lchown.h".
58378         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58379         REPLACE_LCHOWN.
58380
58381 2007-06-15  Jim Meyering  <jim@meyering.net>
58382
58383         Change license (GPL to LGPL) of fsusage and dependents.
58384         * modules/fsusage (License): Change to LGPL.
58385         * modules/full-read (License): Likewise.
58386         * modules/full-write (License): Likewise.
58387         * modules/safe-read (License): Likewise.
58388         * modules/safe-write (License): Likewise.
58389
58390 2007-06-14  Ben Pfaff  <blp@gnu.org>
58391
58392         Missing part of allocsa -> malloca transition.
58393         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58394         gl_MALLOCA.
58395
58396 2007-06-12  Bruno Haible  <bruno@clisp.org>
58397
58398         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58399         to ia64, x86_64, i386.
58400         Reported by Eric Blake.
58401
58402 2007-06-12  Bruno Haible  <bruno@clisp.org>
58403
58404         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58405         cross-compiling to x86_64.
58406
58407 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58408
58409         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58410         glitch reported by Ralf Wildenhues in
58411         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58412
58413         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58414         Vin Shelton.
58415
58416 2007-06-11  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58419         replacement string.
58420         Reported by Eric Blake.
58421
58422 2007-06-10  Bruno Haible  <bruno@clisp.org>
58423
58424         Prepare vasnprintf code for use with Unicode strings.
58425         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58426         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58427         TYPE_U32_STRING.
58428         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58429         a_u32_string variants.
58430         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58431         * lib/printf-args.c: Don't include config.h and the specification
58432         header if PRINTF_FETCHARGS is already defined.
58433         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58434         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58435         TYPE_U16_STRING, TYPE_U32_STRING.
58436         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58437         u16_directive, u16_directives, u32_directive, u32_directives): New
58438         types.
58439         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58440         New declarations.
58441         * lib/printf-parse.c: Don't include config.h and the specification
58442         header if PRINTF_PARSE is already defined. Eliminate the set of
58443         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58444         them now. Include c-ctype.h.
58445         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58446         directive and CHAR_T_ONLY_ASCII.
58447         * lib/vasnprintf.c: Don't include config.h and the specification header
58448         if VASNPRINTF is already defined.
58449         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58450         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58451         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58452         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58453         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58454         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58455         code accordingly.
58456         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58457         pad_ourselves also in this case, with the 'c' and 's' directives, and
58458         with a different notion of "width".
58459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58460
58461 2007-06-10  Bruno Haible  <bruno@clisp.org>
58462
58463         * modules/unistr/u32-mbsnlen: New file.
58464         * lib/unistr/u32-mbsnlen.c: New file.
58465
58466         * modules/unistr/u16-mbsnlen: New file.
58467         * lib/unistr/u16-mbsnlen.c: New file.
58468
58469         * modules/unistr/u8-mbsnlen: New file.
58470         * lib/unistr/u8-mbsnlen.c: New file.
58471
58472         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58473         declarations.
58474
58475 2007-06-10  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/string_.h (mbsnlen): New declaration.
58478         * lib/mbsnlen.c: New file.
58479         * m4/mbsnlen.m4: New file.
58480         * modules/mbsnlen: New file.
58481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58482         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58483         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58484
58485 2007-06-10  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58488
58489 2007-06-10  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58492         * lib/mbuiter.h: Likewise.
58493
58494 2007-06-10  Bruno Haible  <bruno@clisp.org>
58495
58496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58497         declaration.
58498
58499 2007-06-10  Karl Berry  <karl@gnu.org>
58500
58501         * config/srclist.txt: remove gettext entries, Bruno prefers
58502         to update individually.
58503
58504 2007-06-10  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58507         'maxlen'. Ensure only length + width bytes are allocated, not
58508         length + 1 + width.
58509
58510 2007-06-09  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58513         (CHAR_T): Remove macro.
58514         (VASNPRINTF): Update.
58515
58516 2007-06-09  Bruno Haible  <bruno@clisp.org>
58517
58518         * MODULES.html.sh (Unicode string functions): Add the new modules.
58519
58520         * modules/uniconv/u32-conv-to-enc: New file.
58521         * lib/uniconv/u32-conv-to-enc.c: New file.
58522         * modules/uniconv/u32-conv-to-enc-tests: New file.
58523         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58524
58525         * modules/uniconv/u16-conv-to-enc: New file.
58526         * lib/uniconv/u16-conv-to-enc.c: New file.
58527         * lib/uniconv/u-conv-to-enc.h: New file.
58528         * modules/uniconv/u16-conv-to-enc-tests: New file.
58529         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58530
58531         * modules/uniconv/u8-conv-to-enc: New file.
58532         * lib/uniconv/u8-conv-to-enc.c: New file.
58533         * modules/uniconv/u8-conv-to-enc-tests: New file.
58534         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58535
58536         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58537         u32_conv_to_encoding): New declarations.
58538
58539 2007-06-09  Bruno Haible  <bruno@clisp.org>
58540
58541         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58542
58543 2007-06-09  Bruno Haible  <bruno@clisp.org>
58544
58545         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58546         * modules/malloca: Renamed from modules/allocsa, updated.
58547         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58548         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58549         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58550         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58551         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58552         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58553         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58554         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58555         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58556         * modules/c-strcasestr (Depends-on): Update.
58557         * lib/c-strcasestr.c: Update.
58558         * modules/c-strstr (Depends-on): Update.
58559         * lib/c-strstr.c: Update.
58560         * modules/canonicalize-lgpl (Depends-on): Update.
58561         * lib/canonicalize-lgpl.c: Update.
58562         * modules/clean-temp (Depends-on): Update.
58563         * lib/clean-temp.c: Update.
58564         * modules/csharpcomp (Depends-on): Update.
58565         * lib/csharpcomp.c: Update.
58566         * modules/csharpexec (Depends-on): Update.
58567         * lib/csharpexec.c: Update.
58568         * modules/javacomp (Depends-on): Update.
58569         * lib/javacomp.c: Update.
58570         * modules/javaexec (Depends-on): Update.
58571         * lib/javaexec.c: Update.
58572         * modules/mbscasestr (Depends-on): Update.
58573         * lib/mbscasestr.c: Update.
58574         * modules/mbsstr (Depends-on): Update.
58575         * lib/mbsstr.c: Update.
58576         * modules/setenv (Depends-on): Update.
58577         * lib/setenv.c: Update.
58578         * modules/strcasestr (Depends-on): Update.
58579         * lib/strcasestr.c: Update.
58580         * modules/striconveha (Depends-on): Update.
58581         * lib/striconveha.c: Update.
58582         * modules/relocatable-prog-wrapper (Files): Update.
58583         * lib/relocwrapper.c: Update.
58584         * build-aux/install-reloc: Update.
58585         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58586
58587 2007-06-08  Bruno Haible  <bruno@clisp.org>
58588
58589         Port to uClibc.
58590         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58591         * lib/fpurge.c (fpurge): Likewise.
58592         * lib/freading.c (freading): Likewise.
58593         * lib/fseeko.c (rpl_fseeko): Likewise.
58594         * lib/fseterr.c (fseterr): Likewise.
58595         * lib/fwriting.c (fwriting): Likewise.
58596         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58597
58598 2007-06-08  Bruno Haible  <bruno@clisp.org>
58599
58600         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58601         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58602         * modules/gettext (Files): Add m4/intlmacosx.m4.
58603
58604 2007-06-07  Bruno Haible  <bruno@clisp.org>
58605
58606         * modules/localename-tests: New file.
58607         * tests/test-localename.c: New file.
58608
58609         New module 'localename'.
58610         * lib/localename.h: New file.
58611         * lib/localename.c: New file, from GNU gettext.
58612         * m4/localename.m4: New file.
58613         * modules/localename: New file.
58614
58615 2007-06-07  Bruno Haible  <bruno@clisp.org>
58616
58617         Work around the lack of <wchar.h> on some builds of uClibc.
58618         * doc/headers/wchar.texi: Update.
58619         * lib/wchar_.h: Include <wchar.h> only if it exists.
58620         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58621         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58622         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58623         doesn't exist.
58624         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58625         * modules/mbfile (Depends-on): Add wchar.
58626         * modules/mbiter (Depends-on): Likewise.
58627         * modules/mbuiter (Depends-on): Likewise.
58628         Reported by Simon Josefsson.
58629
58630 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         Work around problem reported by Steven M. Schweda in
58633         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58634         Tru64 5.1B with the Compaq compiler environment installed declares
58635         an 'isblank' function but does not define it in the C library.
58636         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58637         * lib/regex_internal.h (isblank): Likewise.
58638         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58639         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58640
58641 2007-06-05  Bruno Haible  <bruno@clisp.org>
58642
58643         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58644         ia64.
58645         * modules/printf-safe: New file.
58646         * modules/fprintf-posix (Depends-on): Add printf-safe.
58647         * modules/printf-posix (Depends-on): Likewise.
58648         * modules/snprintf-posix (Depends-on): Likewise.
58649         * modules/sprintf-posix (Depends-on): Likewise.
58650         * modules/vasnprintf-posix (Depends-on): Likewise.
58651         * modules/vasprintf-posix (Depends-on): Likewise.
58652         * modules/vfprintf-posix (Depends-on): Likewise.
58653         * modules/vprintf-posix (Depends-on): Likewise.
58654         * modules/vsnprintf-posix (Depends-on): Likewise.
58655         * modules/vsprintf-posix (Depends-on): Likewise.
58656         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58657         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58658         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58659         "no" on i386, x86_64, ia64.
58660         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58661         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58662         on i386, x86_64, ia64.
58663         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58664         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58665         on i386, x86_64, ia64.
58666         * tests/test-vasnprintf-posix.c: Include float.h.
58667         (LDBL80_WORDS): New macro.
58668         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58669         on i386, x86_64, ia64.
58670         * tests/test-vasprintf-posix.c: Include float.h.
58671         (LDBL80_WORDS): New macro.
58672         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58673         on i386, x86_64, ia64.
58674         * tests/test-snprintf-posix.c: Include float.h.
58675         * tests/test-sprintf-posix.c: Likewise.
58676         * tests/test-vsnprintf-posix.c: Likewise.
58677         * tests/test-vsprintf-posix.c: Likewise.
58678
58679 2007-06-05  Bruno Haible  <bruno@clisp.org>
58680
58681         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58682         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58683         non-IEEE numbers on i386, x86_64, ia64.
58684         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58685         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58686         * tests/test-isnanl.h: Include float.h.
58687         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58688
58689 2007-06-05  Bruno Haible  <bruno@clisp.org>
58690
58691         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58692         also the %a / %A. Handle the %a / %A code before this extra handling.
58693
58694 2007-06-05  Bruno Haible  <bruno@clisp.org>
58695
58696         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58697         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58698
58699 2007-06-05  Bruno Haible  <bruno@clisp.org>
58700
58701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58702         typo in variable name.
58703
58704 2007-06-05  Eric Blake  <ebb9@byu.net>
58705
58706         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58707         Reported by Simon Josefsson.
58708
58709 2007-06-04  Bruno Haible  <bruno@clisp.org>
58710
58711         Avoid test failures on some PowerPC platforms.
58712         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58713         Define differently for PowerPC.
58714         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58715         Reported by Gary V. Vaughan <gary@gnu.org>.
58716
58717 2007-06-02  Bruno Haible  <bruno@clisp.org>
58718
58719         Fix test-stdint failure on FreeBSD/ia64.
58720         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58721         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58722         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58723         * doc/headers/stdint.texi: Update.
58724
58725 2007-06-01  Bruno Haible  <bruno@clisp.org>
58726
58727         * tests/test-binary-io.c (main): Pass a third argument to open().
58728         Reported by Gary V. Vaughan <gary@gnu.org>.
58729
58730 2007-06-01  Bruno Haible  <bruno@clisp.org>
58731
58732         * doc/functions/frexpl.texi: Update for mingw.
58733
58734 2007-06-01  Bruno Haible  <bruno@clisp.org>
58735
58736         * tests/test-lseek.c (main): Disable test of errno for invalid third
58737         argument.
58738         * doc/functions/lseek.texi: Update.
58739         Reported by Gary V. Vaughan <gary@gnu.org>.
58740
58741 2007-05-28  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58744
58745 2007-05-31  Eric Blake  <ebb9@byu.net>
58746
58747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58748         cross compiling.
58749
58750 2007-05-30  Eric Blake  <ebb9@byu.net>
58751         and Bruno Haible  <bruno@clisp.org>
58752
58753         Work around mingw test failures exposed by m4-1.4.9b.
58754         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58755         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58756         moment.
58757
58758 2007-05-30  Bruno Haible  <bruno@clisp.org>
58759
58760         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58761         assuming that they are closed. Needed on HP-UX 11.
58762
58763 2007-05-29  Bruno Haible  <bruno@clisp.org>
58764
58765         Fix a problem with #include_next.
58766         * lib/dirent_.h: Split the double-inclusion guard.
58767         * lib/fcntl_.h: Likewise.
58768         * lib/float_.h: Likewise.
58769         * lib/iconv_.h: Likewise.
58770         * lib/inttypes_.h: Likewise.
58771         * lib/locale_.h: Likewise.
58772         * lib/math_.h: Likewise.
58773         * lib/netinet_in_.h: Likewise.
58774         * lib/search_.h: Likewise.
58775         * lib/signal_.h: Likewise.
58776         * lib/stdint_.h: Likewise.
58777         * lib/stdio_.h: Likewise.
58778         * lib/stdlib_.h: Likewise.
58779         * lib/string_.h: Likewise.
58780         * lib/sys_select_.h: Likewise.
58781         * lib/sys_socket_.h: Likewise.
58782         * lib/sys_stat_.h: Likewise.
58783         * lib/sys_time_.h: Likewise.
58784         * lib/sysexits_.h: Likewise.
58785         * lib/time_.h: Likewise.
58786         * lib/unistd_.h: Likewise.
58787         * lib/wchar_.h: Likewise.
58788         * lib/wctype_.h: Likewise.
58789
58790 2007-05-29  Bruno Haible  <bruno@clisp.org>
58791
58792         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58793         for the moment.
58794
58795 2007-05-29  Bruno Haible  <bruno@clisp.org>
58796
58797         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58798         invocation.
58799         Reported by Eric Blake.
58800
58801 2007-05-29  Bruno Haible  <bruno@clisp.org>
58802
58803         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58804         compiling case.
58805
58806 2007-05-29  Eric Blake  <ebb9@byu.net>
58807             Bruno Haible  <bruno@clisp.org>
58808
58809         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58810         cross compiles.
58811
58812 2007-05-28  Eric Blake  <ebb9@byu.net>
58813
58814         * modules/closein-tests (test_closein_LDADD): Support test on
58815         cygwin with libtool.
58816
58817 2007-05-28  Bruno Haible  <bruno@clisp.org>
58818
58819         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58820         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58821         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58822         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58823         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58824         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58825         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58826         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58827         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58828
58829 2007-05-28  Eric Blake  <ebb9@byu.net>
58830
58831         Unconditionally include <config.h> in unit tests.
58832         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58833         * tests/test-allocsa.c, tests/test-arcfour.c,
58834         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58835         tests/test-array_list.c, tests/test-array_oset.c,
58836         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58837         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58838         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58839         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58840         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58841         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58842         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58843         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58844         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58845         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58846         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58847         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58848         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58849         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58850         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58851         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58852         test-md5.c, test-memmem.c, test-printf-posix.c,
58853         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58854         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58855         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58856         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58857         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58858         test-vasnprintf-posix2.c, test-vasnprintf.c,
58859         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58860         test-vfprintf-posix.c, test-vprintf-posix.c,
58861         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58862         test-xvasprintf.c: Likewise.
58863
58864 2007-05-28  Bruno Haible  <bruno@clisp.org>
58865
58866         * gnulib-tool (func_import): Remember the --with-tests command-line
58867         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58868         Reported by Eric Blake.
58869
58870 2007-05-28  Bruno Haible  <bruno@clisp.org>
58871
58872         * modules/ftell-tests: New file.
58873         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58874         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58875
58876         * lib/ftell.c: New file.
58877         * modules/ftell: New file.
58878         * m4/ftell.m4: New file.
58879         * doc/functions/ftell.texi: Update.
58880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58881         REPLACE_FTELL.
58882         * lib/stdio_.h (rpl_ftell): New declaration.
58883         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58884         REPLACE_FTELL.
58885
58886 2007-05-28  Eric Blake  <ebb9@byu.net>
58887
58888         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58889
58890 2007-05-28  Bruno Haible  <bruno@clisp.org>
58891
58892         * modules/fseek-tests: New file.
58893         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58894         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58895
58896         * lib/fseek.c: New file.
58897         * modules/fseek: New file.
58898         * m4/fseek.m4: New file.
58899         * doc/functions/fseek.texi: Update.
58900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58901         REPLACE_FSEEK.
58902         * lib/stdio_.h (rpl_fseek): New declaration.
58903         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58904         REPLACE_FSEEK.
58905
58906 2007-05-28  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/stdio_.h (fflush): More comments.
58909
58910 2007-05-28  Bruno Haible  <bruno@clisp.org>
58911
58912         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58913         runtime test.
58914
58915 2007-05-28  Eric Blake  <ebb9@byu.net>
58916
58917         Improve lseek module.
58918         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58919         * lib/unistd_.h (lseek): Scale back link warning message.
58920         * tests/test-lseek.c: Beef up test.
58921         * tests/test-lseek.sh: Exercise more facets of lseek.
58922         Reported by Bruno Haible.
58923
58924 2007-05-28  Bruno Haible  <bruno@clisp.org>
58925
58926         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58927         to define.
58928
58929 2007-05-27  Bruno Haible  <bruno@clisp.org>
58930
58931         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58932
58933 2007-05-27  Bruno Haible  <bruno@clisp.org>
58934
58935         * modules/openmp: New file.
58936         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58937         Noah Misch.
58938
58939 2007-05-26  Bruno Haible  <bruno@clisp.org>
58940
58941         * modules/chdir-long (Depends-on): Add fchdir.
58942         * modules/chdir-safer (Depends-on): Likewise.
58943         * modules/fts (Depends-on): Likewise.
58944         * modules/fts-lgpl (Depends-on): Likewise.
58945         * modules/openat (Depends-on): Likewise.
58946         * modules/savewd (Depends-on): Likewise.
58947
58948 2007-05-24  Eric Blake  <ebb9@byu.net>
58949
58950         Fix lseek on mingw.
58951         * modules/lseek: New module.
58952         * m4/lseek.m4: New file.
58953         * lib/lseek.c: New file.
58954         * modules/lseek-tests: New file.
58955         * tests/test-lseek.c: New file.
58956         * tests/test-lseek.sh: New file.
58957         * MODULES.html.sh: Document lseek module.
58958         * modules/fflush (Depends-on): Add lseek, fseeko.
58959         * modules/fseeko (Depends-on): Likewise.
58960         * modules/ftello (Depends-on): Likewise.
58961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58962         broken.
58963         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58964         broken.
58965         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58966         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58967         * lib/ftello.c (rpl_ftello): Likewise.
58968         * tests/test-fseeko.c (main): Test this.
58969         * tests/test-fseeko.sh: Likewise.
58970         * tests/test-ftello.c (main): Likewise.
58971         * tests/test-ftello.sh: Likewise.
58972         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58973         implies replacing fseek.
58974         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58975         HAVE_FTELLO.
58976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58977         * modules/unistd (Makefile.am): Likewise.
58978         * lib/unistd_.h (lseek): Declare a replacement.
58979         * doc/functions/lseek.texi (lseek): Document this fix.
58980         * doc/functions/fseek.texi (fseek): Likewise.
58981         * doc/functions/ftell.texi (ftell): Likewise.
58982
58983 2007-05-24  Bruno Haible  <bruno@clisp.org>
58984
58985         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58986         in the printed representation of a NaN.
58987         * tests/test-vasprintf-posix.c (test_function): Likewise.
58988         * tests/test-snprintf-posix.h (test_function): Likewise.
58989         * tests/test-sprintf-posix.h (test_function): Likewise.
58990         Reported by Eric Blake.
58991
58992 2007-05-23  Eric Blake  <ebb9@byu.net>
58993
58994         Fix fseeko/ftello on cygwin 1.5.24.
58995         * doc/functions/fseeko.texi (fseeko): Document the fix.
58996         * doc/functions/ftello.texi (ftello): Document the fix.
58997         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58998         * doc/functions/stdout.text (stdout): New file.
58999         * doc/functions/stderr.text (stderr): New file.
59000         * doc/gnulib.texi (Function Substitutes): Use new files.
59001         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59002         prior to 1.7.0.
59003         * tests/test-ftello.c (main): Likewise for ftello.
59004         * tests/test-fseeko.sh: New file.
59005         * tests/test-ftello.sh: New file.
59006         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59007         with seekable stdin.
59008         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59009         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59010         (gl_REPLACE_FSEEKO): New macro.
59011         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59012         * modules/fseeko (Files): Distribute fseeko.c.
59013         * modules/ftello (Files): Distribute ftello.c.
59014         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59015         mode.
59016         * lib/ftello.c (rpl_ftello): New file.
59017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59018         fseeko, ftello.
59019         (gl_STDIN_LARGE_OFFSET): New macro.
59020         * modules/stdio (Makefile.am): Perform the replacement.
59021         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59022
59023 2007-05-23  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59026         GNULIB_POSIXCHECK is defined.
59027
59028 2007-05-21  Bruno Haible  <bruno@clisp.org>
59029
59030         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59031         Check also the output for NaN arguments. When cross-compiling, guess
59032         no on IRIX.
59033         * lib/vasnprintf.c: Update comments.
59034         * tests/test-vasnprintf-posix.c (strisnan): New function.
59035         (test_function): Use it.
59036         * tests/test-vasprintf-posix.c (strisnan): New function.
59037         (test_function): Use it.
59038         * tests/test-snprintf-posix.h (strisnan): New function.
59039         (test_function): Use it.
59040         * tests/test-sprintf-posix.h (strisnan): New function.
59041         (test_function): Use it.
59042         Reported by Eric Blake.
59043
59044 2007-05-20  Bruno Haible  <bruno@clisp.org>
59045
59046         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59047         numbers that fails on BeOS.
59048         * doc/functions/frexpl.texi: Update.
59049
59050 2007-05-20  Jim Meyering  <jim@meyering.net>
59051
59052         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59053         forced upon us by glibc-2.6.
59054
59055 2007-05-20  Bruno Haible  <bruno@clisp.org>
59056
59057         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59058         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59059         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59060         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59061         NEED_PRINTF_INFINITE.
59062         (is_infinitel): New function.
59063         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59065         gl_PREREQ_VASNPRINTF_INFINITE.
59066         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59068         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59069         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59070         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59071         gl_PREREQ_VASNPRINTF_INFINITE.
59072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59073         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59074         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59075         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59076         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59077         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59078         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59079         * doc/functions/fprintf.texi: Update.
59080         * doc/functions/printf.texi: Update.
59081         * doc/functions/snprintf.texi: Update.
59082         * doc/functions/sprintf.texi: Update.
59083         * doc/functions/vfprintf.texi: Update.
59084         * doc/functions/vprintf.texi: Update.
59085         * doc/functions/vsnprintf.texi: Update.
59086         * doc/functions/vsprintf.texi: Update.
59087
59088 2007-05-20  Bruno Haible  <bruno@clisp.org>
59089
59090         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59091         was not found in libc.
59092         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59093
59094 2007-05-20  Bruno Haible  <bruno@clisp.org>
59095
59096         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59097         printed as "-nan" instead of "nan".
59098         * tests/test-vasprintf-posix.c (test_function): Likewise.
59099         * tests/test-snprintf-posix.h (test_function): Likewise.
59100         * tests/test-sprintf-posix.h (test_function): Likewise.
59101         Needed for HP-UX 11.
59102
59103 2007-05-20  Jim Meyering  <jim@meyering.net>
59104
59105         Fix buggy test for the fchownat-deref bug.
59106         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59107         symlink required for the run-test.  Without it, this test would
59108         always declare that fchownat doesn't work, and client code would
59109         unnecessarily use the replacement function with fixed libc.
59110         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59111         Reported by Greg Schafer.
59112
59113 2007-05-19  Bruno Haible  <bruno@clisp.org>
59114
59115         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59116         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59117         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59118         Needed for IRIX 6.5 and Solaris 2.5.1.
59119
59120 2007-05-19  Bruno Haible  <bruno@clisp.org>
59121
59122         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59123         (test_function): Skip tests involving -0.0 on platforms where
59124         -0.0 = 0.0.
59125         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59126         (test_function): Skip tests involving -0.0 on platforms where
59127         -0.0 = 0.0.
59128         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59129         (test_function): Skip tests involving -0.0 on platforms where
59130         -0.0 = 0.0.
59131         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59132         (test_function): Skip tests involving -0.0 on platforms where
59133         -0.0 = 0.0.
59134         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59135         tests.
59136         * tests/test-printf-posix.h (test_function): Likewise.
59137         * tests/test-printf-posix.output: Remove all -0.0 related results.
59138         Needed for IRIX 6.5.
59139
59140 2007-05-19  Bruno Haible  <bruno@clisp.org>
59141
59142         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59143         printed as "nan0x7fffffff" instead of "nan".
59144         * tests/test-vasprintf-posix.c (test_function): Likewise.
59145         * tests/test-snprintf-posix.h (test_function): Likewise.
59146         * tests/test-sprintf-posix.h (test_function): Likewise.
59147         * tests/test-fprintf-posix.h (NaN): Remove macro.
59148         (test_function): Remove all NaN related tests.
59149         * tests/test-printf-posix.h (NaN): Remove macro.
59150         (test_function): Remove all NaN related tests.
59151         * tests/test-printf-posix.output: Remove all NaN related results.
59152         Needed for IRIX 6.5.
59153
59154 2007-05-19  Bruno Haible  <bruno@clisp.org>
59155
59156         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59157         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59158
59159 2007-05-19  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/float_.h: New file.
59162         * m4/float_h.m4: New file.
59163         * modules/float: New file.
59164         * modules/isnanl (Dependencies): Add float.
59165         * modules/isnanl-nolibm (Dependencies): Likewise.
59166         * modules/mathl (Dependencies): Likewise.
59167         * modules/printf-frexpl (Dependencies): Likewise.
59168         * modules/signbit (Dependencies): Likewise.
59169         * modules/vasnprintf (Dependencies): Likewise.
59170         * doc/headers/float.texi: Update.
59171
59172 2007-05-19  Jim Meyering  <jim@meyering.net>
59173
59174         * lib/utimens.c (gl_futimens): Rename from futimens,
59175         now that glibc-2.6 declares futimens.
59176         * lib/utimens.h: Likewise.
59177
59178 2007-05-19  Bruno Haible  <bruno@clisp.org>
59179
59180         Avoid test failures on mingw.
59181         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59182         * tests/test-printf-posix.sh: Likewise.
59183         * tests/test-vfprintf-posix.sh: Likewise.
59184         * tests/test-vprintf-posix.sh: Likewise.
59185
59186 2007-05-19  Bruno Haible  <bruno@clisp.org>
59187
59188         Fix *printf result for NaN, Inf, -0.0 on mingw.
59189         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59190         * lib/vasnprintf.c: Include math.h and isnan.h.
59191         (is_infinite_or_zero): New function.
59192         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59193         values in the %f, %F, %e, %E, %g, %G directives.
59194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59195         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59196         gl_PRINTF_INFINITE and test its result. Invoke
59197         gl_PREREQ_VASNPRINTF_INFINITE.
59198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59202         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59204         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59205         * doc/functions/fprintf.texi: Update.
59206         * doc/functions/printf.texi: Update.
59207         * doc/functions/snprintf.texi: Update.
59208         * doc/functions/sprintf.texi: Update.
59209         * doc/functions/vfprintf.texi: Update.
59210         * doc/functions/vprintf.texi: Update.
59211         * doc/functions/vsnprintf.texi: Update.
59212         * doc/functions/vsprintf.texi: Update.
59213
59214 2007-05-19  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59217         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59218         Instead of multiplying with 10^k, set extra_zeroes to k.
59219         (scale10_round_long_double): Remove function.
59220
59221 2007-05-18  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59224         introduced on 2007-05-06.
59225
59226 2007-05-18  Bruno Haible  <bruno@clisp.org>
59227
59228         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59229         %g directives.
59230         * tests/test-vasprintf-posix.c (test_function): Likewise.
59231         * tests/test-snprintf-posix.h (test_function): Likewise.
59232         * tests/test-sprintf-posix.h (test_function): Likewise.
59233
59234 2007-05-18  Bruno Haible  <bruno@clisp.org>
59235
59236         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59237         (strmatch): New function.
59238         (test_function): Test the %f directive on numbers of various exponents.
59239         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59240         (strmatch): New function.
59241         (test_function): Test the %f directive on numbers of various exponents.
59242         * tests/test-snprintf-posix.h (strmatch): New function.
59243         (test_function): Test the %f directive on numbers of various exponents.
59244         * tests/test-sprintf-posix.h (strmatch): New function.
59245         (test_function): Test the %f directive on numbers of various exponents.
59246         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59247         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59248         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59249         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59250
59251 2007-05-18  Bruno Haible  <bruno@clisp.org>
59252
59253         Add support for 'long double' number output.
59254         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59255         * lib/vasnprintf.c: Include math.h and float+.h.
59256         (mp_limb_t): New type.
59257         (GMP_LIMB_BITS): New macro.
59258         (mp_twolimb_t): New type.
59259         (GMP_TWOLIMB_BITS): New macro.
59260         (mpn_t): New type.
59261         (multiply, divide, convert_to_decimal, decode_long_double,
59262         scale10_round_long_double, scale10_round_decimal_long_double,
59263         floorlog10l): New functions.
59264         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59265         for the %f, %F, %e, %E, %g, %G directives.
59266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59268         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59269         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59277         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59278         * modules/snprintf-posix (Depends-on): Likewise.
59279         * modules/sprintf-posix (Depends-on): Likewise.
59280         * modules/vasnprintf-posix (Depends-on): Likewise.
59281         * modules/vasprintf-posix (Depends-on): Likewise.
59282         * modules/vfprintf-posix (Depends-on): Likewise.
59283         * modules/vsnprintf-posix (Depends-on): Likewise.
59284         * modules/vsprintf-posix (Depends-on): Likewise.
59285         * modules/vasnprintf (Files): Add lib/float+.h.
59286         * doc/functions/fprintf.texi: Update.
59287         * doc/functions/printf.texi: Update.
59288         * doc/functions/snprintf.texi: Update.
59289         * doc/functions/sprintf.texi: Update.
59290         * doc/functions/vfprintf.texi: Update.
59291         * doc/functions/vprintf.texi: Update.
59292         * doc/functions/vsnprintf.texi: Update.
59293         * doc/functions/vsprintf.texi: Update.
59294
59295 2007-05-18  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59298
59299 2007-05-18  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59302         for printing 64-bit integers. Needed for mingw.
59303
59304 2007-05-18  Bruno Haible  <bruno@clisp.org>
59305
59306         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59307         gl_FUNC_FREXPL_WORKS.
59308         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59309
59310 2007-05-18  Bruno Haible  <bruno@clisp.org>
59311
59312         * modules/frexpl-nolibm-tests: New file.
59313
59314         * modules/frexpl-nolibm: New file.
59315         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59316
59317 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59318
59319         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59320         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59321         GCC 4.2, which otherwise issues a lot of warnings.
59322         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59323         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59324         Likewise.
59325         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59326         * modules/iconv_open (iconv.h): Likewise.
59327         * modules/locale (locale.h): Likewise.
59328         * modules/netinet_in (netinet/in.h): Likewise.
59329         * modules/sys_select (sys_select.h): Likewise.
59330         * modules/sys_socket (sys/socket.h): Likewise.
59331         * modules/sys_stat (sys/stat.h): Likewise.
59332         * modules/sysexits (sysexits.h): Likewise.
59333         * modules/unistd (unistd.h): Likewise.
59334
59335 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59336
59337         * modules/closein-tests (Makefile.am): Distribute
59338         `test-closein.sh'.
59339
59340 2007-05-17  Bruno Haible  <bruno@clisp.org>
59341
59342         * tests/test-printf-posix.output: Renamed from
59343         tests/test-fprintf-posix.out.
59344         * modules/fprintf-posix-tests: Update.
59345         * modules/printf-posix-tests: Update.
59346         * modules/vfprintf-posix-tests: Update.
59347         * modules/vprintf-posix-tests: Update.
59348         * tests/test-fprintf-posix.sh: Update.
59349         * tests/test-printf-posix.sh: Update.
59350         * tests/test-vfprintf-posix.sh: Update.
59351         * tests/test-vprintf-posix.sh: Update.
59352         Reported by Ralf Wildenhues.
59353
59354 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59355
59356         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59357         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59358         GCC 4.2, which otherwise issues a lot of warnings.
59359         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59360         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59361         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59362         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59363         it should no longer be needed.
59364         * lib/string_.h: Likewise.
59365         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59366         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59367         * modules/inttypes (inttypes.h): Likewise.
59368         * modules/math (math.h): Likewise.
59369         * modules/search (search.h): Likewise.
59370         * modules/signal (signal.h): Likewise.
59371         * modules/stdint (stdint.h): Likewise.
59372         * modules/stdio (stdio.h): Likewise.
59373         * modules/stdlib (stdlib.h): Likewise.
59374         * modules/string (string.h): Likewise.
59375         * modules/sys_time (sys/time.h): Likewise.
59376         * modules/time (time.h): Likewise.
59377         * modules/wchar (wchar.h): Likewise.
59378         * modules/wctype (wtype.h): Likewise.
59379
59380 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59381
59382         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59383
59384 2007-05-13  Bruno Haible  <bruno@clisp.org>
59385
59386         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59387         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59388         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59389         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59390         (gl_PREREQ_STRTOK_R): Don't require it here.
59391
59392 2007-05-13  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59395         when used in C++ mode.
59396
59397 2007-05-12  Bruno Haible  <bruno@clisp.org>
59398
59399         * lib/linebuffer.h: Tweak doc.
59400         * lib/linebuffer.c: Likewise.
59401
59402 2007-05-12  James Youngman  <jay@gnu.org>
59403
59404         * lib/linebuffer.c (readlinebuffer_delim): New function,
59405         like readlinebuffer, but use a caller-specified delimiter.
59406         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59407         as the delimiter.
59408         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59409
59410 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59411
59412         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59413         * modules/openat (Files): Remove openat-die.c.
59414         (Depends-on): Add openat-die.
59415         * modules/openat-die: New module.
59416
59417 2007-05-06  Bruno Haible  <bruno@clisp.org>
59418
59419         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59420         Update with info about Cygwin.
59421         * doc/functions/fprintf.texi: Update.
59422         * doc/functions/printf.texi: Update.
59423         * doc/functions/snprintf.texi: Update.
59424         * doc/functions/sprintf.texi: Update.
59425         * doc/functions/vfprintf.texi: Update.
59426         * doc/functions/vprintf.texi: Update.
59427         * doc/functions/vsnprintf.texi: Update.
59428         * doc/functions/vsprintf.texi: Update.
59429         Reported by Eric Blake.
59430
59431 2007-05-06  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59434         padding ourselves for the floating-point directives.
59435         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59438         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59439         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59447         * tests/test-snprintf-posix.h (test_function): Also check the width
59448         and some flags in the %f directive.
59449         * tests/test-sprintf-posix.h (test_function): Likewise.
59450         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59451         * tests/test-vasprintf-posix.c (test_function): Likewise.
59452         * doc/functions/fprintf.texi: Update.
59453         * doc/functions/printf.texi: Update.
59454         * doc/functions/snprintf.texi: Update.
59455         * doc/functions/sprintf.texi: Update.
59456         * doc/functions/vfprintf.texi: Update.
59457         * doc/functions/vprintf.texi: Update.
59458         * doc/functions/vsnprintf.texi: Update.
59459         * doc/functions/vsprintf.texi: Update.
59460
59461 2007-05-06  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59464         pass the ' flag character to sprintf or snprintf.
59465         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59468         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59469         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59471         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59477         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59478         flag.
59479         * tests/test-sprintf-posix.h (test_function): Likewise.
59480         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59481         * tests/test-vasprintf-posix.c (test_function): Likewise.
59482         * doc/functions/fprintf.texi: Update.
59483         * doc/functions/printf.texi: Update.
59484         * doc/functions/snprintf.texi: Update.
59485         * doc/functions/sprintf.texi: Update.
59486         * doc/functions/vfprintf.texi: Update.
59487         * doc/functions/vprintf.texi: Update.
59488         * doc/functions/vsnprintf.texi: Update.
59489         * doc/functions/vsprintf.texi: Update.
59490
59491 2007-05-01  Bruno Haible  <bruno@clisp.org>
59492
59493         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59494
59495 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59498         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59499
59500 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59503         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59505
59506 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59507
59508         * lib/argp-help.c (struct hol_entry): New member `ord'.
59509         (HOL_ENTRY_PTRCMP): Use ord for comparison
59510         (hol_sort): Initialize ord.
59511
59512 2007-05-01  Bruno Haible  <bruno@clisp.org>
59513
59514         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59515         Reported by Eric Blake.
59516         * doc/gnulib.texi (Function Substitutes): Update.
59517
59518 2007-05-01  Bruno Haible  <bruno@clisp.org>
59519
59520         * doc/functions.texi: Remove file, now redundant through
59521         doc/functions/*.texi.
59522
59523 2007-05-01  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/argp (Depends-on): Add sleep.
59526
59527 2007-05-01  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/sleep-tests: New file.
59530         * tests/test-sleep.c: New file.
59531
59532         * modules/sleep: New file.
59533         * lib/sleep.c: New file.
59534         * m4/sleep.m4: New file.
59535         * lib/unistd_.h (sleep): New declaration.
59536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59537         HAVE_SLEEP.
59538         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59539         * doc/functions/sleep.texi: Document the sleep module.
59540
59541 2007-05-01  Bruno Haible  <bruno@clisp.org>
59542
59543         * lib/sigprocmask.h: Remove file.
59544         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59545         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59547         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59548         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59549         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59550         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59551         HAVE_SIGSET_T as a shell variable.
59552         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59553         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59554         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59555         (Depends-on): Add signal. Remove verify.
59556         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59557         (Include): Mention <signal.h> instead of sigprocmask.h.
59558         * NEWS: Mention the change.
59559         * lib/fatal-signal.c: Don't include sigprocmask.h.
59560
59561 2007-05-01  Bruno Haible  <bruno@clisp.org>
59562
59563         * modules/signal: New file.
59564         * lib/signal_.h: New file.
59565         * m4/signal_h.m4: New file.
59566
59567 2007-05-01  Bruno Haible  <bruno@clisp.org>
59568
59569         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59570         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59571         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59572         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59573
59574 2007-05-01  Bruno Haible  <bruno@clisp.org>
59575
59576         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59577         configure time.
59578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59579         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59580         * modules/sys_stat (Makefile.am): Substitute their values into
59581         sys/stat.h.
59582
59583 2007-05-01  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59586         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59587         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59588
59589 2007-05-01  Bruno Haible  <bruno@clisp.org>
59590
59591         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59592         'assert' module here.
59593
59594 2007-05-01  Bruno Haible  <bruno@clisp.org>
59595
59596         * doc/functions/*.texi: New files.
59597         * doc/functions/google-ranking.txt: New file.
59598         * doc/gnulib.texi (Function Substitutes): New chapter.
59599         (ctime, inet_ntoa): Remove sections.
59600         * doc/ctime.texi: Remove file.
59601         * doc/inet_ntoa.texi: Remove file.
59602         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59603         dependencies.
59604         (%.info): New rule, specifying a --reference-limit.
59605
59606 2007-05-01  Bruno Haible  <bruno@clisp.org>
59607
59608         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59609
59610 2007-05-01  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59613         the portability of 'mkdir' to mingw systems.
59614
59615 2007-05-01  Bruno Haible  <bruno@clisp.org>
59616
59617         * doc/headers/google-ranking.txt: New file.
59618
59619 2007-04-30  Eric Blake  <ebb9@byu.net>
59620
59621         Prefer fseeko to fseek.
59622         * modules/getpass (Depends-on): Add fseeko.
59623         * lib/getpass.c (getpass): Use fseeko, not fseek.
59624
59625 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59626
59627         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59628         assumes the sorting is stable, while most qsort implementations
59629         are not.  Use argument addresses to ensure they never compare as
59630         equal.
59631
59632         * tests/test-argp-2.sh (usage-indent test): Fix output
59633         (func_compare): Restore diff options
59634         * tests/test-argp.c: Restore #include "progname.h"
59635
59636 2007-04-29  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59640         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59642         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59643         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59644         (TESTS, check_PROGRAMS): Add test-snprintf.
59645         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59646         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59647         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59648         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59649         assertions that fail on HP-UX, OSF/1, or IRIX.
59650         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59651
59652 2007-04-29  Bruno Haible  <bruno@clisp.org>
59653
59654         * MODULES.html.sh (posix_functions): Remove 'contents'.
59655
59656 2007-04-29  Karl Berry  <karl@gnu.org>
59657
59658         * config/srclist.txt (gendocs_template_min): new entry.
59659
59660 2007-04-29  Bruno Haible  <bruno@clisp.org>
59661
59662         Work around fpurge bug on BSD systems.
59663         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59664         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59665         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59666         fpurge to rpl_fpurge if the system already has this function.
59667         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59668         the case where the system already has this function. Correct invariants
59669         on BSD systems.
59670         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59671         BSD systems.
59672
59673 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59674
59675         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59676         proposed by Sven Verdoolaege.
59677
59678         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59679         options.
59680         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59681         (usage and help tests): Update
59682
59683 2007-04-29  Bruno Haible  <bruno@clisp.org>
59684
59685         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59686         Print more information in case of failure. Disable a test on BeOS.
59687
59688 2007-04-29  Bruno Haible  <bruno@clisp.org>
59689
59690         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59691         This helps debugging on systems on which no gdb is available.
59692
59693 2007-04-29  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/freading.h: Improve comments.
59696         * lib/fwriting.h: Likewise.
59697         * tests/test-freading.c (main): Don't check freading immediately after
59698         repositioning. Needed for glibc.
59699
59700 2007-04-29  Bruno Haible  <bruno@clisp.org>
59701
59702         * lib/freading.c (freading): Trivial simplification.
59703
59704 2007-04-28  Bruno Haible  <bruno@clisp.org>
59705
59706         * tests/test-fwriting.c (main): Also test the interaction between
59707         fflush and fwriting.
59708         * modules/fwriting-tests (Depends-on): Add fflush.
59709
59710         * tests/test-freading.c (main): Also test the interaction between
59711         fflush and freading.
59712         * modules/freading-tests (Depends-on): Add fflush.
59713
59714 2007-04-28  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59717         fseeko and ftello.
59718         Suggested by Eric Blake.
59719
59720 2007-04-28  Jim Meyering  <jim@meyering.net>
59721
59722         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59723         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59724         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59725
59726 2007-04-27  Eric Blake  <ebb9@byu.net>
59727
59728         * doc/headers/assert.texi (assert.h): Document assert module use.
59729
59730 2007-04-27  Bruno Haible  <bruno@clisp.org>
59731
59732         * doc/headers/*.texi: New files.
59733         * doc/gnulib.texi (Header File Substitutes): New chapter.
59734         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59735         dependencies.
59736         (standards.info ,standards.html, standards.dvi): Update dependencies.
59737         (mostlyclean, clean): New targets.
59738
59739 2007-04-27  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59742         * modules/sysexits (Files, Makefile.am): Update.
59743
59744         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59745         * modules/sys_socket (Files, Makefile.am): Update.
59746
59747         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59748         * modules/sys_stat (Files, Makefile.am): Update.
59749
59750 2007-04-27  Eric Blake  <ebb9@byu.net>
59751
59752         * lib/freading.h: Improve comments.
59753         * lib/fwriting.h: Likewise.
59754         * lib/fflush.c: Likewise.
59755
59756         Fix closein for mingw.
59757         * modules/closein-tests: Add tests for closein.
59758         * tests/test-closein.c: New file.
59759         * tests/test-closein.sh: Likewise.
59760         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59761         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59762
59763 2007-04-27  Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59766         version is < 6.
59767         * lib/math_.h [__DECC]: Likewise.
59768         * lib/stdio_.h [__DECC]: Likewise.
59769         * lib/stdlib_.h [__DECC]: Likewise.
59770         * lib/string_.h [__DECC]: Likewise.
59771         * lib/time_.h [__DECC]: Likewise.
59772         * lib/wchar_.h [__DECC]: Likewise.
59773         * lib/wctype_.h [__DECC]: Likewise.
59774
59775 2007-04-27  Bruno Haible  <bruno@clisp.org>
59776
59777         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59778
59779 2007-04-27  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/fflush.c: Add comments.
59782         * modules/fpurge-tests (Depends-on): Add fflush.
59783         * modules/freadable-tests (Depends-on): Likewise.
59784         * modules/fwritable-tests (Depends-on): Likewise.
59785
59786 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59787
59788         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59789         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59790         Report by Bruno Haible <bruno@clisp.org>.
59791
59792 2007-04-26  Eric Blake  <ebb9@byu.net>
59793
59794         Fix fflush on mingw.
59795         * modules/fflush (Depends-on): Add freading.
59796         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59797         but unread data.
59798
59799 2007-04-26  Eric Blake  <ebb9@byu.net>
59800         and Bruno Haible  <bruno@clisp.org>
59801
59802         Implement freading and fwriting.
59803         * lib/freading.c: New file.
59804         * lib/freading.h: Likewise.
59805         * m4/freading.m4: Likewise.
59806         * modules/freading: Likewise.
59807         * modules/freading-tests: Likewise.
59808         * tests/test-freading.c: Likewise.
59809         * lib/fwriting.c: New file.
59810         * lib/fwriting.h: Likewise.
59811         * m4/fwriting.m4: Likewise.
59812         * modules/fwriting: Likewise.
59813         * modules/fwriting-tests: Likewise.
59814         * tests/test-fwriting.c: Likewise.
59815         * MODULES.html.sh (File stream based Input/Output): Mention them.
59816
59817 2007-04-26  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59820         'long' when we assume it.
59821         Suggested by Eric Blake.
59822
59823 2007-04-26  Bruno Haible  <bruno@clisp.org>
59824
59825         Ensure fseeko, ftello are declared on glibc systems.
59826         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59827         * modules/fseeko (configure.ac-early): Likewise.
59828         * modules/ftello (configure.ac-early): Likewise.
59829         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59830         AC_FUNC_FSEEKO for this.
59831         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59832         (gl_CHECK_FSEEKO): Remove macro.
59833
59834 2007-04-26  Bruno Haible  <bruno@clisp.org>
59835
59836         * tests/test-fflush.c (main): Also check the ftell result after
59837         fflush and fseek/fseeko.
59838         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59839         file descriptor position cache in the stream.
59840         * lib/fseeko.c (rpl_fseeko): Likewise.
59841
59842 2007-04-26  Bruno Haible  <bruno@clisp.org>
59843
59844         * modules/fflush-tests (Depends-on): Add fseeko.
59845
59846 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59847             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59848
59849         * lib/argz_.h: ensure error_t definition is obtained in same
59850         mechanism system argz.h would have.
59851         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59852         argz facilities are known bad.  Err on the side of caution if
59853         cross-compiling.
59854
59855 2007-04-25  Eric Blake  <ebb9@byu.net>
59856
59857         * lib/fpurge.c (includes): Use stdlib.h for free.
59858         * tests/test-fflush.c (main): Also test fflush-fseeko.
59859
59860 2007-04-25  Bruno Haible  <bruno@clisp.org>
59861
59862         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59863         * lib/fseeko.c: New file.
59864         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59865         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59866         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59867         gl_FUNC_FSEEKO.
59868         (gl_FUNC_FSEEKO): Invoke it.
59869         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59870         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59871         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59872
59873 2007-04-25  Bruno Haible  <bruno@clisp.org>
59874
59875         * modules/fflush (Depends-on): Add ftello.
59876
59877 2007-04-25  Bruno Haible  <bruno@clisp.org>
59878
59879         * modules/ftello-tests: New file.
59880         * tests/test-ftello.c: New file.
59881
59882         * modules/ftello: New file.
59883         * m4/ftello.m4: New file.
59884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59885         HAVE_FTELLO.
59886         * lib/stdio_.h (ftello): New declaration.
59887         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59888         HAVE_FTELLO.
59889
59890 2007-04-25  Bruno Haible  <bruno@clisp.org>
59891
59892         * modules/fseeko-tests: New file.
59893         * tests/test-fseeko.c: New file.
59894
59895         * modules/fseeko: New file.
59896         * m4/fseeko.m4: New file.
59897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59898         HAVE_FSEEKO.
59899         * lib/stdio_.h (fseeko): New declaration.
59900         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59901         HAVE_FSEEKO.
59902
59903 2007-04-25  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59906
59907 2007-04-25  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59910         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59911         * tests/test-unistd.c: Likewise.
59912         * tests/test-fcntl.c: Likewise.
59913
59914 2007-04-23  Eric Blake  <ebb9@byu.net>
59915
59916         * lib/fflush.c: Fix missing include.
59917         Reported by Bruno Haible.
59918
59919 2007-04-23  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59922         Reported by Eric Blake.
59923
59924 2007-04-23  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59927
59928 2007-04-23  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59931
59932 2007-04-23  Bruno Haible  <bruno@clisp.org>
59933
59934         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59935         Needed on HP-UX 11.
59936
59937 2007-04-16  Eric Blake  <ebb9@byu.net>
59938
59939         Make fflush rely on fpurge.
59940         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59941         open coding all variants.
59942         * modules/fflush (Depends-on): Add fpurge and unistd.
59943         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59944         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59945
59946         Fix --with-tests compilation on cygwin.
59947         * modules/argmatch-tests (Makefile.am): List gnulib library first
59948         in LDADD.
59949         * modules/argp-tests (Makefile.am): Likewise.
59950         * modules/array-list-tests (Makefile.am): Likewise.
59951         * modules/array-oset-tests (Makefile.am): Likewise.
59952         * modules/avltree-list-tests (Makefile.am): Likewise.
59953         * modules/avltree-oset-tests (Makefile.am): Likewise.
59954         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59955         * modules/carray-list-tests (Makefile.am): Likewise.
59956         * modules/dirname-tests (Makefile.am): Likewise.
59957         * modules/frexp-tests (Makefile.am): Likewise.
59958         * modules/isnanl-tests (Makefile.am): Likewise.
59959         * modules/linked-list-tests (Makefile.am): Likewise.
59960         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59961         * modules/lock-tests (Makefile.am): Likewise.
59962         * modules/rbtree-list-tests (Makefile.am): Likewise.
59963         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59964         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59965         * modules/tls-tests (Makefile.am): Likewise.
59966         * modules/tsearch-tests (Makefile.am): Likewise.
59967         * modules/xvasprintf-tests (Makefile.am): Likewise.
59968
59969         Fix fpurge for cygwin.
59970         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59971         value.
59972         * modules/fpurge-tests (Depends-on): Clean up trash.
59973
59974 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59975
59976         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59977
59978         * m4/autobuild.m4: Re-indent.
59979
59980 2007-04-13  Bruno Haible  <bruno@clisp.org>
59981
59982         * modules/fpurge-tests: New file.
59983         * tests/test-fpurge.c: New file.
59984
59985         * modules/fpurge: New file.
59986         * lib/fpurge.h: New file.
59987         * lib/fpurge.c: New file.
59988         * m4/fpurge.m4: New file.
59989
59990 2007-04-13  Bruno Haible  <bruno@clisp.org>
59991
59992         * modules/fbufmode-tests: New file.
59993         * tests/test-fbufmode.c: New file.
59994
59995         * modules/fbufmode: New file.
59996         * lib/fbufmode.h: New file.
59997         * lib/fbufmode.c: New file.
59998         * m4/fbufmode.m4: New file.
59999
60000 2007-04-13  Bruno Haible  <bruno@clisp.org>
60001
60002         * modules/fwritable-tests: New file.
60003         * tests/test-fwritable.c: New file.
60004
60005         * modules/fwritable: New file.
60006         * lib/fwritable.h: New file.
60007         * lib/fwritable.c: New file.
60008         * m4/fwritable.m4: New file.
60009
60010 2007-04-13  Bruno Haible  <bruno@clisp.org>
60011
60012         * modules/freadable-tests: New file.
60013         * tests/test-freadable.c: New file.
60014
60015         * modules/freadable: New file.
60016         * lib/freadable.h: New file.
60017         * lib/freadable.c: New file.
60018         * m4/freadable.m4: New file.
60019
60020 2007-04-13  Bruno Haible  <bruno@clisp.org>
60021
60022         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60023         MOSTLYCLEANFILES.
60024
60025 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60028         gzip bootstrap.conf to avoid dragging in i18n machinery.
60029         (gnulib_tool_option): Use it.
60030
60031 2007-04-13  Bruno Haible  <bruno@clisp.org>
60032
60033         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60034         %F directives.
60035         * tests/test-vasprintf-posix.c (test_function): Likewise.
60036         * tests/test-snprintf-posix.h (test_function): Likewise.
60037         * tests/test-sprintf-posix.h (test_function): Likewise.
60038         * tests/test-fprintf-posix.h (test_function): Likewise.
60039         * tests/test-printf-posix.h (test_function): Likewise.
60040         * tests/test-fprintf-posix.out: Likewise.
60041
60042 2007-04-13  Bruno Haible  <bruno@clisp.org>
60043
60044         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60045         * modules/tls-tests (configure.ac): Likewise.
60046         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60047
60048 2007-04-13  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/tls.c (glthread_tls_get): Fix return type.
60051         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60052
60053 2007-04-12  Eric Blake  <ebb9@byu.net>
60054
60055         * modules/gettime (Depends-on): Remove gettime.
60056         Reported by Dmitry V. Levin.
60057
60058 2007-04-12  Bruno Haible  <bruno@clisp.org>
60059
60060         * modules/fflush (Include): Mention <stdio.h>.
60061         * modules/strtoimax (Include): Mention <inttypes.h>.
60062         * modules/strtoumax (Include): Likewise.
60063
60064 2007-04-12  Eric Blake  <ebb9@byu.net>
60065
60066         * .cvsignore: New file.
60067         * .gitignore: Likewise.
60068
60069 2007-04-12  Bruno Haible  <bruno@clisp.org>
60070
60071         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60072         not before, since $(LDADD) often contains libgnu.a.
60073         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60074         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60075         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60076         Needed on Cygwin.
60077
60078 2007-04-12  Eric Blake  <ebb9@byu.net>
60079
60080         Work around glibc's failure to flush stdin on fclose.
60081         * lib/closein.c (close_stdin): Flush stdin before closing.
60082
60083         Work around glibc's failure to reset seekable stdin on exit.
60084         * modules/closein: New module.
60085         * lib/closein.c: New file.
60086         * lib/closein.h: Likewise.
60087         * m4/closein.m4: Likewise.
60088         * MODULES.html.sh (File stream based Input/Output): Document it.
60089
60090 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60091
60092         * gnulib-tool: Rename generated 'autobuild' script to
60093         'do-autobuild' in --create-megatestdir output.
60094
60095         * doc/gnulib.texi (Build robot for gnulib): Fix.
60096
60097 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60098
60099         * modules/sysexits (Depends-on): Add absolute-header.
60100
60101 2007-04-12  Eric Blake  <ebb9@byu.net>
60102
60103         No need to preserve errno on success.
60104         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60105         Reported by Bruno Haible.
60106
60107 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60108
60109         * MODULES.html.sh (Support for maintaining and releasing
60110         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60111
60112 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60113
60114         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60115
60116 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60117
60118         * modules/autobuild: New module.
60119
60120         * m4/autobuild.m4: New file.
60121
60122 2007-04-11  Bruno Haible  <bruno@clisp.org>
60123
60124         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60125         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60126         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60129         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60130         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60132         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60133         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60135         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60136         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60152         Reported by Eric Blake.
60153
60154 2007-04-11  Bruno Haible  <bruno@clisp.org>
60155
60156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60157
60158 2007-04-10  Bruno Haible  <bruno@clisp.org>
60159
60160         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60161         for NaN and Infinity. Needed on FreeBSD 6.1.
60162         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60163         regarding results for "%010a" of Infinity and NaN.
60164         * tests/test-vasprintf-posix.c (test_function): Likewise.
60165         * tests/test-snprintf-posix.h (test_function): Likewise.
60166         * tests/test-sprintf-posix.h (test_function): Likewise.
60167         * tests/test-fprintf-posix.h (test_function): Likewise.
60168         * tests/test-printf-posix.h (test_function): Likewise.
60169         * tests/test-fprintf-posix.out: Likewise.
60170
60171 2007-04-10  Bruno Haible  <bruno@clisp.org>
60172
60173         * modules/locale-tests: New file.
60174         * tests/test-locale.c: New file.
60175
60176         * modules/locale: New file.
60177         * lib/locale_.h: New file.
60178         * m4/locale_h.m4: New file.
60179
60180 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60181             Bruno Haible  <bruno@clisp.org>
60182
60183         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60184         be determined, test for availability of the copysignf, copysign,
60185         copysignl functions.
60186         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60187         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60188         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60189
60190 2007-04-09  Eric Blake  <ebb9@byu.net>
60191
60192         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60193         * modules/stdio (Makefile.am): Support fflush.
60194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60195         * modules/fflush: New file.
60196         * lib/fflush.c: Likewise.
60197         * m4/fflush.m4: Likewise.
60198         * modules/fflush-tests: New test.
60199         * tests/test-fflush.c: Likewise.
60200         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60201
60202 2007-04-06  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60205         (VASNPRINTF): Use signbit for faster determination whether to print a
60206         minus sign.
60207         * modules/vasnprintf (Files): Remove lib/float+.h.
60208         * modules/fprintf-posix (Depends-on): Add signbit.
60209         * modules/snprintf-posix (Depends-on): Likewise.
60210         * modules/sprintf-posix (Depends-on): Likewise.
60211         * modules/vasnprintf-posix (Depends-on): Likewise.
60212         * modules/vasprintf-posix (Depends-on): Likewise.
60213         * modules/vfprintf-posix (Depends-on): Likewise.
60214         * modules/vsnprintf-posix (Depends-on): Likewise.
60215         * modules/vsprintf-posix (Depends-on): Likewise.
60216
60217 2007-04-06  Bruno Haible  <bruno@clisp.org>
60218
60219         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60220         * tests/test-frexpl.c (main): Likewise.
60221         * tests/test-ldexpl.c (main): Likewise.
60222         * modules/frexp-tests (Depends-on): Add signbit.
60223         * modules/frexpl-tests (Depdends-on): Likewise.
60224         * modules/ldexpl-tests (Depdends-on): Likewise.
60225
60226 2007-04-06  Bruno Haible  <bruno@clisp.org>
60227
60228         * modules/signbit-tests: New file.
60229         * tests/test-signbit.c: New file.
60230
60231         * modules/signbit: New file.
60232         * lib/signbitf.c: New file.
60233         * lib/signbitd.c: New file.
60234         * lib/signbitl.c: New file.
60235         * m4/signbit.m4: New file.
60236         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60237         (signbit): New macro.
60238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60239         REPLACE_SIGNBIT.
60240         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60241         REPLACE_FREXPL into math.h.
60242
60243 2007-04-06  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/isnanf-nolibm-tests: New file.
60246         * tests/test-isnanf.c: New file.
60247
60248         * modules/isnanf-nolibm: New file.
60249         * lib/isnanf.h: New file.
60250         * lib/isnanf.c: New file.
60251         * lib/isnan.c: Consider the USE_FLOAT macro.
60252         * m4/isnanf.m4: New file.
60253
60254 2007-04-06  Bruno Haible  <bruno@clisp.org>
60255
60256         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60257         (Link): New section.
60258
60259         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60260
60261 2007-04-06  Bruno Haible  <bruno@clisp.org>
60262
60263         Assume the 'long double' type.
60264         * m4/longdouble.m4: Remove file.
60265         * config/srclist.txt: Don't mention longdouble.m4.
60266         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60267         * lib/float+.h: Likewise.
60268         * lib/frexp.c: Likewise.
60269         * lib/printf-args.h: Likewise.
60270         * lib/printf-args.c: Likewise.
60271         * lib/printf-frexp.c: Likewise.
60272         * lib/printf-parse.c: Likewise.
60273         * lib/vasnprintf.c: Likewise.
60274         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60275         * m4/intl.m4: Likewise.
60276         * m4/isnanl.m4: Likewise.
60277         * m4/printf.m4: Likewise.
60278         * m4/printf-frexpl.m4: Likewise.
60279         * m4/vasnprintf.m4: Likewise.
60280         * modules/allocsa (Files): Remove m4/longdouble.m4.
60281         * modules/gettext (Files): Likewise.
60282         * modules/relocatable-prog-wrapper (Files): Likewise.
60283         * modules/vasnprintf (Files): Likewise.
60284         * modules/isnanl (Files): Likewise.
60285         (Include): Simplify.
60286         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60287         (Include): Simplify.
60288         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60289         (Include): Simplify.
60290         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60291         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60292         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60293         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60294         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60295         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60296         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60297         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60298         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60299         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60300         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60301         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60302         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60303         * tests/test-isnanl.c: Likewise.
60304         * tests/test-snprintf-posix.h: Likewise.
60305         * tests/test-sprintf-posix.h: Likewise.
60306         * tests/test-vasnprintf-posix.c: Likewise.
60307         * tests/test-vasnprintf-posix2.c: Likewise.
60308         * tests/test-vasprintf-posix.c: Likewise.
60309
60310 2007-04-06  Bruno Haible  <bruno@clisp.org>
60311
60312         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60313         * lib/math_.h [__DECC]: Include the overridden include file through
60314         #include_next, outside the double-inclusion guard.
60315         * lib/stdio_.h [__DECC]: Likewise.
60316         * lib/stdlib_.h [__DECC]: Likewise.
60317         * lib/string_.h [__DECC]: Likewise.
60318         * lib/time_.h [__DECC]: Likewise.
60319         * lib/wchar_.h [__DECC]: Likewise.
60320         * lib/wctype_.h [__DECC]: Likewise.
60321         * lib/inttypes_.h [__DECC]: Likewise.
60322         Reported by Albert Chin <china@thewrittenword.com> in
60323         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60324
60325 2007-04-04  Eric Blake  <ebb9@byu.net>
60326
60327         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60328         1.5.x.
60329
60330 2007-04-04  Bruno Haible  <bruno@clisp.org>
60331
60332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60333         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60334
60335 2007-04-04  Bruno Haible  <bruno@clisp.org>
60336
60337         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60338         results for "%010a" of Infinity and NaN.
60339         * tests/test-vasprintf-posix.c (test_function): Likewise.
60340         * tests/test-snprintf-posix.h (test_function): Likewise.
60341         * tests/test-sprintf-posix.h (test_function): Likewise.
60342         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60343         * tests/test-printf-posix.h (test_function): Likewise.
60344         * tests/test-fprintf-posix.out: Update.
60345         Needed for FreeBSD 6.1.
60346
60347 2007-04-04  Bruno Haible  <bruno@clisp.org>
60348
60349         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60350         directly used by the gnulib modules nor by gnulib-tool.
60351
60352 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * DEPENDENCIES: Give overall description of version dependency
60355         desirability.  Use more-typical names for apps.
60356         Add shell, coreutils, diffutils, grep, tar, gzip.
60357
60358 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60359
60360         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60361
60362 2007-04-04  Karl Berry  <karl@gnu.org>
60363
60364         * MODULES.html.sh (func_module): missing '.
60365
60366 2007-04-03  Bruno Haible  <bruno@clisp.org>
60367
60368         * modules/argmatch-tests (Makefile.am): New variable
60369         test_argmatch_LDADD.
60370         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60371         * modules/array-list-tests (Makefile.am): New variable
60372         test_array_list_LDADD.
60373         * modules/array-oset-tests (Makefile.am): New variable
60374         test_array_oset_LDADD.
60375         * modules/avltree-list-tests (Makefile.am): New variable
60376         test_avltree_list_LDADD.
60377         * modules/avltree-oset-tests (Makefile.am): New variable
60378         test_avltree_oset_LDADD.
60379         * modules/avltreehash-list-tests (Makefile.am): New variable
60380         test_avltreehash_list_LDADD.
60381         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60382         test_canonicalize_lgpl_LDADD.
60383         * modules/carray-list-tests (Makefile.am): New variable
60384         test_carray_list_LDADD.
60385         * modules/dirname-tests (Makefile.am): New variable
60386         test_dirname_LDADD.
60387         * modules/linked-list-tests (Makefile.am): New variable
60388         test_linked_list_LDADD.
60389         * modules/linkedhash-list-tests (Makefile.am): New variable
60390         test_linkedhash_list_LDADD.
60391         * modules/rbtree-list-tests (Makefile.am): New variable
60392         test_rbtree_list_LDADD.
60393         * modules/rbtree-oset-tests (Makefile.am): New variable
60394         test_rbtree_oset_LDADD.
60395         * modules/rbtreehash-list-tests (Makefile.am): New variable
60396         test_rbtreehash_list_LDADD.
60397         * modules/xvasprintf-tests (Makefile.am): New variable
60398         test_xvasprintf_LDADD.
60399         Reported by Eric Blake.
60400
60401 2007-04-03  Eric Blake  <ebb9@byu.net>
60402
60403         * DEPENDENCIES: Weaken m4 requirements.
60404
60405 2007-04-03  Bruno Haible  <bruno@clisp.org>
60406
60407         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60408         * modules/isnanl-tests (configure.ac): Likewise.
60409
60410 2007-04-03  Ben Pfaff  <blp@gnu.org>
60411
60412         * modules/iconv_open: Add $(srcdir)/ to source directory
60413         references in Makefile fragments that call gperf, to fix VPATH
60414         builds.
60415
60416 2007-04-03  Bruno Haible  <bruno@clisp.org>
60417
60418         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60419         * lib/ldexpl.c: Undo last change.
60420
60421 2007-04-03  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/printf-frexpl (Depends-on): Undo last change.
60424         (Files): Add m4/ldexpl.m4.
60425
60426 2007-04-03  Bruno Haible  <bruno@clisp.org>
60427
60428         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60429         * modules/isnanl (Link): New section.
60430
60431         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60432         * modules/frexp (Link): New section.
60433
60434         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60435         * modules/frexpl (Link): New section.
60436
60437         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60438         * modules/ldexpl (Link): New section.
60439
60440 2007-04-03  Bruno Haible  <bruno@clisp.org>
60441
60442         * modules/TEMPLATE-EXTENDED: New file.
60443         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60444
60445 2007-04-03  Bruno Haible  <bruno@clisp.org>
60446
60447         * DEPENDENCIES: New file.
60448         Suggested by Simon Josefsson.
60449
60450 2007-04-03  Bruno Haible  <bruno@clisp.org>
60451
60452         * doc/gnulib.texi: Escape @.
60453
60454 2007-04-03  James Youngman  <jay@gnu.org>
60455         and Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60458         birthtime on all systems that have birthtime, not just those which
60459         use st_birthtimensec rather than st_birthtim.  Putting zero in
60460         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60461         that the birth time is not available for files on an NFS mount.
60462
60463 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60464
60465         * modules/memxor: Move back from crypto/, suggested by Bruno.
60466         * modules/crypto/hmac-sha1: Fix memxor dependency.
60467
60468         * modules/crypto/gc: Moved from ../.
60469
60470 2007-04-02  Eric Blake  <ebb9@byu.net>
60471
60472         * lib/ldexpl.c (includes): Avoid libm.
60473
60474         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60475
60476 2007-04-02  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60479         on IRIX.
60480
60481 2007-04-02  Bruno Haible  <bruno@clisp.org>
60482
60483         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60484         x86 or x86_64 platforms running MacOS X.
60485         Reported by Ryan Schmidt <@ryandesign.com>.
60486
60487 2007-04-02  Bruno Haible  <bruno@clisp.org>
60488
60489         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60490         i386.
60491
60492 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60493
60494         * modules/crypto/arcfour: Moved from ../.
60495         * modules/crypto/arcfour-tests: Moved from ../.
60496         * modules/crypto/arctwo: Moved from ../.
60497         * modules/crypto/arctwo-tests: Moved from ../.
60498         * modules/crypto/des: Moved from ../.
60499         * modules/crypto/des-tests: Moved from ../.
60500         * modules/crypto/gc-arcfour: Moved from ../.
60501         * modules/crypto/gc-arcfour-tests: Moved from ../.
60502         * modules/crypto/gc-arctwo: Moved from ../.
60503         * modules/crypto/gc-arctwo-tests: Moved from ../.
60504         * modules/crypto/gc-des: Moved from ../.
60505         * modules/crypto/gc-des-tests: Moved from ../.
60506         * modules/crypto/gc-hmac-md5: Moved from ../.
60507         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60508         * modules/crypto/gc-hmac-sha1: Moved from ../.
60509         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60510         * modules/crypto/gc-md2: Moved from ../.
60511         * modules/crypto/gc-md2-tests: Moved from ../.
60512         * modules/crypto/gc-md4: Moved from ../.
60513         * modules/crypto/gc-md4-tests: Moved from ../.
60514         * modules/crypto/gc-md5: Moved from ../.
60515         * modules/crypto/gc-md5-tests: Moved from ../.
60516         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60517         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60518         * modules/crypto/gc-random: Moved from ../.
60519         * modules/crypto/gc-rijndael: Moved from ../.
60520         * modules/crypto/gc-rijndael-tests: Moved from ../.
60521         * modules/crypto/gc-sha1: Moved from ../.
60522         * modules/crypto/gc-sha1-tests: Moved from ../.
60523         * modules/crypto/gc-tests: Moved from ../.
60524         * modules/crypto/hmac-md5: Moved from ../.
60525         * modules/crypto/hmac-md5-tests: Moved from ../.
60526         * modules/crypto/hmac-sha1: Moved from ../.
60527         * modules/crypto/hmac-sha1-tests: Moved from ../.
60528         * modules/crypto/md2: Moved from ../.
60529         * modules/crypto/md2-tests: Moved from ../.
60530         * modules/crypto/md4: Moved from ../.
60531         * modules/crypto/md4-tests: Moved from ../.
60532         * modules/crypto/md5: Moved from ../.
60533         * modules/crypto/md5-tests: Moved from ../.
60534         * modules/crypto/memxor: Moved from ../.
60535         * modules/crypto/rijndael: Moved from ../.
60536         * modules/crypto/rijndael-tests: Moved from ../.
60537         * modules/crypto/sha1: Moved from ../.
60538
60539 2007-03-30  James Youngman  <jay@gnu.org>
60540
60541         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60542         rename() to change the ctime of a file (because ctime is unaffected
60543         by rename on jfs2 on AIX 5.1).
60544         (main): Start by doing cleanup, in case a previous run failed leaving
60545         test files behind.
60546
60547 2007-03-31  Bruno Haible  <bruno@clisp.org>
60548
60549         Support old proprietary implementations of iconv.
60550         * modules/iconv_open: New file.
60551         * lib/iconv_.h: New file.
60552         * m4/iconv_h.m4: New file.
60553         * lib/iconv_open.c: New file.
60554         * lib/iconv_open-aix.gperf: New file.
60555         * lib/iconv_open-hpux.gperf: New file.
60556         * lib/iconv_open-irix.gperf: New file.
60557         * lib/iconv_open-osf.gperf: New file.
60558         * m4/iconv_open.m4: New file.
60559         * modules/linebreak (Depends-on): Add iconv_open.
60560         * modules/striconv (Depends-on): Likewise.
60561         * modules/striconveh (Depends-on): Likewise.
60562         * modules/unicodeio (Depends-on): Likewise.
60563         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60564         (iconv_t)(-1).
60565         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60566         conversion if cd is (iconv_t)(-1).
60567         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60568         is not possible.
60569
60570 2007-03-31  Bruno Haible  <bruno@clisp.org>
60571
60572         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60573         work on Solaris either. Protect also second use of "autodetect_jp".
60574
60575 2007-03-31  Bruno Haible  <bruno@clisp.org>
60576
60577         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60578         the function is not present.
60579
60580 2007-03-31  Bruno Haible  <bruno@clisp.org>
60581
60582         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60583         the function is not present.
60584
60585 2007-03-31  Bruno Haible  <bruno@clisp.org>
60586
60587         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60588         a bug in HP-UX iconv_open().
60589
60590 2007-03-31  Bruno Haible  <bruno@clisp.org>
60591
60592         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60593         (Mathematics <math.h>): New section, add fpieee.
60594         (Input/output <stdio.h>): Add fseterr.
60595         (Mathematics <math.h>): New section, add printf-frexp.
60596         (Container data structures): Add sublist.
60597         (Core language properties): Add fpucw, inline.
60598         (Functions for greatest-width integer types <inttypes.h>): Add
60599         imaxabs, imaxdiv, inttypes.
60600         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60601         isnanl-nolibm, ldexp.
60602         (Mathematics <math.h>): New section, add printf-frexpl.
60603         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60604         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60605         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60606         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60607         (Unicode string functions): Add unistr/u*-mbtoucr.
60608         (Java): Add javacomp-script, javaexec-script.
60609         (C#): Add csharpcomp-script, csharpexec-script.
60610         (Support for building libraries and executables): Add havelib,
60611         relocatable-*.
60612         (Support for maintaining and releasing projects): Renamed from
60613         'Support for maintaining and release projects'. Add announce-gen.
60614
60615 2007-03-31  Bruno Haible  <bruno@clisp.org>
60616
60617         * README: Talk primarily about git.
60618         (git and CVS): Renamed from CVS.
60619         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60620         gnulib is available through git.
60621         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60622
60623 2007-03-30  Bruno Haible  <bruno@clisp.org>
60624
60625         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60626         * lib/poll_.h: Likewise.
60627         * lib/stat_.h: Likewise.
60628         * lib/sys_time_.h: Likewise.
60629         * lib/sysexit_.h: Likewise.
60630         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60631         * lib/stdbool_.h: Likewise.
60632         * lib/byteswap_.h: Add double-inclusion guard.
60633
60634 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60635
60636         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60637
60638 2007-03-30  Karl Berry  <karl@gnu.org>
60639
60640         * config/srclist-update: double space after USA in the license
60641         substitution, since that's how it's usually (?) written.
60642
60643 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60644
60645         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60646         reported by Bruno Haible.
60647
60648 2007-03-29  Bruno Haible  <bruno@clisp.org>
60649
60650         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60651         a bug in AIX iconv().
60652
60653 2007-03-29  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/ldexpl-tests: New file.
60656         * tests/test-ldexpl.c: New file.
60657
60658 2007-03-29  Bruno Haible  <bruno@clisp.org>
60659
60660         * lib/ldexpl.c: Include fpucw.h.
60661         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60662         multiplication.
60663         * modules/ldexpl (Depends-on): Add fpucw.
60664
60665 2007-03-29  Bruno Haible  <bruno@clisp.org>
60666
60667         * modules/ldexpl: New file.
60668         * m4/ldexpl.m4: New file.
60669         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60670         set.
60671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60672         REPLACE_LDEXPL.
60673         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60674         REPLACE_LDEXPL.
60675         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60676         gl_FUNC_LDEXPL_WORKS.
60677         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60678         * modules/mathl (Files): Remove lib/ldexpl.c.
60679         (Depends-on): Add ldexpl.
60680
60681 2007-03-29  Bruno Haible  <bruno@clisp.org>
60682
60683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60684
60685 2007-03-29  Bruno Haible  <bruno@clisp.org>
60686
60687         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60688         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60689         and possibly also HP-UX.
60690         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60691         work on AIX, IRIX, HP-UX, OSF/1.
60692         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60693         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60694         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60695         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60696         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60697         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60698
60699 2007-03-29  Bruno Haible  <bruno@clisp.org>
60700
60701         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60702
60703 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60704
60705         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60706         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60707
60708 2007-03-29  Eric Blake  <ebb9@byu.net>
60709
60710         * lib/acl-internal.h: Remove redundant include.
60711         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60712         Cygwin when a file is locked.
60713
60714 2007-03-29  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60717         file.
60718         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60719
60720 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60721
60722         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60723         try to remove a parent directory if the child couldn't be removed
60724         (except for the first rmdir, which could fail because the child
60725         doesn't exist).  Problem reported by Jeff Blaine in
60726         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60727
60728 2007-03-28  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/striconveh.c (utf8conv_carefully): New function.
60731         (mem_cd_iconveh_internal): Invoke it.
60732
60733 2007-03-28  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60736         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60737         input.
60738         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60739         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60740         unistr/u8-uctomb.
60741
60742 2007-03-28  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/unistr/u8-mbtoucr: New file.
60745         * lib/unistr/u8-mbtoucr.c: New file.
60746         * modules/unistr/u16-mbtoucr: New file.
60747         * lib/unistr/u16-mbtoucr.c: New file.
60748         * modules/unistr/u16-mbtoucr: New file.
60749         * lib/unistr/u16-mbtoucr.c: New file.
60750         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60751
60752 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60753             Bruno Haible  <bruno@clisp.org>
60754
60755         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60756         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60757         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60758
60759         * m4/stdio_h.m4: Add stubs for vasprintf too.
60760
60761         * modules/stdio: Support vasprintf in sed command.
60762
60763         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60764         vasprintf.h.  Add stdio module indicator.
60765
60766         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60767         vasprintf.h.
60768
60769         * lib/vasprintf.h: File removed.
60770
60771         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60772         * lib/vasprintf.c: Ditto.
60773         * lib/xvasprintf.c: Ditto.
60774         * tests/test-vasprintf-posix.c: Ditto.
60775         * tests/test-vasprintf.c: Ditto.
60776
60777 2007-03-27  Bruno Haible  <bruno@clisp.org>
60778
60779         Make vasnprintf multithread-safe.
60780         * lib/vasnprintf.c (decimal_point_char): New function.
60781         (VASNPRINTF): Use it.
60782         Suggested by Simon Josefsson.
60783
60784 2007-03-27  Eric Blake  <ebb9@byu.net>
60785
60786         Support sub-second birthtime on cygwin.
60787         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60788         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60789         (get_stat_birthtime): Also work with st_birthtim.
60790
60791 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60792
60793         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60794         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60795         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60796         (get_stat_birthtime_ns): Simplify compile-time tests.
60797         (get_stat_birthtime): Change the API to look like
60798         get_stat_mtime etc., except return a negative tv_nsec on error.
60799         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60800         Don't check for "spare" fields.
60801         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60802         or for struct stat.st_birthtime, as these tests aren't used.
60803         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60804
60805 2007-03-27  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/stat-time.h: Include <sys/stat.h>.
60808
60809 2007-03-27  James Youngman  <jay@gnu.org>
60810
60811         * lib/stat-time.h (get_stat_birthtime): New function for
60812           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60813         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60814           and its variants.
60815         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60816         * modules/stat-time-test: New file.
60817         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60818
60819 2007-03-26  Bruno Haible  <bruno@clisp.org>
60820
60821         Better support of signalling NaNs.
60822         * lib/atanl.c: Include isnanl.h.
60823         (atanl): Perform test for NaN at the beginning of the function and
60824         through a call to isnanl.
60825         * lib/cosl.c: Include isnanl.h.
60826         (cosl): Perform test for NaN at the beginning of the function and
60827         through a call to isnanl.
60828         * lib/ldexpl.c: Include isnanl.h.
60829         (ldexpl): Perform test for NaN through a call to isnanl.
60830         * lib/logl.c: Include isnanl.h.
60831         (logl): Perform test for NaN at the beginning of the function and
60832         through a call to isnanl.
60833         * lib/sinl.c: Include isnanl.h.
60834         (sinl): Perform test for NaN at the beginning of the function and
60835         through a call to isnanl.
60836         * lib/sqrtl.c: Include isnanl.h.
60837         (sqrtl): Perform test for NaN at the beginning of the function and
60838         through a call to isnanl.
60839         * lib/tanl.c: Include isnanl.h.
60840         (tanl): Perform test for NaN at the beginning of the function and
60841         through a call to isnanl.
60842         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60843         * modules/mathl (Depends-on): Add isnanl.
60844
60845 2007-03-26  Eric Blake  <ebb9@byu.net>
60846
60847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60848         regression in logic sense of previous patch.
60849
60850 2007-03-26  Bruno Haible  <bruno@clisp.org>
60851
60852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60853         unportable shell command "if ! ...".
60854         Reported by Ralf Wildenhues.
60855
60856 2007-03-25  Bruno Haible  <bruno@clisp.org>
60857
60858         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60859         <sysexits.h> file, and only add EX_CONFIG.
60860         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60861         absolute file name and whether it is sufficient. Substitute also
60862         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60863         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60864         ABSOLUTE_SYSEXITS_H into sysexits.h.
60865
60866 2007-03-25  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60869         hints is NULL.
60870
60871 2007-03-25  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60874         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60875
60876 2007-03-25  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/vasnprintf.c: Include langinfo.h.
60879         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60880         multithread-safe.
60881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60890         Reported by Simon Josefsson.
60891
60892 2007-03-25  Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60895         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60896         * modules/vasnprintf (Depends-on): Add stdint.
60897
60898 2007-03-25  Bruno Haible  <bruno@clisp.org>
60899
60900         * modules/fpieee: New file.
60901         * m4/fpieee.m4: New file.
60902         * modules/isnan-nolibm (Depends-on): Add fpieee.
60903         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60904         * modules/isnanl (Depends-on): Add fpieee.
60905
60906 2007-03-25  Bruno Haible  <bruno@clisp.org>
60907
60908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60909
60910 2007-03-25  Bruno Haible  <bruno@clisp.org>
60911
60912         Avoid test failures on IRIX 6.5.
60913         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60914         (main): Use it.
60915         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60916         macros.
60917         (main): Use them.
60918
60919 2007-03-25  Bruno Haible  <bruno@clisp.org>
60920
60921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60922         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60923         exists but doesn't work.
60924         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60925         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60927         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60928         math.h.
60929
60930 2007-03-25  Bruno Haible  <bruno@clisp.org>
60931
60932         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60933         returns inf. Needed on IRIX 6.5.
60934
60935 2007-03-25  Bruno Haible  <bruno@clisp.org>
60936
60937         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60938         (main): Use isnanl instead of x != x idiom.
60939         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60940
60941         * tests/test-frexp.c: Include isnan.h.
60942         (main): Use isnan instead of x != x idiom.
60943         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60944
60945 2007-03-25  Bruno Haible  <bruno@clisp.org>
60946
60947         * tests/test-frexp.c (NaN): New function/macro.
60948         (main): Use it instead of 0.0 / 0.0.
60949         * tests/test-isnan.c (NaN): New function/macro.
60950         (main): Use it instead of 0.0 / 0.0.
60951         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60952         (test_function): Use it instead of 0.0 / 0.0.
60953         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60954         (test_function): Use it instead of 0.0 / 0.0.
60955         * tests/test-snprintf-posix.h (NaN): New function/macro.
60956         (test_function): Use it instead of 0.0 / 0.0.
60957         * tests/test-sprintf-posix.h (NaN): New function/macro.
60958         (test_function): Use it instead of 0.0 / 0.0.
60959         * tests/test-fprintf-posix.h (NaN): New function/macro.
60960         (test_function): Use it instead of 0.0 / 0.0.
60961         * tests/test-printf-posix.h (NaN): New function/macro.
60962         (test_function): Use it instead of 0.0 / 0.0.
60963
60964         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60965
60966 2007-03-25  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60969
60970 2007-03-25  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/regexec.c (merge_state_with_log): Make static.
60973
60974 2007-03-25  Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/trigl.c (kernel_rem_pio2): Make static.
60977
60978 2007-03-25  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/sincosl.c (sincosl_table): Make static.
60981
60982 2007-03-25  Bruno Haible  <bruno@clisp.org>
60983
60984         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60985         if the compiler does not support C99.
60986
60987 2007-03-25  Bruno Haible  <bruno@clisp.org>
60988
60989         * modules/time (Makefile.am): Ensure all rule action lines start with a
60990         tab.
60991
60992 2007-03-24  Bruno Haible  <bruno@clisp.org>
60993
60994         * modules/tsearch-tests: New file.
60995         * tests/test-tsearch.sh: New file.
60996         * tests/test-tsearch.c: New file, mostly copied from glibc.
60997
60998         * modules/search-tests: New file.
60999         * tests/test-search.c: New file.
61000
61001         * modules/search: New file.
61002         * lib/search_.h: New file, incorporating lib/tsearch.h.
61003         * m4/search_h.m4: New file.
61004         * lib/tsearch.h: Remove file.
61005         * lib/tsearch.c: Include search.h instead of tsearch.h.
61006         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61007         HAVE_TSEARCH.
61008         * modules/tsearch (Files): Remove lib/tsearch.h.
61009         (Depends-on): Add search.
61010         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61011         (Include): Change tsearch.h into search.h.
61012
61013 2007-03-24  Bruno Haible  <bruno@clisp.org>
61014
61015         * modules/fpucw: New file.
61016         * lib/fpucw.h: New file.
61017         * lib/frexp.c: Include fpucw.h.
61018         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61019         (FUNC): Use them.
61020         * lib/printf-frexp.c: Include fpucw.h.
61021         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61022         (FUNC): Use them.
61023         * lib/vasnprintf.c: Include fpucw.h.
61024         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61025         'long double' calculations.
61026         * tests/test-frexpl.c: Include fpucw.h.
61027         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61028         * tests/test-printf-frexpl.c: Include fpucw.h.
61029         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61030         * modules/frexpl (Depends-on): Add fpucw.
61031         * modules/printf-frexpl (Depends-on): Likewise.
61032         * modules/fprintf-posix (Depends-on): Likewise.
61033         * modules/snprintf-posix (Depends-on): Likewise.
61034         * modules/sprintf-posix (Depends-on): Likewise.
61035         * modules/vasnprintf-posix (Depends-on): Likewise.
61036         * modules/vasprintf-posix (Depends-on): Likewise.
61037         * modules/vfprintf-posix (Depends-on): Likewise.
61038         * modules/vsnprintf-posix (Depends-on): Likewise.
61039         * modules/vsprintf-posix (Depends-on): Likewise.
61040         * modules/frexpl-tests (Depends-on): Likewise.
61041         * modules/printf-frexpl-tests (Depends-on): Likewise.
61042
61043 2007-03-24  Bruno Haible  <bruno@clisp.org>
61044
61045         * lib/float+.h: New file.
61046         * lib/isnan.c: Include float+.h.
61047         (SIZE): New macro.
61048         (FUNC): Compare only SIZE bytes of the value.
61049         * lib/vasnprintf.c: Include float+.h.
61050         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61051         SIZEOF_LDBL or SIZEOF_DBL bytes.
61052         * modules/isnan-nolibm (Files): Add lib/float+.h.
61053         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61054         * modules/isnanl (Files): Add lib/float+.h.
61055         * modules/vasnprintf (Files): Add lib/float+.h.
61056
61057 2007-03-24  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61060         include isnanl-nolibm.h.
61061
61062 2007-03-24  Bruno Haible  <bruno@clisp.org>
61063
61064         * tests/test-read-file.c (main): Don't produce spurious output for
61065         expected situations. Make the test fail if it encountered unexpected
61066         results.
61067
61068 2007-03-24  Bruno Haible  <bruno@clisp.org>
61069
61070         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61071         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61072
61073 2007-03-24  Bruno Haible  <bruno@clisp.org>
61074
61075         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61076
61077 2007-03-24  Bruno Haible  <bruno@clisp.org>
61078
61079         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61080         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61081
61082         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61083         * modules/utf8-ucs4: Turn into a symbolic link to module
61084         unistr/u8-mbtouc.
61085
61086         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61087         utf8-ucs4-unsafe.
61088         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61089         unistr/u8-mbtouc-unsafe.
61090
61091         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61092         * modules/utf16-ucs4: Turn into a symbolic link to module
61093         unistr/u16-mbtouc.
61094
61095         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61096         utf16-ucs4-unsafe.
61097         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61098         unistr/u16-mbtouc-unsafe.
61099
61100         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61101         * modules/ucs4-utf8: Turn into a symbolic link to module
61102         unistr/u8-ubtomb.
61103
61104         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61105         * modules/ucs4-utf16: Turn into a symbolic link to module
61106         unistr/u16-ubtomb.
61107
61108 2007-03-24  Bruno Haible  <bruno@clisp.org>
61109
61110         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61111         Enable the function only if HAVE_INLINE.
61112         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61113         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61114         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61115         Enable the function only if HAVE_INLINE.
61116         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61117         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61118         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61119         Enable the function only if HAVE_INLINE.
61120         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61121         Enable the function only if HAVE_INLINE.
61122         * modules/utf8-ucs4: Update.
61123         * modules/utf8-ucs4-unsafe: Update.
61124         * modules/utf16-ucs4: Update.
61125         * modules/utf16-ucs4-unsafe: Update.
61126         * modules/ucs4-utf8: Update.
61127         * modules/ucs4-utf16: Update.
61128
61129 2007-03-24  Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/utf8-ucs4.h: Remove file.
61132         * lib/utf8-ucs4-unsafe.h: Remove file.
61133         * lib/utf16-ucs4.h: Remove file.
61134         * lib/utf16-ucs4-unsafe.h: Remove file.
61135         * lib/ucs4-utf8.h: Remove file.
61136         * lib/ucs4-utf16.h: Remove file.
61137         * lib/unistr.h: Include their previous contents.
61138         * m4/utf-ucs4.m4: Remove file.
61139         * m4/ucs4-utf.m4: Remove file.
61140         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61141         (Depends-on): Add unistr/base.
61142         (configure.ac): Remove gl_UTF_UCS4.
61143         (Makefile.am): Update.
61144         (Include): Change to unistr.h.
61145         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61146         (Depends-on): Add unistr/base.
61147         (configure.ac): Remove gl_UTF_UCS4.
61148         (Makefile.am): Update.
61149         (Include): Change to unistr.h.
61150         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61151         (Depends-on): Add unistr/base.
61152         (configure.ac): Remove gl_UTF_UCS4.
61153         (Makefile.am): Update.
61154         (Include): Change to unistr.h.
61155         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61156         (Depends-on): Add unistr/base.
61157         (configure.ac): Remove gl_UTF_UCS4.
61158         (Makefile.am): Update.
61159         (Include): Change to unistr.h.
61160         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61161         (Depends-on): Add unistr/base.
61162         (configure.ac): Remove gl_UCS4_UTF.
61163         (Makefile.am): Update.
61164         (Include): Change to unistr.h.
61165         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61166         (Depends-on): Add unistr/base.
61167         (configure.ac): Remove gl_UCS4_UTF.
61168         (Makefile.am): Update.
61169         (Include): Change to unistr.h.
61170         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61171         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61172         utf8-ucs4-unsafe.h.
61173         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61174         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61175         utf16-ucs4-unsafe.h.
61176         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61177         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61178         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61179         * lib/unistr/u8-strchr.c: Likewise.
61180         * lib/unistr/u8-strrchr.c: Likewise.
61181         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61182         * lib/unistr/u16-strchr.c: Likewise.
61183         * lib/unistr/u16-strrchr.c: Likewise.
61184         * lib/striconveh.c: Update.
61185         * lib/linebreak.c: Update.
61186
61187 2007-03-24  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61190         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61191
61192 2007-03-22  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61195
61196 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61197
61198         * MODULES.html.sh (File system functions): New module write-any-file.
61199         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61200         * m4/write-any-file.m4: New files.
61201
61202 2007-03-23  Eric Blake  <ebb9@byu.net>
61203
61204         * gnulib-tool: Rearrange space-tab sequences, since some editors
61205         like to eat them.
61206
61207 2007-03-23  Eric Blake  <ebb9@byu.net>
61208
61209         * lib/version-etc.c (version_etc_va): Update license wording to
61210         be more concise.  Recommended by Richard Stallman.
61211
61212 2007-03-22  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/poll.c (MSG_PEEK): New fallback definition.
61215
61216 2007-03-22  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61219         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61220         (main): Update.
61221         Fixes a compilation error on BeOS.
61222
61223 2007-03-22  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/frexpl-tests: New file.
61226         * tests/test-frexpl.c: New file.
61227
61228         * modules/frexpl: New file.
61229         * m4/frexpl.m4: New file.
61230         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61231         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61233         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61234         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61235         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61236
61237 2007-03-22  Bruno Haible  <bruno@clisp.org>
61238
61239         * lib/frexpl.c: Share code with lib/frexp.c.
61240         * modules/mathl (Files): Add lib/frexp.c.
61241         (Depends-on): Add isnanl-nolibm.
61242
61243 2007-03-22  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/printf-frexp (Files): Add m4/frexp.m4.
61246         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61247         only if the found frexp function actually works.
61248
61249 2007-03-22  Bruno Haible  <bruno@clisp.org>
61250
61251         * lib/frexp.c: Remove older implementation that uses divisions.
61252
61253 2007-03-21  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/frexp-tests: New file.
61256         * tests/test-frexp.c: New file.
61257
61258         * modules/frexp: New file.
61259         * lib/frexp.c: New file.
61260         * m4/frexp.m4: New file.
61261         * lib/math_.h (frexp): New declaration.
61262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61263         REPLACE_FREXP.
61264         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61265
61266 2007-03-21  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/isnanl-tests: New file.
61269         * tests/test-isnanl.c: New file.
61270
61271         * modules/isnanl: New file.
61272         * lib/isnanl.h: New file.
61273         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61274         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61275         gl_FUNC_ISNANL_WORKS.
61276         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61277         New macros.
61278
61279 2007-03-21  Bruno Haible  <bruno@clisp.org>
61280
61281         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61282         lib/isnanl.h.
61283         (Include): Update.
61284         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61285         * lib/vasnprintf.c: Update.
61286         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61287         tests/test-isnanl.h, remove tests/test-isnanl.c.
61288         (Makefile.am): Update.
61289         * tests/test-isnanl-nolibm.c: New file.
61290         * tests/test-isnanl.h: New file.
61291         * tests/test-isnanl.c: Remove file.
61292
61293 2007-03-21  Jim Meyering  <jim@meyering.net>
61294
61295         When trying to open ".", treat ESTALE like EACCES.
61296         * lib/savewd.c (savewd_save): Resort to forking not just upon
61297         failure with EACCES, but also when errno is ESTALE.
61298
61299 2007-03-20  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61302         Needed on AIX 5.1. Reported by Matthew Woehlke.
61303
61304 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61305
61306         Suggestions by Bruno Haible:
61307         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61308         our own.
61309         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61310         * modules/acl (Depends-on): Add gettext.
61311
61312 2007-03-19  Bruno Haible  <bruno@clisp.org>
61313
61314         * modules/iconvme: Remove file.
61315         * lib/iconvme.h: Remove file.
61316         * lib/iconvme.c: Remove file.
61317         * m4/iconvme.m4: Remove file.
61318
61319 2007-03-19  Bruno Haible  <bruno@clisp.org>
61320
61321         * doc/relocatable-maint.texi: Break long shell script line.
61322         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61323
61324 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61327         handle file_has_acl.
61328         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61329         * lib/acl.c: Move header inclusions and related macro defns into
61330         lib/acl-internal.h.
61331         (S_ISLNK): Remove defn, since that's now done for us.
61332         (file_has_acl): Move to lib/file-has-acl.c.
61333         Call acl_trivial if available.  This is the crucial part of the fix.
61334         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61335         shared within the library.  Rewrite a bit, partly to make it compatible
61336         with the GNU coding style.
61337         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61338         Remove unnecessary double-quotes.
61339         Don't test for acl_to_text; the build will catch that.
61340         Replace acl_entries if it doesn't exist and it is needed.
61341         Check for -lsec and acl_trivial (as used on Solaris 10).
61342         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61343         lib/file-has-acl.c.
61344         (Depends-on): Add sys_stat, for S_ISLNK.
61345
61346 2007-03-19  Ben Pfaff  <blp@gnu.org>
61347
61348         * doc/gnulib.texi: Fix typos.
61349         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61350
61351 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61354         If size is zero here, buf must be zero.
61355
61356 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61357
61358         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61359         <bruno@clisp.org>.
61360
61361 2007-03-18  Bruno Haible  <bruno@clisp.org>
61362
61363         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61364         Suggested by Eric Blake.
61365
61366 2007-03-18  Ben Pfaff  <blp@gnu.org>
61367
61368         * doc/relocatable.texi: Recommend using as prefix a directory
61369         that does not exist and will never be created.  Based on
61370         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61371         and others.
61372
61373 2007-03-17  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/fchownat.c: Include lchown.h.
61376
61377 2007-03-17  Bruno Haible  <bruno@clisp.org>
61378
61379         Fix endless loop when the given allocated size was > INT_MAX.
61380         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61381         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61382         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61383         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61384         * lib/sprintf.c (sprintf): Likewise.
61385
61386 2007-03-17  Bruno Haible  <bruno@clisp.org>
61387
61388         * tests/test-argp-2.sh (func_compare): Output a context diff.
61389
61390 2007-03-17  Bruno Haible  <bruno@clisp.org>
61391
61392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61393         locale's decimal-point character.
61394
61395 2007-03-17  Bruno Haible  <bruno@clisp.org>
61396
61397         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61398         before comparing it. Needed because on some platforms (e.g. x86) a
61399         'long double' occupies less bytes than sizeof (long double).
61400
61401 2007-03-17  Bruno Haible  <bruno@clisp.org>
61402
61403         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61404         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61405         * tests/test-getaddrinfo.c (simple): Likewise.
61406         * tests/test-read-file.c (main): Likewise.
61407
61408 2007-03-17  Bruno Haible  <bruno@clisp.org>
61409
61410         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61411
61412 2007-03-17  Bruno Haible  <bruno@clisp.org>
61413
61414         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61415         unused variable.
61416
61417 2007-03-17  Bruno Haible  <bruno@clisp.org>
61418
61419         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61420         * tests/test-c-strncasecmp.c: Likewise.
61421
61422 2007-03-17  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/stdlib (Depends-on): Add unistd.
61425         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61426         Needed for MacOS X 10.3.
61427
61428 2007-03-17  Bruno Haible  <bruno@clisp.org>
61429
61430         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61431
61432 2007-03-17  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61435
61436 2007-03-17  Bruno Haible  <bruno@clisp.org>
61437
61438         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61439         to reflect files copied from gnulib (with or without modifications).
61440         Suggested by Jim Meyering.
61441
61442 2007-03-17  Eric Blake  <ebb9@byu.net>
61443
61444         * NEWS: Document stdlib change from 2007-02-18.
61445
61446 2007-03-17  Jim Meyering  <jim@meyering.net>
61447
61448         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61449         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61450         someone uses a name containing shell meta-characters.
61451         Reported by Alfred M. Szmidt.
61452
61453         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61454
61455 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61456
61457         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61458         and copy gettext configuration files only if configure.ac contains
61459         a use of AM_GNU_GETTEXT_VERSION.
61460
61461 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61462
61463         * build-aux/bootstrap (gnulib_name): New variable.
61464         (gnulib_tool_options): Use it.
61465
61466 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61467
61468         * tests/test-des.c: Use new namespace.
61469
61470 2007-03-15  Bruno Haible  <bruno@clisp.org>
61471
61472         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61473         Reported by James Youngman <jay@gnu.org>.
61474
61475 2007-03-15  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61478         declared prototype. Needed with cc on OSF/1 5.1.
61479
61480 2007-03-15  Bruno Haible  <bruno@clisp.org>
61481
61482         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61483         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61484         (struct gl_list_implementation): Add dispose_fn argument to the
61485         'create_empty', 'create' methods.
61486         (struct gl_list_impl_base): Add field 'dispose_fn'.
61487         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61488         argument.
61489         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61490         dispose_fn argument.
61491         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61492         dispose_fn on the dropped values.
61493         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61494         dispose_fn argument.
61495         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61496         dropped values.
61497         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61498         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61499         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61500         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61501         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61502         argument.
61503         (gl_tree_list_free): Call dispose_fn on the dropped values.
61504         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61505         the dropped values.
61506         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61507         Add dispose_fn argument.
61508         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61509         Call dispose_fn on the dropped values.
61510         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61511         Add dispose_fn argument.
61512         (gl_sublist_create): Initialize the 'dispose_fn' field.
61513         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61514         * tests/test-array_list.c (main): Update.
61515         * tests/test-carray_list.c (main): Update.
61516         * tests/test-avltree_list.c (main): Update.
61517         * tests/test-rbtree_list.c (main): Update.
61518         * tests/test-avltreehash_list.c (main): Update.
61519         * tests/test-rbtreehash_list.c (main): Update.
61520         * tests/test-linked_list.c (main): Update.
61521         * tests/test-linkedhash_list.c (main): Update.
61522         * tests/test-array_oset.c (main): Update.
61523
61524 2007-03-15  Bruno Haible  <bruno@clisp.org>
61525
61526         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61527         (gl_oset_create_empty): Add dispose_fn argument.
61528         (struct gl_oset_implementation): Add dispose_fn argument to
61529         'create_empty' method.
61530         (struct gl_oset_impl_base): Add dispose_fn field.
61531         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61532         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61533         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61534         values.
61535         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61536         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61537         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61538         dropped value.
61539         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61540         dropped value.
61541         * tests/test-array_oset.c (main): Update.
61542         * tests/test-avltree_oset.c (main): Update.
61543         * tests/test-rbtree_oset.c (main): Update.
61544         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61545
61546 2007-03-13  Bruno Haible  <bruno@clisp.org>
61547
61548         * tests/test-stdbool.c (i): Update after last patch.
61549
61550 2007-03-12  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61553         the iswprint macro. Needed on Solaris 2.5.1.
61554
61555 2007-03-12  Bruno Haible  <bruno@clisp.org>
61556
61557         * tests/test-printf-frexp.c (main): Declare x as volatile.
61558
61559 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61560
61561         * doc/gnulib.texi (Build robot for gnulib): New section.
61562
61563 2007-03-12  Jim Meyering  <jim@meyering.net>
61564
61565         * build-aux/bootstrap: New file.
61566         * build-aux/bootstrap.conf: New file, from coreutils.
61567
61568 2007-03-11  Bruno Haible  <bruno@clisp.org>
61569
61570         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61571
61572 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61573
61574         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61575         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61576         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61577
61578 2007-03-11  Bruno Haible  <bruno@clisp.org>
61579
61580         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61581         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61582
61583 2007-03-11  Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61586         formula. Needed for SunPRO C 5.0.
61587
61588 2007-03-11  Bruno Haible  <bruno@clisp.org>
61589
61590         * modules/long-options (Depends-on): Add getopt.
61591
61592 2007-03-11  Bruno Haible  <bruno@clisp.org>
61593
61594         * modules/modechange (Depends-on): Add stdbool.
61595
61596 2007-03-11  Bruno Haible  <bruno@clisp.org>
61597
61598         * modules/i-ring (Depends-on): Add stdbool.
61599
61600 2007-03-11  Bruno Haible  <bruno@clisp.org>
61601
61602         * modules/gc-des (Depends-on): Add stdbool.
61603
61604 2007-03-11  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61607
61608 2007-03-11  Bruno Haible  <bruno@clisp.org>
61609
61610         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61611
61612 2007-03-11  Bruno Haible  <bruno@clisp.org>
61613
61614         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61615
61616 2007-03-11  Bruno Haible  <bruno@clisp.org>
61617
61618         * lib/vasnprintf.c (sprintf): Undefine.
61619
61620 2007-03-11  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61623         initializers in SunPRO C and Compaq C compilers.
61624
61625 2007-03-11  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61628         decrementing code ANSI C compliant.
61629
61630 2007-03-11  Bruno Haible  <bruno@clisp.org>
61631
61632         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61633         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61634
61635 2007-03-11  Bruno Haible  <bruno@clisp.org>
61636
61637         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61638         <stdbool.h> substitute doesn't pass.
61639
61640 2007-03-11  Bruno Haible  <bruno@clisp.org>
61641
61642         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61643
61644 2007-03-11  Bruno Haible  <bruno@clisp.org>
61645
61646         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61647         script, for submission to autobuild.josefsson.org.
61648
61649 2007-03-10  Bruno Haible  <bruno@clisp.org>
61650
61651         * modules/canonicalize-lgpl-tests: New file.
61652         * tests/test-canonicalize-lgpl.sh: New file.
61653         * tests/test-canonicalize-lgpl.c: New file.
61654
61655         * modules/c-strcase-tests: New file.
61656         * tests/test-c-strcase.sh: New file.
61657         * tests/test-c-strcasecmp.c: New file.
61658         * tests/test-c-strncasecmp.c: New file.
61659
61660         * modules/atexit-tests: New file.
61661         * tests/test-atexit.sh: New file.
61662         * tests/test-atexit.c: New file.
61663
61664 2007-03-10  Bruno Haible  <bruno@clisp.org>
61665
61666         * tests/test-binary-io.sh: Use temporary filenames that are not so
61667         likely to clash with those of other tests (in a parallel make).
61668         * tests/test-binary-io.c: Likewise.
61669
61670 2007-03-10  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61673         fallback; use #error instead.
61674         Suggested by Simon Josefsson.
61675
61676 2007-03-10  Bruno Haible  <bruno@clisp.org>
61677
61678         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61679         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61680         first and the last.
61681
61682 2007-03-10  Bruno Haible  <bruno@clisp.org>
61683
61684         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61685
61686 2007-03-10  Bruno Haible  <bruno@clisp.org>
61687
61688         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61689         "make distcheck".
61690         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61691         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61692         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61693
61694 2007-03-10  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61697         variable.
61698         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61699         variable.
61700
61701 2007-03-09  Eric Blake  <ebb9@byu.net>
61702         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61703
61704         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61705         types are not being provided by gnulib.
61706         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61707         types are supported.
61708
61709 2007-03-10  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/stdio_.h (__attribute__): New macro.
61712         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61713         vsprintf): Specify __attribute__ __format__ for GCC.
61714         Suggested by Eric Blake.
61715
61716 2007-03-09  Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/printf-posix-tests: New file.
61719         * tests/test-printf-posix.sh: New file.
61720         * tests/test-printf-posix.c: New file.
61721
61722         * modules/printf-posix: New file.
61723         * lib/printf.c: New file.
61724         * m4/printf-posix-rpl.m4: New file.
61725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61726         REPLACE_PRINTF.
61727         * lib/stdio_.h (printf): New declaration.
61728         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61729         ____strfmon____): New macros.
61730         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61731         REPLACE_PRINTF.
61732
61733 2007-03-09  Bruno Haible  <bruno@clisp.org>
61734
61735         * tests/test-vasnprintf-posix2.sh: New file.
61736         * tests/test-vasnprintf-posix2.c: New file.
61737         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61738         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61739         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61740
61741         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61742         a locale dependent decimal point, rather than always '.'.
61743
61744 2007-03-09  Eric Blake  <ebb9@byu.net>
61745
61746         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61747         spite of platforms like Tandem/NSK that define it to -1.
61748
61749 2007-03-08  Bruno Haible  <bruno@clisp.org>
61750
61751         * modules/vprintf-posix-tests: New file.
61752         * tests/test-vprintf-posix.sh: New file.
61753         * tests/test-vprintf-posix.c: New file.
61754         * tests/test-printf-posix.h: New file.
61755
61756         * modules/vprintf-posix: New file.
61757         * lib/vprintf.c: New file.
61758         * m4/vprintf-posix.m4: New file.
61759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61760         REPLACE_VPRINTF.
61761         * lib/stdio_.h (vprintf): New declaration.
61762         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61763         REPLACE_VPRINTF.
61764
61765 2007-03-08  Bruno Haible  <bruno@clisp.org>
61766
61767         * modules/fprintf-posix-tests: New file.
61768         * tests/test-fprintf-posix.sh: New file.
61769         * tests/test-fprintf-posix.c: New file.
61770
61771         * modules/fprintf-posix: New file.
61772         * lib/fprintf.c: New file.
61773         * m4/fprintf-posix.m4: New file.
61774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61775         REPLACE_FPRINTF.
61776         * lib/stdio_.h (fprintf): New declaration.
61777         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61778         REPLACE_FPRINTF.
61779
61780 2007-03-08  Bruno Haible  <bruno@clisp.org>
61781
61782         * modules/vfprintf-posix-tests: New file.
61783         * tests/test-vfprintf-posix.sh: New file.
61784         * tests/test-vfprintf-posix.c: New file.
61785         * tests/test-fprintf-posix.h: New file.
61786         * tests/test-fprintf-posix.out: New file.
61787
61788         * modules/vfprintf-posix: New file.
61789         * lib/vfprintf.c: New file.
61790         * m4/vfprintf-posix.m4: New file.
61791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61792         REPLACE_VFPRINTF.
61793         * lib/stdio_.h (vfprintf): New declaration.
61794         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61795         REPLACE_VFPRINTF.
61796
61797 2007-03-08  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61800
61801 2007-03-08  Bruno Haible  <bruno@clisp.org>
61802
61803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61804         instead of 'expr' invocations.
61805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61810         Suggested by Paul Eggert.
61811
61812 2007-03-08  Bruno Haible  <bruno@clisp.org>
61813
61814         * modules/fseterr-tests: New file.
61815         * tests/test-fseterr.c: New file.
61816
61817         * modules/fseterr: New file.
61818         * lib/fseterr.h: New file.
61819         * lib/fseterr.c: New file.
61820
61821 2007-03-08  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61824         * lib/getopt_.h: Likewise.
61825         * lib/mbswidth.h: Likewise.
61826         * lib/setenv.h: Likewise.
61827         * lib/vasnprintf.h: Likewise.
61828         * lib/vasprintf.h: Likewise.
61829         * lib/verror.h: Likewise.
61830         * lib/xsetenv.h: Likewise.
61831         * lib/xvasprintf.h: Likewise.
61832
61833 2007-03-08  Jim Meyering  <jim@meyering.net>
61834
61835         * users.txt: Add parted.
61836
61837         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61838
61839 2007-03-07  Bruno Haible  <bruno@clisp.org>
61840
61841         * m4/printf.m4: Make the shell script snippets copy&pastable.
61842
61843 2007-03-02  Bruno Haible  <bruno@clisp.org>
61844
61845         * lib/netinet_in_.h: New file.
61846         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61847         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61848         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61849         (Depends-on): Add absolute-header.
61850         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61851         into netinet/in.h.
61852
61853 2007-03-03  Bruno Haible  <bruno@clisp.org>
61854
61855         * lib/sys_select_.h: New file.
61856         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61857         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61858         * modules/sys_select (Files): Add lib/sys_select_.h.
61859         (Depends-on): Add absolute-header.
61860         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61861         into sys/select.h.
61862
61863 2007-03-02  Bruno Haible  <bruno@clisp.org>
61864
61865         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61866         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61867         values.
61868         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61869         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61870         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61871         * modules/sys_socket (Depends-on): Add absolute-header.
61872         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61873         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61874         (Include): Remove requirement of inclusion of <sys/types.h>.
61875
61876 2007-03-02  Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/byteswap_.h (bswap_32): Fix formula.
61879
61880 2007-03-06  Bruno Haible  <bruno@clisp.org>
61881
61882         * modules/sprintf-posix-tests: New file.
61883         * tests/test-sprintf-posix.c: New file.
61884
61885         * modules/sprintf-posix: New file.
61886         * lib/sprintf.c: New file.
61887         * m4/sprintf-posix.m4: New file.
61888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61889         REPLACE_SPRINTF.
61890         * lib/stdio_.h (sprintf): New declaration.
61891         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61892         REPLACE_SPRINTF.
61893
61894 2007-03-06  Bruno Haible  <bruno@clisp.org>
61895
61896         * modules/vsprintf-posix-tests: New file.
61897         * tests/test-vsprintf-posix.c: New file.
61898         * tests/test-sprintf-posix.h: New file.
61899
61900         * modules/vsprintf-posix: New file.
61901         * lib/vsprintf.c: New file.
61902         * m4/vsprintf-posix.m4: New file.
61903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61904         REPLACE_VSPRINTF.
61905         * lib/stdio_.h (vsprintf): New declaration.
61906         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61907         REPLACE_VSPRINTF.
61908
61909 2007-03-06  Bruno Haible  <bruno@clisp.org>
61910
61911         * modules/vsnprintf (Depend-on): Remove minmax.
61912
61913 2007-03-06  Bruno Haible  <bruno@clisp.org>
61914
61915         * modules/snprintf-posix-tests: New file.
61916         * tests/test-snprintf-posix.c: New file.
61917
61918         * modules/snprintf-posix: New file.
61919         * m4/snprintf-posix.m4: New file.
61920         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61921         gl_FUNC_SNPRINTF.
61922         (gl_FUNC_SNPRINTF): Invoke it.
61923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61924         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61925         is set.
61926         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61927
61928 2007-03-06  Bruno Haible  <bruno@clisp.org>
61929
61930         * modules/vsnprintf-posix-tests: New file.
61931         * tests/test-vsnprintf-posix.c: New file.
61932         * tests/test-snprintf-posix.h: New file.
61933
61934         * modules/vsnprintf-posix: New file.
61935         * m4/vsnprintf-posix.m4: New file.
61936         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61937         gl_FUNC_VSNPRINTF.
61938         (gl_FUNC_VSNPRINTF): Invoke it.
61939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61940         * lib/stdio_.h (vsnprintf): Define as a replacement if
61941         REPLACE_VSNPRINTF is set.
61942         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61943
61944 2007-03-06  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61948
61949 2007-03-06  Bruno Haible  <bruno@clisp.org>
61950
61951         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61952         (asinl): Declare also if HAVE_DECL_ASINL is set.
61953         (atanl): Declare also if HAVE_DECL_ATANL is set.
61954         (ceill): Declare also if HAVE_DECL_CEILL is set.
61955         (cosl): Declare also if HAVE_DECL_COSL is set.
61956         (expl): Declare also if HAVE_DECL_EXPL is set.
61957         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61958         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61959         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61960         (logl): Declare also if HAVE_DECL_LOGL is set.
61961         (sinl): Declare also if HAVE_DECL_SINL is set.
61962         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61963         (tanl): Declare also if HAVE_DECL_TANL is set.
61964         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61967         declaration of frexpl, ldexpl.
61968         * modules/printf-frexpl (Depends-on): Add math.
61969         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61970
61971 2007-03-05  Bruno Haible  <bruno@clisp.org>
61972
61973         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61974         frexpl and ldexpl are declared.
61975         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61976
61977 2007-03-05  Bruno Haible  <bruno@clisp.org>
61978
61979         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61980         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61981
61982 2007-03-05  Bruno Haible  <bruno@clisp.org>
61983
61984         * lib/stdio_.h: Include <stddef.h>.
61985
61986 2007-03-05  Bruno Haible  <bruno@clisp.org>
61987
61988         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61989
61990 2007-03-05  Bruno Haible  <bruno@clisp.org>
61991
61992         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61993         NetBSD 4, from Ralf Wildenhues.
61994
61995 2007-03-04  Bruno Haible  <bruno@clisp.org>
61996
61997         * lib/vasprintf.h: Update #if logic for the case when the functions
61998         exist but are overridden.
61999
62000 2007-03-04  Bruno Haible  <bruno@clisp.org>
62001
62002         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62003         implementations: glibc-2.4 and MacOS X 10.3.
62004         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62005         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62006         * tests/test-vasprintf-posix.c (test_function): Likewise.
62007
62008 2007-03-04  Bruno Haible  <bruno@clisp.org>
62009
62010         * modules/vasprintf-posix-tests: New file.
62011         * tests/test-vasprintf-posix.c: New file.
62012
62013         * modules/vasprintf-posix: New file.
62014         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62015         defined.
62016         * m4/vasprintf-posix.m4: New file.
62017         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62018         gl_FUNC_VASPRINTF.
62019         (gl_FUNC_VASPRINTF): Invoke it.
62020         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62021         here.
62022         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62023
62024 2007-03-04  Bruno Haible  <bruno@clisp.org>
62025
62026         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62027         REPLACE_GETTIMEOFDAY.
62028         * modules/sys_time (Makefile.am): Likewise.
62029         * m4/sys_time_h.m4: Likewise.
62030         * m4/gettimeofday.m4: Likewise.
62031
62032 2007-03-04  Bruno Haible  <bruno@clisp.org>
62033
62034         * modules/vasnprintf-posix-tests: New file.
62035         * tests/test-vasnprintf-posix.c: New file.
62036
62037         * modules/vasnprintf-posix: New file.
62038         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62039         printf-frexpl.h.
62040         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62041         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62042         REPLACE_VASNPRINTF is defined.
62043         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62044         gl_FUNC_VASNPRINTF.
62045         (gl_FUNC_VASNPRINTF): Invoke it.
62046         * m4/vasnprintf-posix.m4: New file.
62047         * m4/printf.m4: New file.
62048
62049 2007-03-04  Bruno Haible  <bruno@clisp.org>
62050
62051         Compile progreloc.c only if --enable-relocatable is specified.
62052         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62053         if --enable-relocatable was specified.
62054         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62055         lib_SOURCES.
62056
62057 2007-03-04  Jim Meyering  <jim@meyering.net>
62058
62059         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62060         Use it consistently, rather than enumerating errno constants.
62061
62062 2007-03-04  Bruno Haible  <bruno@clisp.org>
62063
62064         * modules/xvasprintf-tests: New file.
62065         * tests/test-xvasprintf.c: New file.
62066
62067         * modules/vasprintf-tests: New file.
62068         * tests/test-vasprintf.c: New file.
62069
62070         * modules/vasnprintf-tests: New file.
62071         * tests/test-vasnprintf.c: New file.
62072
62073         * modules/vsnprintf-tests: New file.
62074         * tests/test-vsnprintf.c: New file.
62075
62076         * modules/snprintf-tests: New file.
62077         * tests/test-snprintf.c: New file.
62078
62079 2007-03-04  Bruno Haible  <bruno@clisp.org>
62080
62081         Compile relocatable.c only if --enable-relocatable is specified.
62082         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62083         gl_RELOCATABLE_LIBRARY.
62084         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62085         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62086         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62087         gl_RELOCATABLE_LIBRARY.
62088         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62089         (Makefile.am): Remove lib_SOURCES.
62090         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62091         gl_RELOCATABLE_LIBRARY.
62092         (Makefile.am): Remove lib_SOURCES.
62093         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62094         always.
62095         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62096         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62097
62098 2007-03-04  Bruno Haible  <bruno@clisp.org>
62099
62100         * modules/argmatch-tests: New file.
62101         * tests/test-argmatch.c: New file.
62102
62103         * tests/test-allocsa.c (main): Halve the number of loop runs.
62104
62105         * modules/alloca-opt-tests: New file.
62106         * tests/test-alloca-opt.c: New file.
62107
62108 2007-03-04  Jim Meyering  <jim@meyering.net>
62109
62110         Work around difference between Linux ACLs and Solaris 10 ZFS.
62111         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62112         for EINVAL.
62113
62114 2007-03-03  Bruno Haible  <bruno@clisp.org>
62115
62116         * modules/relocatable-prog (Depends-on): Add back progreloc's
62117         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62118
62119 2007-03-03  Bruno Haible  <bruno@clisp.org>
62120
62121         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62122         * modules/relocatable-lib: New file.
62123
62124 2007-03-03  Bruno Haible  <bruno@clisp.org>
62125
62126         * modules/relocatable-prog: Renamed from modules/relocatable.
62127         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62128
62129 2007-03-03  Bruno Haible  <bruno@clisp.org>
62130
62131         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62132         m4/relocatable-lib.m4.
62133         (Depends-on): Remove 'relocatable'.
62134         (configure.ac): Add gl_RELOCATABLE_NOP.
62135
62136 2007-03-03  Bruno Haible  <bruno@clisp.org>
62137
62138         * modules/relocatable-prog-wrapper: New file.
62139         * modules/relocatable (Depends-on): Add it. Remove all other
62140         dependencies except progname.
62141         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62142
62143         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62144         (gl_FUNC_STRERROR): Nop.
62145         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62146
62147         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62148         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62149
62150         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62151         (gl_FUNC_READLINK): Update.
62152
62153         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62154
62155 2007-03-03  Bruno Haible  <bruno@clisp.org>
62156
62157         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62158         * modules/xreadlink (Depends-on): Add unistd.
62159         * modules/xreadlink-with-size (Depends-on): Likewise.
62160
62161 2007-03-03  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62164         extracted from gt_FUNC_SETENV.
62165         (gt_FUNC_SETENV): Remove macro.
62166         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62167         remove gt_FUNC_SETENV.
62168
62169 2007-03-03  Bruno Haible  <bruno@clisp.org>
62170
62171         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62172         ENABLE_RELOCATABLE here.
62173         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62174
62175 2007-03-03  Bruno Haible  <bruno@clisp.org>
62176
62177         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62178         * tests/test-rbtreehash_list.c: Include progname.h.
62179         (main): Call set_program_name.
62180
62181         * modules/rbtree-oset-tests (Depends-on): Add progname.
62182         * tests/test-rbtree_oset.c: Include progname.h.
62183         (main): Call set_program_name.
62184
62185         * modules/rbtree-list-tests (Depends-on): Add progname.
62186         * tests/test-rbtree_list.c: Include progname.h.
62187         (main): Call set_program_name.
62188
62189         * modules/linked-list-tests (Depends-on): Add progname.
62190         * tests/test-linked_list.c: Include progname.h.
62191         (main): Call set_program_name.
62192
62193 2007-03-03  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62196         All uses of __restrict changed to _Restrict_.
62197         * lib/glob_.h (__restrict): Remove macro.
62198
62199 2007-03-02  Bruno Haible  <bruno@clisp.org>
62200
62201         * modules/gettext (configure.ac): Require gettext infrastructure
62202         from version 0.16.1.
62203
62204 2007-03-02  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/linkedhash-list-tests (Depends-on): Add progname.
62207         * tests/test-linkedhash_list.c: Include progname.h.
62208         (main): Call set_program_name.
62209
62210         * modules/carray-list-tests (Depends-on): Add progname.
62211         * tests/test-carray_list.c: Include progname.h.
62212         (main): Call set_program_name.
62213
62214         * modules/avltreehash-list-tests (Depends-on): Add progname.
62215         * tests/test-avltreehash_list.c: Include progname.h.
62216         (main): Call set_program_name.
62217
62218         * modules/avltree-oset-tests (Depends-on): Add progname.
62219         * tests/test-avltree_oset.c: Include progname.h.
62220         (main): Call set_program_name.
62221
62222         * modules/avltree-list-tests (Depends-on): Add progname.
62223         * tests/test-avltree_list.c: Include progname.h.
62224         (main): Call set_program_name.
62225
62226         * modules/array-oset-tests (Depends-on): Add progname.
62227         * tests/test-array_oset.c: Include progname.h.
62228         (main): Call set_program_name.
62229
62230         * modules/array-list-tests (Depends-on): Add progname.
62231         * tests/test-array_list.c: Include progname.h.
62232         (main): Call set_program_name.
62233
62234         * modules/argp-tests (Depends-on): Add progname.
62235         * tests/test-argp.c: Include argp.h first. Include progname.h.
62236         (main): Call set_program_name.
62237
62238 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * doc/gnulib-tool.texi (Initial import): Reword description of
62241         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62242         limited effect even if defined after the first system include.
62243
62244 2007-03-01  Bruno Haible  <bruno@clisp.org>
62245
62246         * build-aux/config.libpath: Update to libtool-1.5.22.
62247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62248
62249 2007-03-01  Bruno Haible  <bruno@clisp.org>
62250
62251         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62252         foo_CFLAGS.
62253         Reported by Ralf Wildenhues.
62254
62255 2007-03-01  Bruno Haible  <bruno@clisp.org>
62256
62257         * build-aux/install-reloc: Remove object files left over by some
62258         compilers.
62259         Reported by Ralf Wildenhues.
62260
62261 2007-03-01  Bruno Haible  <bruno@clisp.org>
62262
62263         * build-aux/install-reloc: Break long lines.
62264
62265 2007-03-01  Bruno Haible  <bruno@clisp.org>
62266
62267         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62268         Reported by Ralf Wildenhues.
62269
62270 2007-03-01  Bruno Haible  <bruno@clisp.org>
62271
62272         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62273         include ordering constraints.
62274
62275 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62276
62277         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62279         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62280         as another example.
62281         * lib/time_.h: Fix misspelling.
62282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62283         Require gl_HEADER_TIME_H_DEFAULTS.
62284         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62285         * m4/time_r.m4 (gl_TIME_R): Likewise.
62286         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62287
62288 2007-03-01  Bruno Haible  <bruno@clisp.org>
62289
62290         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62291         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62292
62293 2007-03-01  Jim Meyering  <jim@meyering.net>
62294
62295         * modules/xreadlink (Maintainer): Add my name.
62296         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62297
62298 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62299             Bruno Haible  <bruno@clisp.org>
62300
62301         * build-aux/install-reloc: Compile also c-ctype.c.
62302         * build-aux/relocatable.sh.in: New file.
62303         * doc/relocatable.texi: New file.
62304         * doc/relocatable-maint.texi: New file.
62305         * doc/gnulib.texi: Include relocatable-maint.texi.
62306         * lib/progreloc.c: Include unistd.h unconditionally.
62307         * lib/relocwrapper.c: Include unistd.h unconditionally.
62308         Include c-ctype.h.
62309         (add_dotbin): Use c_tolower.
62310         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62311         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62312         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62313         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62314         to m4/relocatable-lib.m4.
62315         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62316         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62317         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62318         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62319         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62320         * modules/relocatable: New file.
62321         * modules/relocatable-lib: New file.
62322         * modules/relocatable-script: New file.
62323
62324 2007-02-28  Bruno Haible  <bruno@clisp.org>
62325
62326         Import --enable-relocatable infrastructure.
62327         * build-aux/config.libpath: New file, from GNU gettext.
62328         * build-aux/install-reloc: New file, from GNU gettext.
62329         * build-aux/reloc-ldflags: New file, from GNU gettext.
62330         * lib/relocatable.h: New file, from GNU gettext.
62331         * lib/relocatable.c: New file, from GNU gettext.
62332         * lib/relocwrapper.c: New file, from GNU gettext.
62333         * m4/relocatable.m4: New file, from GNU gettext.
62334
62335 2007-02-28  Bruno Haible  <bruno@clisp.org>
62336
62337         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62338
62339         * modules/xreadlink: New file, from GNU gettext with modifications.
62340         * lib/xreadlink.c: New file, from GNU gettext.
62341         * lib/xreadlink.h: Add comments.
62342         (xreadlink): New declaration.
62343
62344         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62345         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62346         lib/xreadlink-with-size.c.
62347         (configure.ac): Remove gl_XREADLINK invocation.
62348         (Makefile.am): Augment lib_SOURCES.
62349         * m4/xreadlink.m4: Remove file.
62350         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62351         (xreadlink_with_size): Renamed from xreadink.
62352         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62353         * modules/canonicalize (Depends-on): Replace xreadlink with
62354         xreadlink-with-size.
62355         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62356
62357 2007-02-25  Jim Meyering  <jim@meyering.net>
62358
62359         * build-aux/announce-gen: When complaining about excess arguments,
62360         list them.
62361
62362 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * README: Document signed integer overflow situation more
62365         accurately.
62366
62367 2007-02-25  Bruno Haible  <bruno@clisp.org>
62368
62369         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62370         'a' or 'A' conversion.
62371
62372 2007-02-25  Bruno Haible  <bruno@clisp.org>
62373
62374         * modules/filename: Renamed from modules/pathname.
62375         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62376         lib/concatpath.c with lib/concat-filename.c.
62377         (Makefile.am): Update.
62378         (Include): Replace pathname.h with filename.h.
62379         * lib/filename.h: Renamed from lib/pathname.h.
62380         (concatenated_filename): Renamed from concatenated_pathname.
62381         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62382         (concatenated_filename): Renamed from concatenated_pathname.
62383         * lib/findprog.c: Include filename.h instead of pathname.h.
62384         (find_in_path): Update.
62385         * lib/javacomp.c: Include filename.h instead of pathname.h.
62386         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62387         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62388         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62389         is_oldgcj_14_13_usable, is_javac_usable): Update.
62390         * lib/javaexec.c: Include filename.h instead of pathname.h.
62391         (execute_java_class): Update.
62392         * modules/findprog: Update.
62393         * modules/javacomp: Update.
62394         * modules/javaexec: Update.
62395         * MODULES.html.sh (File system functions): Add 'filename', remove
62396         'pathname'.
62397
62398 2007-02-25  Bruno Haible  <bruno@clisp.org>
62399
62400         * modules/printf-frexpl-tests: New file.
62401         * tests/test-printf-frexpl.c: New file.
62402
62403         * modules/printf-frexpl: New file.
62404         * lib/printf-frexpl.h: New file.
62405         * lib/printf-frexpl.c: New file.
62406         * m4/printf-frexpl.m4: New file.
62407
62408 2007-02-25  Bruno Haible  <bruno@clisp.org>
62409
62410         * modules/printf-frexp-tests: New file.
62411         * tests/test-printf-frexp.c: New file.
62412
62413         * modules/printf-frexp: New file.
62414         * lib/printf-frexp.h: New file.
62415         * lib/printf-frexp.c: New file.
62416         * m4/printf-frexp.m4: New file.
62417
62418 2007-02-25  Bruno Haible  <bruno@clisp.org>
62419
62420         Assume automake >= 1.10 for the tests.
62421         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62422         * modules/arctwo-tests: Likewise.
62423         * modules/argp-tests: Likewise.
62424         * modules/avltree-list-tests: Likewise.
62425         * modules/avltree-oset-tests: Likewise.
62426         * modules/avltreehash-list-tests: Likewise.
62427         * modules/carray-list-tests: Likewise.
62428         * modules/crc-tests: Likewise.
62429         * modules/des-tests: Likewise.
62430         * modules/gc-arcfour-tests: Likewise.
62431         * modules/gc-arctwo-tests: Likewise.
62432         * modules/gc-des-tests: Likewise.
62433         * modules/gc-hmac-md5-tests: Likewise.
62434         * modules/gc-hmac-sha1-tests: Likewise.
62435         * modules/gc-md2-tests: Likewise.
62436         * modules/gc-md4-tests: Likewise.
62437         * modules/gc-md5-tests: Likewise.
62438         * modules/gc-pbkdf2-sha1-tests: Likewise.
62439         * modules/gc-rijndael-tests: Likewise.
62440         * modules/gc-sha1-tests: Likewise.
62441         * modules/gc-tests: Likewise.
62442         * modules/getaddrinfo-tests: Likewise.
62443         * modules/hmac-md5-tests: Likewise.
62444         * modules/hmac-sha1-tests: Likewise.
62445         * modules/linked-list-tests: Likewise.
62446         * modules/linkedhash-list-tests: Likewise.
62447         * modules/lock-tests: Likewise.
62448         * modules/md2-tests: Likewise.
62449         * modules/md4-tests: Likewise.
62450         * modules/md5-tests: Likewise.
62451         * modules/rbtree-list-tests: Likewise.
62452         * modules/rbtree-oset-tests: Likewise.
62453         * modules/rbtreehash-list-tests: Likewise.
62454         * modules/read-file-tests: Likewise.
62455         * modules/rijndael-tests: Likewise.
62456         * modules/stdint-tests: Likewise.
62457         * modules/tls-tests: Likewise.
62458
62459 2007-02-24  Bruno Haible  <bruno@clisp.org>
62460
62461         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62462         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62463         function; instead check whether isnan with a double argument links.
62464         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62465         function; instead check whether isnan with a 'long double' argument
62466         links.
62467         Reported by Eric Blake <ebb9@byu.net>.
62468
62469 2007-02-24  Bruno Haible  <bruno@clisp.org>
62470
62471         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62472         defined.
62473         * lib/isnanl.c: Remove all code. Just include isnan.c.
62474         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62475
62476 2007-02-25  Jim Meyering  <jim@meyering.net>
62477
62478         Avoid conflicting types for 'unsetenv' on FreeBSD.
62479         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62480         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62481         in stdlib.h.
62482
62483 2007-02-24  Bruno Haible  <bruno@clisp.org>
62484
62485         * modules/isnanl-nolibm-tests: New file.
62486         * tests/test-isnanl.c: New file.
62487
62488         * modules/isnanl-nolibm: New file.
62489         * lib/isnanl.h: New file.
62490         * lib/isnanl.c: New file.
62491         * m4/isnanl.m4: New file.
62492
62493 2007-02-24  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/isnan-nolibm-tests: New file.
62496         * tests/test-isnan.c: New file.
62497
62498         * modules/isnan-nolibm: New file.
62499         * lib/isnan.h: New file.
62500         * lib/isnan.c: New file.
62501         * m4/isnan.m4: New file.
62502
62503 2007-02-24  Bruno Haible  <bruno@clisp.org>
62504
62505         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62506         assume that an exponent fits in 20 bits.
62507
62508 2007-02-24  Jim Meyering  <jim@meyering.net>
62509
62510         * m4/regex.m4: Update the description of the configure-time option,
62511         --without-included-regex, to state accurately what the defaults are,
62512         and perhaps to give people an idea why using this option is risky.
62513
62514 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62517         loops on small arguments.  This attempts to avoid the problem
62518         Bruno Haible reported for AIX 4.3.2 in
62519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62520
62521 2007-02-23  Bruno Haible  <bruno@clisp.org>
62522
62523         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62524         Needed for help2man.
62525
62526 2007-02-23  Karl Berry  <karl@gnu.org>
62527
62528         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62529         exists, foo.h should be cvs-ignored, not committed.
62530
62531 2007-02-23  Eric Blake  <ebb9@byu.net>
62532
62533         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62534         * lib/stat-time.h (includes): Likewise.
62535         * lib/utimecmp.c (includes): Likewise.
62536         * lib/utimens.h (includes): Likewise.
62537         * lib/getdate.y (includes): Also include "timespec.h" for use
62538         internal to the module.
62539         * modules/utimens (Depends-on): Revert yesterday's patch.
62540         * modules/nanosleep (Depends-on): Add missing dependency.
62541
62542 2007-02-22  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/glob.c: Don't include getlogin_r.h.
62545
62546 2007-02-22  Jim Meyering  <jim@meyering.net>
62547
62548         * modules/utimens (Depends-on): Add timespec, required for
62549         utimens.h's inclusion of timespec.h.
62550
62551 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62554         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62555         Schwab in
62556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62557         I'll try to think of a better way to fix the Solaris problem.
62558
62559         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62560         like glibc; on Solaris 10, it fails with errno == EINVAL.
62561         POSIX says the behavior is unspecified if the first argument is NULL,
62562         so play it safe and never pass NULL to the system getcwd.
62563
62564 2007-02-21  Jim Meyering  <jim@meyering.net>
62565
62566         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62567         of gettimeofday.  It would conflict with the one now always
62568         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62569         an IRIX 6.5 build failure.
62570
62571 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         Minor fixups to port to Solaris 10 with Sun C 5.8.
62574         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62575         * modules/getcwd (Depends-on): Add dirfd.
62576         * lib/putenv.c (putenv): #undef it.
62577         (rpl_putenv): New decl.
62578         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62579
62580 2007-02-20  Bruno Haible  <bruno@clisp.org>
62581
62582         * modules/stdio-tests: New file.
62583         * tests/test-stdio.c: New file.
62584
62585         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62586         (Depends-on): Add stdio.
62587         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62588         (Include): Use <stdio.h> instead of vsnprintf.h.
62589         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62590         HAVE_DECL_VSNPRINTF.
62591         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62592
62593         * modules/snprintf (Files): Remove lib/snprintf.h.
62594         (Depends-on): Add stdio.
62595         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62596         (Include): Use <stdio.h> instead of snprintf.h.
62597         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62598         HAVE_DECL_SNPRINTF.
62599         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62600         * lib/getaddrinfo.c: Likewise.
62601
62602         * modules/stdio: New file.
62603         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62604         * lib/snprintf.h: Remove file.
62605         * lib/vsnprintf.h: Remove file.
62606         * lib/.cppi-disable: Remove snprintf.h.
62607         * m4/stdio_h.m4: New file.
62608         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62609
62610 2007-02-20  Jim Meyering  <jim@meyering.net>
62611
62612         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62613         used by e.g., mingw.  From Bruno Haible.
62614
62615 2007-02-19  Bruno Haible  <bruno@clisp.org>
62616
62617         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62618         warnings.
62619         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62620
62621 2007-02-19  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62624         from mingw users.
62625
62626 2007-02-19  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62629         warnings.
62630         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62631
62632 2007-02-19  Jim Meyering  <jim@meyering.net>
62633
62634         Don't use FD after a successful "fdopendir (fd)".
62635         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62636         Reset it by calling dirfd on the just-obtained DIR*.
62637
62638         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62639         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62640
62641 2007-02-18  Bruno Haible  <bruno@clisp.org>
62642
62643         * lib/readlink.c: Include <unistd.h>.
62644         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62645         HAVE_READLINK.
62646         * modules/readlink (Depends-on): Add unistd.
62647         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62648         (Include): Add <unistd.h>.
62649
62650         * lib/getlogin_r.h: Remove file.
62651         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62652         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62653         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62654         HAVE_DECL_GETLOGIN_R.
62655         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62656         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62657         (Include): Use <unistd.h> instead of getlogin_r.h.
62658
62659         * lib/getcwd.h: Remove file.
62660         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62661         * lib/xgetcwd.c: Likewise.
62662         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62663         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62664         * modules/getcwd (Files): Remove lib/getcwd.h.
62665         (Depends-on): Add unistd.
62666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62667         (Include): Use <unistd.h> instad of getcwd.h.
62668
62669         * lib/ftruncate.c: Include <unistd.h> first.
62670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62671         Set HAVE_FTRUNCATE.
62672         * modules/ftruncate (Depends-on): Add unistd.
62673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62674
62675         * lib/fchdir.c: Include <unistd.h> first.
62676         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62678         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62679         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62680         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62681
62682         * lib/dup2.c: Include <unistd.h> first.
62683         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62684         HAVE_DUP2.
62685         * modules/dup2 (Depends-on): Add unistd.
62686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62687
62688         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62689         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62690         REPLACE_CHOWN. Don't define chown as a macro here.
62691         * modules/chown (Depends-on): Add unistd.
62692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62693
62694         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62695         Add definition for GL_LINK_WARNING.
62696         (chown, dup2): New declarations.
62697         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62698         link warning.
62699         (ftruncate): New declaration.
62700         (getcwd): New declaration, taken from old getcwd.h.
62701         (getlogin_r): New declaration, taken from old getlogin_r.h.
62702         (readlink): New declaration.
62703         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62704         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62705         (gl_PREREQ_UNISTD): Remove macro.
62706         (gl_UNISTD_MODULE_INDICATOR): New macro.
62707         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62708         many new variables. Don't set UNISTD_H.
62709         * modules/unistd (Description): Change.
62710         (Depends-on): Add link-warning.
62711         (configure.ac): Update.
62712         (Makefile.am): Create unistd.h always. Substitute many new variables
62713         into it.
62714
62715 2007-02-18  Bruno Haible  <bruno@clisp.org>
62716
62717         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62718         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62719         HAVE_GETSUBOPT.
62720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62721         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62722         * lib/getsubopt.h: Remove file.
62723         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62724         (Depends-on): Add stdlib.
62725         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62726         (Includes): Use <stdlib.h> instead of getsubopt.h.
62727         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62728         Set HAVE_GETSUBOPT.
62729         * lib/getsubopt.c: Don't include getsubopt.h.
62730
62731 2007-02-18  Bruno Haible  <bruno@clisp.org>
62732
62733         * modules/fchdir (Depends-on): Add dup2.
62734
62735 2007-02-18  Bruno Haible  <bruno@clisp.org>
62736
62737         * lib/stdlib_.h: Handle glibc's special invocation convention
62738         specially.
62739
62740 2007-02-18  Bruno Haible  <bruno@clisp.org>
62741
62742         * modules/stdlib-tests: New file.
62743         * tests/test-stdlib.c: New file.
62744
62745         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62746         (Depends-on): Add stdlib.
62747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62748         (Includes): Use <stdlib.h> instead of mkstemp.h.
62749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62750         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62751         * lib/mkstemp.c: Don't include mkstemp.h.
62752         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62753         * lib/stdlib--.h: Don't include mkstemp.h.
62754
62755         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62756         (Depends-on): Add stdlib.
62757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62758         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62759         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62760         HAVE_MKDTEMP.
62761         * lib/mkdtemp.c: Don't include mkdtemp.h.
62762         * lib/clean-temp.c: Don't include mkdtemp.h.
62763
62764         * modules/exit (Files): Remove lib/exit.h.
62765         (Depends-on): Add stdlib.
62766         (Makefile.am): Remove lib_SOURCES.
62767         (Include): Use <stdlib.h> instead of exit.h.
62768         * lib/argmatch.c: Don't include exit.h.
62769         * lib/execute.c: Likewise.
62770         * lib/pagealign_alloc.c: Likewise.
62771         * lib/pipe.c: Likewise.
62772         * lib/wait-process.c: Likewise.
62773         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62774         * lib/exitfail.c: Likewise.
62775         * lib/savewd.c: Likewise.
62776         * lib/xsetenv.c: Likewise.
62777
62778         * modules/stdlib: New file.
62779         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62780         and extra comments about mkstemp().
62781         * lib/exit.h: Remove file.
62782         * lib/mkdtemp.h: Remove file.
62783         * lib/mkstemp.h: Remove file.
62784         * m4/stdlib_h.m4: New file.
62785         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62786
62787 2007-02-18  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/math-tests: New file.
62790         * tests/test-math.c: New file.
62791
62792         * modules/math: New file.
62793         * modules/mathl (Files): Remove lib/mathl.h.
62794         (Depends-on): Add math.
62795         (Makefile.am): Don't mention mathl.h.
62796         (Include): Use <math.h> instead of mathl.h.
62797         * lib/math_.h: New file.
62798         * lib/mathl.h: Remove file.
62799         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62800         mathl.h.
62801         * lib/asinl.c: Likewise.
62802         * lib/atanl.c: Likewise.
62803         * lib/ceill.c: Likewise.
62804         * lib/cosl.c: Likewise.
62805         * lib/expl.c: Likewise.
62806         * lib/floorl.c: Likewise.
62807         * lib/frexpl.c: Likewise.
62808         * lib/ldexpl.c: Likewise.
62809         * lib/logl.c: Likewise.
62810         * lib/sincosl.c: Likewise.
62811         * lib/sinl.c: Likewise.
62812         * lib/sqrtl.c: Likewise.
62813         * lib/tanl.c: Likewise.
62814         * lib/trigl.c: Likewise.
62815         * m4/math_h.m4: New file.
62816         * MODULES.html.sh (Mathematics): Add math.
62817
62818 2007-02-17  Bruno Haible  <bruno@clisp.org>
62819
62820         * modules/wctype-tests: New file.
62821         * tests/test-wctype.c: New file.
62822
62823         * modules/wchar-tests: New file.
62824         * tests/test-wchar.c: New file.
62825
62826         * modules/unistd-tests: New file.
62827         * tests/test-unistd.c: New file.
62828
62829         * modules/time-tests: New file.
62830         * tests/test-time.c: New file.
62831
62832         * modules/sysexits-tests: New file.
62833         * tests/test-sysexits.c: New file.
62834
62835         * modules/sys_time-tests: New file.
62836         * tests/test-sys_time.c: New file.
62837
62838         * modules/sys_stat-tests: New file.
62839         * tests/test-sys_stat.c: New file.
62840
62841         * modules/sys_socket-tests: New file.
62842         * tests/test-sys_socket.c: New file.
62843
62844         * modules/sys_select-tests: New file.
62845         * tests/test-sys_select.c: New file.
62846
62847         * modules/string-tests: New file.
62848         * tests/test-string.c: New file.
62849
62850         * modules/stdbool-tests: New file.
62851         * tests/test-stdbool.c: New file.
62852
62853         * modules/netinet_in-tests: New file.
62854         * tests/test-netinet_in.c: New file.
62855
62856         * modules/inttypes-tests: New file.
62857         * tests/test-inttypes.c: New file.
62858
62859         * modules/fcntl-tests: New file.
62860         * tests/test-fcntl.c: New file.
62861
62862         * modules/byteswap-tests: New file.
62863         * tests/test-byteswap.c: New file.
62864
62865         * modules/arpa_inet-tests: New file.
62866         * tests/test-arpa_inet.c: New file.
62867
62868 2007-02-17  Bruno Haible  <bruno@clisp.org>
62869
62870         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62871         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62872         if the corresponding module is not enabled. Emit link warnings if
62873         the function is used nevertheless.
62874         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62875         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62876         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62877         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62878         * modules/inttypes (Depends-on): Add link-warning.
62879         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62880         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62881         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62882         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62883         * modules/imaxdiv (configure.ac): Likewise.
62884         * modules/strtoimax (configure.ac): Likewise.
62885         * modules/strtoumax (configure.ac): Likewise.
62886
62887 2007-02-17  Bruno Haible  <bruno@clisp.org>
62888
62889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62890         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62891         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62892         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62893
62894 2007-02-17  Bruno Haible  <bruno@clisp.org>
62895
62896         * modules/link-warning: New file.
62897         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62898         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62899         * modules/string (Depends-on): Add link-warning.
62900         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62901         string.h.
62902         * MODULES.html.sh (Support for building libraries and executables): Add
62903         link-warning.
62904
62905 2007-02-17  Bruno Haible  <bruno@clisp.org>
62906
62907         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62908         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62909         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62910         long lines.
62911
62912 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62913             Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/tmpfile: New file.
62916         * lib/tmpfile.c: New file.
62917         * m4/tmpfile.m4: New file.
62918         * MODULES.html.sh (func_all_modules): New section "Input/output".
62919
62920 2007-02-15  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62923         (supports_delete_on_close): New function.
62924         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62925
62926 2007-02-14  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/mbspcasecmp-tests: New file.
62929         * tests/test-mbspcasecmp.sh: New file.
62930         * tests/test-mbspcasecmp.c: New file.
62931
62932         New module mbspcasecmp.
62933         * modules/mbspcasecmp: New file.
62934         * lib/mbspcasecmp.c: New file.
62935         * lib/string_.h (strncasecmp): Change warning message.
62936         (mbspcasecmp): New declaration.
62937         * m4/mbspcasecmp.m4: New file.
62938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62939         GNULIB_MBSPCASECMP.
62940         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62941         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62942
62943 2007-02-14  Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/mbsncasecmp-tests: New file.
62946         * tests/test-mbsncasecmp.sh: New file.
62947         * tests/test-mbsncasecmp.c: New file.
62948
62949         New module mbsncasecmp.
62950         * modules/mbsncasecmp: New file.
62951         * lib/mbsncasecmp.c: New file.
62952         * lib/string_.h (mbsncasecmp): New declaration.
62953         * m4/mbsncasecmp.m4: New file.
62954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62955         GNULIB_MBSNCASECMP.
62956         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62957         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62958
62959 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62962         Verify that it doesn't overlap with our flags.
62963         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62964         do not have the desired effect in multibyte locales; instead, use
62965         mbscasecmp.
62966         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62967         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62968         we don't require GNU fnmatch ourselves (if our users require it, they
62969         should do so explicitly).
62970
62971         Fix regex code so it doesn't rely on strcasecmp.
62972         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62973         Otherwise, include gnulib's langinfo.h.
62974         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62975         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62976         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62977         * modules/regex (FILES): Remove m4/codeset.m4.
62978         (Depends-on): Add localcharset.  Remove strcase.
62979
62980 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62981
62982         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62983         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62984
62985 2007-02-13  Bruno Haible  <bruno@clisp.org>
62986
62987         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62989
62990 2007-02-12  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62993         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62994         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62995         time warning rather than a link error.
62996
62997 2007-02-12  Bruno Haible  <bruno@clisp.org>
62998
62999         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63002
63003 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63004
63005         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63006         args, not 2.
63007
63008 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63009
63010         New module 'time', so that apps can include <time.h> as per
63011         POSIX and GNU instead of separate include files like time_r.h
63012         and timegm.h.  This implementation tries out a simpler approach
63013         for replacing decls in standard include files (as compared to
63014         the string module), somewhat as an experiment.
63015
63016         * config/srclist.txt: Comment out mktime.c for now.
63017         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63018         since it doesn't apply any more.  Use generic wording instead.
63019         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63020         'time'.
63021         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63022         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63023         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63024         Don't include <sys/types.h>; no longer needed since we assume C89.
63025         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63026         * lib/strftime.c: Likewise.
63027         * lib/time_r.c: Likewise.
63028         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63029         * lib/nanosleep.c: Include <time.h> first, to check interface.
63030         * lib/strptime.c: Likewise.
63031         * lib/time_r.c: Likewise.
63032         * lib/timegm.c: Likewise.
63033         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63034         needed.
63035         * lib/timegm.c: Don't include timegm.h; no longer needed.
63036         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63037         time.h now handles any problems in that area.
63038         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63039         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63040         that time.h defines struct timespec.
63041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63042         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63043         handles that.
63044         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63045         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63046         needed.  Set REPLACE_LOCALTIME.
63047         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63048         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63049         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63050         nanosleep; time_h.m4 now does that.  Don't require
63051         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63052         module handles this now.
63053         * modules/getdate (Depends-on): Remove timespec.  Add time.
63054         * modules/nanosleep (Depends-on): Likewise.
63055         * modules/stat-time (Depends-on): Likewise.
63056         * modules/nanosleep (Include): Include time.h, not timespec.h.
63057         * modules/strptime (Files): Remove lib/strptime.h.
63058         (Depends-on): Add extensions, time.
63059         (Include): Include time.h, not strptime.h.
63060         * modules/time_r (Files): Remove lib/time_r.h.
63061         (Depends-on): Add time.
63062         (Include): Include time.h, not time_r.h.
63063         * modules/timegm: Likewise.
63064         * modules/timespec (Description): Now does timespec-related decls
63065         of our own, instead of struct timespec itself.
63066         (Depends-on): Add time; remove extensions.
63067         (Maintainer): Add self.
63068         * modules/utimecmp (Depends-on): Add time; remove timespec.
63069         * modules/utimens (Depends-on): Likewise.
63070         * modules/xnanosleep (Depends-on): Likewise.
63071
63072 2007-02-11  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/c-strstr.c: Include allocsa.h.
63075         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63076         * lib/c-strcasestr.c: Include allocsa.h.
63077         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63078         * lib/strcasestr.c: Include allocsa.h.
63079         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63080         * lib/mbsstr.c: Include allocsa.h.
63081         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63082         allocsa/freesa instead of malloc/free.
63083         * lib/mbscasestr.c: Include allocsa.h.
63084         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63085         allocsa/freesa instead of malloc/free.
63086         * modules/c-strstr (Depends-on): Add allocsa.
63087         * modules/c-strcasestr (Depends-on): Likewise.
63088         * modules/strcasestr (Depends-on): Likewise.
63089         * modules/mbsstr (Depends-on): Likewise.
63090         * modules/mbscasestr (Depends-on): Likewise.
63091
63092 2007-02-11  Bruno Haible  <bruno@clisp.org>
63093
63094         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63095
63096         * modules/mbsspn-tests: New file.
63097         * tests/test-mbsspn.sh: New file.
63098         * tests/test-mbsspn.c: New file.
63099
63100 2007-02-11  Bruno Haible  <bruno@clisp.org>
63101
63102         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63103
63104         * modules/mbspbrk-tests: New file.
63105         * tests/test-mbspbrk.sh: New file.
63106         * tests/test-mbspbrk.c: New file.
63107
63108 2007-02-11  Bruno Haible  <bruno@clisp.org>
63109
63110         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63111         unneeded cast.
63112
63113         * modules/mbscspn-tests: New file.
63114         * tests/test-mbscspn.sh: New file.
63115         * tests/test-mbscspn.c: New file.
63116
63117 2007-02-11  Bruno Haible  <bruno@clisp.org>
63118
63119         * modules/mbscasecmp-tests: New file.
63120         * tests/test-mbscasecmp.sh: New file.
63121         * tests/test-mbscasecmp.c: New file.
63122
63123 2007-02-11  Bruno Haible  <bruno@clisp.org>
63124
63125         Ensure O(n) worst-case complexity of mbscasestr.
63126         * lib/mbscasestr.c: Include stdbool.h.
63127         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63128         functions.
63129         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63130         the bookkeeping indicates that it's worth it.
63131         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63132
63133         * modules/mbscasestr-tests: New file.
63134         * tests/test-mbscasestr1.c: New file.
63135         * tests/test-mbscasestr2.sh: New file.
63136         * tests/test-mbscasestr2.c: New file.
63137         * tests/test-mbscasestr3.sh: New file.
63138         * tests/test-mbscasestr3.c: New file.
63139         * tests/test-mbscasestr4.sh: New file.
63140         * tests/test-mbscasestr4.c: New file.
63141         * m4/locale-tr.m4: New file.
63142
63143 2007-02-11  Bruno Haible  <bruno@clisp.org>
63144
63145         Ensure O(n) worst-case complexity of mbsstr.
63146         * lib/mbsstr.c: Include stdbool.h.
63147         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63148         functions.
63149         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63150         bookkeeping indicates that it's worth it.
63151         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63152
63153         * modules/mbsstr-tests: New file.
63154         * tests/test-mbsstr1.c: New file.
63155         * tests/test-mbsstr2.sh: New file.
63156         * tests/test-mbsstr2.c: New file.
63157         * tests/test-mbsstr3.sh: New file.
63158         * tests/test-mbsstr3.c: New file.
63159         * m4/locale-fr.m4: New file.
63160
63161 2007-02-11  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/mbsrchr.c (mbsrchr): Fix bug.
63164
63165         * modules/mbsrchr-tests: New file.
63166         * tests/test-mbsrchr.sh: New file.
63167         * tests/test-mbsrchr.c: New file.
63168
63169 2007-02-11  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/mbschr.c (mbschr): Fix bug.
63172
63173         * modules/mbschr-tests: New file.
63174         * tests/test-mbschr.sh: New file.
63175         * tests/test-mbschr.c: New file.
63176         * m4/locale-zh.m4: New file.
63177
63178 2007-02-11  Bruno Haible  <bruno@clisp.org>
63179
63180         Support for copying multibyte string iterators.
63181         * lib/mbiter.h: Include <string.h>.
63182         (mbiter_multi_copy): New function.
63183         (mbi_copy): New macro.
63184         * lib/mbuiter.h: Include <string.h>.
63185         (mbuiter_multi_copy): New function.
63186         (mbui_copy): New macro.
63187
63188 2007-02-11  Bruno Haible  <bruno@clisp.org>
63189
63190         New module mbslen.
63191         * modules/mbslen: New file.
63192         * lib/mbslen.c: New file.
63193         * lib/string_.h (mbslen): New declaration.
63194         * m4/mbslen.m4: New file.
63195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63196         GNULIB_MBSLEN.
63197         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63198         * MODULES.html.sh (Internationalization functions): Add mbslen.
63199
63200 2007-02-11  Bruno Haible  <bruno@clisp.org>
63201
63202         Ensure O(n) worst-case complexity of strcasestr substitute.
63203         * lib/strcasestr.c: Include stdbool.h.
63204         (knuth_morris_pratt): New function.
63205         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63206         bookkeeping indicates that it's worth it.
63207         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63208
63209         * modules/strcasestr-tests: New file.
63210         * tests/test-strcasestr.c: New file.
63211
63212 2007-02-11  Bruno Haible  <bruno@clisp.org>
63213
63214         Ensure O(n) worst-case complexity of c_strcasestr.
63215         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63216         (knuth_morris_pratt): New function.
63217         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63218         the bookkeeping indicates that it's worth it.
63219         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63220
63221         * modules/c-strcasestr-tests: New file.
63222         * tests/test-c-strcasestr.c: New file.
63223
63224 2007-02-11  Bruno Haible  <bruno@clisp.org>
63225
63226         Ensure O(n) worst-case complexity of c_strstr.
63227         * lib/c-strstr.c: Include stdbool.h, string.h.
63228         (knuth_morris_pratt): New function.
63229         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63230         bookkeeping indicates that it's worth it.
63231         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63232
63233         * lib/c-strstr.c: Complete rewrite for maintainability.
63234
63235         * modules/c-strstr-tests: New file.
63236         * tests/test-c-strstr.c: New file.
63237
63238 2007-02-11  Bruno Haible  <bruno@clisp.org>
63239
63240         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63241         5.2.1 and earlier, whereby \055 was treated just like the range
63242         delimiter '-'.
63243         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63244
63245 2007-02-08  Bruno Haible  <bruno@clisp.org>
63246
63247         * modules/regex (Depends-on): Add stdbool.
63248         Reported by Dalibor Topic <robilad@kaffe.org>.
63249
63250 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63253         Prefer returning from main to exiting from it.
63254         Remove unnecessary parens after sizeof.
63255
63256 2007-02-05  Bruno Haible  <bruno@clisp.org>
63257
63258         New module mbssep.
63259         * modules/mbssep: New file.
63260         * lib/mbssep.c: New file.
63261         * lib/string_.h (strsep): Add a conditional link warning.
63262         (mbssep): New declaration.
63263         * m4/mbssep.m4: New file.
63264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63265         GNULIB_MBSSEP.
63266         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63267         * MODULES.html.sh (Internationalization functions): Add mbssep.
63268
63269 2007-02-05  Bruno Haible  <bruno@clisp.org>
63270
63271         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63272         Optimize search in case of 1 delimiter.
63273
63274 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63275
63276         * lib/acl.h: Include sys/types.h before sys/acl.h.
63277
63278 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63279
63280         Merge upstream fix for glibc bugzilla #3957:
63281
63282         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63283
63284         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63285         bit for RE_HAT_LISTS_NOT_NEWLINE.
63286         (build_charclass_op): Remove bogus comment.
63287
63288 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63289
63290         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63291
63292 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63295         * lib/memmem.c [!defined _LIBC]: Include config.h.
63296
63297 2007-02-04  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63300         warning message.
63301
63302 2007-02-04  Bruno Haible  <bruno@clisp.org>
63303
63304         New module mbstok_r.
63305         * modules/mbstok_r: New file.
63306         * lib/mbstok_r.c: New file.
63307         * lib/string_.h (strtok_r): Change argument names to match the
63308         comments. Add a conditional link warning.
63309         (mbstok_r): New declaration.
63310         * m4/mbstok_r.m4: New file.
63311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63312         GNULIB_MBSTOK_R.
63313         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63314         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63315
63316 2007-02-04  Bruno Haible  <bruno@clisp.org>
63317
63318         New module mbsspn.
63319         * modules/mbsspn: New file.
63320         * lib/mbsspn.c: New file.
63321         * lib/string_.h (strspn): Add a conditional link warning.
63322         (mbsspn): New declaration.
63323         * m4/mbsspn.m4: New file.
63324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63325         GNULIB_MBSSPN.
63326         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63327         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63328
63329 2007-02-04  Bruno Haible  <bruno@clisp.org>
63330
63331         New module mbspbrk.
63332         * modules/mbspbrk: New file.
63333         * lib/mbspbrk.c: New file.
63334         * lib/string_.h (strpbrk): Add a conditional link warning.
63335         (mbspbrk): New declaration.
63336         * m4/mbspbrk.m4: New file.
63337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63338         GNULIB_MBSPBRK.
63339         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63340         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63341
63342 2007-02-04  Bruno Haible  <bruno@clisp.org>
63343
63344         New module mbscspn.
63345         * modules/mbscspn: New file.
63346         * lib/mbscspn.c: New file.
63347         * lib/string_.h (strcspn): Add a conditional link warning.
63348         (mbscspn): New declaration.
63349         * m4/mbscspn.m4: New file.
63350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63351         GNULIB_MBSCSPN.
63352         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63353         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63354
63355 2007-02-04  Bruno Haible  <bruno@clisp.org>
63356
63357         New module mbscasestr, reduced goal of strcasestr.
63358         * modules/mbscasestr: New file.
63359         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63360         (mbscasestr): Renamed from strcasestr.
63361         * lib/strcasestr.c: Don't include mbuiter.h.
63362         (strcasestr): Remove support for multibyte locales.
63363         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63364         Change the conditional link warning.
63365         (mbscasestr): New declaration.
63366         * m4/mbscasestr.m4: New file.
63367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63368         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63369         REPLACE_STRCASESTR.
63370         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63372         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63373         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63374         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63375         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63376         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63377         (Depends-on): Remove mbuiter.
63378         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63379
63380 2007-02-04  Bruno Haible  <bruno@clisp.org>
63381
63382         Simplify handling of strncasecmp.
63383         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63384         the conditional link warning.
63385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63386         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63388         * modules/strcase (configure.ac): Don't invoke
63389         gl_STRING_MODULE_INDICATOR.
63390         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63391
63392 2007-02-04  Bruno Haible  <bruno@clisp.org>
63393
63394         New module mbscasecmp, reduced goal of strcasecmp.
63395         * modules/mbscasecmp: New file.
63396         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63397         (mbscasecmp): Renamed from strcasecmp.
63398         * lib/strcasecmp.c: Don't include mbuiter.h.
63399         (strcasecmp): Remove support for multibyte locales.
63400         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63401         Change the conditional link warning.
63402         (mbscasecmp): New declaration.
63403         * m4/mbscasecmp.m4: New file.
63404         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63405         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63406         REPLACE_STRCASECMP.
63407         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63409         GNULIB_MBSCASECMP.
63410         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63411         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63412         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63413         (Depends-on): Remove mbuiter.
63414         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63415
63416 2007-02-04  Bruno Haible  <bruno@clisp.org>
63417
63418         New module mbsstr. Remove module strstr.
63419         * modules/mbsstr: New file.
63420         * modules/strstr: Remove file.
63421         * lib/mbsstr.c: Renamed from lib/strstr.c.
63422         (mbsstr): Renamed from strstr.
63423         * lib/string_.h (strstr): Remove declaration. Change the conditional
63424         link warning.
63425         (mbsstr): New declaration.
63426         * m4/mbsstr.m4: New file.
63427         * m4/strstr.m4: Remove file.
63428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63429         REPLACE_STRSTR.
63430         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63431         Don't initialize GNULIB_STRSTR.
63432         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63433         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63434         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63435         (Support for systems lacking ANSI C 89): Remove strstr.
63436
63437 2007-02-04  Bruno Haible  <bruno@clisp.org>
63438
63439         New module mbsrchr.
63440         * modules/mbsrchr: New file.
63441         * lib/mbsrchr.c: New file.
63442         * lib/string_.h (strrchr): Add a conditional link warning.
63443         (mbsrchr): New declaration.
63444         * m4/mbsrchr.m4: New file.
63445         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63446         GNULIB_MBSRCHR.
63447         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63448         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63449
63450 2007-02-04  Bruno Haible  <bruno@clisp.org>
63451
63452         New module mbschr.
63453         * modules/mbschr: New file.
63454         * lib/mbschr.c: New file.
63455         * lib/string_.h (strchr): Add a conditional link warning.
63456         (mbschr): New declaration.
63457         * m4/mbschr.m4: New file.
63458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63459         GNULIB_MBSCHR.
63460         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63461         * MODULES.html.sh (Internationalization functions): Add mbschr.
63462
63463 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63466
63467         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63468
63469 2007-02-04  Bruno Haible  <bruno@clisp.org>
63470
63471         New module description section 'configure.ac-early'.
63472         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63473         (func_get_autoconf_early_snippet): New function.
63474         (func_import, func_create_testdir): Use it. Remove special cases for
63475         modules 'extensions' and 'lock'.
63476         * modules/extensions (configure.ac-early): Require
63477         gl_USE_SYSTEM_EXTENSIONS.
63478         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63479
63480 2007-02-04  Bruno Haible  <bruno@clisp.org>
63481
63482         Make use of gcj-4.3's -fsource and -ftarget option.
63483         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63484         and if so try the options -fsource and -ftarget.
63485         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63486         source_version, ftarget_option, target_version arguments.
63487         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63488         (is_envjavac_oldgcj_14_14_usable): Renamed from
63489         is_envjavac_gcj_14_14_usable.
63490         (is_envjavac_oldgcj_14_13_usable): Renamed from
63491         is_envjavac_gcj_14_13_usable.
63492         (is_gcj_present): Update.
63493         (is_gcj_43, is_gcj43_usable): New functions.
63494         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63495         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63496         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63497         try the options -fsource and -ftarget.
63498
63499 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63500
63501         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63502         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63503         larger value.
63504
63505 2007-02-03  Jim Meyering  <jim@meyering.net>
63506
63507         Give tools a better chance to allocate space for very large buffers.
63508         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63509
63510         Make pwd and readlink work also when run with an unreadable parent dir
63511         on systems with openat support.
63512         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63513         provided getcwd function, even when we have openat support.
63514         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63515
63516 2007-02-02  Bruno Haible  <bruno@clisp.org>
63517
63518         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63519         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63520         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63521         portability problems if one of these functions is only used on specific
63522         platforms.
63523         Reported by Paul Eggert.
63524
63525 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63528         is causing more trouble than it's curing.
63529         * lib/regex_internal.h (__mempcpy): Remove.
63530         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63531         (and make the code a tad smaller to boot).
63532         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63533
63534 2007-02-02  Jim Meyering  <jim@meyering.net>
63535
63536         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63537         section, not in the Makefile.am: one.
63538
63539 2007-02-02  Eric Blake  <ebb9@byu.net>
63540
63541         * lib/strchrnul.c: Always include config.h first.
63542
63543         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63544         gnulib strstr is not necessary here.
63545
63546 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63547
63548         * m4/socklen.m4: Fix typo.
63549
63550 2007-02-02  Eric Blake  <ebb9@byu.net>
63551
63552         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63553         * modules/netinet_in (Makefile.am): Likewise.
63554
63555 2007-02-01  Bruno Haible  <bruno@clisp.org>
63556
63557         * lib/string_.h (GL_LINK_WARNING): New macro.
63558         (strcasecmp, strstr, strcasestr): If provided by the system,
63559         conditionally define as a macro that leads to a warning instead of to
63560         an error.
63561         (strncasecmp): Conditionally define as a macro that leads to a warning.
63562
63563 2007-02-01  Karl Berry  <karl@gnu.org>
63564
63565         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63566
63567 2007-02-01  Bruno Haible  <bruno@clisp.org>
63568
63569         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63570         renamings.
63571
63572 2007-02-01  Eric Blake  <ebb9@byu.net>
63573
63574         * modules/regex (Depends-on): Revert dependence on mempcpy.
63575         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63576         module's definition of mempcpy.
63577         Reported by Paul Eggert.
63578
63579 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63582         the symbol XYZ before redefining it.  This fixes a problem with
63583         programs that don't use XYZ, when compiled on systems that define
63584         XYZ to something else.
63585
63586 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63587
63588         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63589         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63590         writeable to group or other and (2) is intended to have a special
63591         mode bit that is set or cleared.  In such a case, the directory
63592         should be neither group- nor other-writeable until the special
63593         mode bits are right.
63594
63595 2007-01-31  Eric Blake  <ebb9@byu.net>
63596
63597         * modules/mountlist (Depends-on): Add strstr.
63598
63599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63600         bug.
63601         * modules/string (Makefile.am): Remove redundant replacement.
63602         * modules/regex (Depends-on): Add mempcpy.
63603
63604 2007-01-31  Bruno Haible  <bruno@clisp.org>
63605
63606         New module description field 'Link'.
63607         * gnulib-tool (func_usage): Document --extract-link-directive.
63608         (sed_extract_prog): Recognize 'Link' directive.
63609         (func_get_link_directive): New function.
63610         (func_import): Show summary of link directives.
63611         Handle --extract-link-directive option.
63612         * modules/acl (Link): New section.
63613         * modules/clock-time (Link): New section.
63614         * modules/euidaccess (Link): New section.
63615         * modules/gettext (Link): New section.
63616         * modules/iconv (Link): New section.
63617         * modules/lock (Link): New section.
63618         * modules/nanosleep (Link): New section.
63619         * modules/readline (Link): New section.
63620
63621 2007-01-27  Bruno Haible  <bruno@clisp.org>
63622
63623         Enforce the use of gnulib modules for unportable <string.h> functions.
63624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63625         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63626         (gl_HEADER_STRING_H_BODY): Require it.
63627         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63628         the symbol XYZ to one that gives a link error.
63629         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63630         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63631         * modules/mempcpy (configure.ac): Likewise.
63632         * modules/memrchr (configure.ac): Likewise.
63633         * modules/stpcpy (configure.ac): Likewise.
63634         * modules/stpncpy (configure.ac): Likewise.
63635         * modules/strcase (configure.ac): Likewise.
63636         * modules/strcasestr (configure.ac): Likewise.
63637         * modules/strchrnul (configure.ac): Likewise.
63638         * modules/strdup (configure.ac): Likewise.
63639         * modules/strndup (configure.ac): Likewise.
63640         * modules/strnlen (configure.ac): Likewise.
63641         * modules/strpbrk (configure.ac): Likewise.
63642         * modules/strsep (configure.ac): Likewise.
63643         * modules/strstr (configure.ac): Likewise.
63644         * modules/strtok_r (configure.ac): Likewise.
63645
63646 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63647
63648         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63649
63650 2007-01-30  Jim Meyering  <jim@meyering.net>
63651
63652         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63653
63654 2007-01-29  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63657         * lib/execute.c: Likewise.
63658         * lib/pipe.c: Likewise.
63659         * lib/printf-args.h: Likewise.
63660         * lib/printf-args.c: Likewise.
63661         * lib/printf-parse.c: Likewise.
63662         * lib/vasnprintf.c: Likewise.
63663
63664 2007-01-29  Eric Blake  <ebb9@byu.net>
63665
63666         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63667         declaration.
63668
63669 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * lib/strptime.h (strptime): Use 'restrict' for args where
63672         POSIX requires this.
63673         * lib/strptime.c (strptime): Likewise.
63674         Change license notice from LGPL to GPL, since gnulib-tool will
63675         change this as needed.
63676         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63677         defined.
63678         Include "strptime.h" first, to check interface.
63679         Do not #undef _LIBC and _NL_CURRENT.
63680         Do not include <stdlib.h>; no longer needed.
63681         Include "time_r.h" and declare ptime_locale_status
63682         only if _LIBC is not defined.
63683         (__P): Remove unused macro.
63684         (match_string): Bring back glibc version, but use it only if _LIBC
63685         is defined.
63686         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63687         Remove unnecessary assertion and abort() call.
63688         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63689         * m4/strptime.m4: Fix serial number comment.
63690         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63691         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63692         (Depends-on): Add time_r.
63693
63694 2007-01-29  Bruno Haible  <bruno@clisp.org>
63695
63696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63697         strptime.
63698         * modules/strptime (Depends-on): Add stdbool.
63699         * lib/strptime.h: Include <time.h> always. Add comments.
63700
63701 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63702
63703         * modules/strptime: New file.
63704         * lib/strptime.h: New file.
63705         * lib/strptime.c: New file.
63706         * m4/strptime.m4: New file.
63707
63708 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         * MODULES.html.sh: New module mpsort.
63711         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63712
63713         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63714         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63716         All uses changed.
63717         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63718         All uses changed.
63719         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63720         to _Restrict_.
63721         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63722         the parameter matches the prototype.
63723
63724 2007-01-28  Jim Meyering  <jim@meyering.net>
63725
63726         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63727         sys/time.h here, reverting that part of the previous patch:
63728         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63729
63730 2007-01-28  Bruno Haible  <bruno@clisp.org>
63731
63732         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63733         value of $(SYS_TIME_H).
63734         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63735         remove it conditionally, too. [added by Jim Meyering]
63736         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63738         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63739         GETTIMEOFDAY_REPLACEMENT to 1.
63740
63741 2007-01-28  Bruno Haible  <bruno@clisp.org>
63742
63743         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63744         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63746         Set UNISTD_H instead of UNISTD_H2.
63747         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63748
63749 2007-01-28  Bruno Haible  <bruno@clisp.org>
63750
63751         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63752         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63753
63754 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63755
63756         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63757         (func_create_testdir): Ensure C locale for `grep' and `tr'
63758         character ranges.
63759         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63760         ACLOCAL_AMFLAGS parsing state machine.
63761
63762 2007-01-27  Bruno Haible  <bruno@clisp.org>
63763
63764         * modules/unistr/base: Update.
63765
63766 2007-01-27  Bruno Haible  <bruno@clisp.org>
63767
63768         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63769         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63770         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63771         modules/unistr/u32-mbtouc.
63772         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63773         * lib/unistr.h: Update.
63774         * lib/linebreak.c: Update.
63775         * modules/unistr/u32-mbtouc: Renamed from
63776         modules/unistr/u32-mbtouc-safe.
63777         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63778         * lib/unistr.h: Update.
63779         * lib/unistr/u32-to-u8.c: Update.
63780         * lib/unistr/u32-to-u16.c: Update.
63781
63782 2007-01-27  Bruno Haible  <bruno@clisp.org>
63783
63784         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63785         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63786         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63787         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63788         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63789         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63790         modules/unistr/u16-mbtouc.
63791         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63792         * lib/unistr.h: Update.
63793         * lib/linebreak.c: Update.
63794         * modules/linebreak: Update.
63795         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63796         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63797         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63798         * modules/unistr/u16-mbtouc: Renamed from
63799         modules/unistr/u16-mbtouc-safe.
63800         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63801         * lib/unistr.h: Update.
63802         * lib/unistr/u16-to-u8.c: Update.
63803         * modules/unistr/u16-to-u8: Update.
63804         * lib/unistr/u16-to-u32.c: Update.
63805         * modules/unistr/u16-to-u32: Update.
63806
63807 2007-01-27  Bruno Haible  <bruno@clisp.org>
63808
63809         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63810         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63811         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63812         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63813         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63814         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63815         modules/unistr/u8-mbtouc.
63816         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63817         * lib/unistr.h: Update.
63818         * lib/striconveh.c: Update.
63819         * modules/striconveh: Update.
63820         * lib/linebreak.c: Update.
63821         * modules/linebreak: Update.
63822         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63823         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63824         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63825         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63826         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63827         * lib/unistr.h: Update.
63828         * lib/striconveh.c: Update.
63829         * modules/striconveh: Update.
63830         * lib/unistr/u8-to-u16.c: Update.
63831         * modules/unistr/u8-to-u16: Update.
63832         * lib/unistr/u8-to-u32.c: Update.
63833         * modules/unistr/u8-to-u32: Update.
63834
63835 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63836
63837         Sync from Libtool.
63838         * lib/argz.c: Do not include strings.h nor memory.h, include
63839         string.h unconditionally.  Patch by Simon Josefsson.
63840
63841 2007-01-27  Bruno Haible  <bruno@clisp.org>
63842
63843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63844         from gl_HEADER_STRING_H_BODY.
63845         (gl_HEADER_STRING_H_BODY): Require it.
63846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63847         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63848         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63849         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63851         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63853         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63854         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63855         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63856         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63857         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63858         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63859         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63860         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63861
63862 2007-01-27  Bruno Haible  <bruno@clisp.org>
63863
63864         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63865         check_PROGRAMS into noinst_PROGRAMS.
63866         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63867         check_PROGRAMS in this case.
63868         (func_import): Set for_test to false.
63869         (func_create_testdir): Set for_test to true.
63870
63871 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63872             Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63875         (Depends-on): Add string.
63876         (Includes): Use <string.h> instead of strcasestr.h.
63877         * modules/string (Makefile.am): Also substitute the value of
63878         REPLACE_STRCASESTR.
63879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63880         assume strcasestr is declared in <string.h> not <strings.h>. Also
63881         set REPLACE_STRCASESTR.
63882         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63883         REPLACE_STRCASESTR.
63884         * lib/strcasestr.h: Remove file.
63885         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63886         * lib/string_.h (strcasestr): New declaration.
63887
63888 2007-01-27  Bruno Haible  <bruno@clisp.org>
63889
63890         * lib/string_.h: Use 'extern'.
63891
63892 2007-01-27  Jim Meyering  <jim@meyering.net>
63893
63894         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63895         of set-but-not-used local, "q".
63896
63897         * lib/mempcpy.c: Include <config.h> before <string.h>.
63898         This fixes a compilation error on HP-UX, due to the system's
63899         "restrict"-using mempcpy prototype.
63900
63901 2007-01-26  Bruno Haible  <bruno@clisp.org>
63902
63903         Small optimization.
63904         * lib/javacomp.c: Include c-strstr.h.
63905          (is_envjavac_gcj): Use c_strstr instead of strstr.
63906         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63907
63908 2007-01-26  Bruno Haible  <bruno@clisp.org>
63909
63910         * MODULES.html.sh (Unicode string functions): Add the new modules.
63911
63912         * modules/uniconv/u32-strconv-to-locale: New file.
63913         * lib/uniconv/u32-strconv-to-locale.c: New file.
63914
63915         * modules/uniconv/u16-strconv-to-locale: New file.
63916         * lib/uniconv/u16-strconv-to-locale.c: New file.
63917
63918         * modules/uniconv/u8-strconv-to-locale: New file.
63919         * lib/uniconv/u8-strconv-to-locale.c: New file.
63920
63921         * modules/uniconv/u32-strconv-from-locale: New file.
63922         * lib/uniconv/u32-strconv-from-locale.c: New file.
63923
63924         * modules/uniconv/u16-strconv-from-locale: New file.
63925         * lib/uniconv/u16-strconv-from-locale.c: New file.
63926
63927         * modules/uniconv/u8-strconv-from-locale: New file.
63928         * lib/uniconv/u8-strconv-from-locale.c: New file.
63929
63930         * modules/uniconv/u32-strconv-to-enc: New file.
63931         * lib/uniconv/u32-strconv-to-enc.c: New file.
63932         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63933         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63934
63935         * modules/uniconv/u16-strconv-to-enc: New file.
63936         * lib/uniconv/u16-strconv-to-enc.c: New file.
63937         * lib/uniconv/u-strconv-to-enc.h: New file.
63938         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63939         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63940
63941         * modules/uniconv/u8-strconv-to-enc: New file.
63942         * lib/uniconv/u8-strconv-to-enc.c: New file.
63943         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63944         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63945
63946         * modules/uniconv/u32-strconv-from-enc: New file.
63947         * lib/uniconv/u32-strconv-from-enc.c: New file.
63948         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63949         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63950
63951         * modules/uniconv/u16-strconv-from-enc: New file.
63952         * lib/uniconv/u16-strconv-from-enc.c: New file.
63953         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63954         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63955
63956         * modules/uniconv/u8-strconv-from-enc: New file.
63957         * lib/uniconv/u8-strconv-from-enc.c: New file.
63958         * lib/uniconv/u-strconv-from-enc.h: New file.
63959         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63960         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63961
63962         * modules/uniconv/u32-conv-from-enc: New file.
63963         * lib/uniconv/u32-conv-from-enc.c: New file.
63964         * modules/uniconv/u32-conv-from-enc-tests: New file.
63965         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63966
63967         * modules/uniconv/u16-conv-from-enc: New file.
63968         * lib/uniconv/u16-conv-from-enc.c: New file.
63969         * lib/uniconv/u-conv-from-enc.h: New file.
63970         * modules/uniconv/u16-conv-from-enc-tests: New file.
63971         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63972
63973         * modules/uniconv/u8-conv-from-enc: New file.
63974         * lib/uniconv/u8-conv-from-enc.c: New file.
63975         * modules/uniconv/u8-conv-from-enc-tests: New file.
63976         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63977
63978         * modules/uniconv/base: New file.
63979         * lib/uniconv.h: New file.
63980
63981 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         * doc/gnulib-tool.texi (Initial import): Update to match current
63984         behavior with strdup module.
63985         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63986         * lib/memmem.h: Remove; all uses removed.  This is now done
63987         by <string.h>.
63988         * lib/mempcpy.h: Likewise.
63989         * lib/memrchr.h: Likewise.
63990         * lib/stpcpy.h: Likewise.
63991         * lib/stpncpy.h: Likewise.
63992         * lib/strcase.h: Likewise.
63993         * lib/strchrnul.h: Likewise.
63994         * lib/strdup.h: Likewise.
63995         * lib/strndup.h: Likewise.
63996         * lib/strnlen.h: Likewise.
63997         * lib/strpbrk.h: Likewise.
63998         * lib/strsep.h: Likewise.
63999         * lib/strstr.h: Likewise.
64000         * lib/strtok_r.h: Likewise.
64001         * lib/string_.h: New file.
64002         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64003         Rely on <string.h> instead.
64004         * lib/canon-host.c: Likewise.
64005         * lib/chdir-long.c: Likewise.
64006         * lib/concatpath.c: Likewise.
64007         * lib/exclude.c: Likewise.
64008         * lib/fchdir.c: Likewise.
64009         * lib/getaddrinfo.c: Likewise.
64010         * lib/getcwd.c: Likewise.
64011         * lib/getsubopt.c: Likewise.
64012         * lib/glob.c: Likewise.
64013         * lib/hard-locale.c: Likewise.
64014         * lib/iconvme.c: Likewise.
64015         * lib/javacomp.c: Likewise.
64016         * lib/mempcpy.c: Likewise.
64017         * lib/memrchr.c: Likewise.
64018         * lib/regex_internal.h: Likewise.
64019         * lib/stpncpy.c: Likewise.
64020         * lib/strcasecmp.c: Likewise.
64021         * lib/strchrnul.c: Likewise.
64022         * lib/strdup.c: Likewise.
64023         * lib/striconv.c: Likewise.
64024         * lib/striconveh.c: Likewise.
64025         * lib/striconveha.c: Likewise.
64026         * lib/strncasecmp.c: Likewise.
64027         * lib/strndup.c: Likewise.
64028         * lib/strnlen.c: Likewise.
64029         * lib/strsep.c: Likewise.
64030         * lib/strstr.c: Likewise.
64031         * lib/strtok_r.c: Likewise.
64032         * lib/userspec.c: Likewise.
64033         * lib/w32spawn.h: Likewise.
64034         * lib/xstrndup.c: Likewise.
64035         * lib/mountlist.c (strstr): Remove decl.
64036         * m4/string_h.m4: New file.
64037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64038         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64039         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64040         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64041         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64042         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64043         Set REPLACE_STRCASECMP if necessary.
64044         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64045         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64046         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64047         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64048         HAVE_DECL_STRDUP if necessary.
64049         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64050         since gl_FUNC_STRNDUP does that now.
64051         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64052         Check for decl here...
64053         (gl_PREREQ_STRNLEN): ... not here.
64054         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64055         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64056         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64057         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64058         necessary.
64059         * modules/string: New file.
64060         * modules/memmem (Files): Remove special-purpose include file.
64061         (Depends-on): Add string.
64062         (Include): Include <string.h>, not the removed file.
64063         * modules/mempcpy: Likewise.
64064         * modules/memrchr: Likewise.
64065         * modules/stpcpy: Likewise.
64066         * modules/stpncpy: Likewise.
64067         * modules/strcase: Likewise.
64068         * modules/strchrnul: Likewise.
64069         * modules/strdup: Likewise.
64070         * modules/strndup: Likewise.
64071         * modules/strnlen: Likewise.
64072         * modules/strpbrk: Likewise.
64073         * modules/strsep: Likewise.
64074         * modules/strstr: Likewise.
64075         * modules/strtok_r: Likewise.
64076         * tests/test-dirname.c: Don't include "strdup.h", since
64077         <string.h> now suffices.
64078         * tests/test-memmem.c: Don't include "memmem.h", since
64079         <string.h> now suffices.
64080
64081 2007-01-25  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64084         *resultp is 0.
64085
64086         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64087         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64088         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64089         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64090
64091         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64092         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64093         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64094         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64095         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64096         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64097
64098 2007-01-24  Bruno Haible  <bruno@clisp.org>
64099
64100         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64102         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64103         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64104         gl_FUNC_FTS_CORE.
64105         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64106         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64107         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64108         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64109         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64110         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64111         gl_FUNC_FCHOWNAT.
64112         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64113         gl_FUNC_STRFTIME.
64114         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64115         Reported by Ralf Wildenhues.
64116
64117 2007-01-24  Bruno Haible  <bruno@clisp.org>
64118
64119         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64120         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64121         gl_GETADDRINFO.
64122         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64123         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64124         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64125
64126 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64129         Don't use 'exit'; just return from 'main'.
64130         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64131
64132         * lib/fnmatch_.h: Readjust white space and comments to match
64133         glibc, to avoid spurious diffs.
64134
64135 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64138         2004-12-01 change by Jakub Jelinek, since this code won't compile
64139         if !LIBC.  Problem reported by Bob Proulx.
64140
64141 2007-01-23  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/striconveh.c: Include c-strcaseeq.h.
64144         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64145         * modules/striconveh (Depends-on): Add c-strcaseeq.
64146
64147 2007-01-23  Bruno Haible  <bruno@clisp.org>
64148
64149         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64150
64151         * modules/c-strcaseeq: New file.
64152         * lib/c-strcaseeq.h: New file.
64153
64154         * modules/streq: New file.
64155         * lib/streq.h: New file.
64156
64157 2007-01-23  Bruno Haible  <bruno@clisp.org>
64158
64159         * modules/striconveha-tests: New file.
64160         * tests/test-striconveha.c: New file.
64161
64162         * lib/striconveha.h: Include <stdbool.h>.
64163         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64164         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64165         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64166         (mem_iconveha): New function.
64167         (str_iconveha_notranslit): Renamed from str_iconveha.
64168         (str_iconveha): New function.
64169         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64170         c-strcase.
64171
64172 2007-01-23  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64175         encodings without forgiving before trying any encoding with handler.
64176         (str_iconveha): Try all encodings without forgiving before trying any
64177         encoding with handler.
64178
64179 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         Import the following changes from libc.
64182
64183         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64184
64185         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64186
64187         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64188
64189         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64190         normal_bracket label.
64191
64192         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64193
64194         [BZ #361]
64195         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64196         to normal_bracket after fetching the next character.
64197
64198 2007-01-22  Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64201         argument.
64202         * lib/striconveh.c (iconv_carefully_1): New function.
64203         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64204         argument.
64205         (str_cd_iconveh): Update.
64206         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64207         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64208         * tests/test-striconveh.c (MAGIC): New macro.
64209         (new_offsets): New function.
64210         (main): Test call with and without offsets.
64211
64212 2007-01-22  Bruno Haible  <bruno@clisp.org>
64213
64214         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64215         * modules/sys_select (Makefile.am): Likewise.
64216         * modules/sys_socket (Makefile.am): Likewise.
64217         * modules/sys_time (Makefile.am): Likewise.
64218
64219 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         * modules/gettimeofday (License): Change from GPL to LGPL, since
64222         gettimeofday is a library function.
64223
64224 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64225
64226         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64227
64228 2007-01-21  Bruno Haible  <bruno@clisp.org>
64229
64230         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64231
64232 2007-01-21  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/striconveha: New file.
64235         * lib/striconveha.h: New file.
64236         * lib/striconveha.c: New file.
64237         * MODULES.html.sh (Internationalization functions): Add striconveha.
64238         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64239         string.
64240         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64241
64242 2007-01-21  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64245         * lib/striconveh.c (str_iconveh): Likewise.
64246
64247 2007-01-21  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/striconveh.h (mem_iconveh): New declaration.
64250         * lib/striconveh.c (mem_iconveh): New function.
64251         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64252
64253 2007-01-21  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64256
64257         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64258         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64259         original result buffer.
64260         (str_cd_iconveh): Update.
64261         * tests/test-striconveh.c (main): Update.
64262
64263         * lib/striconv.h (mem_cd_iconv): Change specification.
64264         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64265         result buffer.
64266         (str_cd_iconv): Update.
64267         * tests/test-striconv.c (main): Update.
64268
64269 2007-01-21  Bruno Haible  <bruno@clisp.org>
64270
64271         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64272
64273 2007-01-20  Jim Meyering  <jim@meyering.net>
64274
64275         * lib/userspec.c (parse_with_separator): If a user or group string
64276         starts with "+", skip the corresponding name-to-ID look-up, since
64277         such a look-up must fail: user and group names may not include "+".
64278
64279 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64280
64281         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64282         since we now assume the sys_time module.
64283         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64284         check for sys/time.h; no longer needed.
64285         * modules/poll (Depends-on): Depend on sys_time.
64286
64287 2007-01-18  Bruno Haible  <bruno@clisp.org>
64288
64289         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64291
64292         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64293         gettimeofday.
64294
64295         * tests/test-gettimeofday.c: Include <time.h>.
64296         (dummy): Remove variable.
64297
64298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64299         gl_HEADER_SYS_TIME_H.
64300         (gl_HEADER_SYS_TIME_H): New macro.
64301
64302         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64303         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64305         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64306         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64308         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64309         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64310         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64311         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64312         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64313
64314         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64315         last change; it caused a compilation error when cross-compiling to
64316         Cygwin.
64317
64318 2007-01-18  Jim Meyering  <jim@meyering.net>
64319
64320         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64321         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64322         than the race-prone "test -d sys || mkdir sys".
64323         (configure.ac): Use AC_PROG_MKDIR_P.
64324         * modules/sys_select: Likewise.
64325         * modules/sys_socket: Likewise.
64326         * modules/sys_time: Likewise.
64327
64328 2007-01-18  Eric Blake  <ebb9@byu.net>
64329
64330         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64331         replace gettimeofday.
64332         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64333         name, to avoid infinite recursion.
64334
64335 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64338         module sys_time.
64339         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64340         assume timespec.h defines struct timeval.
64341         * lib/settime.c: Likewise.
64342         * lib/utimens.c: Likewise.
64343         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64344         since we now assume the gettimeofday module.
64345         * lib/tempname.c (__gen_tempname): Likewise.
64346         * lib/gettimeofday.h: Remove.
64347         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64348         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64349         Include <time.h>, for 'time()'.
64350         (localtime_buffer_addr): Also use this workaround if
64351         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64352         to simplify the uses.  All uses changed.
64353         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64354         that #undef is inside {}, and 'const' follows type name consistently.
64355         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64356         (gettimeofday): Do not use the maximum possible value for
64357         tv->tv_usec, since that might break usages other than ls.c.
64358         Instead, we'll leave ls.c alone.  This undoes today's patch
64359         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64360         we've never observed the problem but might as well keep the
64361         canary.
64362         * lib/nanosleep.c: Include timespec.h first, for interface check.
64363         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64364         now assume the sys_time module.
64365         * lib/tempname.c: Likewise.
64366         * lib/timespec.h: Likewise.
64367         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64368         needed.
64369         * lib/strftime.c: Likewise.
64370         * lib/timespec.h: Likewise.
64371         * lib/posixtm.c: Include posixtm.h first, for interface check.
64372         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64373         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64374         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64375         * lib/sys_time_.h: New file.
64376         * lib/timespec.h (struct timespec): Use long int, not long.
64377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64378         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64379         Remove obsolescent call to AC_HEADER_TIME.
64380         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64382         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64383         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64384         Likewise.
64385         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64386         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64388         into the sys_time module.  Check for gettimeofday just once.
64389         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64390         for gettimeofday signature to just check the signature.  Merely
64391         compile it, since linking doesn't test signature.  Improve test for
64392         whether gettimeofday.o is actually needed.
64393         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64394         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64395         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64396         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64397         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64398         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64399         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64400         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64401         than worrying about sys/time.h.
64402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64403         Don't bother worrying about TIME_WITH_SYS_TIME.
64404         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64405         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64406         * m4/sys_time_h.m4: New file.
64407         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64408         Don't include sys/time.h.  Return from main rather than exiting.
64409         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64410         all uses changed.
64411         * modules/gethrxtime (Depends-on): Add sys_time.
64412         * modules/gettime (Depends-on): Likewise.
64413         * modules/gettimeofday (Depends-on): Likewise.
64414         * modules/nanosleep (Depends-on): Likewise.
64415         * modules/settime (Depends-on): Likewise.
64416         * modules/tempname (Depends-on): Likewise.
64417         * modules/utimens (Depends-on): Likewise.
64418         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64419         (Include): Change back to <sys/time.h>.
64420         (Maintainer): Add self.
64421         * modules/sys_time: New file.
64422         * modules/tempname (Depends-on): Add gettimeofday.
64423         * tests/test-gettimeofday.c: Include <sys/time.h>
64424         rather than gettimeofday.h.
64425
64426 2007-01-17  Bruno Haible  <bruno@clisp.org>
64427
64428         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64429         the license default to GPL.
64430         (func_create_testdir): Don't complain if a module is LGPL and its
64431         tests module depends on GPLed modules.
64432
64433 2007-01-17  Bruno Haible  <bruno@clisp.org>
64434
64435         * lib/gettimeofday.c (gettimeofday): Add code for the case
64436         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64437         maximum possible value for tv->tv_usec, rather than the minimum one.
64438
64439 2005-10-08  Martin Lambers  <marlam@marlam.de>
64440 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64441 2007-01-16  Bruno Haible  <bruno@clisp.org>
64442
64443         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64444         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64445         gl_FUNC_GETTIMEOFDAY.
64446         (Include): Add gettimeofday.h.
64447         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64448         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64449         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64450         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64451         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64452         * lib/gettimeofday.h: New file.
64453         * lib/gettimeofday.c: Include <sys/timeb.h>.
64454         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64455         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64456         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64457         fall back on time().
64458
64459         * tests/test-gettimeofday.c: New file.
64460         * modules/gettimeofday-tests: New file.
64461
64462 2007-01-16  Eric Blake  <ebb9@byu.net>
64463
64464         * modules/fnmatch (Depends-on): Depend on wchar.
64465         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64466         * m4/fnmatch.m4: Likewise.
64467         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64468         * m4/mbchar.m4: Likewise.
64469         * modules/mbswidth (Depends-on): Depend on wchar.
64470         * lib/mbswidth.c: Assume <wchar.h>.
64471         * m4/mbswidth.m4: Likewise.
64472         * modules/quotearg (Depends-on): Depend on wchar.
64473         * lib/quotearg.c: Assume <wchar.h>.
64474         * m4/quotearg.m4: Likewise.
64475         * modules/regex (Depends-on): Depend on wchar.
64476         * lib/regex_internal.h: Assume <wchar.h>.
64477         * m4/regex.m4: Likewise.
64478         * modules/stdint (Depends-on): Depend on wchar.
64479         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64480         * m4/stdint.m4: Likewise.
64481         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64482         * modules/strftime (Depends-on): Depend on wchar.
64483         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64484         * modules/strtol (Depends-on): Depend on wchar.
64485         * lib/strtol.c: Assume <wchar.h>.
64486         * modules/wcwidth (Depends-on): Depend on wchar.
64487         * lib/wcwidth.h: Assume <wchar.h>.
64488         * m4/wcwidth.m4: Likewise.
64489
64490 2007-01-16  Bruno Haible  <bruno@clisp.org>
64491
64492         * modules/csharpexec-script: New, created from...
64493         * modules/csharpexec: ... this.
64494
64495 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64496
64497         * modules/javaexec-script: New, created from...
64498         * modules/javaexec: ... this.
64499
64500 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64501
64502         * modules/poll (Dependencies): Add sys_select.
64503
64504 2007-01-15  Jim Meyering  <jim@meyering.net>
64505
64506         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64507         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64508         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64509         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64510
64511 2007-01-15  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/striconveh: New file.
64514         * lib/striconveh.h: New file.
64515         * lib/striconveh.c: New file.
64516         * MODULES.html.sh (Internationalization functions): Add striconveh.
64517
64518         * modules/striconveh-tests: New file.
64519         * tests/test-striconveh.c: New file.
64520
64521 2007-01-15  Bruno Haible  <bruno@clisp.org>
64522
64523         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64524         not from GNU libiconv or GNU libc.
64525
64526 2007-01-15  Bruno Haible  <bruno@clisp.org>
64527
64528         * doc/gnulib-intro.texi (Copyright): Explain the different license
64529         terms for module descriptions, autoconf macros, tests, documentation.
64530
64531 2007-01-14  Bruno Haible  <bruno@clisp.org>
64532
64533         * modules/striconv-tests: New file.
64534         * tests/test-striconv.c: New file.
64535
64536 2007-01-14  Bruno Haible  <bruno@clisp.org>
64537
64538         * modules/iconv-tests: New file.
64539         * tests/test-iconv.c: New file.
64540
64541 2007-01-14  Bruno Haible  <bruno@clisp.org>
64542
64543         * gnulib-tool (func_get_license): For test modules, use the license of
64544         the main module.
64545
64546 2007-01-14  Bruno Haible  <bruno@clisp.org>
64547
64548         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64549         if iconv is found to exist.
64550
64551 2007-01-14  Bruno Haible  <bruno@clisp.org>
64552
64553         * modules/c-ctype-tests: New file.
64554         * tests/test-c-ctype.c: New file.
64555
64556 2007-01-14  Bruno Haible  <bruno@clisp.org>
64557
64558         * modules/binary-io-tests: New file.
64559         * tests/test-binary-io.sh: New file.
64560         * tests/test-binary-io.c: New file.
64561
64562 2007-01-14  Bruno Haible  <bruno@clisp.org>
64563
64564         * modules/array-oset-tests: New file.
64565         * tests/test-array_oset.c: New file.
64566
64567 2007-01-14  Bruno Haible  <bruno@clisp.org>
64568
64569         * modules/array-list-tests: New file.
64570         * tests/test-array_list.c: New file.
64571
64572 2007-01-14  Bruno Haible  <bruno@clisp.org>
64573
64574         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64575         and make.
64576         Reported by Simon Josefsson in
64577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64578
64579 2007-01-14  Bruno Haible  <bruno@clisp.org>
64580
64581         * modules/allocsa-tests: New file.
64582         * tests/test-allocsa.c: New file.
64583
64584 2007-01-14  Bruno Haible  <bruno@clisp.org>
64585
64586         * modules/fchdir (Depends-on): Add absolute-header.
64587         * modules/unistd (Depends-on): Likewise.
64588
64589 2006-12-30  Bruno Haible  <bruno@clisp.org>
64590
64591         * modules/fchdir: New file.
64592         * modules/unistd (Files): Add lib/unistd_.h.
64593         (Makefile.am): Generate unistd.h from unistd_.h.
64594         * lib/fchdir.c: New file.
64595         * lib/dirent_.h: New file.
64596         * lib/unistd_.h: New file.
64597         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64598         * m4/fchdir.m4: New file.
64599         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64600         (gl_HEADER_UNISTD): Invoke it.
64601         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64602         function.
64603         * lib/backupfile.c (opendir, closedir): Undefine.
64604         * lib/chown.c (open, close): Undefine.
64605         * lib/clean-temp.c (open, close): Undefine.
64606         * lib/copy-file.c (open, close): Undefine.
64607         * lib/execute.c (open, close): Undefine.
64608         * lib/fsusage.c (open, close): Undefine.
64609         * lib/gc-gnulib.c (open, close): Undefine.
64610         * lib/getcwd.c (opendir, closedir): Undefine.
64611         * lib/glob.c (opendir, closedir): Undefine.
64612         * lib/javacomp.c (open, close): Undefine.
64613         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64614         * lib/openat-proc.c (open, close): Undefine.
64615         * lib/pagealign_alloc.c (open, close): Undefine.
64616         * lib/pipe.c (open, close): Undefine.
64617         * lib/progreloc.c (open, close): Undefine.
64618         * lib/savedir.c (opendir, closedir): Undefine.
64619         * lib/utime.c (open, close): Undefine.
64620         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64621
64622 2007-01-10  Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64625
64626 2007-01-12  Eric Blake  <ebb9@byu.net>
64627
64628         Provide a robust <wchar.h>.  Further simplifications are now
64629         possible in other modules, but not included here.
64630         * modules/wchar: New module.
64631         * m4/wchar.m4: New file.
64632         * lib/wchar_.h: Likewise.
64633         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64634         of the new module.
64635         * MODULES.html.sh (Extended multibyte and wide character utilities):
64636         New section.
64637
64638 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64641         to a reasonable default for memory allocation.
64642         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64643         file system that reports garbage st_size values for symlinks.
64644         Problem reported by Liyang Hu.
64645
64646 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64647
64648         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64649         Emacs .#* auto-save files).
64650
64651 2007-01-11  Bruno Haible  <bruno@clisp.org>
64652
64653         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64654         directory.
64655
64656 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         Use @...@ consistently in lib/wctype_.h.
64659         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64660         on it being set to 1 or 0.
64661         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64662         go back to AC_SUBSTing it.
64663         * modules/wctype (Makefile.am): Undo previous change.
64664
64665 2007-01-10  Eric Blake  <ebb9@byu.net>
64666
64667         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64668         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64669         * modules/wctype (Makefile.am): Likewise.
64670         Reported by Chris McGuire.
64671
64672 2007-01-10  Jim Meyering  <jim@meyering.net>
64673
64674         fts.c: a small readability/maintainability improvement
64675         * lib/fts.c (fts_read): Make this code slightly more readable and
64676         maintainable by hoisting the "sp->fts_cur = p" assignments to
64677         immediately follow the statements that set P.  Derived from
64678         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64679
64680 2007-01-10  Eric Blake  <ebb9@byu.net>
64681
64682         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64683         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64685         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64686         Reported by Chris McGuire.
64687
64688 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64689
64690         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64691         in sed script.
64692
64693 2007-01-09  Bruno Haible  <bruno@clisp.org>
64694
64695         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64696         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64697         variables.
64698         (func_module): Use them.
64699
64700 2007-01-09  Bruno Haible  <bruno@clisp.org>
64701
64702         * modules/unistr/base: New file.
64703         * lib/unistr.h: New file.
64704
64705         * modules/unistr/u8-to-u16: New file.
64706         * lib/unistr/u8-to-u16.c: New file.
64707
64708         * modules/unistr/u8-to-u32: New file.
64709         * lib/unistr/u8-to-u32.c: New file.
64710
64711         * modules/unistr/u16-to-u8: New file.
64712         * lib/unistr/u16-to-u8.c: New file.
64713
64714         * modules/unistr/u16-to-u32: New file.
64715         * lib/unistr/u16-to-u32.c: New file.
64716
64717         * modules/unistr/u32-to-u8: New file.
64718         * lib/unistr/u32-to-u8.c: New file.
64719
64720         * modules/unistr/u32-to-u16: New file.
64721         * lib/unistr/u32-to-u16.c: New file.
64722
64723         * modules/unistr/u8-check: New file.
64724         * modules/unistr/u16-check: New file.
64725         * modules/unistr/u32-check: New file.
64726         * lib/unistr/u8-check.c: New file.
64727         * lib/unistr/u16-check.c: New file.
64728         * lib/unistr/u32-check.c: New file.
64729
64730         * modules/unistr/u8-chr: New file.
64731         * modules/unistr/u16-chr: New file.
64732         * modules/unistr/u32-chr: New file.
64733         * lib/unistr/u8-chr.c: New file.
64734         * lib/unistr/u16-chr.c: New file.
64735         * lib/unistr/u32-chr.c: New file.
64736
64737         * modules/unistr/u8-cmp: New file.
64738         * modules/unistr/u16-cmp: New file.
64739         * modules/unistr/u32-cmp: New file.
64740         * lib/unistr/u8-cmp.c: New file.
64741         * lib/unistr/u16-cmp.c: New file.
64742         * lib/unistr/u32-cmp.c: New file.
64743
64744         * modules/unistr/u8-cpy: New file.
64745         * modules/unistr/u16-cpy: New file.
64746         * modules/unistr/u32-cpy: New file.
64747         * lib/unistr/u8-cpy.c: New file.
64748         * lib/unistr/u16-cpy.c: New file.
64749         * lib/unistr/u32-cpy.c: New file.
64750         * lib/unistr/u-cpy.h: New file.
64751
64752         * modules/unistr/u8-cpy-alloc: New file.
64753         * modules/unistr/u16-cpy-alloc: New file.
64754         * modules/unistr/u32-cpy-alloc: New file.
64755         * lib/unistr/u8-cpy-alloc.c: New file.
64756         * lib/unistr/u16-cpy-alloc.c: New file.
64757         * lib/unistr/u32-cpy-alloc.c: New file.
64758         * lib/unistr/u-cpy-alloc.h: New file.
64759
64760         * modules/unistr/u8-endswith: New file.
64761         * modules/unistr/u16-endswith: New file.
64762         * modules/unistr/u32-endswith: New file.
64763         * lib/unistr/u8-endswith.c: New file.
64764         * lib/unistr/u16-endswith.c: New file.
64765         * lib/unistr/u32-endswith.c: New file.
64766         * lib/unistr/u-endswith.h: New file.
64767
64768         * modules/unistr/u8-mblen: New file.
64769         * modules/unistr/u16-mblen: New file.
64770         * modules/unistr/u32-mblen: New file.
64771         * lib/unistr/u8-mblen.c: New file.
64772         * lib/unistr/u16-mblen.c: New file.
64773         * lib/unistr/u32-mblen.c: New file.
64774
64775         * modules/unistr/u8-mbtouc: New file.
64776         * modules/unistr/u16-mbtouc: New file.
64777         * modules/unistr/u32-mbtouc: New file.
64778         * lib/unistr/u8-mbtouc.c: New file.
64779         * lib/unistr/u16-mbtouc.c: New file.
64780         * lib/unistr/u32-mbtouc.c: New file.
64781
64782         * modules/unistr/u8-mbtouc-safe: New file.
64783         * modules/unistr/u16-mbtouc-safe: New file.
64784         * modules/unistr/u32-mbtouc-safe: New file.
64785         * lib/unistr/u8-mbtouc-safe.c: New file.
64786         * lib/unistr/u16-mbtouc-safe.c: New file.
64787         * lib/unistr/u32-mbtouc-safe.c: New file.
64788
64789         * modules/unistr/u8-move: New file.
64790         * modules/unistr/u16-move: New file.
64791         * modules/unistr/u32-move: New file.
64792         * lib/unistr/u8-move.c: New file.
64793         * lib/unistr/u16-move.c: New file.
64794         * lib/unistr/u32-move.c: New file.
64795         * lib/unistr/u-move.h: New file.
64796
64797         * modules/unistr/u8-next: New file.
64798         * modules/unistr/u16-next: New file.
64799         * modules/unistr/u32-next: New file.
64800         * lib/unistr/u8-next.c: New file.
64801         * lib/unistr/u16-next.c: New file.
64802         * lib/unistr/u32-next.c: New file.
64803
64804         * modules/unistr/u8-prev: New file.
64805         * modules/unistr/u16-prev: New file.
64806         * modules/unistr/u32-prev: New file.
64807         * lib/unistr/u8-prev.c: New file.
64808         * lib/unistr/u16-prev.c: New file.
64809         * lib/unistr/u32-prev.c: New file.
64810
64811         * modules/unistr/u8-set: New file.
64812         * modules/unistr/u16-set: New file.
64813         * modules/unistr/u32-set: New file.
64814         * lib/unistr/u8-set.c: New file.
64815         * lib/unistr/u16-set.c: New file.
64816         * lib/unistr/u32-set.c: New file.
64817         * lib/unistr/u-set.h: New file.
64818
64819         * modules/unistr/u8-startswith: New file.
64820         * modules/unistr/u16-startswith: New file.
64821         * modules/unistr/u32-startswith: New file.
64822         * lib/unistr/u8-startswith.c: New file.
64823         * lib/unistr/u16-startswith.c: New file.
64824         * lib/unistr/u32-startswith.c: New file.
64825         * lib/unistr/u-startswith.h: New file.
64826
64827         * modules/unistr/u8-stpcpy: New file.
64828         * modules/unistr/u16-stpcpy: New file.
64829         * modules/unistr/u32-stpcpy: New file.
64830         * lib/unistr/u8-stpcpy.c: New file.
64831         * lib/unistr/u16-stpcpy.c: New file.
64832         * lib/unistr/u32-stpcpy.c: New file.
64833         * lib/unistr/u-stpcpy.h: New file.
64834
64835         * modules/unistr/u8-stpncpy: New file.
64836         * modules/unistr/u16-stpncpy: New file.
64837         * modules/unistr/u32-stpncpy: New file.
64838         * lib/unistr/u8-stpncpy.c: New file.
64839         * lib/unistr/u16-stpncpy.c: New file.
64840         * lib/unistr/u32-stpncpy.c: New file.
64841         * lib/unistr/u-stpncpy.h: New file.
64842
64843         * modules/unistr/u8-strcat: New file.
64844         * modules/unistr/u16-strcat: New file.
64845         * modules/unistr/u32-strcat: New file.
64846         * lib/unistr/u8-strcat.c: New file.
64847         * lib/unistr/u16-strcat.c: New file.
64848         * lib/unistr/u32-strcat.c: New file.
64849         * lib/unistr/u-strcat.h: New file.
64850
64851         * modules/unistr/u8-strchr: New file.
64852         * modules/unistr/u16-strchr: New file.
64853         * modules/unistr/u32-strchr: New file.
64854         * lib/unistr/u8-strchr.c: New file.
64855         * lib/unistr/u16-strchr.c: New file.
64856         * lib/unistr/u32-strchr.c: New file.
64857
64858         * modules/unistr/u8-strcmp: New file.
64859         * modules/unistr/u16-strcmp: New file.
64860         * modules/unistr/u32-strcmp: New file.
64861         * lib/unistr/u8-strcmp.c: New file.
64862         * lib/unistr/u16-strcmp.c: New file.
64863         * lib/unistr/u32-strcmp.c: New file.
64864
64865         * modules/unistr/u8-strcpy: New file.
64866         * modules/unistr/u16-strcpy: New file.
64867         * modules/unistr/u32-strcpy: New file.
64868         * lib/unistr/u8-strcpy.c: New file.
64869         * lib/unistr/u16-strcpy.c: New file.
64870         * lib/unistr/u32-strcpy.c: New file.
64871         * lib/unistr/u-strcpy.h: New file.
64872
64873         * modules/unistr/u8-strcspn: New file.
64874         * modules/unistr/u16-strcspn: New file.
64875         * modules/unistr/u32-strcspn: New file.
64876         * lib/unistr/u8-strcspn.c: New file.
64877         * lib/unistr/u16-strcspn.c: New file.
64878         * lib/unistr/u32-strcspn.c: New file.
64879         * lib/unistr/u-strcspn.h: New file.
64880
64881         * modules/unistr/u8-strdup: New file.
64882         * modules/unistr/u16-strdup: New file.
64883         * modules/unistr/u32-strdup: New file.
64884         * lib/unistr/u8-strdup.c: New file.
64885         * lib/unistr/u16-strdup.c: New file.
64886         * lib/unistr/u32-strdup.c: New file.
64887         * lib/unistr/u-strdup.h: New file.
64888
64889         * modules/unistr/u8-strlen: New file.
64890         * modules/unistr/u16-strlen: New file.
64891         * modules/unistr/u32-strlen: New file.
64892         * lib/unistr/u8-strlen.c: New file.
64893         * lib/unistr/u16-strlen.c: New file.
64894         * lib/unistr/u32-strlen.c: New file.
64895         * lib/unistr/u-strlen.h: New file.
64896
64897         * modules/unistr/u8-strmblen: New file.
64898         * modules/unistr/u16-strmblen: New file.
64899         * modules/unistr/u32-strmblen: New file.
64900         * lib/unistr/u8-strmblen.c: New file.
64901         * lib/unistr/u16-strmblen.c: New file.
64902         * lib/unistr/u32-strmblen.c: New file.
64903
64904         * modules/unistr/u8-strmbtouc: New file.
64905         * modules/unistr/u16-strmbtouc: New file.
64906         * modules/unistr/u32-strmbtouc: New file.
64907         * lib/unistr/u8-strmbtouc.c: New file.
64908         * lib/unistr/u16-strmbtouc.c: New file.
64909         * lib/unistr/u32-strmbtouc.c: New file.
64910
64911         * modules/unistr/u8-strncat: New file.
64912         * modules/unistr/u16-strncat: New file.
64913         * modules/unistr/u32-strncat: New file.
64914         * lib/unistr/u8-strncat.c: New file.
64915         * lib/unistr/u16-strncat.c: New file.
64916         * lib/unistr/u32-strncat.c: New file.
64917         * lib/unistr/u-strncat.h: New file.
64918
64919         * modules/unistr/u8-strncmp: New file.
64920         * modules/unistr/u16-strncmp: New file.
64921         * modules/unistr/u32-strncmp: New file.
64922         * lib/unistr/u8-strncmp.c: New file.
64923         * lib/unistr/u16-strncmp.c: New file.
64924         * lib/unistr/u32-strncmp.c: New file.
64925
64926         * modules/unistr/u8-strncpy: New file.
64927         * modules/unistr/u16-strncpy: New file.
64928         * modules/unistr/u32-strncpy: New file.
64929         * lib/unistr/u8-strncpy.c: New file.
64930         * lib/unistr/u16-strncpy.c: New file.
64931         * lib/unistr/u32-strncpy.c: New file.
64932         * lib/unistr/u-strncpy.h: New file.
64933
64934         * modules/unistr/u8-strnlen: New file.
64935         * modules/unistr/u16-strnlen: New file.
64936         * modules/unistr/u32-strnlen: New file.
64937         * lib/unistr/u8-strnlen.c: New file.
64938         * lib/unistr/u16-strnlen.c: New file.
64939         * lib/unistr/u32-strnlen.c: New file.
64940         * lib/unistr/u-strnlen.h: New file.
64941
64942         * modules/unistr/u8-strpbrk: New file.
64943         * modules/unistr/u16-strpbrk: New file.
64944         * modules/unistr/u32-strpbrk: New file.
64945         * lib/unistr/u8-strpbrk.c: New file.
64946         * lib/unistr/u16-strpbrk.c: New file.
64947         * lib/unistr/u32-strpbrk.c: New file.
64948         * lib/unistr/u-strpbrk.h: New file.
64949
64950         * modules/unistr/u8-strrchr: New file.
64951         * modules/unistr/u16-strrchr: New file.
64952         * modules/unistr/u32-strrchr: New file.
64953         * lib/unistr/u8-strrchr.c: New file.
64954         * lib/unistr/u16-strrchr.c: New file.
64955         * lib/unistr/u32-strrchr.c: New file.
64956
64957         * modules/unistr/u8-strspn: New file.
64958         * modules/unistr/u16-strspn: New file.
64959         * modules/unistr/u32-strspn: New file.
64960         * lib/unistr/u8-strspn.c: New file.
64961         * lib/unistr/u16-strspn.c: New file.
64962         * lib/unistr/u32-strspn.c: New file.
64963         * lib/unistr/u-strspn.h: New file.
64964
64965         * modules/unistr/u8-strstr: New file.
64966         * modules/unistr/u16-strstr: New file.
64967         * modules/unistr/u32-strstr: New file.
64968         * lib/unistr/u8-strstr.c: New file.
64969         * lib/unistr/u16-strstr.c: New file.
64970         * lib/unistr/u32-strstr.c: New file.
64971         * lib/unistr/u-strstr.h: New file.
64972
64973         * modules/unistr/u8-strtok: New file.
64974         * modules/unistr/u16-strtok: New file.
64975         * modules/unistr/u32-strtok: New file.
64976         * lib/unistr/u8-strtok.c: New file.
64977         * lib/unistr/u16-strtok.c: New file.
64978         * lib/unistr/u32-strtok.c: New file.
64979         * lib/unistr/u-strtok.h: New file.
64980
64981         * modules/unistr/u8-uctomb: New file.
64982         * modules/unistr/u16-uctomb: New file.
64983         * modules/unistr/u32-uctomb: New file.
64984         * lib/unistr/u8-uctomb.c: New file.
64985         * lib/unistr/u16-uctomb.c: New file.
64986         * lib/unistr/u32-uctomb.c: New file.
64987
64988         * MODULES.html.sh (Unicode string functions): Add the new modules.
64989
64990 2007-01-08  Bruno Haible  <bruno@clisp.org>
64991
64992         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64993         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64994         subdirectories.
64995
64996 2007-01-08  Karl Berry  <karl@gnu.org>
64997
64998         * doc/error.texi: mention that main() fns must set program_name
64999         when progname is used.
65000
65001 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65004         WCTYPE_H is empty, for the benefit of builds from non-distclean
65005         directories.  Problem reported by Eric Blake in
65006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65007
65008 2007-01-08  Bruno Haible  <bruno@clisp.org>
65009
65010         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65011         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65012         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65013         PROVIDE_CANONICALIZE_FILENAME_MODE.
65014         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65015
65016 2007-01-08  Bruno Haible  <bruno@clisp.org>
65017
65018         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65019         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65020         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65021         * lib/fts.c: Likewise.
65022         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65023
65024 2006-12-25  Bruno Haible  <bruno@clisp.org>
65025
65026         * modules/utf8-ucs4-safe: New file.
65027         * lib/utf8-ucs4-safe.h: New file.
65028         * lib/unistr/utf8-ucs4-safe.c: New file.
65029
65030         * modules/utf16-ucs4-safe: New file.
65031         * lib/utf16-ucs4-safe.h: New file.
65032         * lib/unistr/utf16-ucs4-safe.c: New file.
65033
65034         * MODULES.html.sh (Unicode string functions): Add the new modules.
65035
65036 2007-01-08  Bruno Haible  <bruno@clisp.org>
65037
65038         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65039         (Depends-on): Add unitypes.
65040         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65041         (u8_mbtouc_aux): Move out to separate file.
65042         (u8_mbtouc): Use ucs4_t, uint8_t types.
65043         * lib/unistr/utf8-ucs4.c: New file.
65044
65045         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65046         (Depends-on): Add unitypes.
65047         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65048         (u16_mbtouc_aux): Move out to separate file.
65049         (u16_mbtouc): Use ucs4_t, uint16_t types.
65050         * lib/unistr/utf16-ucs4.c: New file.
65051
65052         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65053         (Depends-on): Add unitypes.
65054         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65055         (u8_uctomb_aux): Move out to separate file.
65056         (u8_uctomb): Use ucs4_t, uint8_t types.
65057         * lib/unistr/ucs4-utf8.c: New file.
65058
65059         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65060         (Depends-on): Add unitypes.
65061         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65062         (u16_uctomb_aux): Move out to separate file.
65063         (u16_uctomb): Use ucs4_t, uint16_t types.
65064         * lib/unistr/ucs4-utf16.c: New file.
65065
65066 2006-12-25  Bruno Haible  <bruno@clisp.org>
65067
65068         * modules/unitypes: New file.
65069         * lib/unitypes.h: New file.
65070         * MODULES.html.sh (func_all_modules): New section "Unicode string
65071         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65072         this section. Add unitypes.
65073
65074 2007-01-08  Bruno Haible  <bruno@clisp.org>
65075
65076         Avoid variable names that conflict with those from libtool.
65077         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65078         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65079         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65080         library_names_spec to acl_library_names_spec, hardcode_* to
65081         acl_hardcode_*.
65082         Reported by Ralf Wildenhues.
65083
65084 2007-01-08  Bruno Haible  <bruno@clisp.org>
65085
65086         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65087         definition.
65088         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65089         definition.
65090         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65091         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65092         definition.
65093         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65094         definition.
65095         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65096         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65097         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65098         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65099         definition.
65100         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65101         definition.
65102         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65103         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65104         GC_USE_<algorithm>.
65105         * lib/gc-libgcrypt.c: Likewise.
65106         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65107         * modules/gc-arctwo (configure.ac): Likewise.
65108         * modules/gc-des (configure.ac): Likewise.
65109         * modules/gc-hmac-md5 (configure.ac): Likewise.
65110         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65111         * modules/gc-md2 (configure.ac): Likewise.
65112         * modules/gc-md4 (configure.ac): Likewise.
65113         * modules/gc-md5 (configure.ac): Likewise.
65114         * modules/gc-random (configure.ac): Likewise.
65115         * modules/gc-rijndael (configure.ac): Likewise.
65116         * modules/gc-sha1 (configure.ac): Likewise.
65117
65118 2007-01-08  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65121         macro definition.
65122         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65123         definition.
65124         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65125         definition.
65126         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65127         * modules/fcntl-safer (configure.ac): Likewise.
65128         * modules/fopen-safer (configure.ac): Likewise.
65129         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65130         GNULIB_FWRITEERROR macro definition.
65131
65132 2007-01-08  Bruno Haible  <bruno@clisp.org>
65133
65134         * m4/gnulib-common.m4: New file.
65135         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65136         (func_get_filelist): Add m4/gnulib-common.m4.
65137
65138 2007-01-08  Bruno Haible  <bruno@clisp.org>
65139
65140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65141         command.
65142
65143 2007-01-08  Jim Meyering  <jim@meyering.net>
65144
65145         Use a more robust test for a "can't happen" condition.
65146         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65147         narrowed the st_size value.  Presuming the "can't happen" condition
65148         is true, that narrowing could conceivably convert an invalid st_size
65149         value into a valid one.  Instead, use a change based on Matthew
65150         Woehlke's original patch.
65151
65152         Slight readability improvement: use an assert-like macro
65153         in place of literal "abort ()" uses.
65154         * lib/fts.c (fts_assert): Define.
65155         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65156         Use this macro instead of a bare 'abort'.
65157
65158 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65161         simply work around them.
65162         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65163         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65164         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65165         declaring.
65166         Don't bother to define as macros, since the standard doesn't require it.
65167         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65168         longer worry about IRIX 5.3.
65169         (HAVE_WCTYPE_CTMP_BUG): Remove.
65170
65171 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65174         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65175         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65176         Problems reported by Georg Schwarz for IRIX 5.3.
65177
65178         * gnulib-tool (autoconf_minversion): Take the maximum version number
65179         found, not the minimum.  Problem reported by James Youngman.
65180
65181 2007-01-03  Karl Berry  <karl@gnu.org>
65182
65183         * doc/error.texi: new file, explaining interaction with progname.
65184         * doc/gnulib.texi: include it.  Update copyright.
65185
65186 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65187
65188         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65189         AC_CANONICAL_HOST, to improve autobuild outputs.
65190
65191 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65192             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65193
65194         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65195         sockets, server sockets, and other file descriptors.  Count errors
65196         to compute the return value.  Reorder the code a bit to be easier
65197         to follow.  Don't set event bits that were not requested (except
65198         POLLERR and POLLHUP).
65199
65200 2007-01-01  Bruno Haible  <bruno@clisp.org>
65201
65202         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65203
65204 2007-01-03  Jim Meyering  <jim@meyering.net>
65205
65206         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65207
65208 2007-01-02  Bruno Haible  <bruno@clisp.org>
65209
65210         * modules/settime (Include): Require timespec.h.
65211         * modules/nanosleep (Include): Likewise.
65212
65213 2007-01-01  Bruno Haible  <bruno@clisp.org>
65214
65215         * gnulib-tool (func_emit_copyright_notice): Bump year.
65216         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65217
65218 2007-01-01  Bruno Haible  <bruno@clisp.org>
65219
65220         Improve support for OpenBSD.
65221         * build-aux/config.rpath (libname_spec): Export.
65222         (library_names_spec): New variable. Export.
65223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65224         library_names_spec from the config.rpath output. Locate shared library
65225         through the name pattern in library_names_spec.
65226
65227 2007-01-01  Eric Blake  <ebb9@byu.net>
65228
65229         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65230
65231 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65234         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65235         assume the C locale, and avoid an "eval" that could cause trouble.
65236         Problem with SORT reported by Bob Proulx.
65237
65238         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65239         Define.  Trivial patch from Henning Nielsen Lund, originally
65240         sent to bug-grep@gnu.org today.
65241
65242 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65245         struct stat.  Problem reported by Henning Nielsen Lund.
65246         * lib/acl.c: Include acl.h first, to check interface.  Don't
65247         bother to include sys/types.h and sys/stat.h again.
65248
65249 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         Import the following change from libc; problem reported by
65252         Sven Verdoolaege.
65253
65254         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65255
65256         [BZ #1373]
65257         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65258
65259 2006-12-28  Jim Meyering  <jim@meyering.net>
65260
65261         * build-aux/announce-gen: Do not assume that the package
65262         builds any of tar.gz, tar.bz2, and .xdelta files.
65263         Suggestion from Simon Josefsson.
65264
65265 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65266
65267         * modules/announce-gen: New file.
65268
65269 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65272         handles its gotchas now.
65273         * lib/mbswidth.c: Likewise.
65274         * lib/wcwidth.h: Likewise.
65275         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65276         and iswcntrl; the wctype module does this stuff now.
65277         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65279         * modules/mbchar (Depends-on): Add wctype.
65280         * modules/mbswidth (Depends-on): Likewise.
65281         * modules/wcwidth (Depends-on): Likewise.
65282
65283 2006-12-27  Eric Blake  <ebb9@byu.net>
65284
65285         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65286         module uses more than what <wctype.h> is required to provide.
65287
65288 2006-12-26  Eric Blake  <ebb9@byu.net>
65289
65290         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65291
65292 2006-12-26  Eric Blake  <ebb9@byu.net>
65293
65294         * modules/absolute-header: New module.
65295         * modules/fcntl (Depends-on): Depend on it.
65296         * modules/inttypes (Depends-on): Likewise.
65297         * modules/stdint (Depends-on): Likewise.
65298         * modules/sys_stat (Depends-on): Likewise.
65299         * modules/wctype (Depends-on): Likewise.
65300         * MODULES.html.sh (Support for building libraries and
65301         executables): Document it.
65302
65303 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * gnulib-tool (SED): Remove, undoing previous change.
65306         The problem was that it broke coreutils on Solaris, because
65307         "sed --posix" leaked into a makefile.
65308         (sed): New alias, if 'alias' and GNU sed.
65309
65310 2006-12-24  Jim Meyering  <jim@meyering.net>
65311
65312         Work around an fchownat bug in glibc-2.4:
65313         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65314         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65315         in spite of the -P option.
65316         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65317         New macros.
65318         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65319         * modules/openat (Files): Add lib/fchownat.c.
65320         * lib/openat.c (fchownat): Don't define here.  Move to...
65321         * lib/fchownat.c: ...this new file.
65322
65323 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         Fix bug reported by Bruno Haible in
65326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65327         where quotearg.c didn't compile on Mac OS X 10.2 because it
65328         lacks <wchar.h> and wint_t.
65329         * lib/wctype_.h (__wctype_wint_t): New type.
65330         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65331         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65332         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65333         Arg is now of type __wctype_wint_t, not wint_t.
65334         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65335         substitute HAVE_WINT_T.
65336         * modules/wctype (Files): Add m4/wint_t.m4.
65337         (wctype.h): Substitute HAVE_WINT_T.
65338
65339 2006-12-23  Bruno Haible  <bruno@clisp.org>
65340
65341         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65342
65343 2006-12-23  Bruno Haible  <bruno@clisp.org>
65344
65345         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65346         S_ISLNK.
65347         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65348         mingw.
65349
65350 2006-12-22  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/copy-file.c: Include acl.h.
65353         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65354         Close the file descriptors only after being done with copy_acl.
65355         * modules/copy-file (Depends-on): Add acl.
65356
65357 2006-12-22  Bruno Haible  <bruno@clisp.org>
65358
65359         * gnulib-tool (SED): New variable.
65360         Use $SED instead of sed everywhere.
65361
65362 2006-12-22  Bruno Haible  <bruno@clisp.org>
65363
65364         * modules/no-c++: New file.
65365         * m4/no-c++.m4: New file.
65366         * MODULES.html.sh (Support for building libraries and executables):
65367         Add no-c++.
65368
65369 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65372         Include <limits.h>, and use its INT_MAX to rewrite the
65373         j loop so that it does not overflow 'int'.  Problem reported by
65374         Ralf Wildenhues in
65375         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65376         Play it safe by shifting left by 1 rather than multiplying by 2,
65377         as GCC is less likely to optimize this away when the value
65378         is signed (when it assumes overflow leads to undefined behavior).
65379         Also, don't assume time_t uses two's complement.
65380
65381 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65382
65383         * MODULES.html.sh: New module wctype.
65384         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65385         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65386         <wctype.h>, since the new wctype module should fix this.
65387         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65388         the wctype module should arrange for it.
65389         * lib/regex_internal.h: Likewise.
65390         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65391         since the wctype module should handle this now.
65392         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65393         * modules/fnmatch (Depends-on): Add wctype.
65394         * modules/quotearg (Depends-on): Likewise.
65395         * modules/regex (Depends-on): Likewise.
65396
65397 2006-12-19  Bruno Haible  <bruno@clisp.org>
65398
65399         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65400         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65401
65402 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65403
65404         * modules/savewd (Depends-on): Fix dependency on fcntl.
65405
65406 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65409         conforms to C99, rather than relying on the user's environment
65410         setting of STDINT_H.
65411
65412 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65413         and Eric Blake  <ebb9@byu.net>
65414
65415         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65416         This is more consistent with the other defines here.
65417         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65418         Port to z/OS.  Problem reported by Paul Gilmartin.
65419         Change local vars to use gl_ prefix rather than ac_.
65420         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65421         with other defines.
65422         * modules/double-slash-root: New module.
65423         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65424         (Depends-on): Add double-slash-root.
65425         * MODULES.html.sh (File system functions): Mention new module.
65426
65427 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65428
65429         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65430         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65431         This is for the benefit of gzip, which doesn't do i18n.
65432
65433 2006-12-12  Jim Meyering  <jim@meyering.net>
65434
65435         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65436         Reported by Andreas Schwab <schwab@suse.de>.
65437
65438 2006-12-12  Bruno Haible  <bruno@clisp.org>
65439
65440         Merge these changes.
65441         2006-09-05  Bruno Haible  <bruno@clisp.org>
65442         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65443         iconv_alloc succeeded.
65444         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65445         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65446         test for " && dest " at the end - dest is always != NULL there. Call
65447         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65448         with 2xNULL arguments, also to flush the state storage. Handle the
65449         IRIX iconv behaviour. Realloc the final result, to throw away unused
65450         memory.
65451
65452 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65455         and fchmodat unconditionally, since glibc 2.4 has them.
65456         Problem reported by Arkadiusz Miskiewicz.
65457
65458 2006-12-10  Bruno Haible  <bruno@clisp.org>
65459
65460         * gnulib-tool (func_import): Show the include files only for those
65461         modules that are copied and specified.
65462         Reported by Karl Berry.
65463
65464 2006-12-08  Jim Meyering  <jim@meyering.net>
65465
65466         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65467         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65468
65469         * build-aux/announce-gen: Add two new options, both optional:
65470         --bootstrap-tools=TOOL_LIST
65471               a comma-separated list of tools, e.g.,
65472               autoconf,automake,bison,gnulib
65473         --gnulib-snapshot-date=DATE
65474               if gnulib is in the bootstrap tool list,
65475               then report this as the snapshot date.
65476               If not specified, use the current date/time.
65477               If you specify a date here, be sure it's UTC.
65478
65479 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65480
65481         * tests/test-argp-2.sh: Fix test to match actual output.
65482         (func_compare): Fix sed script to be portable.
65483
65484 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65485
65486         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65487         workaround for this case.  It is not autoconfigured now; offhand
65488         it's hard to see how to autoconfigure it.
65489
65490 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65491
65492         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65493         a directory that is about to be chowned.  Such a directory's
65494         initial file permissions should permit the owner only and this
65495         should not be changed until after the chown, since the group and
65496         other bits would be incorrect if they granted permission before
65497         the chown.
65498
65499         Fix porting problem for iswctype reported by Georg Schwarz in:
65500         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65501         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65502         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65503         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65504         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65505
65506 2006-12-03  Jim Meyering  <jim@meyering.net>
65507
65508         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65509         p->fts_statp may not yet be defined.
65510         (fts_read): Instead, set it in the caller, once p->fts_statp is
65511         sure to be defined, and corresponds to a top-level directory.
65512         This bug made du -x fail.  Here's the coreutils test case:
65513         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65514         Reported by Mike Frysinger.
65515
65516 2006-12-01  Jim Meyering  <jim@meyering.net>
65517
65518         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65519         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65520         Reported by Simon Josefsson.
65521
65522 2006-11-30  Jim Meyering  <jim@meyering.net>
65523
65524         * m4/warning.m4: Use the all-permissive copyright notice
65525         recommended by RMS (rather than LGPL).
65526         * m4/vararrays.m4: Likewise.
65527         * m4/flexmember.m4: Likewise.
65528
65529 2006-11-29  Bruno Haible  <bruno@clisp.org>
65530
65531         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65532         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65533         using +=.
65534         Reported by Simon Josefsson <simon@josefsson.org>.
65535
65536 2006-11-28  James Youngman <jay@gnu.org>
65537
65538         * README: Advise users that they might find the bug-gnulib@gnu.org
65539         and autotools-announce@gnu.org mailing lists useful.
65540
65541 2006-11-28  Bruno Haible  <bruno@clisp.org>
65542
65543         * m4/ptrdiff_max.m4: Remove file.
65544
65545 2006-11-21  Bruno Haible  <bruno@clisp.org>
65546
65547         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65548         _AC_COMPUTE_INT.
65549         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65550         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65551         _AC_COMPUTE_INT.
65552         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65553         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65554         _AC_COMPUTE_INT.
65555         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65556
65557 2006-11-28  Jim Meyering  <jim@meyering.net>
65558
65559         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65560         warning from "gcc -Wshadow" about shadowing the builtin.
65561
65562 2006-11-27  Bruno Haible  <bruno@clisp.org>
65563
65564         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65565         _AC_COMPUTE_INT.
65566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65567
65568 2006-11-27  Bruno Haible  <bruno@clisp.org>
65569             Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65572
65573 2006-11-26  Bruno Haible  <bruno@clisp.org>
65574
65575         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65576         noinst_LTLIBRARIES.
65577
65578 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65579             Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65582         if compiling with "gcc -ansi".
65583
65584 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         Fix some incompatibilities with gcc -ansi -pedantic.
65587         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65588         if compiling pedantically with GCC, unless it's C99 or later.
65589         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65590         it mishandles gcc -ansi -pedantic as well.
65591         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65592         if gcc -pedantic.
65593         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65594         initializers for struct if -pedantic, unless it's C99 or later.
65595
65596 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65597
65598         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65599         Don't close an fd more than once. Identical atimes indicate
65600         success, not failure.
65601
65602 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65603
65604         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65605
65606 2006-11-23  Jim Meyering  <jim@meyering.net>
65607
65608         * build-aux/announce-gen: New file.  From coreutils.
65609
65610 2006-11-22  Jim Meyering  <jim@meyering.net>
65611
65612         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65613         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65614         (fts_read): Use a temporary to narrow the overused st_size member
65615         before using it in a switch statement.  Reported by Matthew Woehlke.
65616
65617         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65618         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65619
65620 2006-11-20  Bruno Haible  <bruno@clisp.org>
65621
65622         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65623         changequote instead of pairs of brackets.
65624         Reported by Andreas Schwab <schwab@suse.de>.
65625
65626 2006-11-21  Jim Meyering  <jim@meyering.net>
65627
65628         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65629         so as to remain compatible with older compilers.
65630         Patch from Michael Deutschmann.
65631
65632 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65633
65634         * MODULES.html.sh (File system functions): Add openat.
65635
65636         * lib/openat.h (rpl_fstatat): New macro, if
65637         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65638         (fstatat): Define to rpl_fstatat under the same conditions,
65639         unless COMPILING_FSTATAT.
65640         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65641         seems to have the bug.
65642         * lib/fstatat.c: New file.
65643         * modules/openat (Files): Add it.
65644
65645 2006-11-20  Bruno Haible  <bruno@clisp.org>
65646
65647         * Makefile: New file.
65648
65649 2006-11-20  Jim Meyering  <jim@meyering.net>
65650
65651         The beginnings of syntax-related checks for gnulib.
65652         * lib/Makefile: New file.
65653         * lib/t-idcache: New script.  Ensure that the two halves of
65654         idcache.c stay in sync.
65655
65656         * lib/idcache.c: Adjust comments in user- and group- portions to
65657         be more accurate, and to be consistent with one another.
65658
65659 2006-11-20  Jim Meyering  <jim@meyering.net>
65660
65661         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65662         continue using the flexible array member (thus, this module performs
65663         half as many malloc calls), with the addition that...
65664         (getgroup, getuser): Consistently record a non-match via an empty
65665         "name" string, and map an empty string match to a NULL return value.
65666         * modules/idcache (Depends-on): Re-add flexmember.
65667
65668         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65669         (getuidbyname, getgroup, getgidbyname): Likewise.
65670
65671         Use cleaner syntax: NULL rather than 0.
65672         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65673
65674 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65677         It mishandled the case where the group was missing.
65678         Problem reported by Greg Schafer.
65679         * modules/idcache: Likewise.
65680
65681 2006-11-18  Jim Meyering  <jim@meyering.net>
65682
65683         * check-module (%exempt_header): Add exception for some
65684         conditionally-included headers.
65685
65686         * modules/i-ring (Depends-on): Add verify.
65687         (License): Change to LGPL.
65688
65689 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65692         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65693         and inttostr.h.  Use snprintf rather than uinttostr, so that
65694         LGPLed code doesn't depend on GPLed.
65695
65696 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * modules/inline (License): Change from GPL to LGPL.
65699
65700 2006-11-17  Jim Meyering  <jim@meyering.net>
65701
65702         * modules/d-type (License): Switch to LGPL.
65703
65704 2006-11-15  Bruno Haible  <bruno@clisp.org>
65705
65706         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65707
65708 2006-11-15  Eric Blake  <ebb9@byu.net>
65709
65710         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65711         the module dependency.
65712
65713 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65714             Bruno Haible  <bruno@clisp.org>
65715
65716         * gnulib-tool (func_create_testdir): Add license consistency check.
65717
65718 2006-11-15  Eric Blake  <ebb9@byu.net>
65719
65720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65721         random "(cached)" in configure output.
65722
65723 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65724
65725         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65726         test for conforming inttypes.h is both announced and cached.
65727
65728         * MODULES.html.sh (seen_modules, seen_files): New variables.
65729         (func_module): Rewrite to use a few less gnulib-tool and sed
65730         invocations.  Avoid a couple of quadratic algorithms for ...
65731         (missed_modules, missed_files): ... these, with ...
65732         (func_append, func_tmpdir): ... these new functions, from
65733         gnulib-tool.  Analogously, install traps for cleanup.
65734
65735         * tests/test-gc.c (main): Remove unused variables.
65736         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65737
65738 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         * modules/inttostr (License): Change to LGPL.
65741
65742 2006-11-14  Eric Blake  <ebb9@byu.net>
65743
65744         * modules/tempname (License): Change to LGPL.
65745
65746 2006-11-14  Eric Blake  <ebb9@byu.net>
65747
65748         * doc/functions.texi (Function Portability): *printf functions on
65749         Cygwin now understand all POSIX size specifiers.
65750
65751 2006-11-14  Bruno Haible  <bruno@clisp.org>
65752
65753         * modules/c-ctype (License): Change to LGPL.
65754
65755 2006-11-12  Bruno Haible  <bruno@clisp.org>
65756
65757         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65758         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65759         for GNOME libraries, for which the include files are installed in
65760         subdirectories of $prefix/include.
65761
65762 2006-11-12  Bruno Haible  <bruno@clisp.org>
65763
65764         * m4/lib-link.m4: Require at least autoconf-2.54.
65765         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65766         name to underscores for the --with option.
65767
65768 2006-11-13  Bruno Haible  <bruno@clisp.org>
65769
65770         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65771         the tests directory.
65772         Reported by Ralf Wildenhues.
65773
65774 2006-11-13  Bruno Haible  <bruno@clisp.org>
65775
65776         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65777         (func_emit_initmacro_end): Undo the override here.
65778         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65779         Works around the famous automake error in coreutils.
65780
65781 2006-11-13  Eric Blake  <ebb9@byu.net>
65782
65783         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65784         element, not its node.
65785
65786 2006-11-12  Bruno Haible  <bruno@clisp.org>
65787
65788         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65789         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65790
65791 2006-11-12  Bruno Haible  <bruno@clisp.org>
65792
65793         * gnulib-tool: New option --local-symlink.
65794         (func_usage): Document it.
65795         (lsymbolic): New variable.
65796         (func_import, func_create_testdir): If --symlink was not specified,
65797         test whether --local-symlink was specified and the file comes from
65798         the local_gnulib_dir.
65799
65800 2006-11-12  Bruno Haible  <bruno@clisp.org>
65801
65802         * gnulib-tool (func_ln): New function.
65803         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65804
65805 2006-11-12  Bruno Haible  <bruno@clisp.org>
65806
65807         Finish support for source files in subdirectories.
65808         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65809         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65810         AUTOMAKE_OPTIONS.
65811         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65812
65813 2006-11-12  Bruno Haible  <bruno@clisp.org>
65814
65815         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65816         EXTRA_lib_SOURCES augmentation.
65817         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65818
65819 2006-11-12  Jim Meyering  <jim@meyering.net>
65820
65821         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65822         file descriptors.  This also averts a failure on systems with
65823         native openat support when a traversed directory lacks "x" access.
65824         * lib/fts_.h: Include "i-ring.h"
65825         (struct FTS) [fts_fd_ring]: New member.
65826         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65827         (FCHDIR): Add parentheses.
65828         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65829         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65830         When descending, rather than simply closing the previous
65831         fts_cwd_fd value, push that file descriptor onto the ring.
65832         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65833         (fts_open): Initialize the new fd_ring member.
65834         (fts_close): Clear the ring.
65835         (fts_safe_changedir): When possible, use our new fd_ring to skip
65836         the diropen and fstat and dev/ino comparison that would normally
65837         accompany a virtual `chdir ("..")'.
65838
65839         * modules/fts (Depends-on): Add i-ring.
65840         * modules/i-ring: New module.
65841         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65842         * m4/i-ring.m4: New file.
65843
65844 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65845
65846         * gnulib-tool (func_create_testdir): Fix replacement of
65847         `build-aux' in configure.ac.  Run autotools in gltests
65848         subdirectory.
65849         (func_create_testdir, func_create_megatestdir, test): There is
65850         no need for '--force' in most autotool invocations in a new
65851         tree.  Actually fail the whole test if any of the tools, or the
65852         configure or make stages fail.
65853
65854         Sync from Automake.
65855         * build-aux/gnupload: Revert last change.  Add pointer to upload
65856         instructions of the GNU Maintenance Instructions.
65857         Suggestion by Karl Berry.
65858
65859 2006-11-10  Jim Meyering  <jim@meyering.net>
65860
65861         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65862
65863 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65864
65865         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65866         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65867         (bind_textdomain_codeset) [! ENABLE_NLS]:
65868         Evaluate all the arguments.  That way, callers get compatible behavior
65869         if the arguments have side effects.  Also, it avoids some GCC
65870         diagnostics in some cases; Joel E. Denny reported problems when Bison
65871         was configured with --enable-gcc-warnigs.
65872
65873 2006-11-10  Jim Meyering  <jim@meyering.net>
65874
65875         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65876         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65877         account.
65878
65879 2006-11-10  Jim Meyering  <jim@meyering.net>
65880
65881         * modules/inline: New file/module.
65882         * modules/xalloc (Files): Remove m4/inline.m4.
65883         (Depends-on): Add inline, instead.
65884         * modules/oset: Likewise.
65885         * modules/list: Likewise.
65886
65887 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65890         Problem reported by Matthew Woehlke.
65891
65892 2006-11-09  Bruno Haible  <bruno@clisp.org>
65893
65894         * lib/tempname.c (gen_tempname): Remove variant that invokes
65895         __gen_tempname.
65896         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65897         __gen_tempname.
65898
65899 2006-11-08  Bruno Haible  <bruno@clisp.org>
65900
65901         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65902         to 'yes' instead of 'cross-compiling'.
65903
65904 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65905
65906         * lib/quotearg.h (quotearg_free): New decl.
65907         * lib/quotearg.c (quotearg_free): New function.
65908         (slot0, nslots, slotvec0, slotvec):
65909         Now file-scope so that quotearg_free can get at them.
65910
65911 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65912
65913         Sync from Automake.
65914         * build-aux/gnupload: Add missing 'gnu' to example URL.
65915         Report by Karl Berry.
65916
65917 2006-11-08  Bruno Haible  <bruno@clisp.org>
65918
65919         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65920         Suggested by Paul Eggert.
65921
65922 2006-11-08  Jim Meyering  <jim@meyering.net>
65923
65924         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65925         It's already included if !_LIBC.
65926         (fts_safe_changedir): Add a comment.
65927
65928 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65931         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65932         Matthew Woehlke.
65933
65934         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65935         definitions up, to avoid colliding with change below.
65936         (static_inline) [HAVE_INLINE]: New macro.
65937         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65938         Provide extern decls when !HAVE_INLINE.  Do not define unless
65939         static_inline is defined, either by us or by xmalloc.c.  Use
65940         static_inline rather than static inline.
65941         (XCALLOC): Optimize sizeof(T) = 1 case.
65942         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65943
65944 2006-11-07  Bruno Haible  <bruno@clisp.org>
65945
65946         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65947         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65948         AC_C_INLINE.
65949         * modules/xalloc (Files): Add m4/inline.m4.
65950
65951 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65952
65953         * README: Fix typo.
65954         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65955         (Miscellanous Notes): ...from this.
65956
65957 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65960         Mention that offsetof should be used instead of sizeof.
65961         From Bruno Haible.
65962
65963 2006-11-07  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65966
65967 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65970         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65971         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65972         (gl_tree_add_before, gl_tree_add_after):
65973         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65974         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65975         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65976         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65977         (gl_linked_add_after, gl_linked_add_at): Likewise.
65978         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65979         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65980         (gl_tree_add_before, gl_tree_add_after): Likewise.
65981         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65982         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65983         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65984
65985 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65986
65987         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65988
65989 2006-11-06  Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/inline.m4: New file.
65992         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65993         * modules/list (Files): Add m4/inline.m4.
65994         * modules/oset (Files): Likewise.
65995
65996 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * lib/idcache.c: Include <stddef.h>, for offsetof.
65999         (struct userid.name): Change from char * to a flexible array member.
66000         All uses changed.
66001         * modules/idcache (Depends-on): Add flexmember.
66002
66003         * MODULES.html.sh (Core language properties): New module flexmember.
66004         * modules/flexmember, m4/flexmember.m4: New files.
66005
66006         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66007         inline functions that are identical with the old xnmalloc_inline,
66008         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66009         that we can avoid some unnecessary integer multiplications and
66010         divisions in the common case where the element size is known at
66011         compile time.
66012         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66013         needed.
66014         (xnboundedmalloc): Remove.
66015         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66016         arguments, for consistency with rest of this header.
66017         (xcharalloc): Rewrite using XNMALLOC.
66018         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66019         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66020         versions have been moved to lib/xalloc.h and renamed to be the
66021         non-*_inline versions.
66022         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66023         and xnrealloc functions, since those functions are now inline and
66024         now call us.
66025         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66026         renaming described above.
66027         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66028         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66029         captures the dependency in AC_C_INLINE.
66030
66031         New module canonicalize-lgpl, proposed by Charles Wilson in
66032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66033         with a few small changes afterwards.
66034         * MODULES.html.sh (File system functions): New module
66035         canonicalize-lgpl.
66036         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66037         and canonicalize_file_name.
66038         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66039         * modules/canonicalize-lgpl: New files.
66040
66041 2006-11-05  Bruno Haible  <bruno@clisp.org>
66042
66043         * gnulib-tool (func_import, func_create_testdir): Create directories
66044         also for files in subdirectories of lib/.
66045
66046 2006-11-05  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66049         ANSI C compliant.
66050
66051 2006-11-03  Bruno Haible  <bruno@clisp.org>
66052
66053         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66054         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66055         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66056         (xnboundedmalloc): New inline function.
66057         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66058         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66059         xmalloc.
66060         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66061         xmalloc.
66062         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66063         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66064         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66065         xmalloc.
66066         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66067         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66068         xmalloc.
66069         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66070         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66071         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66072         xmalloc.
66073         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66074         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66075         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66076         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66077         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66078         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66079         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66080
66081 2006-11-03  Bruno Haible  <bruno@clisp.org>
66082
66083         * lib/c-ctype.h [C++]: Define functions without name mangling.
66084         * lib/fwriteerror.h [C++]: Likewise.
66085         * lib/gcd.h [C++]: Likewise.
66086         * lib/linebreak.h [C++]: Likewise.
66087
66088 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66091         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66092         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66093         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66094         Check for functions and headers just once.
66095         Check for declaration of canonicalize_file_name.
66096         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66097
66098 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66099
66100         * gnulib-tool (func_import): Fix typo in actioncmd.
66101
66102 2006-11-02  Bruno Haible  <bruno@clisp.org>
66103
66104         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66105         newline sequence in the Makefile.am snippet as a space, like "make"
66106         does.
66107         Reported by Roger Persson <perrog@gmail.com>.
66108
66109 2006-11-01  Bruno Haible  <bruno@clisp.org>
66110
66111         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66112         already declared in <string.h>.
66113         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66114
66115 2006-11-01  Bruno Haible  <bruno@clisp.org>
66116
66117         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66118         * lib/strcase.h: Include <string.h>.
66119         (strcasecmp): Define to rpl_strcasecmp here.
66120
66121 2006-11-01  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66124
66125 2006-11-01  Eric Blake  <ebb9@byu.net>
66126
66127         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66128
66129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66130
66131 2006-10-29  Bruno Haible  <bruno@clisp.org>
66132
66133         Make it compile in C++ mode.
66134         * lib/full-write.c (full_rw): Add a cast.
66135
66136 2006-11-01  Bruno Haible  <bruno@clisp.org>
66137
66138         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66139         be POSIX compliant.
66140         Reported by Roger Persson <perrog@gmail.com>.
66141
66142 2006-11-01  Eric Blake  <ebb9@byu.net>
66143
66144         * lib/getopt_.h: Fix comments.
66145
66146 2006-10-31  Eric Blake  <ebb9@byu.net>
66147
66148         * modules/tmpdir (Depends-on): Add sys_stat.
66149         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66150         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66151         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66152         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66153         tempname.
66154
66155 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         Avoid some C++ diagnostics reported by Bruno Haible.
66158         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66159         xmalloc.
66160         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66161         (struct slotvec): Move to top level.
66162         (quotearg_n_options): Rewrite to avoid xmalloc.
66163         * lib/xalloc.h (xcharalloc): New function.
66164         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66165         [defined __cplusplus]: Add function template that provides result
66166         type propagation.  This part of the change is from Bruno Haible.
66167
66168 2006-10-29  Bruno Haible  <bruno@clisp.org>
66169
66170         Make it compile in C++ mode.
66171         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66172         * lib/strnlen1.c (strnlen1): Cast memchr result.
66173         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66174         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66175         (create_temp_dir): Rename local variable 'template'.
66176         (compile_csharp_using_sscli): Add cast.
66177         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66178         * lib/findprog.c (find_in_path): Likewise.
66179         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66180         * lib/wait-process.c (register_slave_subprocess): Likewise.
66181
66182 2006-10-22  Bruno Haible  <bruno@clisp.org>
66183
66184         * modules/tsearch: New file.
66185         * lib/tsearch.h: New file.
66186         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66187         * m4/tsearch.m4: New file.
66188         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66189
66190 2006-10-29  Eric Blake  <ebb9@byu.net>
66191
66192         * lib/arcfour.c: Assume config.h.
66193         * lib/arctwo.c: Likewise.
66194         * lib/base64.c: Likewise.
66195         * lib/check-version.c: Likewise.
66196         * lib/crc.c: Likewise.
66197         * lib/des.c: Likewise.
66198         * lib/gc-gnulib.c: Likewise.
66199         * lib/gc-libgcrypt.c: Likewise.
66200         * lib/gc-pbkdf2-sha1.c: Likewise.
66201         * lib/getaddrinfo.c: Likewise.
66202         * lib/getdelim.c: Likewise.
66203         * lib/getline.c: Likewise.
66204         * lib/hmac-md5.c: Likewise.
66205         * lib/hmac-sha1.c: Likewise.
66206         * lib/iconvme.c: Likewise.
66207         * lib/md2.c: Likewise.
66208         * lib/md4.c: Likewise.
66209         * lib/memxor.c: Likewise.
66210         * lib/read-file.c: Likewise.
66211         * lib/readline.c: Likewise.
66212         * lib/rijndael-alg-fst.c: Likewise.
66213         * lib/rijndael-api-fst.c: Likewise.
66214         * lib/xgetdomainname.c: Likewise.
66215
66216 2006-10-28  Eric Blake  <ebb9@byu.net>
66217
66218         * lib/xstrndup.c: Assume config.h.
66219
66220 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66221
66222         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66223         stat-macros.h is now for our own macros, whereas stat_h is for
66224         macros in the <sys/stat.h> name space.
66225         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66226         (STAT_MACROS_H): Remove.
66227         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66228         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66229         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66230         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66231         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66232         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66233         Move these macros to ...
66234         * lib/stat_.h: here.  Don't include stat-macros.h.
66235         * lib/canonicalize.c: Don't include stat-macros.h.
66236         * lib/chown.c: Likewise.
66237         * lib/euidaccess.c: Likewise.
66238         * lib/file-type.c: Likewise.
66239         * lib/filemode.c: Likewise.
66240         * lib/glob.c: Likewise.
66241         * lib/isapipe.c: Likewise.
66242         * lib/lchown.c: Likewise.
66243         * lib/lstat.c: Likewise.
66244         * lib/mkdir-p.c: Likewise.
66245         * lib/rmdir.c: Likewise.
66246         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66247         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66248         unless mkdir isn't declared, to speed up 'configure'.
66249         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66250         would define all the S_* symbols.
66251         * modules/canonicalize (Depends-on):
66252         Depend on sys_stat, not stat-macros.
66253         * modules/chown: Likewise.
66254         * modules/euidaccess: Likewise.
66255         * modules/filemode: Likewise.
66256         * modules/file-type: Likewise.
66257         * modules/glob: Likewise.
66258         * modules/isapipe: Likewise.
66259         * modules/lchown: Likewise.
66260         * modules/lstat: Likewise.
66261         * modules/mkancesdirs: Likewise.
66262         * modules/rmdir: Likewise.
66263         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66264         * modules/modechange: Likewise.
66265         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66266         (configure.ac): Remove gl_STAT_MACROS.
66267         * modules/sys_stat (Depends-on): Remove stat-macros.
66268
66269 2006-10-27  Bruno Haible  <bruno@clisp.org>
66270
66271         * m4/signed.m4: Remove file.
66272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66273         invocation.
66274         * modules/vasnprintf (Files): Remove m4/signed.m4.
66275
66276 2006-10-27  Bruno Haible  <bruno@clisp.org>
66277
66278         Update to GNU gettext 0.16.
66279         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66280         m4/inttypes-h.m4, m4/signed.m4.
66281         * m4/gettext.m4: Update to GNU gettext 0.16.
66282         * m4/intl.m4: New file, from GNU gettext.
66283         * m4/intldir.m4: New file, from GNU gettext.
66284         * config/srclist.txt: Update
66285
66286 2006-10-27  Eric Blake  <ebb9@byu.net>
66287
66288         * MODULES.html.sh: Document tempname.
66289         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66290         dependencies.
66291         (Files): Move lib/tempname.c...
66292         * modules/tempname: ...to this new module.
66293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66294         (gl_PREREQ_TEMPNAME): Move...
66295         * m4/tempname.m4: ...to this new file.
66296         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66297         * modules/sys_stat (Depends-on): Add stat-macros.
66298         * lib/stat_.h (includes): Pick up stat macros.
66299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66300         if stat macros are broken.
66301         * lib/tempname.c (includes): No need to include "stat-macros.h".
66302         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66303         (direxists, __path_search) [!_LIBC]: Don't compile these in
66304         gnulib; the tmpdir module covers that.
66305         * lib/tempname.h: New file.
66306
66307 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * COPYING: Explain how gnulib-tool converts licence headers.
66310         Almost all wording by Eric Blake.
66311
66312 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * lib/mbchar.h (is_basic_table): Make read-only.
66315         * lib/mbchar.c (is_basic_table): Likewise.
66316         Reported by John Darrington.
66317
66318 2006-10-25  Bruno Haible  <bruno@clisp.org>
66319
66320         * lib/progname.h (set_program_name): Undefine before defining.
66321
66322 2006-10-25  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66325         false for non-gcc C++ compilers.
66326         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66327
66328 2006-10-24  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66331         iconv implementations like Irix iconv.
66332
66333 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66334
66335         * modules/vararrays: New file.
66336         * m4/vararrays.m4: New file, taken from diffutils.
66337         * MODULES.html.sh: New module vararrays.
66338
66339 2006-10-24  Karl Berry  <karl@gnu.org>
66340
66341         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66342         Don't call GNU Unix.
66343
66344 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66345
66346         * users.txt: Add Libtool.
66347
66348         Sync from Libtool:
66349
66350         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66353         to gnulib's policy of including config.h unconditionally.
66354
66355 2006-10-24  Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/wcwidth (Files): Add m4/wint_t.m4.
66358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66359         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66360
66361 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66364         to pacify GCC with some -W flags enabled.  Problem reported by
66365         Bruno Haible.
66366
66367 2006-10-24  Jim Meyering  <jim@meyering.net>
66368
66369         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66370         Reported by Karl Berry.
66371
66372 2006-10-23  Bruno Haible  <bruno@clisp.org>
66373
66374         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66375
66376 2006-10-24  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/gl_list.h: Use C comment style, not C++ comment style.
66379
66380 2006-10-23  Eric Blake  <ebb9@byu.net>
66381
66382         * lib/getaddrinfo.c (includes): Add missing include.
66383
66384 2006-10-23  Bruno Haible  <bruno@clisp.org>
66385             Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         Ability to rename obstack_free.
66388         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66389         obstack_free.
66390         (obstack_free): Invoke the __obstack_free macro.
66391         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66392
66393 2006-10-23  Bruno Haible  <bruno@clisp.org>
66394             Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66397         __argc, __argv from the declaration. (They are defined as macros on
66398         mingw.)
66399
66400 2006-10-22  Bruno Haible  <bruno@clisp.org>
66401
66402         * doc/gnulib-intro.texi: New file.
66403         * doc/gnulib.texi: Include it.
66404
66405 2006-10-21  Bruno Haible  <bruno@clisp.org>
66406
66407         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66408         "Introduction", "Miscellanous Notes", "Particular Modules".
66409
66410 2006-10-21  Bruno Haible  <bruno@clisp.org>
66411
66412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66413         Change mostlyclean-local rule to avoid sh syntax error from bash
66414         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66415
66416 2006-10-23  Jim Meyering  <jim@meyering.net>
66417
66418         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66419         in place of snprintf.
66420
66421         * modules/inttostr (Files): Add lib/uinttostr.c.
66422         * lib/uinttostr.c (inttostr): New file/function.
66423         * lib/inttostr.h (uinttostr): Declare.
66424         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66425         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66426         Add uinttostr.
66427         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66428
66429 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         * lib/canonicalize.c (ELOOP): Define if not already defined.
66432         Problem reported by Bruno Haible in
66433         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66434
66435 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66438         Problem reported by Perry Smith and Ville Laurikari.
66439
66440         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66441         uses.
66442
66443 2006-10-19  Bruno Haible  <bruno@clisp.org>
66444
66445         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66446         for mingw.
66447
66448 2006-10-19  Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66451         Needed for mingw.
66452
66453 2006-10-19  Bruno Haible  <bruno@clisp.org>
66454
66455         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66456
66457 2006-10-19  Bruno Haible  <bruno@clisp.org>
66458
66459         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66460         it.
66461
66462 2006-10-19  Bruno Haible  <bruno@clisp.org>
66463
66464         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66465         invocation.
66466
66467 2006-10-19  Bruno Haible  <bruno@clisp.org>
66468
66469         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66470         mountlist by default.
66471
66472 2006-10-16  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/c-strstr.c: Include c-strstr.h.
66475
66476 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66477
66478         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66479         in a slash.
66480
66481 2006-10-18  Bruno Haible  <bruno@clisp.org>
66482
66483         * lib/lock.h [C++]: Wrap definitions in extern "C".
66484
66485 2006-10-18  Bruno Haible  <bruno@clisp.org>
66486
66487         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66488         gl_LIBOBJS list.
66489
66490 2006-10-18  Bruno Haible  <bruno@clisp.org>
66491
66492         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66493
66494 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/xstrtol.h: Include gettext.h.
66497         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66498         Problem reported by Eric Blake.
66499         * modules/xstrtol (Depends-on): Add gettext-h.
66500
66501 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66502
66503         * lib/strftime.c (advance): New macro.
66504         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66505         incomplete type, so you can't add 0 to it.  Problem and patch
66506         reported by Eelco Dolstra for dietlibc.
66507
66508 2006-10-18  Jim Meyering  <jim@meyering.net>
66509
66510         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66511         type for a local, and rename it: s/up/user_proc/.
66512
66513 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66514
66515         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66516         READ_UTMP_USER_PROCESS.
66517         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66518
66519 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66522         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66523
66524 2006-10-17  Eric Blake  <ebb9@byu.net>
66525
66526         * lib/sigprocmask.c (sigprocmask): Fix typo.
66527
66528         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66529
66530         * modules/clean-temp (Makefile.am): Don't add to make output...
66531         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66532         config.h.
66533
66534 2006-10-17  Bruno Haible  <bruno@clisp.org>
66535
66536         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66537         differently if DEFAULT_TEXT_DOMAIN is set.
66538
66539 2006-10-16  Bruno Haible  <bruno@clisp.org>
66540
66541         * lib/clean-temp.c: Include fwriteerror.h.
66542
66543 2006-10-16  Bruno Haible  <bruno@clisp.org>
66544
66545         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66546
66547 2006-10-16  Bruno Haible  <bruno@clisp.org>
66548
66549         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66550         * lib/sigprocmask.h: Include <sys/types.h>.
66551         (sigset_t): Use the system's definition if present.
66552
66553 2006-10-17  Eric Blake  <ebb9@byu.net>
66554
66555         * lib/xvasprintf.c (includes): Assume config.h.
66556         * lib/xasprintf.c (includes): Likewise.
66557
66558 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66559
66560         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66561         at least as wide as intmax_t.
66562
66563 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66564
66565         (Imported from Automake.)
66566         * build-aux/gnupload: Update to version 1.1 of directive file.
66567
66568 2006-10-16  Eric Blake  <ebb9@byu.net>
66569
66570         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66571         match Automake 1.10a.
66572
66573 2006-10-14  Bruno Haible  <bruno@clisp.org>
66574
66575         * modules/sigprocmask: New file.
66576         * lib/sigprocmask.h: New file.
66577         * lib/sigprocmask.c: New file.
66578         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66579         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66580         request sigprocmask.o.
66581         (gl_PREREQ_SIGPROCMASK): New macro.
66582         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66583         (Depends-on): Add sigprocmask.
66584         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66585         gt_SIGNALBLOCKING. Test for 'raise' only once.
66586         * lib/fatal-signal.c: Include sigprocmask.h.
66587         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66588         unblock_fatal_signals): Define always.
66589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66590         sigprocmask.
66591
66592 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         Sync from Automake.
66595         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66596         which incorrectly sets the mode of an existing destination
66597         directory.  In some cases the unpatched install-sh could do the
66598         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66599         system.  We hope this is rare in practice, but it's clearly worth
66600         fixing.  Problem reported by Alex Unleashed in
66601         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66602         Also, don't bother to check for -m bugs unless we're using -m;
66603         suggested by Stepan Kasal.
66604
66605 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66606
66607         Sync from Automake.
66608         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66609         `-c' flag, so they appear at the same position as in %FASTDEP%
66610         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66611         which ignores unknown options only after the first non-option.
66612         Bug report against M4 by Nelson H. F. Beebe.
66613
66614 2006-10-13  Jim Meyering  <jim@meyering.net>
66615
66616         Fix a bug in yesterday's change.
66617         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66618         p->fts_statp->st_dev would be used uninitialized.
66619         Ensures that we always call fts_stat on the very first entry.
66620         Miklos Szeredi reported that find -xdev stopped working.
66621
66622 2006-10-12  Bruno Haible  <bruno@clisp.org>
66623
66624         * gnulib-tool (func_get_automake_snippet): Append an automatically
66625         computed EXTRA_DIST augmentation.
66626         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66627         * modules/alloca-opt (Makefile.am): Likewise.
66628         * modules/allocsa (Makefile.am): Likewise.
66629         * modules/arcfour (Makefile.am): Likewise.
66630         * modules/arctwo (Makefile.am): Likewise.
66631         * modules/argmatch (Makefile.am): Likewise.
66632         * modules/argz (Makefile.am): Likewise.
66633         * modules/atexit (Makefile.am): Likewise.
66634         * modules/backupfile (Makefile.am): Likewise.
66635         * modules/byteswap (Makefile.am): Likewise.
66636         * modules/c-strtod (Makefile.am): Likewise.
66637         * modules/c-strtold (Makefile.am): Likewise.
66638         * modules/calloc (Makefile.am): Likewise.
66639         * modules/canon-host (Makefile.am): Likewise.
66640         * modules/canonicalize (Makefile.am): Likewise.
66641         * modules/chdir-long (Makefile.am): Likewise.
66642         * modules/chdir-safer (Makefile.am): Likewise.
66643         * modules/check-version (Makefile.am): Likewise.
66644         * modules/chown (Makefile.am): Likewise.
66645         * modules/cloexec (Makefile.am): Likewise.
66646         * modules/close-stream (Makefile.am): Likewise.
66647         * modules/closeout (Makefile.am): Likewise.
66648         * modules/crc (Makefile.am): Likewise.
66649         * modules/csharpexec (Makefile.am): Likewise.
66650         * modules/cycle-check (Makefile.am): Likewise.
66651         * modules/des (Makefile.am): Likewise.
66652         * modules/dev-ino (Makefile.am): Likewise.
66653         * modules/dirfd (Makefile.am): Likewise.
66654         * modules/dirname (Makefile.am): Likewise.
66655         * modules/dup2 (Makefile.am): Likewise.
66656         * modules/eealloc (Makefile.am): Likewise.
66657         * modules/error (Makefile.am): Likewise.
66658         * modules/euidaccess (Makefile.am): Likewise.
66659         * modules/exclude (Makefile.am): Likewise.
66660         * modules/exitfail (Makefile.am): Likewise.
66661         * modules/fcntl-safer (Makefile.am): Likewise.
66662         * modules/fcntl (Makefile.am): Likewise.
66663         * modules/file-type (Makefile.am): Likewise.
66664         * modules/fileblocks (Makefile.am): Likewise.
66665         * modules/filemode (Makefile.am): Likewise.
66666         * modules/filenamecat (Makefile.am): Likewise.
66667         * modules/fnmatch (Makefile.am): Likewise.
66668         * modules/fopen-safer (Makefile.am): Likewise.
66669         * modules/fpending (Makefile.am): Likewise.
66670         * modules/fprintftime (Makefile.am): Likewise.
66671         * modules/free (Makefile.am): Likewise.
66672         * modules/fsusage (Makefile.am): Likewise.
66673         * modules/ftruncate (Makefile.am): Likewise.
66674         * modules/fts (Makefile.am): Likewise.
66675         * modules/gc-arcfour (Makefile.am): Likewise.
66676         * modules/gc-des (Makefile.am): Likewise.
66677         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66678         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66679         * modules/gc-md4 (Makefile.am): Likewise.
66680         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66681         * modules/gc-sha1 (Makefile.am): Likewise.
66682         * modules/gc (Makefile.am): Likewise.
66683         * modules/getaddrinfo (Makefile.am): Likewise.
66684         * modules/getcwd (Makefile.am): Likewise.
66685         * modules/getdelim (Makefile.am): Likewise.
66686         * modules/getdomainname (Makefile.am): Likewise.
66687         * modules/getgroups (Makefile.am): Likewise.
66688         * modules/gethostname (Makefile.am): Likewise.
66689         * modules/gethrxtime (Makefile.am): Likewise.
66690         * modules/getline (Makefile.am): Likewise.
66691         * modules/getloadavg (Makefile.am): Likewise.
66692         * modules/getlogin_r (Makefile.am): Likewise.
66693         * modules/getndelim2 (Makefile.am): Likewise.
66694         * modules/getopt (Makefile.am): Likewise.
66695         * modules/getpagesize (Makefile.am): Likewise.
66696         * modules/getpass-gnu (Makefile.am): Likewise.
66697         * modules/getpass (Makefile.am): Likewise.
66698         * modules/getsubopt (Makefile.am): Likewise.
66699         * modules/gettime (Makefile.am): Likewise.
66700         * modules/gettimeofday (Makefile.am): Likewise.
66701         * modules/getugroups (Makefile.am): Likewise.
66702         * modules/getusershell (Makefile.am): Likewise.
66703         * modules/glob (Makefile.am): Likewise.
66704         * modules/group-member (Makefile.am): Likewise.
66705         * modules/hard-locale (Makefile.am): Likewise.
66706         * modules/hash (Makefile.am): Likewise.
66707         * modules/hmac-md5 (Makefile.am): Likewise.
66708         * modules/hmac-sha1 (Makefile.am): Likewise.
66709         * modules/human (Makefile.am): Likewise.
66710         * modules/idcache (Makefile.am): Likewise.
66711         * modules/imaxabs (Makefile.am): Likewise.
66712         * modules/imaxdiv (Makefile.am): Likewise.
66713         * modules/inet_ntop (Makefile.am): Likewise.
66714         * modules/inet_pton (Makefile.am): Likewise.
66715         * modules/intprops (Makefile.am): Likewise.
66716         * modules/inttostr (Makefile.am): Likewise.
66717         * modules/inttypes (Makefile.am): Likewise.
66718         * modules/isapipe (Makefile.am): Likewise.
66719         * modules/javaversion (Makefile.am): Likewise.
66720         * modules/lchmod (Makefile.am): Likewise.
66721         * modules/lchown (Makefile.am): Likewise.
66722         * modules/localcharset (Makefile.am): Likewise.
66723         * modules/long-options (Makefile.am): Likewise.
66724         * modules/lstat (Makefile.am): Likewise.
66725         * modules/malloc (Makefile.am): Likewise.
66726         * modules/mathl (Makefile.am): Likewise.
66727         * modules/mbchar (Makefile.am): Likewise.
66728         * modules/md2 (Makefile.am): Likewise.
66729         * modules/md4 (Makefile.am): Likewise.
66730         * modules/md5 (Makefile.am): Likewise.
66731         * modules/memcasecmp (Makefile.am): Likewise.
66732         * modules/memchr (Makefile.am): Likewise.
66733         * modules/memcmp (Makefile.am): Likewise.
66734         * modules/memcoll (Makefile.am): Likewise.
66735         * modules/memcpy (Makefile.am): Likewise.
66736         * modules/memmem (Makefile.am): Likewise.
66737         * modules/memmove (Makefile.am): Likewise.
66738         * modules/mempcpy (Makefile.am): Likewise.
66739         * modules/memrchr (Makefile.am): Likewise.
66740         * modules/memset (Makefile.am): Likewise.
66741         * modules/memxor (Makefile.am): Likewise.
66742         * modules/mkancesdirs (Makefile.am): Likewise.
66743         * modules/mkdir-p (Makefile.am): Likewise.
66744         * modules/mkdir (Makefile.am): Likewise.
66745         * modules/mkdtemp (Makefile.am): Likewise.
66746         * modules/mkstemp (Makefile.am): Likewise.
66747         * modules/mktime (Makefile.am): Likewise.
66748         * modules/modechange (Makefile.am): Likewise.
66749         * modules/mountlist (Makefile.am): Likewise.
66750         * modules/nanosleep (Makefile.am): Likewise.
66751         * modules/obstack (Makefile.am): Likewise.
66752         * modules/openat (Makefile.am): Likewise.
66753         * modules/pagealign_alloc (Makefile.am): Likewise.
66754         * modules/pathmax (Makefile.am): Likewise.
66755         * modules/physmem (Makefile.am): Likewise.
66756         * modules/poll (Makefile.am): Likewise.
66757         * modules/posixtm (Makefile.am): Likewise.
66758         * modules/posixver (Makefile.am): Likewise.
66759         * modules/putenv (Makefile.am): Likewise.
66760         * modules/quote (Makefile.am): Likewise.
66761         * modules/quotearg (Makefile.am): Likewise.
66762         * modules/raise (Makefile.am): Likewise.
66763         * modules/read-file (Makefile.am): Likewise.
66764         * modules/readline (Makefile.am): Likewise.
66765         * modules/readlink (Makefile.am): Likewise.
66766         * modules/readtokens (Makefile.am): Likewise.
66767         * modules/readutmp (Makefile.am): Likewise.
66768         * modules/realloc (Makefile.am): Likewise.
66769         * modules/regex (Makefile.am): Likewise.
66770         * modules/rename-dest-slash (Makefile.am): Likewise.
66771         * modules/rename (Makefile.am): Likewise.
66772         * modules/rijndael (Makefile.am): Likewise.
66773         * modules/rmdir (Makefile.am): Likewise.
66774         * modules/rpmatch (Makefile.am): Likewise.
66775         * modules/safe-read (Makefile.am): Likewise.
66776         * modules/safe-write (Makefile.am): Likewise.
66777         * modules/same-inode (Makefile.am): Likewise.
66778         * modules/same (Makefile.am): Likewise.
66779         * modules/save-cwd (Makefile.am): Likewise.
66780         * modules/savedir (Makefile.am): Likewise.
66781         * modules/setenv (Makefile.am): Likewise.
66782         * modules/settime (Makefile.am): Likewise.
66783         * modules/sha1 (Makefile.am): Likewise.
66784         * modules/sig2str (Makefile.am): Likewise.
66785         * modules/snprintf (Makefile.am): Likewise.
66786         * modules/stat-macros (Makefile.am): Likewise.
66787         * modules/stat-time (Makefile.am): Likewise.
66788         * modules/stdbool (Makefile.am): Likewise.
66789         * modules/stdint (Makefile.am): Likewise.
66790         * modules/stdlib-safer (Makefile.am): Likewise.
66791         * modules/stpcpy (Makefile.am): Likewise.
66792         * modules/stpncpy (Makefile.am): Likewise.
66793         * modules/strcase (Makefile.am): Likewise.
66794         * modules/strcasestr (Makefile.am): Likewise.
66795         * modules/strchrnul (Makefile.am): Likewise.
66796         * modules/strcspn (Makefile.am): Likewise.
66797         * modules/strdup (Makefile.am): Likewise.
66798         * modules/strerror (Makefile.am): Likewise.
66799         * modules/strftime (Makefile.am): Likewise.
66800         * modules/strndup (Makefile.am): Likewise.
66801         * modules/strnlen (Makefile.am): Likewise.
66802         * modules/strpbrk (Makefile.am): Likewise.
66803         * modules/strsep (Makefile.am): Likewise.
66804         * modules/strstr (Makefile.am): Likewise.
66805         * modules/strtod (Makefile.am): Likewise.
66806         * modules/strtoimax (Makefile.am): Likewise.
66807         * modules/strtok_r (Makefile.am): Likewise.
66808         * modules/strtol (Makefile.am): Likewise.
66809         * modules/strtoll (Makefile.am): Likewise.
66810         * modules/strtoul (Makefile.am): Likewise.
66811         * modules/strtoull (Makefile.am): Likewise.
66812         * modules/strtoumax (Makefile.am): Likewise.
66813         * modules/strverscmp (Makefile.am): Likewise.
66814         * modules/sys_socket (Makefile.am): Likewise.
66815         * modules/sys_stat (Makefile.am): Likewise.
66816         * modules/sysexits (Makefile.am): Likewise.
66817         * modules/time_r (Makefile.am): Likewise.
66818         * modules/timegm (Makefile.am): Likewise.
66819         * modules/timespec (Makefile.am): Likewise.
66820         * modules/tmpfile-safer (Makefile.am): Likewise.
66821         * modules/trim (Makefile.am): Likewise.
66822         * modules/unistd-safer (Makefile.am): Likewise.
66823         * modules/unlinkdir (Makefile.am): Likewise.
66824         * modules/unlocked-io (Makefile.am): Likewise.
66825         * modules/userspec (Makefile.am): Likewise.
66826         * modules/utime (Makefile.am): Likewise.
66827         * modules/utimecmp (Makefile.am): Likewise.
66828         * modules/utimens (Makefile.am): Likewise.
66829         * modules/vasnprintf (Makefile.am): Likewise.
66830         * modules/vasprintf (Makefile.am): Likewise.
66831         * modules/vsnprintf (Makefile.am): Likewise.
66832         * modules/xalloc (Makefile.am): Likewise.
66833         * modules/xgetcwd (Makefile.am): Likewise.
66834         * modules/xnanosleep (Makefile.am): Likewise.
66835         * modules/xreadlink (Makefile.am): Likewise.
66836         * modules/xstrtod (Makefile.am): Likewise.
66837         * modules/xstrtol (Makefile.am): Likewise.
66838         * modules/xstrtold (Makefile.am): Likewise.
66839         * modules/yesno (Makefile.am): Likewise.
66840         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66841
66842 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * modules/error (Makefile.am): Distribute files through
66845         EXTRA_DIST, not lib_SOURCES.
66846
66847 2006-10-12  Eric Blake  <ebb9@byu.net>
66848
66849         * modules/error (Makefile.am): Distribute files in /lib.
66850         * modules/obstack (Makefile.am): Likewise.
66851
66852 2006-10-12  Bruno Haible  <bruno@clisp.org>
66853
66854         * modules/acl (Makefile.am): Distribute all files in lib/ through
66855         EXTRA_DIST.
66856         * modules/arcfour (Makefile.am): Likewise.
66857         * modules/arctwo (Makefile.am): Likewise.
66858         * modules/argmatch (Makefile.am): Likewise.
66859         * modules/argz (Makefile.am): Likewise.
66860         * modules/atexit (Makefile.am): Likewise.
66861         * modules/backupfile (Makefile.am): Likewise.
66862         * modules/c-strtod (Makefile.am): Likewise.
66863         * modules/c-strtold (Makefile.am): Likewise.
66864         * modules/calloc (Makefile.am): Likewise.
66865         * modules/canon-host (Makefile.am): Likewise.
66866         * modules/canonicalize (Makefile.am): Likewise.
66867         * modules/chdir-long (Makefile.am): Likewise.
66868         * modules/chdir-safer (Makefile.am): Likewise.
66869         * modules/check-version (Makefile.am): Likewise.
66870         * modules/chown (Makefile.am): Likewise.
66871         * modules/cloexec (Makefile.am): Likewise.
66872         * modules/close-stream (Makefile.am): Likewise.
66873         * modules/closeout (Makefile.am): Likewise.
66874         * modules/crc (Makefile.am): Likewise.
66875         * modules/cycle-check (Makefile.am): Likewise.
66876         * modules/des (Makefile.am): Likewise.
66877         * modules/dirfd (Makefile.am): Likewise.
66878         * modules/dirname (Makefile.am): Likewise.
66879         * modules/dup2 (Makefile.am): Likewise.
66880         * modules/euidaccess (Makefile.am): Likewise.
66881         * modules/exclude (Makefile.am): Likewise.
66882         * modules/exitfail (Makefile.am): Likewise.
66883         * modules/fcntl-safer (Makefile.am): Likewise.
66884         * modules/file-type (Makefile.am): Likewise.
66885         * modules/fileblocks (Makefile.am): Likewise.
66886         * modules/filemode (Makefile.am): Likewise.
66887         * modules/filenamecat (Makefile.am): Likewise.
66888         * modules/fnmatch (Makefile.am): Likewise.
66889         * modules/fopen-safer (Makefile.am): Likewise.
66890         * modules/fpending (Makefile.am): Likewise.
66891         * modules/fprintftime (Makefile.am): Likewise.
66892         * modules/free (Makefile.am): Likewise.
66893         * modules/fsusage (Makefile.am): Likewise.
66894         * modules/ftruncate (Makefile.am): Likewise.
66895         * modules/fts (Makefile.am): Likewise.
66896         * modules/gc (Makefile.am): Likewise.
66897         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66898         * modules/getaddrinfo (Makefile.am): Likewise.
66899         * modules/getcwd (Makefile.am): Likewise.
66900         * modules/getdelim (Makefile.am): Likewise.
66901         * modules/getdomainname (Makefile.am): Likewise.
66902         * modules/getgroups (Makefile.am): Likewise.
66903         * modules/gethostname (Makefile.am): Likewise.
66904         * modules/gethrxtime (Makefile.am): Likewise.
66905         * modules/getline (Makefile.am): Likewise.
66906         * modules/getloadavg (Makefile.am): Likewise.
66907         * modules/getlogin_r (Makefile.am): Likewise.
66908         * modules/getopt (Makefile.am): Likewise.
66909         * modules/getpass (Makefile.am): Likewise.
66910         * modules/getpass-gnu (Makefile.am): Likewise.
66911         * modules/getsubopt (Makefile.am): Likewise.
66912         * modules/gettime (Makefile.am): Likewise.
66913         * modules/gettimeofday (Makefile.am): Likewise.
66914         * modules/getugroups (Makefile.am): Likewise.
66915         * modules/getusershell (Makefile.am): Likewise.
66916         * modules/glob (Makefile.am): Likewise.
66917         * modules/group-member (Makefile.am): Likewise.
66918         * modules/hard-locale (Makefile.am): Likewise.
66919         * modules/hash (Makefile.am): Likewise.
66920         * modules/hmac-md5 (Makefile.am): Likewise.
66921         * modules/hmac-sha1 (Makefile.am): Likewise.
66922         * modules/human (Makefile.am): Likewise.
66923         * modules/idcache (Makefile.am): Likewise.
66924         * modules/imaxabs (Makefile.am): Likewise.
66925         * modules/imaxdiv (Makefile.am): Likewise.
66926         * modules/inet_ntop (Makefile.am): Likewise.
66927         * modules/inet_pton (Makefile.am): Likewise.
66928         * modules/inttostr (Makefile.am): Likewise.
66929         * modules/isapipe (Makefile.am): Likewise.
66930         * modules/lchown (Makefile.am): Likewise.
66931         * modules/long-options (Makefile.am): Likewise.
66932         * modules/lstat (Makefile.am): Likewise.
66933         * modules/malloc (Makefile.am): Likewise.
66934         * modules/mathl (Makefile.am): Likewise.
66935         * modules/mbchar (Makefile.am): Likewise.
66936         * modules/md2 (Makefile.am): Likewise.
66937         * modules/md4 (Makefile.am): Likewise.
66938         * modules/md5 (Makefile.am): Likewise.
66939         * modules/memcasecmp (Makefile.am): Likewise.
66940         * modules/memchr (Makefile.am): Likewise.
66941         * modules/memcmp (Makefile.am): Likewise.
66942         * modules/memcoll (Makefile.am): Likewise.
66943         * modules/memcpy (Makefile.am): Likewise.
66944         * modules/memmem (Makefile.am): Likewise.
66945         * modules/memmove (Makefile.am): Likewise.
66946         * modules/mempcpy (Makefile.am): Likewise.
66947         * modules/memrchr (Makefile.am): Likewise.
66948         * modules/memset (Makefile.am): Likewise.
66949         * modules/memxor (Makefile.am): Likewise.
66950         * modules/mkancesdirs (Makefile.am): Likewise.
66951         * modules/mkdir (Makefile.am): Likewise.
66952         * modules/mkdir-p (Makefile.am): Likewise.
66953         * modules/mkdtemp (Makefile.am): Likewise.
66954         * modules/mkstemp (Makefile.am): Likewise.
66955         * modules/mktime (Makefile.am): Likewise.
66956         * modules/modechange (Makefile.am): Likewise.
66957         * modules/mountlist (Makefile.am): Likewise.
66958         * modules/nanosleep (Makefile.am): Likewise.
66959         * modules/openat (Makefile.am): Likewise.
66960         * modules/pagealign_alloc (Makefile.am): Likewise.
66961         * modules/physmem (Makefile.am): Likewise.
66962         * modules/poll (Makefile.am): Likewise.
66963         * modules/posixtm (Makefile.am): Likewise.
66964         * modules/posixver (Makefile.am): Likewise.
66965         * modules/putenv (Makefile.am): Likewise.
66966         * modules/quote (Makefile.am): Likewise.
66967         * modules/quotearg (Makefile.am): Likewise.
66968         * modules/raise (Makefile.am): Likewise.
66969         * modules/read-file (Makefile.am): Likewise.
66970         * modules/readline (Makefile.am): Likewise.
66971         * modules/readlink (Makefile.am): Likewise.
66972         * modules/readtokens (Makefile.am): Likewise.
66973         * modules/readutmp (Makefile.am): Likewise.
66974         * modules/realloc (Makefile.am): Likewise.
66975         * modules/regex (Makefile.am): Likewise.
66976         * modules/rename (Makefile.am): Likewise.
66977         * modules/rename-dest-slash (Makefile.am): Likewise.
66978         * modules/rijndael (Makefile.am): Likewise.
66979         * modules/rmdir (Makefile.am): Likewise.
66980         * modules/rpmatch (Makefile.am): Likewise.
66981         * modules/safe-read (Makefile.am): Likewise.
66982         * modules/safe-write (Makefile.am): Likewise.
66983         * modules/same (Makefile.am): Likewise.
66984         * modules/save-cwd (Makefile.am): Likewise.
66985         * modules/savedir (Makefile.am): Likewise.
66986         * modules/setenv (Makefile.am): Likewise.
66987         * modules/settime (Makefile.am): Likewise.
66988         * modules/sha1 (Makefile.am): Likewise.
66989         * modules/sig2str (Makefile.am): Likewise.
66990         * modules/snprintf (Makefile.am): Likewise.
66991         * modules/stdlib-safer (Makefile.am): Likewise.
66992         * modules/stpcpy (Makefile.am): Likewise.
66993         * modules/stpncpy (Makefile.am): Likewise.
66994         * modules/strcase (Makefile.am): Likewise.
66995         * modules/strcasestr (Makefile.am): Likewise.
66996         * modules/strchrnul (Makefile.am): Likewise.
66997         * modules/strcspn (Makefile.am): Likewise.
66998         * modules/strdup (Makefile.am): Likewise.
66999         * modules/strerror (Makefile.am): Likewise.
67000         * modules/strftime (Makefile.am): Likewise.
67001         * modules/strndup (Makefile.am): Likewise.
67002         * modules/strnlen (Makefile.am): Likewise.
67003         * modules/strpbrk (Makefile.am): Likewise.
67004         * modules/strsep (Makefile.am): Likewise.
67005         * modules/strstr (Makefile.am): Likewise.
67006         * modules/strtod (Makefile.am): Likewise.
67007         * modules/strtoimax (Makefile.am): Likewise.
67008         * modules/strtok_r (Makefile.am): Likewise.
67009         * modules/strtol (Makefile.am): Likewise.
67010         * modules/strtoll (Makefile.am): Likewise.
67011         * modules/strtoul (Makefile.am): Likewise.
67012         * modules/strtoull (Makefile.am): Likewise.
67013         * modules/strtoumax (Makefile.am): Likewise.
67014         * modules/strverscmp (Makefile.am): Likewise.
67015         * modules/time_r (Makefile.am): Likewise.
67016         * modules/timegm (Makefile.am): Likewise.
67017         * modules/tmpfile-safer (Makefile.am): Likewise.
67018         * modules/unistd-safer (Makefile.am): Likewise.
67019         * modules/unlinkdir (Makefile.am): Likewise.
67020         * modules/userspec (Makefile.am): Likewise.
67021         * modules/utime (Makefile.am): Likewise.
67022         * modules/utimecmp (Makefile.am): Likewise.
67023         * modules/utimens (Makefile.am): Likewise.
67024         * modules/vasnprintf (Makefile.am): Likewise.
67025         * modules/vasprintf (Makefile.am): Likewise.
67026         * modules/vsnprintf (Makefile.am): Likewise.
67027         * modules/xalloc (Makefile.am): Likewise.
67028         * modules/xgetcwd (Makefile.am): Likewise.
67029         * modules/xnanosleep (Makefile.am): Likewise.
67030         * modules/xreadlink (Makefile.am): Likewise.
67031         * modules/xstrtod (Makefile.am): Likewise.
67032         * modules/xstrtol (Makefile.am): Likewise.
67033         * modules/xstrtold (Makefile.am): Likewise.
67034         * modules/yesno (Makefile.am): Likewise.
67035
67036 2006-10-12  Jim Meyering  <jim@meyering.net>
67037
67038         * m4/getloadavg.m4: Revert the change below.
67039
67040         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67041         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67042         fail with a symlink, which is what coreutils' ./bootstrap now
67043         creates by default.
67044
67045 2006-10-12  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67048         mingw.
67049         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67050         MSVC and mingw explicitly.
67051
67052 2006-10-11  Simon Josefsson  <jas@extundo.com>
67053             Bruno Haible  <bruno@clisp.org>
67054
67055         Add support for multiple gnulib-tool invocations in the scope of a
67056         single configure.ac file.
67057         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67058         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67059         with the same contents as the _LIBADD variable.
67060         (func_emit_initmacro_start, func_emit_initmacro_end,
67061         func_emit_initmacro_done): New functions.
67062         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67063         gl_LIBOBJS and gl_LTLIBOBJS.
67064
67065 2006-10-11  Bruno Haible  <bruno@clisp.org>
67066
67067         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67068         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67069         autoreconf. Instead, invoke autopoint explicitly but move back the
67070         *.m4 files from gnulib.
67071
67072 2006-10-11  Bruno Haible  <bruno@clisp.org>
67073
67074         * gnulib-tool (func_usage): Make module names after --create-testdir
67075         optional.
67076         (func_create_testdir): If no module was specified, use nearly all
67077         modules.
67078
67079 2006-10-12  Jim Meyering  <jim@meyering.net>
67080
67081         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67082         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67083         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67084         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67085         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67086         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67087         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67088         (fts_set_stat_required): New function.
67089         (fts_open): Defer the calls to fts_stat, if possible or requested.
67090         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67091         into fts_stat itself.
67092         (fts_read): Perform any required (deferred) fts_stat call.
67093         (fts_build): Likewise, for the directory we're about to open and read.
67094         In the readdir loop, carefully decide whether each entry will require
67095         an eventual call to fts_stat, using dirent.d_type info if available.
67096         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67097         a command line argument into this function.  Update all callers.
67098         Map a return value of FTS_DOT to FTS_D for a command line argument.
67099         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67100         Thanks to Miklos Szeredi for his tenacity and for the initial
67101         bug report about "find" failing on a FUSE-based file system.
67102
67103         * lib/fts.c (fts_open): Use consistent indentation.
67104
67105 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67108         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67109         reported by Jim Meyering.  All uses of cache variables renamed
67110         to match Autoconf's.
67111         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67112         the other one.
67113
67114         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67115         Fix misspelling in diagnostic.
67116
67117 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67120         defined.  Problem reported by Matthew Woehlke.
67121
67122         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67123         Add support for Tandem NonStop R series.
67124         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67125         Use new macro.
67126
67127         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67128         (has_trailing_slash): Omit size arg; all callers changed.
67129         Omit 'inline', since it doesn't help performance and we'd
67130         need to configure it.
67131         Don't count //, ///, etc. as having a trailing slash.
67132         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67133         (rpl_rename_dest_slash): On failure, use rename's errno rather
67134         than (in some cases) an incorrect or junk errno.
67135         Simplify code by removing need to compute length; this does
67136         cause it to make two passes instead of one over the file name,
67137         but it's worth it.
67138
67139         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67140         change, since Autoconf's version may no longer be appropriate now
67141         that we are using CVS Autoconf's version.  Add support for Tandem.
67142
67143 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67144             Bruno Haible  <bruno@clisp.org>
67145
67146         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67147         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67148         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67149         gl_AC_TYPE_LONG_LONG.
67150
67151         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67152         instead of HAVE_LONG_LONG.
67153         * lib/printf-args.c (printf_fetchargs): Likewise.
67154         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67155         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67156         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67157         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67158         gl_AC_TYPE_LONG_LONG.
67159
67160 2006-10-11  Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/longlong.m4: Add comments.
67163         * m4/ulonglong.m4: Likewise.
67164
67165 2006-10-10  Bruno Haible  <bruno@clisp.org>
67166
67167         Make it possible to #define stpcpy, strdup to aliases.
67168         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67169         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67170
67171 2006-10-10  Bruno Haible  <bruno@clisp.org>
67172
67173         Make it possible to #define gcd to an alias.
67174         * lib/gcd.c: Include config.h.
67175
67176 2006-10-10  Bruno Haible  <bruno@clisp.org>
67177
67178         Make it possible to #define c_isascii to an alias.
67179         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67180         defined. Undefine the macros before defining them, to avoid gcc
67181         warnings.
67182         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67183         define NO_C_CTYPE_MACROS early.
67184
67185 2006-10-10  Bruno Haible  <bruno@clisp.org>
67186
67187         Make it possible to #define set_program_name to an alias.
67188         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67189         ENABLE_RELOCATABLE early.
67190
67191 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67192
67193         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67194         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67195         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67196         More generally, don't assume that 64-bit signed int is available
67197         if unsigned int is, and vice versa.
67198         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67199         unsigned symbols, not on their signed counterparts.
67200         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67201         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67202         (UINT64_C, UINTMAX_C):
67203         Likewise.
67204         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67205         unsigned counterparts.
67206         (Have_long_long, Unsigned): New macros.
67207         (Int): Renamed from INT.
67208         (strtoimax): Use the new macros.
67209         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67210         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67211         * modules/inttypes (inttypes.h): Substitute
67212         HAVE_UNSIGNED_LONG_LONG_INT.
67213         * modules/stdint (stdint.h): Likewise.
67214         (Files): Add m4/ulonglong.m4.
67215
67216 2006-10-10  Bruno Haible  <bruno@clisp.org>
67217
67218         Fix a gcc -Wshadow warning.
67219         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67220         to 'bucket'.
67221         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67222         gl_linked_indexof_from_to): Likewise.
67223         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67224         Likewise.
67225         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67226         Likewise.
67227         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67228         Reported by Eric Blake.
67229
67230 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67233         for NetBSD.  Problem reported by Bruno Haible.
67234
67235 2006-10-09  Jim Meyering  <jim@meyering.net>
67236
67237         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67238         Patch from Bruno Haible.
67239
67240 2006-10-09  Jim Meyering  <jim@meyering.net>
67241
67242         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67243         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67244         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67245
67246 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         Don't include <config.h> twice; this doesn't work in some cases,
67249         e.g., when config.h has "#define intmax_t long long int" and
67250         we include <config.h>, <inttypes.h>, <config.h> in that order.
67251         Problem reported by Matthew Woehlke in:
67252         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67253         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67254         * lib/fts-cycle.c: Don't include config.h.
67255         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67256         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67257         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67258         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67259         inttypes.h.
67260         * lib/xstrtoumax.c: Likewise.
67261         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67262         __strtol and the like, so that this module is more like its siblings.
67263         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67264         Remove; no longer needed now that we assume gnulib inttypes.h.
67265
67266 2006-10-08  Bruno Haible  <bruno@clisp.org>
67267
67268         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67269         option.
67270
67271 2006-10-07  Jim Meyering  <jim@meyering.net>
67272
67273         * modules/inttypes (inttypes.h): Revert what seems to have been
67274         an inadvertent part of today's change: use "|", not "/" in the
67275         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67276
67277 2006-10-07  Bruno Haible  <bruno@clisp.org>
67278
67279         * modules/sublist: New file.
67280
67281 2006-10-07  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67284         * modules/argz (argz.h): Likewise.
67285         * modules/arpa_inet (arpa/inet.h): Likewise.
67286         * modules/byteswap (byteswap.h): Likewise.
67287         * modules/configmake (configmake.h): Likewise.
67288         * modules/fcntl (fcntl.h): Likewise.
67289         * modules/fnmatch (fnmatch.h): Likewise.
67290         * modules/getopt (getopt.h): Likewise.
67291         * modules/glob (glob.h): Likewise.
67292         * modules/inttypes (inttypes.h): Likewise.
67293         * modules/netinet_in (netinet/in.h): Likewise.
67294         * modules/poll (poll.h): Likewise.
67295         * modules/stdbool (stdbool.h): Likewise.
67296         * modules/stdint (stdint.h): Likewise.
67297         * modules/sys_select (sys/select.h): Likewise.
67298         * modules/sys_socket (sys/socket.h): Likewise.
67299         * modules/sys_stat (sys/stat.h): Likewise.
67300         * modules/sysexits (sysexits.h): Likewise.
67301         * modules/unistd (unistd.h): Likewise.
67302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67303         Add a "DO NOT EDIT" comment to the generated file.
67304         (func_import): Likewise for gnulib-comp.m4.
67305
67306 2006-10-07  Bruno Haible  <bruno@clisp.org>
67307
67308         * lib/gl_sublist.h: New file.
67309         * lib/gl_sublist.c: New file.
67310
67311 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67314         name (relative to the original working directory) and the file
67315         name component (relative to the temporary working directory).  All
67316         callers changed.
67317         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67318         * lib/mkdir-p.c (make_dir_parents): Likewise.
67319         * lib/mkdir-p.h (make_dir_parents): Likewise.
67320
67321 2006-10-06  Eric Blake  <ebb9@byu.net>
67322
67323         Define several macros for use by the clean-temp module.
67324         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67325         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67326         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67327
67328         * lib/clean-temp.h (close_stream_temp): New declaration.
67329         * lib/clean-temp.c (includes): Pull in headers according to what
67330         other modules are in use.
67331         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67332
67333 2006-10-06  Bruno Haible  <bruno@clisp.org>
67334
67335         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67336         instead of fopen, fwriteerror.
67337
67338 2006-10-06  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67341         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67342         int.
67343         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67344         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67345         Return an error indicator.
67346         Suggested by Eric Blake.
67347
67348 2006-10-06  Bruno Haible  <bruno@clisp.org>
67349
67350         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67351         Reported by Eric Blake.
67352
67353 2006-10-06  Bruno Haible  <bruno@clisp.org>
67354
67355         * modules/closeout (Description): Mention stderr too.
67356
67357 2006-10-06  Bruno Haible  <bruno@clisp.org>
67358         and Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * lib/closeout.c (close_stdout): Also close stderr.
67361         * lib/closeout.h: Update comment.
67362
67363 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67364
67365         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67366         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67367         * lib/dirchownmod.c: Include lchown.h.
67368         * lib/lchown.c: Don't include files that lchown.h now includes.
67369         Don't declare chown, since lchown.h now does that.
67370         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67371         (lchown): Define to rpl_chown if lchown is declared but
67372         does not exist.  Declare using a prototype if lchown is not
67373         declared.  Add a copyright notice.
67374         * lib/mkstemp.h: Include <unistd.h>.
67375         * lib/openat.c: Include lchown.h.
67376
67377         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67378         we now test for that separately.
67379         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67380         rather than O_NOFOLLOW, when testing whether it's possible to
67381         avoid a race condition reliably.
67382         * lib/savewd.c (savewd_chdir): Likewise.
67383
67384         Remove macros that are no longer needed now that stdint.h is
67385         reliable.
67386         * lib/fsusage.c (UINTMAX_MAX): Remove.
67387         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67388         * lib/utimecmp.c (SIZE_MAX): Remove.
67389
67390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67391
67392         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67393         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67394         O_NOATIME works.
67395
67396 2006-10-05  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/gl_list.h (gl_sortedlist_search_from_to,
67399         gl_sortedlist_indexof_from_to): New declarations.
67400         (gl_list_implementation): New fields sortedlist_search_from_to,
67401         sortedlist_indexof_from_to.
67402         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67403         inline functions.
67404         * lib/gl_list.c (gl_sortedlist_search_from_to,
67405         gl_sortedlist_indexof_from_to): New functions.
67406         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67407         function.
67408         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67409         (gl_array_sortedlist_search_from_to): New function.
67410         (gl_array_list_implementation): Update.
67411         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67412         function.
67413         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67414         (gl_carray_sortedlist_search_from_to): New function.
67415         (gl_carray_list_implementation): Update.
67416         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67417         gl_linked_sortedlist_indexof_from_to): New functions.
67418         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67419         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67420         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67421         gl_tree_sortedlist_indexof_from_to): New functions.
67422         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67423         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67424         Update.
67425         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67426         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67427         Update.
67428
67429 2006-10-05  Bruno Haible  <bruno@clisp.org>
67430
67431         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67432         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67433         (struct gl_list_implementation): Add fields search_from_to,
67434         indexof_from_to. Remove fields search, indexof.
67435         (gl_list_search): Use the search_from_to method.
67436         (gl_list_search_from, gl_list_search_from_to): New functions.
67437         (gl_list_indexof): Use the indexof_from_to method.
67438         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67439         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67440         (gl_list_search_from, gl_list_search_from_to): New functions.
67441         (gl_list_indexof): Use the indexof_from_to method.
67442         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67443         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67444         gl_array_indexof. Add start_index, end_index arguments.
67445         (gl_array_search_from_to): Renamed from gl_array_search. Add
67446         start_index, end_index arguments.
67447         (gl_array_remove, gl_array_list_implementation): Update.
67448         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67449         gl_carray_indexof. Add start_index, end_index arguments.
67450         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67451         start_index, end_index arguments.
67452         (gl_carray_remove, gl_carray_list_implementation): Update.
67453         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67454         gl_linked_search. Add start_index, end_index arguments.
67455         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67456         start_index, end_index arguments.
67457         (gl_linked_remove): Update.
67458         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67459         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67460         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67461         field to 'size_t'.
67462         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67463         gl_tree_search. Add start_index, end_index arguments.
67464         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67465         start_index, end_index arguments.
67466         (gl_tree_remove): Update.
67467         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67468         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67469         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67470         function.
67471         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67472         gl_tree_search. Add start_index, end_index arguments.
67473         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67474         start_index, end_index arguments.
67475         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67476         Update.
67477         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67478
67479 2006-10-05  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67482
67483         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67484         fwriteerror_temp): New declarations.
67485         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67486         (descriptors): New variable.
67487         (cleanup): First, close the descriptors.
67488         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67489         fclose_temp, fwriteerror_temp): New functions.
67490
67491 2006-10-04  Jim Meyering  <jim@meyering.net>
67492
67493         * lib/fts.c (fts_open): Tiny comment change.
67494
67495 2006-10-04  Bruno Haible  <bruno@clisp.org>
67496
67497         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67498         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67499         gl_LOCK_BODY.
67500         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67501         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67502         gl_LOCK_EARLY_BODY.
67503         (gl_LOCK): Require gl_LOCK_BODY.
67504
67505 2006-10-04  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67508         (gl_oset_search_atleast): New declaration.
67509         (struct gl_oset_implementation): Add field 'search_atleast'.
67510         (gl_oset_search_atleast): New inline function.
67511         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67512         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67513         (gl_array_oset_implementation): Update.
67514         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67515         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67516         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67517
67518 2006-10-04  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67521
67522 2006-10-03  Bruno Haible  <bruno@clisp.org>
67523
67524         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67525         from gl_avltreehash_list_implementation.
67526
67527 2006-10-03  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/gl_oset.c (gl_oset_add): Fix return type.
67530
67531 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67532
67533         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67534
67535 2006-10-02  Eric Blake  <ebb9@byu.net>
67536
67537         * modules/strnlen (Depends-on): Add extensions.
67538
67539 2006-10-02  Eric Blake  <ebb9@byu.net>
67540
67541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67542         definition in 2.60+.
67543
67544 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67545
67546         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67547         checks.
67548
67549 2006-10-02  Bruno Haible  <bruno@clisp.org>
67550
67551         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67552         to the AUTOMAKE_OPTIONS.
67553         Reported by Jim Meyering.
67554
67555 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67556
67557         Work around bug in Solaris 10 /proc file system:
67558         /proc/self/fd/NNN/.. isn't the parent directory of
67559         the directory whose file descriptor is NNN.  This needs to
67560         be worked around at run time, not compile time, since a
67561         program might be built on Solaris 8, where things work, and
67562         run on Solaris 10.
67563         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67564         to use the following interface instead:
67565         (OPENAT_BUFFER_SIZE): New macro.
67566         (openat_proc_name): New function.
67567         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67568         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67569         Likewise.
67570         * lib/openat-proc.c: New file.
67571         * modules/openat (Files): Add lib/openat-proc.c.
67572         (Depends-on): Add same-inode, stdbool.
67573         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67574
67575 2006-09-29  Bruno Haible  <bruno@clisp.org>
67576
67577         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67578         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67579         argument. Set stdout_closed before testing for ferror, not after.
67580         (fwriteerror, fwriteerror_no_ebadf): New functions.
67581
67582 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67583
67584         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67585
67586 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67587
67588         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67589         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67590
67591 2006-09-28  Jim Meyering  <jim@meyering.net>
67592
67593         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67594         Include <unistd.h>.
67595
67596 2006-09-28  Bruno Haible  <bruno@clisp.org>
67597
67598         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67599         * modules/linkedhash-list (Depends-on): Likewise.
67600         * modules/rbtreehash-list (Depends-on): Likewise.
67601
67602 2006-09-28  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/strndup.h: Simplify the redefinition of strndup.
67605         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67606         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67607
67608 2006-09-28  Bruno Haible  <bruno@clisp.org>
67609
67610         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67611         * lib/gl_linkedhash_list.c: Likewise.
67612         * lib/gl_rbtreehash_list.c: Likewise.
67613
67614 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67617         getaddrinfo.
67618
67619         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67620         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67621         it causes <stdio_ext.h> to cause a compile-time error.
67622         Problem reported by Nelson H. F. Beebe.
67623         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67624         of HAVE_DECL___PENDING.
67625
67626         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67627         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67628         declaration.
67629
67630 2006-09-27  Jim Meyering  <jim@meyering.net>
67631
67632         This file could end up with a definition for a function
67633         named __strndup, rather than rpl_strndup on a system with
67634         incomplete weak_alias support.
67635         * lib/strndup.c (strndup): Rename from __strndup.
67636         Remove #defines that used to map __strndup to strndup.
67637         Don't use K&R prototypes.
67638         Remove LIBC-related code, since this file is not sync'd with glibc.
67639         * lib/strndup.h: Revamp, accordingly.
67640         * m4/strndup.m4: Modernize.
67641
67642 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67643
67644         * modules/savewd (Depends-on): Add 'raise'.
67645         * lib/savewd.c: Include <signal.h>, for 'raise'.
67646
67647 2006-09-26  Jim Meyering  <jim@meyering.net>
67648
67649         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67650         when we detect Darwin 8.7.0's acl_get_file bug.
67651         Rearrange to perform the new (below) run-test while $LIBS
67652         contains any acl-related library.  Set USE_ACL at the end.
67653         (gl_ACL_GET_FILE): New function.
67654
67655 2006-09-26  Eric Blake  <ebb9@byu.net>
67656
67657         * lib/verror.c: Include <config.h> unconditionally.
67658
67659 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         * modules/clock-time (Maintainer): Add self.
67662         * modules/getlogin_r (Depends-on): Add extensions.
67663
67664 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67665
67666         * modules/clock-time: New module.
67667         * modules/nanosleep (Depends-on): Add clock-time.
67668         * modules/gethrxtime (Depends-on): Likewise.
67669         * modules/gettime (Depends-on): Likewise.
67670         * modules/settime (Depends-on): Likewise.
67671
67672         * modules/fts-lgpl: Depend on openat.
67673         * modules/mkancesdirs: Depend on savewd.
67674         * modules/mkdir-p: Likewise.
67675
67676 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67677
67678         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67679
67680         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67681         `gl_have_arbitrary_file_name_length_limit' to
67682         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67683         actually works between configure runs.
67684
67685 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67686             Bruno Haible  <bruno@clisp.org>
67687
67688         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67689
67690 2006-09-25  Jim Meyering  <jim@meyering.net>
67691
67692         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67693         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67694
67695 2006-09-25  Eric Blake  <ebb9@byu.net>
67696
67697         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67698         exec's in 2006-09-18 patch when shuffling fds.
67699
67700 2006-09-25  Bruno Haible  <bruno@clisp.org>
67701
67702         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67703         Reported by Jim Meyering.
67704
67705 2006-09-24  Jim Meyering  <jim@meyering.net>
67706
67707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67708         compare a pointer against a literal "0".  That caused failures with
67709         at least HP-UX's hpcc.
67710
67711 2006-09-22  Simon Josefsson  <jas@extundo.com>
67712
67713         * modules/gc-sha1:
67714         * modules/gc-md4:
67715         * modules/gc-hmac-sha1:
67716         * modules/gc-hmac-md5:
67717         * modules/gc-des:
67718         * modules/gc-arcfour: Distribute more files.
67719
67720 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67721
67722         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67723         (gl_linked_iterator_from_to): Initialize struct completely.
67724         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67725         (gl_tree_iterator_from_to): Likewise
67726         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67727         * lib/gl_array_list.c [lint] (gl_array_iterator)
67728         (gl_array_iterator_from_to): Likewise.
67729         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67730         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67731         (gl_carray_iterator_from_to): Likewise.
67732
67733         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67734         * lib/md4.c (md4_process_block): Remove unused variable.
67735         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67736         parentheses for clarity.
67737
67738 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67739
67740         * modules/bison-i18n (Depends-on): Add gettext.
67741
67742 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67743
67744         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67745         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67746         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67747         also add missing comma that caused broken test.
67748         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67749         stdlib.h, for `abort'.
67750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67751         variables.
67752         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67753         include unistd.h if present, for `rmdir'.
67754         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67755         variables.
67756         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67757         in the process include standard headers for prototypes.
67758         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67759         gets declared on GNU/Linux.
67760         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67761         unistd.h, for `rmdir'.
67762         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67763
67764         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67765         always true.
67766         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67767
67768         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67769
67770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67771
67772         * gnulib-tool (func_version): Create output all at once.  This
67773         may help avoid triggering unnecessary SIGPIPEs, and at any
67774         rate it doesn't hurt.
67775
67776 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67777             Bruno Haible  <bruno@clisp.org>
67778
67779         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67780         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67781         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67782
67783         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67784         (gl_FUNC_VASPRINTF): Invoke it.
67785
67786 2006-09-22  Bruno Haible  <bruno@clisp.org>
67787
67788         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67789         getloadavg.c as first argument.
67790
67791 2006-09-22  Bruno Haible  <bruno@clisp.org>
67792
67793         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67794         at the beginning of the gl_INIT macro.
67795         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67796         gl_GETLOADAVG.
67797
67798 2006-09-22  Bruno Haible  <bruno@clisp.org>
67799
67800         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67801         module.
67802         Suggested by Ralf Wildenhues.
67803
67804 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67805
67806         Import this patch from libc:
67807
67808         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67809
67810         * lib/regex_internal.c (re_string_reconstruct): Handle
67811         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67812         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67813         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67814         re_string_context_at.
67815
67816         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67817         now requires it.
67818         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67819         gl_REGEX now does it for us.
67820         (gl_REGEX): Add test taken from
67821         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67822
67823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67824         Check that large offsets work.  Modernize Autoconf usages.
67825         Prefer "yes" to mean a good thing rather than a bad.
67826         Don't put "#define mkstemp" in config.h, as this might interfere
67827         with standard system headers that "#define mkstemp mkstemp64".
67828
67829         * modules/mkstemp (Depends-on): Add extensions, so that
67830         mkstemp is visible on some platforms.
67831         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67832         (Include): Change to "mkstemp.h" from <stdlib.h>.
67833         (Files): Add mkstemp.h.
67834
67835         * lib/mkstemp.h: New file, since some standard headers
67836         #define mkstemp.
67837         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67838         Include "mkstemp.h".
67839         Make the _LIBC code resemble glibc original more,
67840         e.g., use K&R style.
67841         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67842         (mkstemp): Remove, since mkstemp.h does this for us.
67843         * lib/stdlib--.h: Include mkstemp.h.
67844
67845         Import this patch from libc:
67846
67847         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67848
67849         * lib/tempname.c (__gen_tempname): Change attempts_min
67850         into a macro.  Use preprocessor to decide how to initialize
67851         attempts [Coverity CID 67].
67852
67853 2006-09-20  Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/mkdtemp.c: Import from libc.
67856         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67857                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67858                 attempts_min into a macro.  Use preprocessor to decide how to
67859                 initialize attempts [Coverity CID 67].
67860         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67861                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67862                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67863
67864 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67865
67866         * gnulib-tool (func_exit): New function, to allow to pass the
67867         exit status portably through the trap.  Use everywhere.
67868         (--help, --version): Signal a write error.
67869         (trap): catch SIGPIPE, for write errors.
67870         Exit at the end of the trap, with the correct exit status.
67871
67872 2006-09-19  Karl Berry  <karl@gnu.org>
67873
67874         * doc/gnulib.texi: note about the license texinfo files.
67875
67876 2006-09-19  Eric Blake  <ebb9@byu.net>
67877
67878         * gnulib-tool: Avoid space-tab.
67879
67880 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67883         that prevented coreutils 6.1 from building.  Problem reported
67884         by Petter Reinholdtsen.
67885
67886 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * gnulib-tool (avoidlist): Fix typo that broke options like
67889         --avoid=lock that are used by coreutils bootstrap.
67890
67891 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67892
67893         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67894         more systematically.
67895
67896 2006-09-18  Jim Meyering  <jim@meyering.net>
67897
67898         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67899
67900 2006-09-18  Bruno Haible  <bruno@clisp.org>
67901
67902         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67903
67904 2006-09-18  Bruno Haible  <bruno@clisp.org>
67905
67906         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67907         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67908         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67909         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67910         * m4/gettext.m4: Require autoconf >= 2.52.
67911         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67912         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67913         of gl_cv_header_inttypes_h.
67914
67915 2006-09-18  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/javaversion.c: Include configmake.h.
67918
67919 2006-09-18  Bruno Haible  <bruno@clisp.org>
67920
67921         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67922         avoid that the while loops be executed in a subshell.
67923
67924 2006-09-18  Bruno Haible  <bruno@clisp.org>
67925
67926         * MODULES.html.sh (func_module): Break long lines.
67927         Suggested by Bruce Korb <bkorb@gnu.org>.
67928
67929 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67930
67931         Speed up by a factor of 1.12.
67932         * gnulib-tool (nl): New variable.
67933         (func_import): Rewrite include directive extraction to only read each
67934         directive once.
67935
67936 2006-09-17  Bruno Haible  <bruno@clisp.org>
67937
67938         * modules/javaversion (Makefile.am): Remove DEFS setting.
67939         (Depends-on): Add configmake, for PKGDATADIR definition.
67940
67941 2006-09-17  Bruno Haible  <bruno@clisp.org>
67942
67943         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67944
67945 2006-09-17  Bruno Haible  <bruno@clisp.org>
67946
67947         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67948         (func_modules_transitive_closure, func_modules_add_dummy,
67949         func_modules_to_filelist, func_import, func_create_testdir,
67950         func_create_megatestdir, ...): Use it wherever possible.
67951         Suggested by Ralf Wildenhues.
67952
67953 2006-09-16  Karl Berry  <karl@gnu.org>
67954
67955         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67956         to avoid sectioning errors.
67957         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67958         [ifinfo]: blank line after @center-ed titles.
67959         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67960         Spell FSF address consistently with others.
67961         (These changes approved by rms.)
67962
67963 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67964
67965         Speed up by a factor of 1.61.
67966         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67967         already checked module names again.
67968
67969 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67970
67971         Speed up by a factor of 1.13.
67972         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67973         for new_files, and the input to func_add_or_update.
67974
67975 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67976
67977         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67978         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67979
67980 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * modules/mkancesdirs (Depends-on): Add fcntl.
67983         * modules/savewd: New file.
67984         * MODULES.html.sh (File system functions): Add savewd.
67985
67986         * modules/configmake (Makefile.am): Add support for the
67987         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67988
67989 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * m4/savewd.m4: New file.
67992
67993 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67996         (dirchownmod): New arg FD.  All callers changed.
67997         Use FD rather than opening the directory ourself, as opening is
67998         now the caller's responsibility.
67999         * lib/dirchownmod.h: Likewise.
68000         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68001         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68002         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68003         (test_dir): Remove.
68004         (mkancesdirs): Return length of prefix of FILE that has already
68005         been made, or -2 if there is a child doing the work.  Redo
68006         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68007         ".", and treat ".." specially since it might stray back into
68008         already-created areas.  Use a subprocess if necessary.  New arg
68009         WD; all users changed.  MAKE_DIR function should now return 1
68010         if it creates a directory that is not readable.  Return -2 if
68011         a child process is spun off.
68012         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68013         Adjust signature to match code.
68014         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68015         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68016         all users changed.
68017         * lib/savewd.c, lib/savewd.h: New files.
68018
68019 2006-09-15  Jim Meyering  <jim@meyering.net>
68020
68021         * modules/rename-dest-slash: New module.
68022         * MODULES.html.sh (posix_compat): Add it here.
68023
68024         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68025
68026 2006-09-15  Jim Meyering  <jim@meyering.net>
68027
68028         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68029         file.
68030
68031         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68032
68033 2006-09-15  Jim Meyering  <jim@meyering.net>
68034
68035         * lib/rename-dest-slash.c (has_trailing_slash): Use
68036         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68037         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68038         test before testing whether SRC is a directory.
68039         Suggestions from Bruno Haible.
68040
68041         Avoid a warning about an unused variable.
68042         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68043         into the #ifdef block where it's used.
68044
68045         * lib/rename-dest-slash.c: New file.
68046
68047 2006-09-14  Bruno Haible  <bruno@clisp.org>
68048
68049         * lib/allocsa.c: Include <config.h> unconditionally.
68050         * lib/asnprintf.c: Likewise.
68051         * lib/asprintf.c: Likewise.
68052         * lib/c-strcasecmp.c: Likewise.
68053         * lib/c-strcasestr.c: Likewise.
68054         * lib/c-strncasecmp.c: Likewise.
68055         * lib/c-strstr.c: Likewise.
68056         * lib/classpath.c: Likewise.
68057         * lib/clean-temp.c: Likewise.
68058         * lib/concatpath.c: Likewise.
68059         * lib/copy-file.c: Likewise.
68060         * lib/csharpcomp.c: Likewise.
68061         * lib/csharpexec.c: Likewise.
68062         * lib/execute.c: Likewise.
68063         * lib/fatal-signal.c: Likewise.
68064         * lib/findprog.c: Likewise.
68065         * lib/fwriteerror.c: Likewise.
68066         * lib/gl_array_list.c: Likewise.
68067         * lib/gl_array_oset.c: Likewise.
68068         * lib/gl_avltree_list.c: Likewise.
68069         * lib/gl_avltree_oset.c: Likewise.
68070         * lib/gl_avltreehash_list.c: Likewise.
68071         * lib/gl_carray_list.c: Likewise.
68072         * lib/gl_linked_list.c: Likewise.
68073         * lib/gl_linkedhash_list.c: Likewise.
68074         * lib/gl_list.c: Likewise.
68075         * lib/gl_oset.c: Likewise.
68076         * lib/gl_rbtree_list.c: Likewise.
68077         * lib/gl_rbtree_oset.c: Likewise.
68078         * lib/gl_rbtreehash_list.c: Likewise.
68079         * lib/imaxabs.c: Likewise.
68080         * lib/imaxdiv.c: Likewise.
68081         * lib/javacomp.c: Likewise.
68082         * lib/javaexec.c: Likewise.
68083         * lib/javaversion.c: Likewise.
68084         * lib/linebreak.c: Likewise.
68085         * lib/localcharset.c: Likewise.
68086         * lib/lock.c: Likewise.
68087         * lib/mbchar.c: Likewise.
68088         * lib/mbswidth.c: Likewise.
68089         * lib/mkdtemp.c: Likewise.
68090         * lib/pipe.c: Likewise.
68091         * lib/printf-args.c: Likewise.
68092         * lib/printf-parse.c: Likewise.
68093         * lib/progname.c: Likewise.
68094         * lib/progreloc.c: Likewise.
68095         * lib/readlink.c: Likewise.
68096         * lib/sh-quote.c: Likewise.
68097         * lib/stpcpy.c: Likewise.
68098         * lib/stpncpy.c: Likewise.
68099         * lib/strcasecmp.c: Likewise.
68100         * lib/strcasestr.c: Likewise.
68101         * lib/strcspn.c: Likewise.
68102         * lib/striconv.c: Likewise.
68103         * lib/strncasecmp.c: Likewise.
68104         * lib/strnlen1.c: Likewise.
68105         * lib/strstr.c: Likewise.
68106         * lib/strtok_r.c: Likewise.
68107         * lib/tls.c: Likewise.
68108         * lib/tmpdir.c: Likewise.
68109         * lib/unicodeio.c: Likewise.
68110         * lib/unsetenv.c: Likewise.
68111         * lib/vasnprintf.c: Likewise.
68112         * lib/vasprintf.c: Likewise.
68113         * lib/wait-process.c: Likewise.
68114         * lib/xallocsa.c: Likewise.
68115         * lib/xsetenv.c: Likewise.
68116         * lib/xstriconv.c: Likewise.
68117
68118 2006-09-13  Simon Josefsson  <jas@extundo.com>
68119
68120         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68121         that internally, suggested by Ralf Wildenhues
68122         <Ralf.Wildenhues@gmx.de>.
68123
68124 2006-09-13  Simon Josefsson  <jas@extundo.com>
68125
68126         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68127         @LIBOBJS@.
68128         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68129
68130 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68133         longer worry about uses that don't define HAVE_CONFIG_H.
68134         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68135         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68136         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68137         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68138         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68139         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68140         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68141         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68142         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68143         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68144         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68145         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68146         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68147         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68148         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68149         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68150         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68151         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68152         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68153         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68154         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68155         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68156         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68157         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68158         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68159         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68160         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68161         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68162         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68163         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68164         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68165         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68166         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68167         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68168         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68169         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68170         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68171         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68172         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68173         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68174         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68175         Likewise.
68176
68177 2006-09-13  Eric Blake  <ebb9@byu.net>
68178
68179         * lib/getopt.c: Fix typo in last commit.
68180
68181 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68182
68183         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68184         dgettext.
68185
68186 2006-09-12  Jim Meyering  <jim@meyering.net>
68187
68188         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68189         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68190         Reported by Nelson H. F. Beebe.
68191
68192 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68193
68194         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68195         program_invocation_name and program_invocation_short_name are
68196         initialized.
68197         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68198         and program_invocation_short_name to argp.h, so they are visible
68199         to user programs.
68200         * lib/argp.h: Likewise
68201
68202 2006-09-10  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68205         m4/inttypes_h.m4, m4/uintmax_t.m4.
68206
68207 2006-09-10  Bruno Haible  <bruno@clisp.org>
68208
68209         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68210         gl_AC_TYPE_UINTMAX_T.
68211
68212 2006-09-10  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68215
68216 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68217
68218         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68219         convention.  Text proposed by Bruno Haible.
68220         (struct argp_option): Document the use of N_() wrappers.
68221
68222         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68223         '\v', and translate the two parts separately, instead of feeding
68224         the whole string to gettext.  This allows to exclude
68225         '\v' from the strings visible to the translator by writing doc
68226         strings as N_("..") "\v" N_("..").
68227
68228 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68229
68230         * config/srclist.txt: Undo latest change; the bug was fixed.
68231
68232 2006-09-09  Bruno Haible  <bruno@clisp.org>
68233
68234         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68235         assignments if building a library without libtool.
68236         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68237         in func_emit_lib_Makefile_am.
68238         (func_import): When building a static library libfoo.a, arrange to
68239         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68240         (func_create_testdir): Likewise.
68241         * modules/gc (configure.ac, Makefile.am): If building statically,
68242         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68243         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68244         * modules/striconv (configure.ac, Makefile.am): Likewise.
68245         Based on a suggestion by Ralf Wildenhues.
68246
68247 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68248
68249         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68250         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68251         Also:
68252
68253         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68254         Add year_2050_test to catch glibc bug 2821
68255         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68256
68257         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68258         Prefer #ifdef to #if.
68259
68260         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68261         Return from 'main' instead of calling 'exit'.
68262
68263 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68266         returned the maximum time_t value rather than (time_t) -1.
68267         Problem originally reported by William Bardwell
68268         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68269
68270         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68271         Moved to here ...
68272         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68273         ... from here.
68274
68275 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68278         2821 is fixed.
68279
68280 2006-09-08  Jim Meyering  <jim@meyering.net>
68281
68282         Don't make generated files read-only.  That would bother too many
68283         people.  However, do retain the ability to work when targets are
68284         read-only: remove the destination and temporary files before writing
68285         them (when generated via sed or echo), or by using the -f option for
68286         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68287         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68288         * modules/byteswap, modules/configmake, modules/fcntl:
68289         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68290         * modules/localcharset, modules/netinet_in, modules/poll:
68291         * modules/stdbool, modules/stdint, modules/sys_select:
68292         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68293
68294 2006-09-08  Jim Meyering  <jim@meyering.net>
68295
68296         Avoid new build failure on FreeBSD 6.0.
68297         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68298         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68299         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68300
68301 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68302
68303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68304
68305 2006-09-07  Jim Meyering  <jim@meyering.net>
68306
68307         Fix global typo in last change: use chmod u-w, not chmod u-x.
68308         Spotted by Paul Eggert and Bruce Korb.
68309         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68310         * modules/byteswap, modules/configmake, modules/fcntl:
68311         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68312         * modules/localcharset, modules/netinet_in, modules/poll:
68313         * modules/stdbool, modules/stdint, modules/sys_select:
68314         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68315
68316 2006-09-06  Jim Meyering  <jim@meyering.net>
68317
68318         Make generated files be read-only.
68319         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68320         Ensure that each generated file is now read-only.
68321         * modules/argz: Likewise.
68322         * modules/arpa_inet: Likewise.
68323         * modules/byteswap: Likewise.
68324         * modules/configmake: Likewise.
68325         * modules/fcntl: Likewise.
68326         * modules/fnmatch: Likewise.
68327         * modules/getopt: Likewise.
68328         * modules/glob: Likewise.
68329         * modules/inttypes: Likewise.
68330         * modules/netinet_in: Likewise.
68331         * modules/poll: Likewise.
68332         * modules/stdbool: Likewise.
68333         * modules/stdint: Likewise.
68334         * modules/sys_select: Likewise.
68335         * modules/sys_socket: Likewise.
68336         * modules/sys_stat: Likewise.
68337         * modules/sysexits: Likewise.
68338         * modules/localcharset: Same as above, but continue using temporary
68339         file named "t-$@" (why different?) rather than the "$@-t" used
68340         everywhere else.
68341
68342         * modules/sysexits (Makefile.am): Replace literal occurrences
68343         of "sysexit.h" more readable, and more consistent, "$@".
68344
68345 2006-09-06  Bruno Haible  <bruno@clisp.org>
68346
68347         * modules/striconv: New file.
68348         * modules/xstriconv: New file.
68349         * MODULES.html.sh (Internationalization functions): Add striconv,
68350         xstriconv.
68351
68352 2006-09-06  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68355         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68356         not using libtool correctly.
68357
68358 2006-09-06  Bruno Haible  <bruno@clisp.org>
68359
68360         * lib/striconv.h: New file.
68361         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68362         iconvstring.c.
68363         * lib/xstriconv.h: New file.
68364         * lib/xstriconv.c: New file.
68365
68366 2006-09-06  Bruno Haible  <bruno@clisp.org>
68367
68368         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68369         lib_..._LDFLAGS.
68370
68371 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68372
68373         * lib/argz_.h: Sync from Libtool.
68374
68375         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68376                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68377
68378         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68379
68380 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68381
68382         * modules/trim: New file.
68383
68384 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68385
68386         * lib/trim.h: New file.
68387         * lib/trim.c: New file.
68388
68389 2006-09-05  Bruno Haible  <bruno@clisp.org>
68390
68391         * MODULES.html.sh (String handling): Add trim.
68392
68393 2006-09-04  Karl Berry  <karl@gnu.org>
68394
68395         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68396         until next release.
68397
68398 2006-09-03  Bruno Haible  <bruno@clisp.org>
68399
68400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68401         correctly.
68402
68403 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68406         not gl_GETLOADAVG.  Omit unneeded semicolons.
68407         Problems reported by Ralf Wildenhues in
68408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68409         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68410         at the end, which is the usual gnulib style.
68411
68412         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68413         of doing all the work ourselves.
68414         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68415         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68416
68417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68420         Problem reported by Ralf Wildenhues in
68421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68422
68423         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68424         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68425
68426 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68429         yesterday's patch by changing test -n to test -z.
68430
68431 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68434         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68435         the former is now obsolescent.
68436
68437         * modules/chdir-long (Depends-on): Add fcntl.
68438
68439 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68440
68441         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68442         obsolescent, and programs should use gnulib instead.
68443         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68444         but with prefixes changed.
68445
68446 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68447
68448         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68449         or stdbool.h, because they might not exist while configuring.
68450
68451         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68452         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68453         does that for us.
68454         (O_DIRECTORY): Remove.
68455
68456 2006-08-31  Eric Blake  <ebb9@byu.net>
68457
68458         * gnulib-tool: Don't let emacs change spaces to TAB.
68459
68460 2006-08-31  Bruno Haible  <bruno@clisp.org>
68461
68462         * gnulib-tool: When calling func_import more than once, do it in a
68463         subshell.
68464         Reported by Eric Blake <ebb9@byu.net>.
68465
68466 2006-08-31  Bruno Haible  <bruno@clisp.org>
68467
68468         * gnulib-tool (nl): Remove variable.
68469         (sed_transform_lib_file): Use more robust test for config-h module.
68470         (func_import): Fix typo in 2006-08-25 patch.
68471
68472 2006-08-31  Bruno Haible  <bruno@clisp.org>
68473
68474         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68475         specified, augment Makefile.am variables instead of assigning them.
68476
68477 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         Work around a bug in both the Linux and SunOS 64-bit kernels:
68480         nanosleep mishandles sleeps for longer than 2**31 seconds.
68481         Problem reported by Frank v Waveren in
68482         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68484         Check for nanosleep bug.
68485         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68486
68487 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         Work around a bug in both the Linux and SunOS 64-bit kernels:
68490         nanosleep mishandles sleeps for longer than 2**31 seconds.
68491         Problem reported by Frank v Waveren in
68492         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68493         * lib/nanosleep.c (BILLION): New constant.
68494         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68495         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68496         implementation.
68497
68498 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * modules/nanosleep (Depends-on): Add gettime.
68501
68502 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68503         and Simon Josefsson  <jas@extundo.com>
68504         and Oskar Liljeblad  <oskar@osk.mine.nu>
68505
68506         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68507         * gnulib-tool (func_import): New license type 'unmodifiable license
68508         text'.
68509         * modules/fdl: Use it.  Longer description.
68510         * module/gpl, module/lgpl: New files.
68511
68512 2006-08-30  Jim Meyering  <jim@meyering.net>
68513
68514         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68515         shadowing the parameter.
68516
68517 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68518
68519         Sync from Libtool:
68520
68521         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68522
68523         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68524         sharing with gnulib.  Report by Eric Blake.
68525
68526 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * modules/isapipe: New file.
68529         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68530
68531 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * modules/configmake (Makefile.am): Add a comment, and omit
68534         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68535         by Bruno Haible.
68536
68537 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/isapipe.m4: New file.
68540
68541 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         * lib/isapipe.c, lib/isapipe.h: New files.
68544
68545 2006-08-29  Jim Meyering  <jim@meyering.net>
68546
68547         * modules/configmake (Makefile.am): Make configmake.h depend on
68548         Makefile.  Otherwise, a stale configmake.h could hang around.
68549
68550 2006-08-29  Eric Blake  <ebb9@byu.net>
68551
68552         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68553         resolution of upstream bug 3044.
68554
68555 2006-08-29  Bruno Haible  <bruno@clisp.org>
68556
68557         * modules/localcharset (Depends-on): Add configmake.
68558         (Makefile.am): Remove setting of LIBDIR through DEFS.
68559
68560 2006-08-29  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68563         defined.
68564
68565 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * modules/fcntl: New file.
68568         * modules/chdir-safer (Depends-on): Add fcntl.
68569         * modules/fts: Likewise.
68570         * modules/mkdir-p: Likewise.
68571
68572         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68573         This undoes the most recent change, since we're now addressing the
68574         problem in a different way.
68575
68576         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68577         into output, since the output might be called Makefile.am even
68578         if $makefile_name is something different.
68579         (func_import): Use $makefile_am rather than
68580         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68581         empty.
68582
68583         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68584
68585 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68588         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68589         recent change to stdint.m4, since we're now addressing the problem in a
68590         different way.
68591
68592 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * m4/fcntl_h.m4: New file.
68595
68596 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         * lib/fcntl_.h: New file.
68599         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68600         the fcntl module.
68601         * lib/dirchownmod.c: Likewise.
68602         * lib/fts.c: Likewise.
68603
68604         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68605         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68606         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68607         just before including <inttypes.h>, to avoid circular inclusion.
68608
68609 2006-08-28  Jim Meyering  <jim@meyering.net>
68610
68611         * doc/visibility.texi: Actually read and correct the grammar of the
68612         sentence affected by yesterday's change.
68613
68614 2006-08-28  Eric Blake  <ebb9@byu.net>
68615
68616         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68617         needs wrapper.
68618
68619 2006-08-28  Eric Blake  <ebb9@byu.net>
68620
68621         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68622
68623 2006-08-28  Eric Blake  <ebb9@byu.net>
68624
68625         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68626
68627 2006-08-28  Bruno Haible  <bruno@clisp.org>
68628
68629         * modules/c-strstr: New file, from GNU gettext.
68630         * MODULES.html.sh (String handling): Add c-strstr.
68631
68632 2006-08-28  Bruno Haible  <bruno@clisp.org>
68633
68634         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68635         macros.
68636         Reported by Eric Blake.
68637
68638 2006-08-28  Bruno Haible  <bruno@clisp.org>
68639
68640         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68641         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68642         * lib/vasprintf.c: Include errno.h, limits.h.
68643         (EOVERFLOW): New fallback definition.
68644         (vasprintf): Test here whether the string length is > INT_MAX.
68645         * lib/vsnprintf.c: Include errno.h, limits.h.
68646         (EOVERFLOW): New fallback definition.
68647         (vsnprintf): Fix bug when generated string was too long for the buffer.
68648         Test here whether the string length is > INT_MAX.
68649
68650 2006-08-28  Bruno Haible  <bruno@clisp.org>
68651
68652         * lib/inttypes_.h (SCNX*): Remove definitions.
68653         Reported by Eric Blake.
68654
68655 2006-08-28  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/c-strstr.h: New file, from GNU gettext.
68658         * lib/c-strstr.c: New file, from GNU gettext.
68659
68660 2006-08-28  Bruno Haible  <bruno@clisp.org>
68661
68662         * gnulib-tool: Reorder some statements.
68663
68664 2006-08-28  Bruno Haible  <bruno@clisp.org>
68665
68666         * gnulib-tool: New option --makefile-name.
68667         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68668         $makefile_name.
68669         (func_import): Write $makefile_name to the cache file, and read it from
68670         there unless explicitly specified. Use $makefile_name as file name
68671         instead of Makefile.am. Adjust the recommendations accordingly.
68672
68673 2006-08-28  Bruno Haible  <bruno@clisp.org>
68674
68675         * gnulib-tool (func_verify_module): Check against misapplying patch.
68676
68677 2006-08-28  Bruno Haible  <bruno@clisp.org>
68678
68679         * gnulib-tool (func_relativize, func_relconcat): New functions.
68680         Give an error if --local-dir is given with --update.
68681         Remove trailing slashes from $local_gnulib_dir.
68682         (func_import): Store the relativized $local_gnulib_dir in
68683         gnulib-cache.m4, and read it from there if not specified explicitly.
68684
68685 2006-08-28  Bruno Haible  <bruno@clisp.org>
68686
68687         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68688         is the current directory. Respect also $local_gnulib_dir.
68689
68690 2006-08-28  Bruno Haible  <bruno@clisp.org>
68691             Simon Josefsson  <jas@extundo.com>
68692
68693         BeOS portability.
68694         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68695
68696 2006-08-27  Jim Meyering  <jim@meyering.net>
68697
68698         * doc/visibility.texi: Remove duplicate word: "pointer".
68699
68700 2006-08-26  Bruno Haible  <bruno@clisp.org>
68701
68702         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68703         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68704         (Makefile.am): Create inttypes.h from inttypes_.h.
68705         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68706
68707         * modules/imaxabs: New file.
68708
68709         * modules/imaxdiv: New file.
68710
68711 2006-08-26  Bruno Haible  <bruno@clisp.org>
68712
68713         * m4/inttypes.m4: New file.
68714         * m4/_inttypes_h.m4: Remove file.
68715         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68716         PRI_MACROS_BROKEN.
68717         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68718
68719         * m4/imaxabs.m4: New file.
68720
68721         * m4/imaxdiv.m4: New file.
68722
68723 2006-08-26  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/inttypes_.h: New file.
68726         * lib/inttypes.h: Remove file.
68727         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68728
68729         * lib/imaxabs.c: New file.
68730
68731         * lib/imaxdiv.c: New file.
68732
68733 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68734
68735         New config-h module, so that "make" output needn't be cluttered
68736         by -DHAVE_CONFIG_H.
68737         * MODULES.html.sh (Support for building libraries and executables):
68738         Add config-h.
68739         * modules/config-h: New file.
68740         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68741         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68742         the config-h module is used.
68743
68744         New configmake module, so that "make" output needn't be cluttered
68745         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68746         * MODULES.html.sh (Support for building libraries and executables):
68747         Add configmake.
68748         * modules/configmake: New file.
68749
68750 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         * m4/config-h.m4: New file.
68753
68754 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * config/srclist.txt: Add elisp-comp.
68757
68758 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * MODULES.html.sh (Support for building libraries and executables):
68761         Add elisp-comp.
68762         * build-aux/elisp-comp: New file.
68763         * modules/elisp-comp: New file.
68764
68765 2006-08-24  Bruno Haible  <bruno@clisp.org>
68766
68767         * gnulib-tool (func_create_testdir): Use non-default values of
68768         sourcebase and m4base.
68769
68770 2006-08-24  Bruno Haible  <bruno@clisp.org>
68771
68772         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68773         HTML structure.
68774
68775 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * modules/openat (Depends-on): Add lchown.
68778
68779 2006-08-23  Bruno Haible  <bruno@clisp.org>
68780
68781         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68782         of gl_LOCK_EARLY instead of gl_LOCK.
68783
68784 2006-08-23  Bruno Haible  <bruno@clisp.org>
68785
68786         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68787         on OSF/1 to no.
68788         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68789
68790 2006-08-23  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68793         as unusable.
68794
68795         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68796         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68797         (gl_LOCK): New macro.
68798
68799 2006-08-22  Simon Josefsson  <jas@extundo.com>
68800
68801         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68802         to md5 module.
68803
68804 2006-08-22  Simon Josefsson  <jas@extundo.com>
68805
68806         * MODULES.html.sh: Add "Support for maintaining and release
68807         projects".
68808
68809         * build-aux/gnupload: New file, from coreutils.
68810
68811 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         Avoid the need for AC_LIBSOURCES in m4 macros.
68814         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68815         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68816         * modules/check-version (EXTRA_DIST): Add check-version.h.
68817         * modules/crc (EXTRA_DIST): Add crc.h.
68818         * modules/des (EXTRA_DIST): Add des.h.
68819         * modules/gc (EXTRA_DIST): Add gc.h.
68820         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68821         * modules/getline (EXTRA_DIST): Add getline.h.
68822         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68823         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68824         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68825         * modules/md2 (EXTRA_DIST): Add md2.h.
68826         * modules/md4 (EXTRA_DIST): Add md4.h.
68827         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68828         * modules/read-file (EXTRA_DIST): Add read-file.h.
68829         * modules/readline (EXTRA_DIST): Add readline.h.
68830         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68831         rijndael-api-fst.h.
68832
68833 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * m4/rijndael.m4 (gl_ARCFOUR):
68836         * m4/arctwo.m4 (gl_ARCTWO):
68837         * m4/check-version.m4 (gl_CHECK_VERSION):
68838         * m4/crc.m4 (gl_CRC):
68839         * m4/des.m4 (gl_DES):
68840         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68841         * m4/gc.m4 (gl_GC):
68842         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68843         * m4/getline.m4 (gl_FUNC_GETLINE):
68844         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68845         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68846         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68847         * m4/md2.m4 (gl_MD2):
68848         * m4/md4.m4 (gl_MD4):
68849         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68850         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68851         * m4/readline.m4 (gl_FUNC_READLINE):
68852         * m4/rijndael.m4 (gl_RIJNDAEL):
68853         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68854         to get the necessary .h files and whatnot.
68855
68856 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68859         gnulib rather than the other way around.
68860         * config/srclistvars.sh (COREUTILS): Remove.
68861
68862 2006-08-22  Jim Meyering  <jim@meyering.net>
68863
68864         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68865
68866         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68867
68868 2006-08-22  Eric Blake  <ebb9@byu.net>
68869
68870         * modules/regexprops-generic: New file.
68871         * MODULES.html.sh (Support for building documentation): List it.
68872
68873 2006-08-22  Eric Blake  <ebb9@byu.net>
68874
68875         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68876         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68877         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68878         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68879
68880 2006-08-22  Bruno Haible  <bruno@clisp.org>
68881
68882         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68883         and lib_LTLIBRARIES like the other lib_* variables.
68884
68885 2006-08-22  Bruno Haible  <bruno@clisp.org>
68886
68887         * build-aux/x-to-1.in: New file, from GNU gettext.
68888
68889 2006-08-22  Bruno Haible  <bruno@clisp.org>
68890
68891         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68892         <utmpx.h> exists.
68893
68894 2006-08-22  Bruno Haible  <bruno@clisp.org>
68895
68896         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68897         <utmpx.h> exists.
68898
68899 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         BeOS portability.
68902         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68903         exist.
68904         Problem reported by Bruno Haible.
68905
68906 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         Avoid the need for AC_LIBSOURCES in m4 macros.
68909         * modules/acl (EXTRA_DIST): Add acl.h.
68910         * modules/argmatch (Files): Add m4/argmatch.m4.
68911         (configure.ac): Add gl_ARGMATCH.
68912         (EXTRA_DIST): Renamed from lib_SOURCES, for
68913         consistency with the other modules.  Remove argmatch.c.
68914         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68915         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68916         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68917         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68918         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68919         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68920         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68921         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68922         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68923         * modules/closeout (EXTRA_DIST): Add closeout.h.
68924         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68925         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68926         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68927         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68928         dirname.h; remove basename.c and stripslash.c.
68929         * modules/exclude (EXTRA_DIST): Add exclude.h.
68930         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68931         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68932         * modules/file-type (EXTRA_DIST): Add file-type.h.
68933         * modules/filemode (EXTRA_DIST): Add filemode.h.
68934         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68935         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68936         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68937         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68938         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68939         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68940         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68941         * modules/getdate (EXTRA_DIST): Add getdate.c.
68942         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68943         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68944         * modules/getpass (EXTRA_DIST): Add getpass.h.
68945         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68946         * modules/group-member (EXTRA_DIST): Add group-member.h.
68947         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68948         * modules/hash (EXTRA_DIST): Add hash.h.
68949         * modules/human (EXTRA_DIST): Add human.h.
68950         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68951         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68952         * modules/lchown (EXTRA_DIST): Add lchown.h.
68953         * modules/long-options (EXTRA_DIST): Add long-options.h.
68954         * modules/lstat (EXTRA_DIST): Add lstat.h.
68955         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68956         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68957         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68958         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68959         * modules/memxor (EXTRA_DIST): Add memxor.h.
68960         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68961         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68962         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68963         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68964         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68965         * modules/physmem (EXTRA_DIST): Add physmem.h.
68966         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68967         * modules/posixver (EXTRA_DIST): Add posixver.h.
68968         * modules/quote (EXTRA_DIST): Add quote.h.
68969         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68970         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68971         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68972         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68973         regex_internal.h regexec.c.
68974         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68975         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68976         * modules/same (EXTRA_DIST): Add same.h.
68977         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68978         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68979         * modules/savedir (EXTRA_DIST): Add savedir.h.
68980         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68981         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68982         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68983         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68984         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68985         * modules/strdup (EXTRA_DIST): Add strdup.h.
68986         * modules/strftime (EXTRA_DIST): Add strftime.h.
68987         * modules/strndup (EXTRA_DIST): Add strndup.h.
68988         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68989         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68990         * modules/time_r (EXTRA_DIST): Add time_r.h.
68991         * modules/timespec (EXTRA_DIST): Add timespec.h.
68992         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68993         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68994         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68995         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68996         * modules/userspec (EXTRA_DIST): Add userspec.h.
68997         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68998         * modules/utimens (EXTRA_DIST): Add utimens.h.
68999         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69000         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69001         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69002         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69003         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69004         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69005         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69006         * modules/yesno (EXTRA_DIST): Add yesno.h.
69007
69008 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69011
69012         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69013         * m4/dev-ino.m4, same-inode.m4: Remove.
69014
69015         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69016         * m4/acl.m4 (AC_FUNC_ACL):
69017         * m4/backupfile.m4 (gl_BACKUPFILE):
69018         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69019         * m4/canon-host.m4 (gl_CANON_HOST):
69020         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69021         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69022         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69023         * m4/cloexec.m4 (gl_CLOEXEC):
69024         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69025         * m4/closeout.m4 (gl_CLOSEOUT):
69026         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69027         * m4/dirname.m4 (gl_DIRNAME):
69028         * m4/exclude.m4 (gl_EXCLUDE):
69029         * m4/exitfail.m4 (gl_EXITFAIL):
69030         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69031         * m4/file-type.m4 (gl_FILE_TYPE):
69032         * m4/filemode.m4 (gl_FILEMODE):
69033         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69034         * m4/fpending.m4 (gl_FUNC_FPENDING):
69035         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69036         * m4/fts.m4 (gl_FUNC_FTS):
69037         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69038         * m4/getdate.m4 (gl_GETDATE):
69039         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69040         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69041         * m4/getpass.m4 (gl_FUNC_GETPASS):
69042         * m4/gettime.m4 (gl_GETTIME):
69043         * m4/getugroups.m4 (gl_GETUGROUPS):
69044         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69045         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69046         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69047         * m4/hash.m4 (gl_HASH):
69048         * m4/idcache.m4 (gl_IDCACHE):
69049         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69050         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69051         * m4/long-options.m4 (gl_LONG_OPTIONS):
69052         * m4/lstat.m4 (gl_FUNC_LSTAT):
69053         * m4/md5.m4 (gl_MD5):
69054         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69055         * m4/memcoll.m4 (gl_MEMCOLL):
69056         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69057         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69058         * m4/memxor.m4 (gl_MEMXOR):
69059         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69060         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69061         * m4/modechange.m4 (gl_MODECHANGE):
69062         * m4/mountlist.m4 (gl_MOUNTLIST):
69063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69064         * m4/openat.m4 (gl_FUNC_OPENAT):
69065         * m4/pathmax.m4 (gl_PATHMAX):
69066         * m4/physmem.m4 (gl_PHYSMEM):
69067         * m4/posixtm.m4 (gl_POSIXTM):
69068         * m4/posixver.m4 (gl_POSIXVER):
69069         * m4/quote.m4 (gl_QUOTE):
69070         * m4/quotearg.m4 (gl_QUOTEARG):
69071         * m4/readtokens.m4 (gl_READTOKENS):
69072         * m4/readutmp.m4 (gl_READUTMP):
69073         * m4/regex.m4 (gl_REGEX):
69074         * m4/safe-read.m4 (gl_SAFE_READ):
69075         * m4/safe-write.m4 (gl_SAFE_WRITE):
69076         * m4/same.m4 (gl_SAME):
69077         * m4/save-cwd.m4 (gl_SAVE_CWD):
69078         * m4/savedir.m4 (gl_SAVEDIR):
69079         * m4/settime.m4 (gl_SETTIME):
69080         * m4/sha1.m4 (gl_SHA1):
69081         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69082         * m4/stat-macros.m4 (gl_STAT_MACROS):
69083         * m4/stat-time.m4 (gl_STAT_TIME):
69084         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69085         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69086         * m4/strdup.m4 (gl_FUNC_STRDUP):
69087         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69088         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69089         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69090         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69091         * m4/time_r.m4 (gl_TIME_R):
69092         * m4/timespec.m4 (gl_TIMESPEC):
69093         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69094         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69095         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69096         * m4/userspec.m4 (gl_USERSPEC):
69097         * m4/utimecmp.m4 (gl_UTIMECMP):
69098         * m4/utimens.m4 (gl_UTIMENS):
69099         * m4/xalloc.m4 (gl_XALLOC):
69100         * m4/xgetcwd.m4 (gl_XGETCWD):
69101         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69102         * m4/xreadlink.m4 (gl_XREADLINK):
69103         * m4/xstrtod.m4 (gl_XSTRTOD):
69104         * m4/yesno.m4 (gl_YESNO):
69105         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69106         to get the necessary .h files and whatnot.
69107
69108 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69109             Bruno Haible  <bruno@clisp.org>
69110
69111         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69112         /bin/sh understanding of '!' conditional negation.
69113
69114 2006-08-21  Jim Meyering  <jim@meyering.net>
69115
69116         * modules/openat (Depends-on): Really alphabetize.
69117
69118         * modules/acl (Depends-on): Add error and quote.
69119
69120         * check-module (find_included_lib_files): Add at-func.c to the
69121         ok-to-include-more-than-once white list.
69122
69123         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69124
69125 2006-08-21  Bruno Haible  <bruno@clisp.org>
69126
69127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69128         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69129         Reported by Martin Lambers <marlam@marlam.de>.
69130
69131 2006-08-21  Bruno Haible  <bruno@clisp.org>
69132
69133         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69134         specify an installation location, don't emit a noinst_LIBRARIES or
69135         noinst_LTLIBRARIES assignment.
69136
69137 2006-08-21  Bruno Haible  <bruno@clisp.org>
69138
69139         BeOS portability.
69140         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69141         BeOS has mbrtowc() but no <wctype.h>.
69142
69143 2006-08-21  Bruno Haible  <bruno@clisp.org>
69144
69145         BeOS portability.
69146         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69147         exist.
69148
69149 2006-08-21  Bruno Haible  <bruno@clisp.org>
69150
69151         BeOS portability.
69152         * lib/mbchar.h: Include <wctype.h> only if it exists.
69153
69154 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         Remove files that are no longer needed by their respective modules.
69157         * m4/obstack.m4: Remove.
69158         * m4/strerror_r.m4: Remove.
69159         * m4/uint32_t.m4: Remove.
69160         * m4/uintptr_t.m4: Remove.
69161         * m4/ullong_max.m4: Remove.
69162         * m4/xstrtoimax.m4: Remove.
69163         * m4/xstrtoumax.m4: Remove.
69164
69165         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69166         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69167         dependencies now capture this.
69168
69169         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69170         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69171         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69172         * m4/human.m4 (gl_HUMAN): Likewise.
69173         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69174         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69175
69176         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69177
69178         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69179         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69180         stdint.
69181         * m4/human.m4 (gl_HUMAN): Likewise.
69182         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69183         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69184         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69185         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69186         * m4/xstrtol (gl_XSTRTOL): Likewise.
69187
69188         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69189         AC_TYPE_LONG_LONG_INT.
69190         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69191         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69192         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69193         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69194
69195         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69196         on stdbool.
69197
69198         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69199         (gl_PREREQ_XSTRTOUL): Remove.
69200
69201         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69202
69203         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69204         mode.
69205
69206 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         Add and change modules to make it easier for coreutils to use
69209         gnulib-tool.
69210         * modules/backupfile (Files): Remove m4/d-ino.m4.
69211         (Depends-on): Add d-ino.
69212         * modules/cycle-check (Depends-on): Add stdint.
69213         (lib_SOURCES): Add cycle-check.h.
69214         * modules/d-ino: New module.
69215         * modules/d-type: New module.
69216         * modules/error (Files): Remove m4/strerror_r.m4.
69217         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69218         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69219         m4/inttypes_h.m4, m4/uintmax_t.m4.
69220         (Depends-on): Add stdint.
69221         (lib_SOURCES): Add fsusage.h.
69222         * modules/getcwd (Files): Remove d-ino.m4.
69223         (Depends-on): Add d-ino.
69224         * modules/getndelim2 (Depends-on): Add stdint.
69225         * modules/glob (Files): Remove m4/d-type.m4.
69226         (Depends-on): Add d-type.
69227         * modules/host-os: New module.
69228         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69229         m4/inttypes_h.m4, m4/uintmax_t.m4.
69230         * Depends-on: Add stdint.
69231         (lib_SOURCES): Add human.h.
69232         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69233         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69234         m4/uintmax_t.m4, m4/ulonglong.m4.
69235         (Depends-on): Add stdint.
69236         (EXTRA_DIST): Add inttostr.h.
69237         * modules/lchmod: New module.
69238         * modules/link-follow: New module.
69239         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69240         (Depends-on): Add lchmod.
69241         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69242         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69243         (Depends-on): Add stdint.
69244         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69245         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69246         (Depends-on): Add stdint.
69247         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69248         * modules/perl: New module.
69249         * modules/regex (Depends-on): Add stdint.
69250         * modules/rmdir-errno: New module.
69251         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69252         m4/intmax_t.m4.
69253         (Depends-on): Add stdint.
69254         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69255         m4/uintmax_t.m4.
69256         (Depends-on): Add stdint.
69257         * modules/unlink-busy: New module.
69258         * modules/utimecmp (Depends-on): Add stdint.
69259         * modules/uptime: New module.
69260         * modules/winsz-ioctl: New module.
69261         * modules/winsz-termios: New module.
69262         * modules/xnanosleep (Depends-on): Add nanosleep.
69263         * modules/ullong_max: Remove.
69264         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69265         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69266         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69267         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69268         (Depends-on): Add inttypes.
69269         (lib_SOURCES): Add xstrtol.h.
69270         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69271         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69272         * MODULES.html.sh: Move 'assert' into the assert section.
69273         Move 'dummy' into the linking section.
69274         Remove ullong_max.
69275         Add section for compatibility checks for POSIX:2001 functions,
69276         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69277         winsz-ioctl, and winsz-termios into it.
69278         Add lchmod.
69279         Add top-level Misc section and put host-os, perl, and uptime
69280         into it.
69281
69282 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69285         now assume the stdint module.  Do not include inttypes.h.
69286         * lib/fsusage.h: Likewise.
69287         * lib/getndelim2.c: Likewise.
69288         * lib/human.h: Likewise.
69289         * lib/inttostr.h: Likewise.
69290         * lib/obstack.c: Likewise.
69291         * lib/regex_internal.h: Likewise.
69292         * lib/tempname.c: Likewise.
69293         * lib/utimecmp.c: Likewise.
69294         * lib/xstrtol.h: Likewise.
69295
69296         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69297
69298         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69299         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69300         * lib/xtime.h: Likewise.
69301
69302 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         * modules/openat (Files): Add lib/fchmodat.c.
69305         Fixes problem reported by Jay Youngman.
69306
69307 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69310         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69311
69312 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69313             Bruno Haible  <bruno@clisp.org>
69314
69315         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69316         and is a script that invokes bison. Tighten the code. Add comments.
69317
69318 2006-08-18  Jim Meyering  <jim@meyering.net>
69319
69320         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69321         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69322         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69323         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69324
69325 2006-08-18  Bruno Haible  <bruno@clisp.org>
69326
69327         * modules/bison-i18n: New file.
69328         * MODULES.html.sh (Internationalization functions): Add it.
69329
69330 2006-08-18  Bruno Haible  <bruno@clisp.org>
69331
69332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69333         sys/statvfs.h. When getmntinfo was found, check its declaration and
69334         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69335
69336 2006-08-18  Bruno Haible  <bruno@clisp.org>
69337
69338         * m4/bison-i18n.m4: New file, from bison.
69339
69340 2006-08-18  Bruno Haible  <bruno@clisp.org>
69341
69342         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69343         (ME_DUMMY): Treat "kernfs" as a dummy.
69344         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69345
69346 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         Update from coreutils.
69349
69350         2006-08-15  Jim Meyering  <jim@meyering.net>
69351
69352         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69353
69354         2006-01-17  Jim Meyering  <jim@meyering.net>
69355
69356         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69357
69358         2006-01-11  Jim Meyering  <jim@meyering.net>
69359
69360         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69361         Check for the lchmod function.
69362
69363 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         Update from coreutils.
69366
69367         * lib/__fpending.h: Add copyright notice.
69368         * lib/fprintftime.h: Likewise.
69369         * lib/savedir.c: Use (C) in copyright notice.
69370         * lib/savedir.h: Likewise.
69371
69372         2006-08-15  Jim Meyering  <jim@meyering.net>
69373
69374         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69375         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69376         in support of the EXPECTED_ERRNO macro.
69377         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69378         definitions.  Instead, define the appropriate symbols and include
69379         "at-func.c".
69380         * lib/mkdirat.c (mkdirat): Likewise.
69381         * lib/fchmodat.c (fchmodat): Likewise.
69382         (ENOSYS): Remove definition.
69383         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69384         it.  Don't include "unistd--.h" -- it wasn't ever used.
69385
69386         2006-01-17  Jim Meyering  <jim@meyering.net>
69387
69388         Rewrite fts.c not to change the current working directory,
69389         by using openat, fstatat, fdopendir, etc..
69390
69391         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69392         (HAVE_OPENAT_SUPPORT): Define.
69393         [_LIBC] (fchdir): Don't undef or define; no longer used.
69394         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69395         Now, this `function' always succeeds, and consumes its file descriptor
69396         parameter -- so callers must not close such FDs.  Update callers.
69397         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69398         (diropen): Add parameter, SP.  Adjust all callers.
69399         Implement using diropen_fd, rather than open.
69400         (fts_open): Initialize new member, fts_cwd_fd.
69401         Remove fts_rft-setting code.
69402         (fts_close): Close fts_cwd_fd, if necessary.
69403         (__opendir2): Define in terms of opendir or opendirat,
69404         depending on whether the FST_NOCHDIR flag is set.
69405         (fts_build): Since fts_safe_changedir consumes its FD, and since
69406         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69407         and close the dup'd file descriptor upon failure.
69408         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69409         (fts_safe_changedir): Tweak semantics to reflect that this function
69410         now calls cwd_advance_fd and hence consumes its FD argument.
69411         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69412         [struct FTS] (fts_rft): Remove now-unused member.
69413         [struct FTS] (fts_cycle.state): Improve comment.
69414
69415         * lib/openat.c (openat_needs_fchdir): New function.
69416         * lib/openat.h (openat_needs_fchdir): Declare it.
69417
69418 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69421         Problem and fix reported by Pádraig Brady in
69422         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69423
69424 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69427
69428 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * lib/memcoll.c (memcoll): Optimize for the common case where the
69431         arguments are bytewise equal.
69432
69433 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * doc/regexprops-generic.texi: Add a copyright notice.
69436
69437 2006-08-15  Bruno Haible  <bruno@clisp.org>
69438
69439         * modules/tmpdir (License): Change to LGPL.
69440
69441 2006-08-15  Bruno Haible  <bruno@clisp.org>
69442
69443         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69444         module.
69445
69446 2006-08-14  Simon Josefsson  <jas@extundo.com>
69447
69448         * config/srclist.txt: Add gnupload.
69449
69450 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69451
69452         Change copyright notice from LGPL 2 to GPL 2, since that's the
69453         standard form used in the gnulib repository.
69454         * tests/test-lock.c: Likewise.
69455         * tests/test-stdint.c: Likewise.
69456         * tests/test-tls.c: Likewise.
69457
69458         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69459         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69460         Add copyright notice.
69461
69462         * check-module: Add copyright notice.  Output a copyright
69463         notice if "--version" is specified.
69464         * modules/COPYING: New file.
69465         * tests/test-getaddrinfo.c: Add copyright notice.
69466         * tests/test-verify.c: Likewise.
69467
69468 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         Change copyright notice from LGPL 2 to GPL 2, since that's the
69471         standard form used in the gnulib repository.
69472         * lib/lock.c: LGPL -> GPL.
69473         * lib/lock.h: Likewise.
69474         * lib/strnlen1.c: Likewise.
69475         * lib/strnlen1.h: Likewise.
69476         * lib/tls.c: Likewise.
69477         * lib/tls.h: Likewise.
69478         * lib/tmpdir.c: Likewise.
69479
69480         * lib/TODO: Remove; this belongs only in coreutils.
69481
69482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         Add copyright notices to long-enough files that lack them, since
69485         otherwise the files aren't clearly free.  Use the same notice that
69486         getdate.texi already uses.
69487         * doc/alloca-opt.texi: Add copyright notice.
69488         * doc/alloca.texi: Likewise.
69489         * doc/ctime.texi: Likewise.
69490         * doc/functions.texi: Likewise.
69491         * doc/gcd.texi: Likewise.
69492         * doc/gnulib-tool.texi: Likewise.
69493         * doc/inet_ntoa.texi: Likewise.
69494         * doc/visibility.texi: Likewise.
69495
69496         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69497         * doc/quote.texi: Add copyright notice.
69498
69499         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69500         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69501         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69502         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69503         is now obsolete, and give a pointer to the Sun list.
69504         Add copyright notice.
69505
69506 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * config/srclistvars.sh: Add copyright notice.
69509
69510 2006-08-14  Eric Blake  <ebb9@byu.net>
69511
69512         Import the following change from libc:
69513
69514         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69515
69516         Upstream bug 2997.
69517         * lib/misc/error.c: Add space between program name and message if file
69518         name is missing.
69519
69520 2006-08-12  Karl Berry  <karl@gnu.org>
69521
69522         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69523         remove, these originate in gnulib now.
69524
69525 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69526
69527         * doc/Makefile (standards.info standards.html standards.dvi):
69528         Also depend on make-stds.texi.
69529
69530 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69533         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69534
69535         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69536         in wchar_t.  Problem reported by Eric Blake.
69537
69538         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69539         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69540         Also, help the compiler to keep LEN in a register.
69541
69542 2006-08-11  Eric Blake  <ebb9@byu.net>
69543
69544         * users.txt: Sort.  Add tar.
69545
69546 2006-08-11  Bruno Haible  <bruno@clisp.org>
69547
69548         * users.txt: New file.
69549
69550 2006-08-11  Bruno Haible  <bruno@clisp.org>
69551
69552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69553         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69554
69555 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * modules/snprintf (Depends-on): Remove minmax.
69558         (Maintainer): Add self and Bruno.
69559
69560 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69563         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69564         (EOVERFLOW): Define if the system does not.
69565         Do not include "minmax.h"; it wasn't used.
69566         (snprintf): Don't assume size_t promotes to an unsigned type.
69567         Fix bug when generated string was too long for the buffer: the
69568         buffer's contents are supposed to be the initial prefix of the
69569         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69570         exceeds INT_MAX; do the check ourselves.
69571
69572         Import the following changes from libc:
69573
69574         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69575
69576         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69577         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69578         set wc to the byte which couldn't be converted.
69579         (re_string_reconstruct): Don't clear valid_raw_len before calling
69580         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69581         tip_context using re_string_context_at.
69582
69583         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69584
69585         * lib/posix/regex.h: g++ still cannot handled [restrict].
69586
69587         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69588
69589         * lib/posix/regex.h: Remove special handling for VMS.
69590
69591 2006-08-10  Jim Meyering  <jim@meyering.net>
69592
69593         * modules/same-inode: New module.
69594         * modules/dev-ino: New module.
69595         * modules/cycle-check: Depend on these modules, rather than simply
69596         including their .h files.
69597         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69598         required via m4/cycle-check.m4.
69599         * modules/same: Depend on new same-inode module, rather than
69600         including same-inode.h.
69601         * modules/chdir-safer: New file.
69602
69603         * modules/chown (Depends-on): Add stat-macros.
69604
69605 2006-08-10  Jim Meyering  <jim@meyering.net>
69606
69607         * m4/cycle-check.m4: New file.
69608         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69609         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69610
69611 2006-08-10  Eric Blake  <ebb9@byu.net>
69612
69613         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69614         in from original proposal.
69615
69616 2006-08-10  Eric Blake  <ebb9@byu.net>
69617         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69618
69619         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69620         namespace.
69621
69622 2006-08-10  Bruno Haible  <bruno@clisp.org>
69623
69624         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69625         as well.
69626
69627 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         Sync from coreutils.
69630
69631         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69632
69633         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69634         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69635
69636 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69637
69638         * modules/restrict: Remove; no longer needed now that we assume
69639         Autoconf 2.59 or later.
69640         * MODULES.html.sh: Remove 'restrict'.
69641         * modules/argp (Depends-on): Remove 'restrict'.
69642         * modules/base64 (Depends-on): Likewise.
69643         * modules/gc (Depends-on): Likewise.
69644         * modules/getaddrinfo (Depends-on): Likewise.
69645         * modules/glob (Depends-on): Likewise.
69646         * modules/inet_ntop (Depends-on): Likewise.
69647         * modules/inet_pton (Depends-on): Likewise.
69648         * modules/memxor (Depends-on): Likewise.
69649         * modules/regex (Depends-on): Likewise.
69650         * modules/strtok_r (Depends-on): Likewise.
69651         * modules/time_r (Depends-on): Likewise.
69652
69653 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69656         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69657         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69658         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69659         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69660         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69661         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69662         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69663
69664         Merge from coreutils.
69665         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69666         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69667         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69668         * m4/time_r.m4 (gl_TIME_R): Likewise.
69669
69670 2006-08-09  Karl Berry  <karl@gnu.org>
69671
69672         * config/srclist.txt: no more gettext-tools, per Bruno.
69673
69674 2006-08-08  Eric Blake  <ebb9@byu.net>
69675
69676         * modules/verror: New module.
69677         * MODULES.html.sh: Document it.
69678
69679 2006-08-08  Eric Blake  <ebb9@byu.net>
69680
69681         * lib/verror.h, lib/verror.c: New files.
69682
69683 2006-08-08  Eric Blake  <ebb9@byu.net>
69684
69685         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69686         verror_at_line output complies with GNU Coding Standards even when
69687         file is NULL.
69688
69689 2006-08-07  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69692         versions of AIX.
69693         Reported by Ralf Wildenhues.
69694
69695 2006-08-07  Bruno Haible  <bruno@clisp.org>
69696
69697         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69698         in an AC_DEFUN. Needed so that the autoconf snippets can use
69699         AC_REQUIRE.
69700
69701 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69702
69703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69704         Initialize pkgdata_DATA.
69705         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69706         overriding it.
69707
69708 2006-08-06  Eric Blake  <ebb9@byu.net>
69709
69710         * lib/error.h: Fold in some upstream changes from glibc.
69711         * lib/error.c: Likewise.
69712
69713 2006-08-04  Bruno Haible  <bruno@clisp.org>
69714
69715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69716         Make the mostlyclean-local rule depend on mostlyclean-generic.
69717         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69718
69719 2006-07-31  Bruno Haible  <bruno@clisp.org>
69720
69721         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69722         <stdlib.h>, <string.h>.
69723
69724 2006-07-30  Bruno Haible  <bruno@clisp.org>
69725
69726         * modules/readlink (License): Change to LGPL.
69727
69728 2006-07-30  Bruno Haible  <bruno@clisp.org>
69729
69730         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69731         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69732         set PKGDATADIR to point to it.
69733
69734 2006-07-30  Bruno Haible  <bruno@clisp.org>
69735
69736         * modules/csharpexec (configure.ac): Comment out macro invocation.
69737         * modules/javaexec (configure.ac): Likewise.
69738         * modules/javacomp-script (configure.ac): Likewise.
69739
69740         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69741
69742 2006-07-30  Bruno Haible  <bruno@clisp.org>
69743
69744         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69745         linked-list.
69746
69747 2006-07-30  Bruno Haible  <bruno@clisp.org>
69748
69749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69750
69751 2006-07-30  Bruno Haible  <bruno@clisp.org>
69752
69753         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69754         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69755         get removed.
69756
69757 2006-07-29  Bruno Haible  <bruno@clisp.org>
69758
69759         Make it possible for gnulib-tool to work with locally modified or
69760         augmented gnulib repositories.
69761         * gnulib-tool (func_usage): Document --local-dir option.
69762         (local_gnulib_dir): New variable.
69763         Handle --local-dir option.
69764         (func_lookup_file): New function.
69765         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69766         (func_get_description, func_get_filelist, func_get_description,
69767         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69768         func_get_automake_snippet, func_get_include_directive,
69769         func_get_license, func_get_maintainer): Use func_lookup_file.
69770         (func_import, func_create_testdir): Use func_lookup_file.
69771
69772 2006-07-29  Bruno Haible  <bruno@clisp.org>
69773
69774         * modules/setenv (Depends-on): Add unistd.
69775
69776 2006-07-29  Bruno Haible  <bruno@clisp.org>
69777
69778         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69779
69780 2006-07-29  Bruno Haible  <bruno@clisp.org>
69781
69782         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69783
69784 2006-07-29  Bruno Haible  <bruno@clisp.org>
69785
69786         * gnulib-tool (import, update): If there is no Makefile.am, look at
69787         aclocal.m4, instead of bailing out.
69788
69789 2006-07-29  Bruno Haible  <bruno@clisp.org>
69790
69791         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69792         Categorize the options by when they are useful.
69793
69794 2006-07-29  Bruno Haible  <bruno@clisp.org>
69795
69796         * gnulib-tool (func_usage): Document option --no-libtool.
69797         Handle option --no-libtool.
69798         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69799         for changed semantics of $libtool variable.
69800         (func_import): Likewise. If libtool is not used, show this through
69801         an option --no-libtool.
69802         (func_create_testdir): Update.
69803
69804 2006-07-29  Bruno Haible  <bruno@clisp.org>
69805
69806         * gnulib-tool (func_import): Extend error message about missing
69807         --doc-base.
69808
69809 2006-07-29  Bruno Haible  <bruno@clisp.org>
69810
69811         * gnulib-tool (func_import): Don't create the $docbase directory if
69812         there is no file to store there.
69813
69814 2006-07-29  Bruno Haible  <bruno@clisp.org>
69815
69816         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69817         relevant, look for configure.ac there, not in the current directory.
69818         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69819
69820 2006-07-29  Bruno Haible  <bruno@clisp.org>
69821
69822         * gnulib-tool (SORT): New variable.
69823         (func_usage): Undocument --assume-autoconf option.
69824         Remove --assume-autoconf option handling.
69825         (autoconf_minversion): Determine from the contents of configure.ac.
69826         (func_import): Remove autoconf_minversion handling.
69827         Suggested by Eric Blake.
69828
69829 2006-07-29  Bruno Haible  <bruno@clisp.org>
69830
69831         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69832
69833 2006-07-29  Bruno Haible  <bruno@clisp.org>
69834
69835         * config/srclist.txt (*setenv.[ch]): Remove rules.
69836
69837 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69838
69839         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69840
69841 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69842
69843         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69844         arpa/inet.h.
69845
69846 2006-07-28  Simon Josefsson  <jas@extundo.com>
69847
69848         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69849         * modules/inet_pton (Depends-on): Likewise.
69850
69851 2006-07-28  Simon Josefsson  <jas@extundo.com>
69852
69853         * m4/netinet_in_h.m4: New file.
69854
69855 2006-07-28  Simon Josefsson  <jas@extundo.com>
69856
69857         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69858         #include's.
69859
69860 2006-07-28  Simon Josefsson  <jas@extundo.com>
69861
69862         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69863         #include's.
69864
69865 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69868         setgid on directories only if they set these bits.
69869         * lib/modechange.h: Remove obsolete comment about masks.
69870
69871 2006-07-28  Eric Blake  <ebb9@byu.net>
69872
69873         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69874         macro expansion.
69875
69876 2006-07-28  Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69879
69880 2006-07-28  Bruno Haible  <bruno@clisp.org>
69881
69882         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69883
69884 2006-07-28  Bruno Haible  <bruno@clisp.org>
69885
69886         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69887         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69888         Define fallbacks.
69889         Avoids link error on FreeBSD 4.x.
69890         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69891
69892         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69893         encoding.
69894         * lib/mbswidth.c (iswcntrl): Likewise.
69895
69896 2006-07-27  Bruno Haible  <bruno@clisp.org>
69897
69898         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69899         test.
69900
69901 2006-07-27  Bruno Haible  <bruno@clisp.org>
69902
69903         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69904         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69905         defined.
69906
69907 2006-07-26  Eric Blake  <ebb9@byu.net>
69908
69909         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69910
69911 2006-07-26  Eric Blake  <ebb9@byu.net>
69912
69913         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69914         like mingw that lack mkstemp.
69915         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69916         avoid compilation warning on mingw.
69917
69918 2006-07-26  Bruno Haible  <bruno@clisp.org>
69919
69920         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69921         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69922         INT_FAST*_MIN, INTPTR_MIN.
69923
69924 2006-07-25  Bruno Haible  <bruno@clisp.org>
69925
69926         * modules/version-etc (Depends-on): Add stdarg.
69927
69928 2006-07-25  Bruno Haible  <bruno@clisp.org>
69929
69930         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69931         complex commands.
69932
69933 2006-07-25  Bruno Haible  <bruno@clisp.org>
69934
69935         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69936         defined in <stdarg.h> or config.h.
69937
69938 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69941         (gl_STDIO_SAFER): Remove.
69942
69943 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         * MODULES.html.sh (File stream based Input/Output):
69946         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69947         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69948         * modules/fopen-safer, modules/tmpfile-safer: New files.
69949         * modules/stdio-safer: Remove.
69950
69951 2006-07-24  Bruno Haible  <bruno@clisp.org>
69952
69953         * modules/tmpdir: New file.
69954         * MODULES.html.sh (File system functions): Add it.
69955
69956 2006-07-24  Bruno Haible  <bruno@clisp.org>
69957
69958         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69959         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69960
69961 2006-07-24  Bruno Haible  <bruno@clisp.org>
69962
69963         * modules/clean-temp: New file.
69964
69965 2006-07-24  Bruno Haible  <bruno@clisp.org>
69966
69967         * m4/tmpdir.m4: New file, from GNU gettext.
69968
69969 2006-07-24  Bruno Haible  <bruno@clisp.org>
69970
69971         * lib/tmpdir.h: New file, from GNU gettext.
69972         * lib/tmpdir.c: New file, from GNU gettext.
69973
69974 2006-07-24  Bruno Haible  <bruno@clisp.org>
69975
69976         * lib/clean-temp.h: New file, from GNU gettext.
69977         * lib/clean-temp.c: New file, from GNU gettext.
69978
69979 2006-07-23  Eric Blake  <ebb9@byu.net>
69980
69981         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69982         (Depends-on): Add binary-io.
69983
69984 2006-07-23  Eric Blake  <ebb9@byu.net>
69985
69986         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69987
69988 2006-07-23  Eric Blake  <ebb9@byu.net>
69989
69990         * lib/tmpfile-safer.c: New file.
69991         * lib/stdio-safer.h (fopen_safer): Add prototype.
69992         * lib/stdio--.h (tmpfile): Make safer.
69993
69994 2006-07-23  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69997         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69998         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69999         gl_linked_remove_at): Use it.
70000
70001 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70002         and Simon Josefsson <jas@extundo.com>
70003
70004         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70005
70006         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70007
70008 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * modules/close-stream: New file.
70011         * modules/closeout (Description): Make it clear that it exits
70012         with a diagnostic on error.
70013         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70014         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70015
70016 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         * m4/close-stream.m4: New file.
70019
70020 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70021
70022         * lib/close-stream.c, lib/close-stream.h: New files.
70023
70024 2006-07-22  Bruno Haible  <bruno@clisp.org>
70025
70026         Merge from GNU gettext 0.15.
70027
70028         2006-05-01  Bruno Haible  <bruno@clisp.org>
70029
70030                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70031
70032         2006-07-22  Bruno Haible  <bruno@clisp.org>
70033
70034                 * modules/javaversion: New file.
70035                 * MODULES.html.sh (Java): Add javaversion.
70036
70037         2006-03-12  Bruno Haible  <bruno@clisp.org>
70038
70039                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70040
70041         2005-12-04  Bruno Haible  <bruno@clisp.org>
70042
70043                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70044                 (untested).
70045
70046         2006-06-21  Bruno Haible  <bruno@clisp.org>
70047
70048                 Avoid warnings from recent versions of mcs.
70049                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70050                 -o, -L, -r any more. Use options documented since mcs-1.0
70051                 instead. Similarly for -g.
70052
70053         2005-12-04  Bruno Haible  <bruno@clisp.org>
70054
70055                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70056                 .resources, not .resource.
70057
70058         2005-07-09  Bruno Haible  <bruno@clisp.org>
70059
70060                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70061                 add a .dll suffix.
70062                 Reported by Mark Junker <mjscod@gmx.de>.
70063
70064         2006-07-22  Bruno Haible  <bruno@clisp.org>
70065
70066                 * modules/gettext: Upgrade to gettext-0.15.
70067                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70068                 m4/visibility.m4.
70069                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70070
70071 2006-07-22  Bruno Haible  <bruno@clisp.org>
70072
70073         Merge from GNU gettext 0.15.
70074
70075         2006-03-25  Bruno Haible  <bruno@clisp.org>
70076
70077                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70078
70079         2006-07-21  Bruno Haible  <bruno@clisp.org>
70080
70081                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70082                 "1.1".
70083
70084         2006-05-09  Bruno Haible  <bruno@clisp.org>
70085
70086                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70087                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70088                 for the conftestver execution.
70089
70090         2006-05-01  Bruno Haible  <bruno@clisp.org>
70091
70092                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70093                 optional target-version argument. Verify that the compiler
70094                 groks source of the specified source-version, or add -source
70095                 option as necessary. Verify that the compiler produces
70096                 bytecode in the specified target-version, or add -target and
70097                 -source options as necessary. Make the result of the test
70098                 available as variable CONF_JAVAC. Also log error output in
70099                 config.log.
70100
70101         2006-03-11  Bruno Haible  <bruno@clisp.org>
70102
70103                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70104
70105         2006-05-09  Bruno Haible  <bruno@clisp.org>
70106
70107                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70108                 CLASSPATH_SEPARATOR to a semicolon.
70109
70110         2006-03-12  Bruno Haible  <bruno@clisp.org>
70111
70112                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70113                 available as variable CONF_JAVA, for subsequent autoconf
70114                 tests. Also log error output in config.log.
70115
70116         2006-07-19  Bruno Haible  <bruno@clisp.org>
70117
70118                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70119                 that getline works on glibc2 systems. Needed to avoid trouble
70120                 in relocatable.c.
70121                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70122
70123         2005-12-04  Bruno Haible  <bruno@clisp.org>
70124
70125                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70126                 launcher (untested).
70127
70128         2005-12-04  Bruno Haible  <bruno@clisp.org>
70129
70130                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70131
70132         2006-07-22  Bruno Haible  <bruno@clisp.org>
70133
70134                 * gettext.m4: Update from GNU gettext-0.15.
70135                 * nls.m4: Likewise.
70136                 * po.m4: Likewise.
70137                 * inttypes-pri.m4: Likewise.
70138                 * inttypes-h.m4: Renamed from inttypes.m4.
70139                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70140
70141 2006-07-22  Bruno Haible  <bruno@clisp.org>
70142
70143         Merge from GNU gettext 0.15.
70144
70145         2005-07-05  Bruno Haible  <bruno@clisp.org>
70146
70147                 * printf-args.c (printf_fetchargs): Work around broken
70148                 definition of wint_t on mingw.
70149
70150         2005-02-12  Bruno Haible  <bruno@clisp.org>
70151
70152                 * xallocsa.h: Add extern "C" for C++.
70153
70154         2006-05-17  Bruno Haible  <bruno@clisp.org>
70155
70156                 Cygwin portability.
70157                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70158
70159         2006-04-30  Bruno Haible  <bruno@clisp.org>
70160
70161                 * progreloc.c: Include <mach-o/dyld.h> if available.
70162                 (find_executable): Use _NSGetExecutablePath when possible.
70163
70164         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70165
70166                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70167                 function.
70168
70169         2005-12-29  Bruno Haible  <bruno@clisp.org>
70170
70171                 * progreloc.c (set_program_name_and_installdir): Fix
70172                 compilation error.
70173
70174         2005-12-04  Bruno Haible  <bruno@clisp.org>
70175
70176                 Cygwin portability.
70177                 * progreloc.c: Include <windows.h> also on Cygwin.
70178                 (find_executable): Add support for Cygwin.
70179                 (set_program_name_and_installdir): Handle also platforms with
70180                 nonempty EXEEXT.
70181
70182         2006-07-11  Bruno Haible  <bruno@clisp.org>
70183
70184                 * javacomp.c: Fix a comment.
70185                 Reported by Jim Meyering.
70186
70187         2006-04-30  Bruno Haible  <bruno@clisp.org>
70188
70189                 * javacomp.h (compile_java_class): Add source_version,
70190                 target_version arguments.
70191                 * javacomp.c: Rewritten to choose only a compiler that
70192                 respects the specified source_version and target_version.
70193
70194         2006-06-27  Bruno Haible  <bruno@clisp.org>
70195
70196                 Assume correct S_ISDIR macro.
70197                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70198
70199         2006-07-22  Bruno Haible  <bruno@clisp.org>
70200
70201                 * javaversion.h: New file, from GNU gettext.
70202                 * javaversion.c: New file, from GNU gettext.
70203                 * javaversion.java: New file, from GNU gettext.
70204                 * javaversion.class: New file, from GNU gettext.
70205
70206         2006-05-17  Bruno Haible  <bruno@clisp.org>
70207
70208                 Cygwin portability.
70209                 * javaexec.c (execute_java_class): Test for jview program
70210                 also on Cygwin.
70211
70212         2006-04-09  Bruno Haible  <bruno@clisp.org>
70213
70214                 * fatal-signal.c: Don't include string.h.
70215                 (at_fatal_signal): Use a copying loop instead of memcpy.
70216
70217         2005-12-04  Bruno Haible  <bruno@clisp.org>
70218
70219                 * csharpexec.c: Add support for 'clix' launcher (untested).
70220                 (execute_csharp_using_sscli): New function.
70221                 (execute_csharp_program): Call it.
70222
70223         2006-06-21  Bruno Haible  <bruno@clisp.org>
70224
70225                 Avoid warnings from recent versions of mcs.
70226                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70227                 -o, -L, -r any more. Use options documented since mcs-1.0
70228                 instead. Similarly for -g.
70229
70230         2005-07-09  Bruno Haible  <bruno@clisp.org>
70231
70232                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70233                 add a .dll suffix.
70234                 Reported by Mark Junker <mjscod@gmx.de>.
70235
70236         2006-06-17  Bruno Haible  <bruno@clisp.org>
70237
70238                 * config.charset: Update for NetBSD 3.0.
70239
70240         2006-05-17  Bruno Haible  <bruno@clisp.org>
70241
70242                 Cygwin portability.
70243                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70244
70245         2006-05-16  Bruno Haible  <bruno@clisp.org>
70246
70247                 * localcharset.c [CYGWIN]: Include <windows.h>.
70248                 (get_charset_aliases): For Cygwin, return the same CPxxx
70249                 aliases list as under WIN32.
70250                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70251                 the environment variables. Fall back to GetACP().
70252
70253         2006-04-05  Bruno Haible  <bruno@clisp.org>
70254
70255                 * config.charset: Update Juan Manuel Guerrero's address.
70256
70257         2005-02-12  Bruno Haible  <bruno@clisp.org>
70258
70259                 * allocsa.h: Add extern "C" for C++.
70260
70261         2005-02-10  Bruno Haible  <bruno@clisp.org>
70262
70263                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70264                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70265
70266         2006-07-22  Bruno Haible  <bruno@clisp.org>
70267
70268                 * gettext.h: Update to GNU gettext-0.15.
70269
70270 2006-07-22  Bruno Haible  <bruno@clisp.org>
70271
70272         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70273         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70274         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70275
70276 2006-07-21  Eric Blake  <ebb9@byu.net>
70277
70278         * modules/stdlib-safer: New file.
70279         * MODULES.html.sh (File stream based Input/Output): Add
70280         stdlib-safer.
70281
70282 2006-07-21  Eric Blake  <ebb9@byu.net>
70283
70284         * lib/stdlib-safer.h: New file from coreutils, required by
70285         stdlib--.h.
70286
70287 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70290
70291 2006-07-20  Bruno Haible  <bruno@clisp.org>
70292
70293         * gnulib-tool: Recognize new option --assume-autoconf.
70294         (autoconf_minversion): New variable.
70295         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70296
70297 2006-07-20  Bruno Haible  <bruno@clisp.org>
70298
70299         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70300
70301 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70302
70303         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70304         Reindent and repaginate.
70305
70306 2006-07-19  Derek Price  <derek@ximbiot.com>
70307
70308         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70309         Correct grammar.
70310
70311 2006-07-17  Bruno Haible  <bruno@clisp.org>
70312
70313         * modules/list: New file.
70314         * modules/array-list: New file.
70315         * modules/carray-list, modules/carray-list-tests: New files.
70316         * modules/linked-list, modules/linked-list-tests: New files.
70317         * modules/avltree-list, modules/avltree-list-tests: New files.
70318         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70319         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70320         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70321         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70322         * modules/oset: New file.
70323         * modules/array-oset: New file.
70324         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70325         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70326         * tests/test-carray_list.c: New file.
70327         * tests/test-linked_list.c: New file.
70328         * tests/test-avltree_list.c: New file.
70329         * tests/test-rbtree_list.c: New file.
70330         * tests/test-linkedhash_list.c: New file.
70331         * tests/test-avltreehash_list.c: New file.
70332         * tests/test-rbtreehash_list.c: New file.
70333         * tests/test-avltree_oset.c: New file.
70334         * tests/test-rbtree_oset.c: New file.
70335         * MODULES.html.sh (Container data structures): New section.
70336
70337 2006-07-17  Bruno Haible  <bruno@clisp.org>
70338
70339         * m4/gl_list.m4: New file.
70340
70341 2006-07-17  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/gl_list.h: New file.
70344         * lib/gl_list.c: New file.
70345         * lib/gl_array_list.h: New file.
70346         * lib/gl_array_list.c: New file.
70347         * lib/gl_carray_list.h: New file.
70348         * lib/gl_carray_list.c: New file.
70349         * lib/gl_linked_list.h: New file.
70350         * lib/gl_linked_list.c: New file.
70351         * lib/gl_anylinked_list1.h: New file.
70352         * lib/gl_anylinked_list2.h: New file.
70353         * lib/gl_avltree_list.h: New file.
70354         * lib/gl_avltree_list.c: New file.
70355         * lib/gl_anyavltree_list1.h: New file.
70356         * lib/gl_anyavltree_list2.h: New file.
70357         * lib/gl_rbtree_list.h: New file.
70358         * lib/gl_rbtree_list.c: New file.
70359         * lib/gl_anyrbtree_list1.h: New file.
70360         * lib/gl_anyrbtree_list2.h: New file.
70361         * lib/gl_anytree_list1.h: New file.
70362         * lib/gl_anytree_list2.h: New file.
70363         * lib/gl_linkedhash_list.h: New file.
70364         * lib/gl_linkedhash_list.c: New file.
70365         * lib/gl_anyhash_list1.h: New file.
70366         * lib/gl_anyhash_list2.h: New file.
70367         * lib/gl_avltreehash_list.h: New file.
70368         * lib/gl_avltreehash_list.c: New file.
70369         * lib/gl_rbtreehash_list.h: New file.
70370         * lib/gl_rbtreehash_list.c: New file.
70371         * lib/gl_anytreehash_list1.h: New file.
70372         * lib/gl_anytreehash_list2.h: New file.
70373
70374         * lib/gl_oset.h: New file.
70375         * lib/gl_oset.c: New file.
70376         * lib/gl_array_oset.h: New file.
70377         * lib/gl_array_oset.c: New file.
70378         * lib/gl_avltree_oset.h: New file.
70379         * lib/gl_avltree_oset.c: New file.
70380         * lib/gl_rbtree_oset.h: New file.
70381         * lib/gl_rbtree_oset.c: New file.
70382         * lib/gl_anytree_oset.h: New file.
70383
70384 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         * m4/mkancesdirs.m4: New file.
70387         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70388         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70389         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70390         it.
70391
70392 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70395         * lib/mkancesdirs.h: New files.
70396         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70397         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70398         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70399         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70400         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70401         callers changed.  Revamp internals significantly, by not
70402         attempting to create directories that are temporarily more
70403         permissive than the final results.  Do not attempt to use
70404         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70405         This removes some race conditions, fixes some bugs, and simplifies
70406         things.  Use new dirchownmod function to do owner and mode changes.
70407         * lib/mkdir-p.h: Likewise.
70408         * lib/modechange.c (octal_to_mode): New function.
70409         (struct mode_change): New member mentioned.
70410         (make_node_op_equals): New arg mentioned.  All callers changed.
70411         (mode_compile): Keep track of which mode bits the user has explicitly
70412         mentioned.
70413         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70414         New arg PMODE_BITS, to keep track of which mode bits the user
70415         mentioned; it treats S_ISUID and S_ISGID speciall.
70416         All callers changed.
70417         * lib/modechange.h: Likewise.
70418
70419 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70420
70421         * MODULES.html.sh: Add mkancestors.
70422         * modules/mkancesdirs: New module.
70423         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70424         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70425         The chdir-safer and afs files are now orphans; I'll remove them
70426         unless someone speaks up.
70427         Add lib/dirchownmod.c, lib/dirchownmod.h.
70428         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70429         Add lchown, mkancesdirs.
70430         (Maintainer): Add self.
70431
70432 2006-07-15  Karl Berry  <karl@gnu.org>
70433
70434         * gnulib-tool: help message wording/arrangement.
70435
70436 2006-07-14  Simon Josefsson  <jas@extundo.com>
70437
70438         * doc/gnulib.texi (Libtool and Windows): New section.
70439
70440 2006-07-12  Simon Josefsson  <jas@extundo.com>
70441
70442         * modules/gendocs (License): Fix license, approved by Karl.
70443
70444 2006-07-12  Eric Blake  <ebb9@byu.net>
70445
70446         * MODULES.html.sh: Add gendocs.
70447
70448 2006-07-11  Eric Blake  <ebb9@byu.net>
70449
70450         * modules/fdl: New module, to install doc/fdl.texi.
70451         * MODULES.html.sh: Add new section for documentation modules.
70452         * gnulib-tool: Avoid space-tab.
70453         (--doc-base): New option, to manage files from doc.
70454
70455 2006-07-11  Eric Blake  <ebb9@byu.net>
70456
70457         * m4/absolute-header.m4: Fix comments to match recent change.
70458
70459 2006-07-11  Eric Blake  <ebb9@byu.net>
70460
70461         * gnulib-tool: List --doc-base before --tests-base.
70462
70463 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70464
70465         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70466
70467 2006-07-11  Bruno Haible  <bruno@clisp.org>
70468
70469         * README: Mention where to put documentation.
70470
70471 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70472
70473         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70474
70475 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70478         to stdint.m4.
70479
70480 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70483         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70484         "no/such/file/stdint.h" when there is no such file, so that
70485         the resulting C code can be parsed by dodgy compilers.
70486         Problems reported by Bob Proulx.
70487
70488 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70489
70490         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70491         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70492         macros into the GNU _D_EXACT_NAMLEN.
70493         * lib/savedir.c:  Likewise.
70494         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70495
70496 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70497         and Paul Eggert  <eggert@cs.ucla.edu>
70498
70499         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70500         * m4/savedir.m4:
70501         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70502         macros into the GNU _D_EXACT_NAMLEN.
70503
70504 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70505
70506         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70507         around the absolute name, to work around a problem with the HP-UX
70508         11.23 native C compiler, reported by Bob Proulx.
70509
70510 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * doc/maintain.texi, make-stds.texi: Sync from
70513         <http://savannah.gnu.org/projects/gnustandards>.
70514
70515 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70518
70519 2006-07-09  Jim Meyering  <jim@meyering.net>
70520
70521         * m4/glob.m4: Remove a doubled word in a comment.
70522
70523 2006-07-09  Jim Meyering  <jim@meyering.net>
70524
70525         * lib/argp-pv.c: Remove a doubled word in a comment.
70526         * lib/check-version.c (check_version): Likewise.
70527         * lib/javacomp.c (compile_java_class): Likewise.
70528
70529 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70532         for the benefit of people using Autoconf 2.60.  If you want to
70533         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70534         (or m4/onceonly.m4, if pre-2.57) manually.
70535
70536 2006-07-08  Jim Meyering  <jim@meyering.net>
70537
70538         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70539         comment.
70540         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70541         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70542         comment.
70543
70544 2006-07-08  Jim Meyering  <jim@meyering.net>
70545
70546         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70547
70548 2006-07-07  Simon Josefsson  <jas@extundo.com>
70549
70550         * tests/test-crc.c: Change expected crc value, the test vector
70551         were probably computed using the old broken crc.c?
70552
70553 2006-07-06  Simon Josefsson  <jas@extundo.com>
70554
70555         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70556         now the canonical place for the M4 file).
70557
70558         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70559         from the sys_socket dependency now.
70560
70561         * modules/inet_pton (Files): Ditto.
70562
70563         * modules/inet_ntop (Files): Ditto.
70564
70565 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70566
70567         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70568         not gl_PREREQ_GETUSERSHELL.
70569
70570 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70571
70572         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70573         with only one argument, for Autoconf 2.60.
70574         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70575         expand to nothing, so add a shell command to avoid syntax error.
70576         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70577
70578 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70579
70580         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70581
70582 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70585         no longer needed.  Check for isblank decl.
70586         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70587         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70588         of existence.
70589
70590 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * lib/getloadavg.c: Use __VMS, not VMS.
70593         * lib/getopt.c: Likewise.
70594         * lib/getpagesize.h: Likewise.
70595         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70596         and probably does not work.
70597
70598 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * lib/.cppi-disable: Add wcwidth.
70601         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70602         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70603         (ISGRAPH): Remove.  All uses changed to isgraph.
70604         (FOLD) [!defined _LIBC]: Remove special case.
70605         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70606         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70607         HAVE_ISBLANK.
70608         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70609         case.
70610
70611 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70612
70613         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70614         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70615         brackets.  Other minor changes to suppress some compiler
70616         warnings.
70617
70618 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70619         and Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70622         of invoking obsolescent AC_HEADER_DIRENT macro.
70623         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70624         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70625         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70627         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70628         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70629         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70630         * m4/readdir.m4: Remove; no longer needed.
70631
70632 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70633         and Paul Eggert  <eggert@cs.ucla.edu>
70634
70635         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70636         Don't worry about this obsolete case any more.
70637         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70638         directories.
70639         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70640         worry about this obsolete case any more.
70641         * lib/fts.c: Likewise.
70642         * lib/getcwd.c: Likewise.
70643         * lib/glob.h: Likewise.
70644         * lib/savedir.c: Likewise.
70645
70646 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70649         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70650         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70651         needed.
70652         All uses removed.
70653         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70654         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70655         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70656         needed.
70657         * m4/getdate.m4 (gl_GETDATE): Likewise.
70658         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70659         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70660         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70661         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70662         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70663         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70664         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70665         needed.
70666
70667 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         * lib/memcasecmp.c: Include <limits.h>.
70670         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70671         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70672         Don't assume isdigit succeeds only on '0' through '9'.
70673
70674 2006-07-05  Eric Blake  <ebb9@byu.net>
70675
70676         * modules/getaddrinfo (Depends-on): Add snprintf.
70677
70678 2006-07-05  Eric Blake  <ebb9@byu.net>
70679
70680         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70681         to avoid 'header present but could not be compiled' on cygwin.
70682
70683 2006-07-05  Eric Blake  <ebb9@byu.net>
70684
70685         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70686         missing from netdb.h.
70687         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70688
70689 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70690
70691         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70692         no longer needed.
70693         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70694         * m4/getdate.m4 (gl_GETDATE): Likewise.
70695         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70696         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70697         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70698         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70700
70701 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70702
70703         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70704         All uses of is_space replaced by isspace.
70705         * lib/exit.h: Don't talk about STDC_HEADERS.
70706         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70707         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70708         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70709         replaced by isprint etc.
70710         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70711         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70712         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70713         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70714         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70715         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70716
70717 2006-07-05  Bruno Haible  <bruno@clisp.org>
70718
70719         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70720         the function exists, before testing against AIX.
70721         Reported by Martin Lambers <marlam@marlam.de>.
70722
70723 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70726         From Mark D. Baushke.
70727
70728 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70731         to the absolute name, not just one, to bypass Sun C 5.8's
70732         "warning: #include of /usr/include/... may be non-portable".
70733
70734 2006-07-04  Eric Blake  <ebb9@byu.net>
70735
70736         * modules/dirname-tests: New test module.
70737         * tests/test-dirname.c: New file, replacing dirname.c
70738         TEST_DIRNAME section that was recently deleted.
70739
70740 2006-07-04  Bruno Haible  <bruno@clisp.org>
70741
70742         Assume ANSI C header files and <ctype.h> functions.
70743         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70744         (mbsnwidth): Use isprint, iscntrl instead.
70745
70746 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         Merge from coreutils.
70749         * MODULES.html.sh: Add xstrtold.
70750         * modules/xstrtold: New file.
70751         * modules/cycle-check (Files): Add lib/same-inode.h.
70752         * modules/dirname (Files): Add m4/double-slash-root.m4.
70753         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70754         * modules/mkdir-p (Files): Add lib/same-inode.h.
70755         * modules/same (Files): Add lib/same-inode.h.
70756
70757 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70760         This is to keep the terminology clean; POSIX talks about
70761         "absolute pathnames", not "full pathnames", but the GNU
70762         Coding Standards say to use "path" for something else;
70763         so use "absolute" to keep both sides happy.
70764         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70765         Set gl_absolute_header, not gl_full_header_path.
70766         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70767         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70768         All uses changed.
70769
70770         Merge from coreutils.
70771
70772         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70775         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70776         want to require the building of c-strtod.o.
70777         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70778         needs -lm directly.
70779         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70780
70781         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70784         --as-needed option if available.  Problem reported by Albert Chin in
70785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70786         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70787         cc merely issues a bunch of annoying warnings for --as-needed
70788         (this problem was reported by Bob Proulx).  Also, try linking with
70789         -lm to detect a bug in binutils 2.16 (this problem was reported
70790         by Ralf Wildenhues).
70791
70792         2006-06-18  Jim Meyering  <jim@meyering.net>
70793
70794         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70795         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70796         macro.
70797         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70798         also check for glibc-2.4's abort-inducing bug.
70799
70800         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70801         Low-probability clean-up should be to use rmdir to get rid of
70802         the just-created directory, not unlink.
70803
70804         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70805         configure fail, and request a bug report to inform us about it.
70806         Add a comment that, barring reports to the contrary, in 2007 we'll
70807         assume ftruncate is universally available.
70808
70809         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70812
70813         2006-03-12  Jim Meyering  <jim@meyering.net>
70814
70815         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70816         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70817         * m4/same.m4 (gl_SAME): Likewise.
70818         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70819
70820         2006-03-11  Eric Blake  <ebb9@byu.net>
70821
70822         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70823         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70824         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70825         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70826
70827 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70830         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70831         reported by Mark D. Baushke, one in
70832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70833
70834         Merge from coreutils.
70835
70836         * lib/.cppi-disable: Add stdint_.h.
70837         * lib/.cvsignore: Add stdint.h.
70838
70839         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70842         both double and long double versions.
70843         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70844         * lib/xstrtold.c: New file.
70845         * lib/xstrtod.h (xstrtold): New decl.
70846
70847         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70848
70849         * lib/filemode.c (setst): Remove.
70850         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70851         (arguably) clearer, and the generated code is a bit smaller on my
70852         Debian GNU/Linux stable x86 host.
70853
70854         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70857         Assume that filemode.h includes sys/types.h and sys/stat.h.
70858         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70859         (ftypelet): Reorder to put common cases first, for efficiency.
70860         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70861         to do 'M'.
70862         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70863         of 10, for compatibility with FreeBSD.  All callers changed.
70864         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70865         types that can't be deduced solely from st_mode.  First arg is now a
70866         const pointer.
70867         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70868         (strmode): Renamed from mode_string.
70869         (filemodestring): New decl.
70870         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70871         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70872         needed.
70873         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70874
70875         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70876
70877         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70878         fsusage.h now does that.  Include fsusage.h first, to test interface.
70879         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70880         at most one method (the old code could have generated decls that
70881         didn't conform to C89, not that this was ever exercised).
70882         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70883
70884         2006-03-19  Jim Meyering  <jim@meyering.net>
70885
70886         Work even in a chroot where d_ino values for entries in "/"
70887         don't match the stat.st_ino values for the same names.
70888         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70889         number, iterate through all entries again, using lstat instead.
70890         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70891         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70892
70893         * lib/getcwd.c (__getcwd): Clarify a comment.
70894         Use memcpy in place of a call to strcpy.
70895
70896         2006-03-12  Jim Meyering  <jim@meyering.net>
70897
70898         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70899         matches that of the current directory (which we're about to chdir ".."
70900         out of), then save the dev-ino of the parent, instead.
70901
70902         * lib/same-inode.h (SAME_INODE): New file/macro.
70903         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70904         Include "same-inode.h", instead.
70905         * lib/same.c: Likewise.
70906         * lib/cycle-check.h: Include "same-inode.h".
70907         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70908         * lib/cycle-check.c (SAME_INODE): Remove definition.
70909         * lib/root-dev-ino.h: Include "same-inode.h".
70910
70911         2006-03-11  Eric Blake  <ebb9@byu.net>
70912
70913         * lib/same.c (same_name): s/base_name/last_component/
70914         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70915         * lib/filenamecat.c (file_name_concat): Likewise.
70916
70917         2006-03-11  Eric Blake  <ebb9@byu.net>,
70918                     Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70921         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70922         drive prefix.
70923         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70924         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70925         (last_component): New method.
70926         * lib/dirname.c (dir_len): Determine when drive letters need a
70927         subsequent slash.  Preserve // when it is special.
70928         (dir_name): Don't append dot when drive letter is absolute.
70929         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70930         * lib/basename.c (base_name): New semantics - malloc the result.
70931         Preserve // when it is special.  Preserve relative files that look
70932         like drive letters.
70933         (base_len): Preserve // when it is special.
70934         (last_component): New method, similar to old base_name semantics.
70935         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70936         base_name.  Strip redundant slashes from ///.
70937
70938 2006-07-03  Jim Meyering  <jim@meyering.net>
70939
70940         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70941         macro is used before the first cycle_check call.
70942
70943 2006-07-03  Eric Blake  <ebb9@byu.net>
70944
70945         * modules/dirname (Depends-on): Add xstrndup.
70946
70947 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70950         test cases, so that config.log is a bit easier to follow.
70951
70952 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70955         both are 64 bits, since this seems to be the tradition, and this
70956         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70957         we ever run into a host that prefers long long to long in this
70958         case, we'll need another configure-time test.  Problem reported by
70959         Jim Meyering.
70960
70961 2006-07-02  Eric Blake  <ebb9@byu.net>
70962
70963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70964
70965 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         * modules/inttypes (Depends-on): No longer depends on stdint.
70968         * modules/stdint (Description): Say more about assumptions.
70969         Say that the fast types might differ.  Say macros are used.
70970         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70971         (Makefile.am): Revise list of substituted symbols to match
70972         new stdint.m4.
70973         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70974         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70975         * tests/test-stdint.c (verify_same_types)
70976         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70977         the code conforms to C99/C89.
70978         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70979         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70980
70981 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70984         but fix a bug, by requiring at least 64 bits.
70985         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70986         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70987         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70988         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70989
70990         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70991         changes.  Make 2.59 a prerequisite.  Check and substitute for
70992         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70993         inttypes.h.  Do not use special include files; just use the
70994         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70995         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70996         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70997         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70998         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70999         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71000         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71001         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71002         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71003         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71004         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71005         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71006         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71007         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71008         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71009         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71010         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71011         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71012         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71013         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71014         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71015         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71016         not check for things that C99 does not require, e.g., int8_t.  If
71017         a test isn't needed unless <stdint.h> isn't working, and is
71018         unlikely to be needed for any other reason, then don't do it
71019         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71020         size_t, since we assume C89 freestanding at least.  Do not check
71021         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71022         the right thing even if the types are not defined.  Instead use:
71023         (gl_STDINT_TYPE_PROPERTIES): New macro.
71024         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71025         testing whether <sys/types.h> clashes, as Autoconf does this for
71026         us now.  All uses removed.
71027         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71028         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71029         (gl_CHECK_TYPE_SAME):
71030         Remove; no longer needed.
71031         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71032         exists, since we'll return 0 anyway in that case.
71033         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71034
71035 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71038         possible collision with system files.
71039         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71040         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71041         WCHAR_MIN and WCHAR_MAX in this case.
71042         (<stddef.h>): Do not include; no longer needed.
71043         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71044         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71045         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71046         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71047         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71048         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71049         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71050         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71051         !defined(__c99))]: Include in this case too, since it's harmless
71052         now.
71053         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71054         dangerous to do so.
71055         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71056         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71057         (_STDINT_MIN, _STDINT_MAX): New macros.
71058         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71059         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71060         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71061         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71062         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71063         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71064         macros, not typedefs; this simplifies things quite a bit.
71065         Use long int for all types narrower than int64_t.
71066         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71067         Define in terms of long long int or int64_t or long int,
71068         not int64_t or int32_t.  This saves some compile-time testing.
71069         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71070         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71071         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71072         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71073         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71074         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71075         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71076         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71077         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71078         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71079         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71080         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71081         undef any previous version and define our own version, for
71082         simplicity and consistency with the new macros for types.
71083         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71084         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71085         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71086         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71087         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71088         @WINT_T_SUFFIX@ to keep things simple here.
71089         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71090         Simplify by assuming typical 8/16/32/64 host, since we're
71091         already doing that elsewhere anyway.
71092         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71093         and assume long long int is 64 bits if available.  This
71094         speeds up 'configure'.
71095
71096 2006-07-01  Eric Blake  <ebb9@byu.net>
71097
71098         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71099         Reported by Andreas Buening.
71100
71101 2006-07-01  Eric Blake  <ebb9@byu.net>
71102
71103         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71104
71105 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71106
71107         * lib/getaddrinfo.c: fixed typo
71108
71109 2006-06-29  Jim Meyering  <jim@meyering.net>
71110
71111         * modules/strftime (Maintainer): Add my name, since with the
71112         FPRINTFTIME changes strftime.c has forked from glibc.
71113
71114 2006-06-29  Eric Blake  <ebb9@byu.net>
71115
71116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71117
71118 2006-06-29  Eric Blake  <ebb9@byu.net>
71119
71120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71121
71122 2006-06-29  Eric Blake  <ebb9@byu.net>
71123
71124         * lib/stat_.h: New file.
71125
71126 2006-06-29  Eric Blake  <ebb9@byu.net>
71127
71128         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71129         unused static function.
71130
71131 2006-06-29  Eric Blake  <ebb9@byu.net>
71132
71133         * doc/functions.texi (Function Portability): Document missing lstat
71134         on mingw.
71135
71136 2006-06-29  Eric Blake  <ebb9@byu.net>
71137
71138         * MODULES.html.sh: Add sys_stat.
71139         * modules/sys_stat: New module.
71140         * modules/mkstemp (Depends-on): Add sys_stat.
71141
71142 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71143
71144         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71145
71146 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71147
71148         * m4/c-bs-a.m4: Removed.
71149
71150 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71151
71152         * lib/strftime.c: Assume strftime() exists.
71153
71154 2006-06-29  Derek Price  <derek@ximbiot.com>
71155
71156         * modules/c-bs-a: Removed - \a is C89.
71157         * MODULES.html.sh: Remove c-bs-a.
71158
71159 2006-06-29  Bruno Haible  <bruno@clisp.org>
71160
71161         * modules/wcwidth (License): Change to LGPL.
71162
71163 2006-06-28  Simon Josefsson  <jas@extundo.com>
71164
71165         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71166         on _WIN32.
71167
71168         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71169         getnameinfo.
71170
71171 2006-06-28  Simon Josefsson  <jas@extundo.com>
71172
71173         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71174
71175 2006-06-28  Simon Josefsson  <jas@extundo.com>
71176
71177         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71178         functions there.  It will succeed on Windows XP, but on Windows
71179         2000 and (presumably) earlier, it will fail, and use the internal
71180         re-implementation.
71181         (use_win32_p): New function.
71182         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71183         Support AI_NUMERICSERV to disable getservbyname.
71184         (getnameinfo): New function, only supports
71185         NI_NUMERICHOST|NI_NUMERICSERV for now.
71186
71187         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71188         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71189         getnameinfo.
71190
71191 2006-06-28  Eric Blake  <ebb9@byu.net>
71192
71193         * modules/wcwidth: New file.
71194         * modules/mbchar (Depends-on): Add wcwidth.
71195         * modules/mbswidth (Depends-on): Add wcwidth.
71196         * MODULES.html.sh: Add wcwidth.
71197
71198 2006-06-28  Eric Blake  <ebb9@byu.net>
71199
71200         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71202
71203 2006-06-28  Eric Blake  <ebb9@byu.net>
71204
71205         * lib/xvasprintf.h: Fix comments.
71206
71207 2006-06-28  Eric Blake  <ebb9@byu.net>
71208
71209         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71210         * lib/mbswidth.c (wcwidth): Move from here...
71211         * lib/wcwidth.h: ...to this new file.
71212
71213 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71214
71215         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71216
71217         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71218         it's obsolete.
71219         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71220
71221 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71222
71223         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71224         Autoconf 2.60 says this stuff was obsolete.
71225
71226 2006-06-28  Bruno Haible  <bruno@clisp.org>
71227
71228         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71229
71230 2006-06-28  Bruno Haible  <bruno@clisp.org>
71231
71232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71233         gt_TYPE_WCHAR_T.
71234
71235 2006-06-28  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71238         declaration for wcwidth.
71239         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71240
71241 2006-06-28  Bruno Haible  <bruno@clisp.org>
71242
71243         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71244         (mkdir): Define using _mkdir.
71245
71246 2006-06-28  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/getaddrinfo.h: Fix POSIX URL.
71249         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71250         _WIN32.
71251         (use_win32_p): Make static.
71252         (getaddrinfo): Reject service name if it is empty or does not consist
71253         solely of decimal digits, or if its value is > 65535.
71254         (getnameinfo): Remove useless casts.
71255
71256 2006-06-27  Simon Josefsson  <jas@extundo.com>
71257
71258         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71259         Eggert and Martin Lambers.
71260
71261 2006-06-27  Simon Josefsson  <jas@extundo.com>
71262
71263         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71264         Eggert and Martin Lambers.
71265
71266 2006-06-27  Bruno Haible  <bruno@clisp.org>
71267
71268         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71269         result to 0, not to empty.
71270         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71271
71272 2006-06-27  Bruno Haible  <bruno@clisp.org>
71273
71274         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71275
71276 2006-06-26  Simon Josefsson  <jas@extundo.com>
71277
71278         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71279         present.
71280
71281 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71284         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71286
71287 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71288
71289         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71290
71291 2006-06-26  Bruno Haible  <bruno@clisp.org>
71292
71293         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71294
71295 2006-06-26  Bruno Haible  <bruno@clisp.org>
71296
71297         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71298
71299 2006-06-26  Bruno Haible  <bruno@clisp.org>
71300
71301         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71302         SGI C compiler in pre-C99 mode.
71303         Suggested by Mark D. Baushke and Larry Jones.
71304
71305 2006-06-26  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71308         WCHAR_MAX.
71309         Reported by Mark D. Baushke and Larry Jones.
71310
71311 2006-06-26  Bruno Haible  <bruno@clisp.org>
71312
71313         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71314         in pre-C99 mode.
71315         Suggested by Mark D. Baushke and Larry Jones.
71316
71317 2006-06-23  Simon Josefsson  <jas@extundo.com>
71318             Bruno Haible  <bruno@clisp.org>
71319
71320         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71321         Emit mostlyclean-local rule.
71322         (func_emit_tests_Makefile_am): Likewise.
71323         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71324
71325 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71326
71327         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71328
71329 2006-06-23  Bruno Haible  <bruno@clisp.org>
71330
71331         * tests/test-stdint.c: Update to match ISO C 99 Technical
71332         Corrigendum 1.
71333
71334 2006-06-23  Bruno Haible  <bruno@clisp.org>
71335
71336         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71337
71338 2006-06-23  Bruno Haible  <bruno@clisp.org>
71339
71340         * lib/stdint_.h: Treat IRIX like OpenBSD.
71341
71342 2006-06-23  Bruno Haible  <bruno@clisp.org>
71343
71344         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71345         ISO C 99 Technical Corrigendum 1.
71346
71347 2006-06-22  Simon Josefsson  <jas@extundo.com>
71348
71349         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71350         MinGW.
71351
71352 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71355         needed.  Some compiler complained about some of them.  Problem reported
71356         by Larry Jones in
71357         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71358
71359 2006-06-21  Simon Josefsson  <jas@extundo.com>
71360
71361         * tests/test-getaddrinfo.c: New file.
71362
71363         * modules/getaddrinfo-tests: New file.
71364
71365         * MODULES.html.sh: Add inet_pton.
71366
71367         * modules/inet_pton: New file.
71368
71369 2006-06-21  Simon Josefsson  <jas@extundo.com>
71370
71371         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71372         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71373         of using the (limited) gnulib implementation on Windows XP.
71374
71375         * m4/inet_pton.m4: New file.
71376
71377 2006-06-21  Simon Josefsson  <jas@extundo.com>
71378
71379         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71380         variable.
71381
71382         * lib/socket_.h: Don't define WINVER.
71383
71384         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71385         slightly modified to work in gnulib.
71386
71387 2006-06-21  Simon Josefsson  <jas@extundo.com>
71388
71389         * doc/gnulib.texi (Windows sockets): Add.
71390
71391 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * lib/read-file.c (fread_file): Start with buffer allocation of
71394         0 bytes rather than 1 byte; this simplifies the code.
71395         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71396         code to free buffer and save/restore errno.
71397         (internal_read_file): Remove unused local.
71398
71399 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71400
71401         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71402         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71403         Problem reported by Denis Excoffier in
71404         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71405
71406 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71407
71408         * modules/sys_socket, modules/socklen: Include sys/types since
71409         FreeBSD 4.x's sys/socket.h needs it.
71410
71411 2006-06-19  Simon Josefsson  <jas@extundo.com>
71412
71413         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71414
71415 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71416
71417         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71418
71419 2006-06-19  Bruno Haible  <bruno@clisp.org>
71420
71421         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71422         and FULL_PATH_INTTYPES_H in angle brackets.
71423         Reported by Mark D. Baushke <mdb@gnu.org>.
71424
71425 2006-06-17  Eric Blake  <ebb9@byu.net>
71426
71427         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71428         errno.
71429
71430 2006-06-17  Bruno Haible  <bruno@clisp.org>
71431
71432         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71433         <sys/inttypes.h>.
71434
71435 2006-06-17  Bruno Haible  <bruno@clisp.org>
71436
71437         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71438         whether errno is declared. Assume <errno.h> declares errno.
71439
71440 2006-06-17  Bruno Haible  <bruno@clisp.org>
71441
71442         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71443
71444 2006-06-17  Bruno Haible  <bruno@clisp.org>
71445
71446         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71447         problem on Solaris 2.5.1.
71448
71449 2006-06-16  Eric Blake  <ebb9@byu.net>
71450
71451         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71452         * lib/unicodeio.c [!defined errno]: Likewise.
71453         * lib/strtol.c [!defined errno]: Likewise.
71454         * lib/strtod.c [!defined errno]: Likewise.
71455
71456 2006-06-15  Eric Blake  <ebb9@byu.net>
71457
71458         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71459
71460 2006-06-15  Eric Blake  <ebb9@byu.net>
71461
71462         * config/srclist.txt (ssize_t.m4): Lose sync.
71463
71464 2006-06-15  Bruno Haible  <bruno@clisp.org>
71465
71466         * modules/stdint (Files): Include m4/full-header-path.m4,
71467         m4/size_max.m4, m4/wchar_t.m4.
71468         (Makefile.am): Many more substitutions.
71469         * modules/stdint-tests: New file.
71470         * tests/test-stdint.c: New file.
71471
71472 2006-06-15  Bruno Haible  <bruno@clisp.org>
71473
71474         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71475         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71476         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71477         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71478         gl_CHECK_TYPE_SAME): New macros.
71479
71480 2006-06-15  Bruno Haible  <bruno@clisp.org>
71481
71482         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71483
71484 2006-06-15  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/stdint_.h: Rewritten to be fully auto-configured.
71487         Fixes bug on HP-UX/IA64.
71488
71489 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71490
71491         * lib/getdate.y (__attribute__): Don't define if already defined.
71492         Problem reported by Larry Jones.
71493         * lib/utimens.c (__attribute__): Likewise.
71494
71495 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71498         reported by Andreas Schwab.
71499
71500 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71501             Bruno Haible  <bruno@clisp.org>
71502
71503         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71504         check for the declaration of strnlen and a run test that exposes the
71505         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71506         rpl_strndup.
71507
71508 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71509             Bruno Haible  <bruno@clisp.org>
71510
71511         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71512
71513 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71514
71515         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71516         compile test, for Tru64 4.0D.
71517
71518 2006-05-28  Karl Berry  <karl@gnu.org>
71519
71520         * config/srclist.txt (printf-args.c): lose sync.
71521
71522 2006-05-26  Martin Lambers  <marlam@marlam.de>
71523
71524         * lib/getpass.c: Updates the test for the native W32 API, and adds
71525         missing includes, thus fixing compilation warnings.
71526
71527 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71528
71529         * lib/exclude.c (exclude_fnmatch): New function.
71530         (excluded_file_name): Call exclude_fnmatch.
71531         * lib/exclude.h (excluded_file_name): New prototype
71532
71533 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * lib/tempname.c (small_open, large_open): New macros.
71536         (__open, __open64) [!_LIBC]: Remove.
71537         (__gen_tempname): Use small_open and large_open instead of __open
71538         and __open64.  This fixes a portability bug on HP-UX 11.11i
71539         reported by Simon Wing-Tang in
71540         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71541
71542 2006-05-24  Bruno Haible  <bruno@clisp.org>
71543
71544         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71545         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71546         Reported by Thorsten Maerz <torte@netztorte.de> via
71547         Aaron Stone <aaron@serendipity.cx>.
71548
71549 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71552         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71553         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71554         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71555         not really conditional on the cache.
71556         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71557
71558 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71561         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71562         (my_usleep): Don't mishandle maximum value.
71563
71564 2006-05-19  Jim Meyering  <jim@meyering.net>
71565
71566         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71567
71568 2006-05-17  Bruno Haible  <bruno@clisp.org>
71569
71570         Cygwin portability.
71571         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71572
71573 2006-05-17  Bruno Haible  <bruno@clisp.org>
71574
71575         * lib/stdint_.h: Fix recognition of Cygwin.
71576
71577 2006-05-15  Bruno Haible  <bruno@clisp.org>
71578
71579         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71580         on libtool patch by Ralf Wildenhues.
71581
71582 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71585         test for C99 conformance; (bool) 0.5 is an integer constant
71586         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71587         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71588
71589 2006-05-11  Simon Josefsson  <jas@extundo.com>
71590
71591         * m4/xvasprintf.m4: Fix obvious typo.
71592
71593 2006-05-11  Jim Meyering  <jim@meyering.net>
71594
71595         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71596         James Lemley.
71597
71598 2006-05-10  Simon Josefsson  <jas@extundo.com>
71599
71600         * lib/md4.c: Typo fix, update copyright years.
71601         (K1, K2): Don't use L because it turn computations into 64-bit on
71602         64-bit platforms.
71603
71604 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71607         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71608         unwanted sign propagation, e.g., on hosts with 64-bit int.
71609         There still are some problems with reeelly weird theoretical hosts
71610         (e.g., 33-bit int) but it's not worth worrying about now.
71611         * lib/sha1.c (rol): Likewise.
71612         (K1, K2, K3, K4): Remove unnecessary L suffix.
71613
71614 2006-05-10  Bruno Haible  <bruno@clisp.org>
71615
71616         * lib/des.c: Cast to avoid warnings.
71617
71618 2006-05-09  Bruno Haible  <bruno@clisp.org>
71619
71620         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71621         (Depends-on): Depend also on xsize, stdarg.
71622         (configure.ac): Add gl_XVASPRINTF.
71623
71624 2006-05-09  Bruno Haible  <bruno@clisp.org>
71625
71626         * m4/xvasprintf.m4: New file.
71627
71628 2006-05-09  Bruno Haible  <bruno@clisp.org>
71629
71630         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71631         (EOVERFLOW): Define fallback value.
71632         (xstrcat): New function.
71633         (xvasprintf): Recognize the special case of a string concatenation.
71634
71635 2006-05-08  Eric Blake  <ebb9@byu.net>
71636
71637         * gnulib-tool (func_version): Base copyright year on CVS date.
71638         (func_emit_copyright_notice): New function.
71639         (func_emit_lib_Makefile_am): Use it.
71640         (func_emit_tests_Makefile_am): Likewise.
71641         (func_import): Likewise.
71642
71643 2006-05-08  Bruno Haible  <bruno@clisp.org>
71644
71645         * modules/stdarg: New file.
71646         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71647
71648 2006-05-08  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/stdarg.m4: New file, from GNU gettext.
71651
71652 2006-05-08  Bruno Haible  <bruno@clisp.org>
71653
71654         * config/srclist.txt (build-aux/config.rpath): different from latest
71655         release.
71656
71657 2006-05-08  Bruno Haible  <bruno@clisp.org>
71658
71659         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71660
71661 2006-05-05  Jim Meyering  <jim@meyering.net>
71662
71663         * m4/warning.m4: New file, derived from bison's file by the same name.
71664
71665 2006-05-03  Bruno Haible  <bruno@clisp.org>
71666
71667         * lib/stdint_.h: Shorter URL.
71668         * lib/inttypes.h: Likewise.
71669
71670 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71671
71672         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71673
71674 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * lib/verify.h: Document the internals better.  Most of this change
71677         was written by Bruno Haible.
71678
71679 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * doc/verify.texi: New file, partly based on a proposal by
71682         Bruno Haible.
71683
71684 2006-05-02  Bruno Haible  <bruno@clisp.org>
71685
71686         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71687         test from here...
71688         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71689
71690 2006-04-29  Bruno Haible  <bruno@clisp.org>
71691
71692         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71693         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71694
71695 2006-04-29  Bruno Haible  <bruno@clisp.org>
71696
71697         * gnulib-tool: Make --update option actually work.
71698
71699 2006-04-29  Bruno Haible  <bruno@clisp.org>
71700
71701         * doc/gcd.texi: New file.
71702         * doc/gnulib.texi: Include it.
71703
71704 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/getdate.y (get_date): When adding relative date, start with the
71707         initial time, not with the result of the first mktime call.
71708
71709 2006-04-25  Bruno Haible  <bruno@clisp.org>
71710
71711         * gnulib-tool (func_import): Output the include directives in three
71712         blocks, sorted separately.
71713         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71714
71715 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71718         to define main with arguments, for C++.  Reported by Eric Blake.
71719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71720         Prefer 'int main ()' to 'int main (void)', for C++.
71721         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71722         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71723         for 'main', for C99 and C++.
71724
71725 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71728         Don't assume that exit status -1 is valid.
71729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71730         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71731         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71732         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71733         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71734         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71735         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71736         functions can be used without declaring them, or that you can
71737         exit with status -1.
71738         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71739
71740 2006-04-24  Karl Berry  <karl@gnu.org>
71741
71742         * config/srclist.txt (longdouble.m4): sync lost.
71743
71744 2006-04-24  Eric Blake  <ebb9@byu.net>
71745
71746         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71747
71748 2006-04-24  Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71751         poll() implementation in AIX.
71752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71753
71754 2006-04-24  Bruno Haible  <bruno@clisp.org>
71755
71756         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71757         assigned exactly once.
71758
71759 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71760             Bruno Haible  <bruno@clisp.org>
71761
71762         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71763         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71764         for AM_CPPFLAGS.
71765
71766 2006-04-23  Bruno Haible  <bruno@clisp.org>
71767
71768         * modules/copy-file: Depend on unistd.
71769         * modules/execute: Likewise.
71770         * modules/fatal-signal: Likewise.
71771         * modules/findprog: Likewise.
71772         * modules/mkdtemp : Likewise.
71773         * modules/pipe: Likewise.
71774         * modules/wait-process: Likewise.
71775
71776 2006-04-23  Bruno Haible  <bruno@clisp.org>
71777
71778         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71779         condition was already detected.
71780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71781
71782 2006-04-23  Bruno Haible  <bruno@clisp.org>
71783
71784         * lib/copy-file.c: Include <unistd.h> unconditionally.
71785         * lib/execute.c: Likewise.
71786         * lib/fatal-signal.c: Likewise.
71787         * lib/findprog.c: Likewise.
71788         * lib/mkdtemp.c: Likewise.
71789         * lib/pipe.h: Likewise.
71790         * lib/pipe.c: Likewise.
71791         * lib/wait-process.h: Likewise.
71792
71793 2006-04-23  Bruno Haible  <bruno@clisp.org>
71794
71795         * gnulib-tool (func_usage): Fix --import description. Document
71796         --update.
71797         (func_import): Create temporary file in a temporary directory, if
71798         --dry-run is specified. Silence errors from 'grep' when there are no
71799         m4 files in $m4dir.
71800         (func_create_testdir): Silence errors from 'grep' when there are no
71801         m4 files in $m4dir.
71802         Reported by Karl Berry <karl@freefriends.org>.
71803
71804 2006-04-20  Bruno Haible  <bruno@clisp.org>
71805
71806         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71807         one argument, so that the code will be portable to Autoconf 2.60.
71808         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71809         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71810         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71811
71812 2006-04-19  Derek Price  <derek@ximbiot.com>
71813             Eric Blake  <ebb9@byu.net>
71814
71815         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71816         rather than "/full/path.h".  Update comment to match.  Shorten &
71817         generalize m4_translit call via AS_TR_CPP.
71818
71819 2006-04-19  Derek Price  <derek@ximbiot.com>
71820             Eric Blake  <ebb9@byu.net>
71821
71822         * lib/inttypes.h: Correct grammar in comment.
71823
71824 2006-04-18  Derek Price  <derek@ximbiot.com>
71825             Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * modules/inttypes: New file.
71828         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71829
71830 2006-04-18  Derek Price  <derek@ximbiot.com>
71831             Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71834         New files.
71835
71836 2006-04-18  Derek Price  <derek@ximbiot.com>
71837             Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * lib/inttypes.h: New file.
71840         * lib/strtoimax.c: Assume <inttypes.h>.
71841
71842 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71845         isn't mounted.  Problem reported by Kir Kolyshkin.
71846
71847 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71848
71849         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71850         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71851         Derek R. Price.
71852         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71853         implementation.
71854
71855 2006-04-12  Eric Blake  <ebb9@byu.net>
71856
71857         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71858         is now done automatically by the corresponding Autoconf macro.
71859
71860 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71863         time_r.h.
71864
71865 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         Merge regex changes from libc, removing some of our
71868         POSIX-conformance changes that were rejected and redoing them in a
71869         less-intrusive way.
71870
71871         * lib/regcomp.c (re_compile_internal, init_dfa):
71872         Length arg is now size_t, not Idx.  All uses changed.
71873         (peek_token): Forward decl now says internal_function.
71874         (__re_error_msgid, __re_error_msgid_idx):
71875         Now static rather than extern with attribute_hidden.
71876         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71877         For some reason libc prefers K&R style defns for external functions.
71878         (regerror) [!defined _LIBC]: Likewise.
71879         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71880         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71881         (build_range_exp, build_collating_symbol):
71882         Use K&R-style defn.
71883         (re_compile_fastmap): Use '\0' to memset, not 0.
71884         (utf8_sb_map): Make the calculations more obvious.
71885         (init_dfa, parse_bracket_exp, build_charclass_op):
71886         Call calloc and cast result, as glibc does.
71887         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71888         (build_range_exp, build_collating_symbol):
71889         Now internal functions.
71890
71891         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71892
71893         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71894         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71895         Don't depend on VMS; depend on __VMS instead, for POSIX
71896         namespace cleanness.
71897         (regoff_t): Define to ssize_t, not long int.
71898
71899         Remove the REG_ macros named below.  Instead, make the old names
71900         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71901         __USE_GNU_REGEX.
71902         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71903         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71904         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71905         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71906         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71907         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71908         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71909         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71910         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71911         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71912         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71913         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71914         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71915         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71916         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71917         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71918         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71919         (REG_NREGS):
71920         Remove.  All uses replaced by the old RE_* names.
71921         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71922         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71923         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71924         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71925         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71926         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71927         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71928         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71929         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71930         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71931         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71932         Don't bother having these macros be independent of each others'
71933         values, since they no longer exist in the POSIX name space.
71934
71935         Rename the following member names back to their old names,
71936         unless !__USE_GNU_REGEX.  All uses changed back.
71937         (buffer): Renamed from re_buffer.
71938         (allocated): Renamed from re_allocated.
71939         (used): Renamed from re_used.
71940         (syntax): Renamed from re_syntax.
71941         (fastmap): Renamed from re_fastmap.
71942         (translate): Renamed from re_translate.
71943         (can_be_null): Renamed from re_can_be_null.
71944         (regs_allocated): Renamed from re_regs_allocated.
71945         (fastmap_accurate): Renamed from re_fastmap_accurate.
71946         (no_sub): Renamed from re_no_sub.
71947         (not_bol): Renamed from re_not_bol.
71948         (not_eol): Renamed from re_not_eol.
71949         (newline_anchor): Renamed from re_newline_anchor.
71950         (num_regs): Renamed from rm_num_regs.
71951         (start): Renamed from rm_start.
71952         (end): Renamed from rm_end.
71953
71954         (free_state): Move up a bit.
71955
71956         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71957         #define to be empty.
71958         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71959         when that is what is intended.
71960         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71961         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71962         (MAX): New macro.
71963         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71964         All uses changed back to re_malloc, etc.  It's now the caller's
71965         responsibility to check for overflow; all callers changed.
71966         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71967         (re_x2nrealloc): Remove.
71968         (free_state): Remove decl.
71969
71970         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71971         (re_set_registers, re_exec):
71972         Use K&R-style defn.
71973
71974         2006-01-31  Roland McGrath  <roland@redhat.com>
71975
71976         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71977         Reported by Mike Frysinger <vapier@gentoo.org>.
71978
71979         2006-01-15  Andreas Jaeger  <aj@suse.de>
71980
71981         [BZ #1950]
71982         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71983         build_wcs_upper_buffer change.
71984         (build_wcs_upper_buffer): Change return type.
71985
71986         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71987
71988         * lib/regex_internal.h: Include <stdint.h> if available.
71989
71990         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71991
71992         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71993
71994         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71995
71996         * lib/regcomp.c: Adjust for changed secondary hash function.
71997
71998         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71999
72000         * lib/regex.h: Pretty printing.
72001         Clean up namespace a bit.
72002
72003         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72004
72005         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72006         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72007
72008         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72009                     Ulrich Drepper  <drepper@redhat.com>
72010
72011         [BZ #1302]
72012         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72013         changed.
72014         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72015
72016         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72017
72018         [BZ #281]
72019         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72020         * lib/regcomp.c: Remove unnecessary uses of
72021         unsigned RE_TRANSLATE_TYPE.
72022         * lib/regex_internal.h: Likewise.
72023         * lib/regex_internal.c: Likewise.
72024         * lib/regexec.c: Likewise.
72025         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72026
72027         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72028
72029         * lib/regexec.c (find_recover_state): Remove unnecessary
72030         initialization.
72031         (transit_state_bkref): Make DFA a const pointer.
72032         (get_subexp): Likewise.
72033         (check_arrival): Likewise.
72034         (update_cur_sifted_state): Likewise.
72035         (re_search_internal): Likewise.
72036         (prune_impossible_nodes): Likewise.
72037         (acquire_init_state_context): Likewise.
72038         (proceed_next_node): Likewise.
72039         (set_regs): Likewise.
72040         (free_fail_stack_return): Likewise.
72041         (check_arrival_expand_ecl): Mark DFA parameter as const.
72042         (check_arrival_expand_ecl_sub): Likewise.
72043         (check_subexp_limits): Likewise.
72044         (sub_epsilon_src_nodes):  Likewise.
72045         (add_epsilon_src_nodes):  Likewise.
72046         (merge_state_array): Likewise.
72047         (update_regs): Likewise.
72048         (build_trtable): Likewise.
72049         (sift_states_backward): Mark MCTX parameter as const.
72050         (build_sifted_states): Likewise.
72051         (update_cur_sifted_state): Likewise.
72052         (sift_states_mkref): Likewise.
72053         (check_arrival_expand_ecl): Mark eclosure as const.
72054         (check_dst_limits_calc_pos_1): Likewise.
72055         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72056         pointer.
72057
72058         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72059
72060         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72061         (transit_state_sb): Likewise.
72062         (transit_state_mb): Likewise.
72063         (sift_states_iter_mb): Likewise.
72064         (check_arrival_add_next_nodes): Likewise.
72065         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72066         [_LIBC] (re_search_2_stub): Use mempcpy.
72067
72068         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72069         mbrtowc for very simple UTF-8 case.
72070
72071         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72072         a pointer-to-const.
72073         (re_acquire_state_context): Likewise.
72074         * lib/regex_internal.h: Adjust prototypes.
72075
72076         * lib/regex.c: Prevent using C++ compilers.
72077
72078         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72079         (re_acquire_state_context): Likewise.
72080
72081 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * modules/regex (Depends-on): Add ssize_t.
72084
72085 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72086
72087         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72088         translation table.
72089
72090 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72093
72094 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72095             Bruno Haible  <bruno@clisp.org>
72096
72097         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72098         <sys/types.h> and <inttypes.h>.
72099
72100 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72101
72102         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72103         `__error_t_defined', so argp.h will not typedef the former.
72104
72105 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72108         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72109         glibc names.  Even if glibc is changed to conform to POSIX, the
72110         traditional names will be available anyway, since regex depends on
72111         the extensions module.  Also, fix a longstanding typo in the
72112         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72113         reported by Emanuele Giaquinta.  Also, change sense of cached
72114         variable, so that the message makes sense.
72115
72116 2006-03-24  Simon Josefsson  <jas@extundo.com>
72117
72118         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72119         including some doc fixes.
72120         (base64_encode_alloc): Fix +1 bug on allocation failures.
72121
72122 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72123
72124         * lib/base64.c (base64_encode): Do not read past end of array with
72125         unsanitized input on systems with CHAR_BIT > 8.
72126
72127 2006-03-24  Eric Blake  <ebb9@byu.net>
72128
72129         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72130
72131 2006-03-22  Karl Berry  <karl@gnu.org>
72132
72133         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72134         * config/srclistvars.sh (COREUTILS): new var.
72135
72136 2006-03-17  Jim Meyering  <jim@meyering.net>
72137
72138         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72139         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72140
72141 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72144         no longer needs it.  Instead, check that regoff_t is as least
72145         as wide as ptrdiff_t.
72146
72147         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72148         so that our regex.h stays compatible with the installed regex.
72149         This is helpful for installers who configure --without-included-regex.
72150         Problem reported by Emanuele Giaquinta.
72151
72152 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72155         Typedef to long int, not to off_, as POSIX will likely change
72156         in that direction.
72157
72158 2006-03-15  Eric Blake  <ebb9@byu.net>
72159
72160         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72161
72162 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72163
72164         * lib/argp-help.c (validate_uparams): Fix typo
72165         * lib/argp-parse.c (argp_default_options): Consistently begin help
72166         messages with a lowercase letter.
72167
72168 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72169
72170         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72171         overrun buffers and shouldn't be used (much as gets shouldn't be
72172         used).
72173         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72174
72175 2006-03-08  Simon Josefsson  <jas@extundo.com>
72176
72177         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72178         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72179
72180 2006-03-08  Simon Josefsson  <jas@extundo.com>
72181
72182         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72183         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72184
72185 2006-03-08  Simon Josefsson  <jas@extundo.com>
72186
72187         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72188         signal that configure disabled the device.
72189
72190 2006-03-08  Simon Josefsson  <jas@extundo.com>
72191
72192         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72193         languages.
72194
72195 2006-03-07  Simon Josefsson  <jas@extundo.com>
72196
72197         * modules/getopt (Depends-on): Add unistd.
72198
72199         * modules/unistd: New file.
72200
72201 2006-03-07  Simon Josefsson  <jas@extundo.com>
72202
72203         * modules/gc-random: New file.
72204
72205 2006-03-07  Simon Josefsson  <jas@extundo.com>
72206
72207         * m4/unistd_h.m4: New file.
72208
72209 2006-03-07  Simon Josefsson  <jas@extundo.com>
72210
72211         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72212         test to be side-effect free by storing the result in the cache
72213         variable gl_cv_lib_readline, and moving the assignment of
72214         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72215         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72216
72217 2006-03-07  Simon Josefsson  <jas@extundo.com>
72218
72219         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72220         error on missing devices (the functions will return an error).
72221
72222         * m4/gc.m4: Move random stuff to gc-random.m4
72223
72224 2006-03-07  Simon Josefsson  <jas@extundo.com>
72225
72226         * lib/unistd_.h: New file.
72227
72228 2006-03-07  Simon Josefsson  <jas@extundo.com>
72229
72230         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72231
72232 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72235         Problem reported by Juan Manuel Guerrero.
72236
72237 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72240         the unistd module.
72241         * lib/getlogin_r.c: Likewise.
72242         * lib/getlogin_r.h: Likewise.
72243         * lib/glob.c: Likewise.
72244         * lib/pagealign_alloc.c: Likewise.
72245         * lib/unistd_.h: Remove; no longer needed.
72246
72247 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72248
72249         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72250         Add unistd.
72251         * modules/c-stack (Depends-on): Add unistd.
72252         * modules/getlogin_r: Likewise.
72253         * modules/glob: Likewise.
72254         * modules/pagealign_alloc: Likewise.
72255         * modules/unistd (Files): Remove lib/unistd_.h.
72256         (EXTRA_DIST): Remove.
72257         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72258         need unistd_.h.
72259         (MOSTLYCLEANFILES): Remove unistd.h-t.
72260
72261 2006-03-03  Simon Josefsson  <jas@extundo.com>
72262
72263         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72264
72265 2006-03-03  Simon Josefsson  <jas@extundo.com>
72266
72267         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72268         libidn and bison.
72269
72270 2006-03-03  Simon Josefsson  <jas@extundo.com>
72271
72272         * build-aux/maint.mk: Add indent target.
72273
72274 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72275
72276         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72277         our replacement poll.h in any case, to avoid a differing
72278         declaration from a system header.  Seen on AIX.
72279
72280 2006-03-01  Simon Josefsson  <jas@extundo.com>
72281
72282         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72283         <kasal@ucw.cz>.
72284
72285 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72286
72287         * modules/gettime (Depends-on): Add extensions module.
72288         * modules/nanosleep (Depends-on): Likewise.
72289         * modules/settime (Depends-on): Likewise.
72290
72291 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72294         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72295         pedantically.
72296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72297         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72298
72299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72300         not "==".  Reported by Ralf Wildenhues.
72301
72302 2006-03-01  Karl Berry  <karl@gnu.org>
72303
72304         * doc/Copyright/request-*: new files, synced from gnuorg.
72305
72306 2006-03-01  Karl Berry  <karl@gnu.org>
72307
72308         * config/srclist.txt (Copyright/*): new entries.
72309
72310 2006-02-28  Simon Josefsson  <jas@extundo.com>
72311
72312         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72313
72314 2006-02-27  Simon Josefsson  <jas@extundo.com>
72315
72316         * lib/base64.h: Indent #define's.  From Jim Meyering
72317         <jim@meyering.net>.
72318
72319 2006-02-27  Jim Meyering  <jim@meyering.net>
72320
72321         Revert the change of 2006-02-24, so these files can continue
72322         to be sync'd from gettext.
72323         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72324         of `config.h'.
72325
72326 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * modules/intprops: New file.
72329         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72330         Add intprops.
72331         * modules/getloadavg (Files): Remove lib/intprops.h.
72332         (Depends-on): Add intprops.
72333         * modules/human: Likewise.
72334         * modules/inttostr: Likewise.
72335         * modules/openat: Likewise.
72336         * modules/sig2str: Likewise.
72337         * modules/userspec: Likewise.
72338         * modules/utimecmp: Likewise.
72339         * modules/xnanosleep: Likewise.
72340         * modules/xstrtol: Likewise.
72341
72342 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72343
72344         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72345         * modules/lock-tests (TESTS): Use $(EXEEXT).
72346         * modules/tls-tests: Likewise.
72347         * modules/argp-tests: Likewise.
72348         (check_PROGRAMS): New var, replacing...
72349         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72350
72351 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72352
72353         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72354         `config.h'.
72355
72356 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72359
72360 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72361
72362         Sync from coreutils.
72363         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72364         gl_CHDIR_SAFER.
72365
72366 2006-02-22  Jim Meyering  <jim@meyering.net>
72367
72368         Sync from coreutils.
72369         * m4/chdir-safer.m4: New file.
72370
72371 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72374         AT_FDCWD exceeds INT_MAX.
72375         * lib/openat.h (AT_FDCWD): Likewise.
72376
72377 2006-02-17  Eric Blake  <address@hidden>
72378
72379         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72380
72381 2006-02-16  Simon Josefsson  <jas@extundo.com>
72382
72383         * modules/getaddrinfo (Depends-on): Add sys_socket.
72384
72385 2006-02-15  Simon Josefsson  <jas@extundo.com>
72386
72387         * build-aux/maint.mk: Add dsyntax-check rule.
72388
72389 2006-02-15  Eric Blake  <ebb9@byu.net>
72390
72391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72392         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72393         'present but cannot compile' warnings on cygwin.
72394         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72395         use ws2tcpip.h if sys/socket.h works.
72396         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72397         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72398
72399 2006-02-14  Simon Josefsson  <jas@extundo.com>
72400
72401         * modules/maintainer-makefile (Files): Rename.
72402
72403         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72404         and (the local) Makefile.cfg to maint-cfg.mk.
72405
72406         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72407         to the latter.
72408
72409         * modules/maintainer-makefile: New module.
72410
72411         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72412         severaly stripped to make it possible to build it up from scratch
72413         with reliable tests.
72414
72415         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72416         fixes to permit overriding the default actions when configure and
72417         makefile are not available.
72418
72419 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72420
72421         Sync from coreutils.
72422         * modules/lstat (Depends-on): Don't depend on xalloc.
72423         (License): Change from GPL to LGPL, since this is now simply a
72424         replacement for a libc function.
72425
72426 2006-02-14  Jim Meyering  <jim@meyering.net>
72427
72428         Sync from coreutils.
72429
72430         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72431         failure on deficient systems, and simplify gnulib lgpl dependencies.
72432         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72433         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72434
72435         * lib/xalloc-die.c: Remove unused definition of N_.
72436
72437 2006-02-14  Jim Meyering  <jim@meyering.net>
72438
72439         Sync from coreutils.
72440         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72441         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72442         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72443         double-quote uses of that variable, to accommodate the rare case in
72444         which getmntent is available in none of the libraries checked.  This
72445         happens at least on FreeBSD 5.0.
72446
72447 2006-02-13  Simon Josefsson  <jas@extundo.com>
72448
72449         * gnulib-tool (Usage): Fix --import, from
72450         karl@freefriends.org (Karl Berry).
72451
72452 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72453
72454         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72455
72456 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72457
72458         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72459         "autoupdate" on 2005-12-12.
72460
72461 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72462
72463         * modules/closeout (Depends-on): Remove atexit.
72464
72465 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72468         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72469
72470 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72471
72472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72473         __EXTENSIONS__ if this causes compilation to fail.  Problem
72474         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72475         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72476
72477 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72480         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72481         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72482         All uses changed.
72483
72484 2006-01-26  Simon Josefsson  <jas@extundo.com>
72485
72486         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72487         prototype is visible on mingw32.
72488
72489         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72490         for mingw32.
72491
72492         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72493         mingw32).
72494
72495 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72498         attempt to open for write; this always fails, at least on POSIX
72499         hosts.  This reinstates the 2006-01-09 change, which was
72500         inadvertently removed.
72501
72502 2006-01-26  Bruno Haible  <bruno@clisp.org>
72503
72504         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72505         Reported by Paul Eggert.
72506
72507 2006-01-26  Bruno Haible  <bruno@clisp.org>
72508             Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * lib/stdbool_.h (_Bool)
72511         [(! (defined __cplusplus || defined __BEOS__)
72512           && !defined __GNUC__
72513           && !(defined __HP_cc || defined __xlc__
72514                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72515                || defined __sgi))]:
72516         #define to signed char in these cases too; this simplifies
72517         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72518         etc., separately) and makes it more conservative.
72519
72520 2006-01-25  Simon Josefsson  <jas@extundo.com>
72521
72522         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72523         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72524         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72525
72526 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72527
72528         * lib/argp-namefrob.h: Bugfix. Remove stray #
72529
72530 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72533         so that we test the test.
72534         Check for yet another HP-UX cc bug involving *bool |= bool.
72535
72536 2006-01-25  Karl Berry  <karl@gnu.org>
72537
72538         * config/srclist.txt (vasnprintf.c): sync lost.
72539
72540 2006-01-25  Jim Meyering  <jim@meyering.net>
72541
72542         Sync from the stable (b5) branch of coreutils:
72543
72544         * lib/fts.c (fts_children): Don't let close() clobber errno from
72545         failed fchdir().
72546
72547         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72548         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72549         a dangling symlink.  That can also happen at least for ELOOP.
72550         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72551         FYI, this bug predates the inclusion of fts.c in coreutils.
72552
72553         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72554         in their own block, so pre-c99 compilers don't object.
72555
72556         Avoid the double-free (first in fts_read, second in fts_close) that
72557         would occur when an `active' directory is made inaccessible (e.g.,
72558         via chmod a-x) during a traversal.
72559         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72560         before returning.  Reproduce this failure by
72561         mkdir -p a/b; cd a; chmod a-x . b
72562         Reported by Stavros Passas.
72563
72564 2006-01-25  Jim Meyering  <jim@meyering.net>
72565
72566         * lib/fileblocks.c: Remove more useless parentheses.
72567         * lib/readutmp.h: Likewise.
72568
72569 2006-01-25  Bruno Haible  <bruno@clisp.org>
72570
72571         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72572         warnings.
72573         Reported by Paul Eggert.
72574
72575 2006-01-25  Bruno Haible  <bruno@clisp.org>
72576
72577         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72578         rid of a trap command. For Solaris sh.
72579         Reported by Mark D. Baushke <mdb@gnu.org>.
72580
72581 2006-01-24  Simon Josefsson  <jas@extundo.com>
72582
72583         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72584         Bruno.
72585
72586 2006-01-24  Karl Berry  <karl@gnu.org>
72587
72588         * config/srclist.txt (argp-namefrob.h): sync lost.
72589
72590 2006-01-24  Jim Meyering  <jim@meyering.net>
72591
72592         * modules/openat (Files): Add lib/intprops.h.
72593         From Mark D. Baushke.
72594
72595 2006-01-24  Jim Meyering  <jim@meyering.net>
72596
72597         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72598         Reported by Mark D. Baushke.
72599
72600 2006-01-24  Jim Meyering  <jim@meyering.net>
72601
72602         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72603
72604 2006-01-24  Bruno Haible  <bruno@clisp.org>
72605
72606         * modules/strnlen (Maintainer): Change from glibc to all.
72607
72608 2006-01-24  Bruno Haible  <bruno@clisp.org>
72609
72610         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72611         Patch by Paul Eggert.
72612
72613 2006-01-24  Bruno Haible  <bruno@clisp.org>
72614
72615         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72616         already has it.
72617         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72618         2005-11-26.
72619
72620         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72621         'signed char' to avoid problems with the built-in _Bool type.
72622         Reported by Paul Eggert on 2005-11-26.
72623
72624 2006-01-24  Bruno Haible  <bruno@clisp.org>
72625
72626         * gnulib-tool (func_import): Avoid constructing complicated sed
72627         expressions inside backquote.
72628         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72629
72630 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72631
72632         These changes imported from libc.
72633         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72634         test and two separate function calls.
72635         * lib/strndup.c (__strndup): Add libc_hidden_def.
72636
72637 2006-01-23  Simon Josefsson  <jas@extundo.com>
72638
72639         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72640         Remove the test_*_SOURCES variable: automake infers it by default.
72641         * modules/tls-tests: Likewise.
72642
72643 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         Work around porting bugs reported by Dieter in
72646         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72647         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72648         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72649         Include "getopt.h" first, to check interface.
72650         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72651         !HAVE_DECL_GETENV.
72652         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72653         (__strndup): Revert to K&R-style function dfns, the glibc style.
72654         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72655         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72656         Include strnlen.h first, to get prototype properly.
72657         (strnlen): Renamed from __strnlen.
72658         Remove weak alias.
72659
72660 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72663
72664 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * config/srclist.txt: Adjust to reflect glibc reorganization.
72667         This affects only comments.
72668
72669 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72670
72671          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72672          Reported by Bruce Korb <bkorb@gnu.org>.
72673
72674 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72677         to pacify gcc -Wswitch-default.
72678
72679 2006-01-22  Bruno Haible  <bruno@clisp.org>
72680
72681         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72682         temporary buffer for sprintf, take into account the precision also
72683         for 'd', 'i', 'u', 'o', 'x', 'X'.
72684
72685 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72686
72687         * modules/argp-tests: New module
72688         * tests/test-argp.c: New file
72689         * tests/test-argp-2.sh: New file
72690
72691 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72692
72693         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72694         (__argp_base_name): Removed
72695         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72696         typo.
72697         (__argp_base_name): Provide macro definition or extern declaration
72698         depending on the configuration
72699
72700 2006-01-20  Simon Josefsson  <jas@extundo.com>
72701
72702         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72703
72704 2006-01-20  Simon Josefsson  <jas@extundo.com>
72705
72706         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72707
72708 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72711         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72712         Suggested by Bruno Haible.
72713
72714 2006-01-20  Karl Berry  <karl@gnu.org>
72715
72716         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72717         until changes propagate, I guess.
72718
72719 2006-01-19  Simon Josefsson  <jas@extundo.com>
72720
72721         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72722
72723 2006-01-19  Simon Josefsson  <jas@extundo.com>
72724
72725         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72726
72727 2006-01-19  Simon Josefsson  <jas@extundo.com>
72728
72729         * gnulib-tool: Set check_PROGRAMS.
72730
72731         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72732         modules/des-tests, modules/gc-arcfour-tests,
72733         modules/gc-arctwo-tests, modules/gc-des-tests,
72734         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72735         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72736         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72737         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72738         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72739         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72740         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72741         test_*_SOURCES.
72742
72743 2006-01-18  Simon Josefsson  <jas@extundo.com>
72744
72745         * modules/socklen (Depends-on): Depend on sys_socket.
72746
72747 2006-01-18  Simon Josefsson  <jas@extundo.com>
72748
72749         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72750         modules/des-tests, modules/gc-arcfour-tests,
72751         modules/gc-arctwo-tests, modules/gc-des-tests,
72752         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72753         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72754         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72755         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72756         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72757         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72758         $(EXEEXT) to automake TESTS variable, for mingw32.
72759
72760 2006-01-17  Simon Josefsson  <jas@extundo.com>
72761
72762         * modules/socklen (Include): Need sys/socket.h.
72763
72764 2006-01-17  Bruno Haible  <bruno@clisp.org>
72765
72766         * modules/ssize_t (Include): Add <sys/types.h>.
72767
72768 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72771         it's not portable and it doesn't work with cross-compiles.
72772         Problem reported by Bruno Haible.  Fix missing-$ typo in
72773         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72774         -zignore from being used with Sun's C compiler.
72775
72776 2006-01-12  Simon Josefsson  <jas@extundo.com>
72777
72778         * lib/base64.c: Fix warning, reported by Bruno Haible
72779         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72780
72781 2006-01-12  Bruno Haible  <bruno@clisp.org>
72782
72783         * modules/ldd: New file.
72784         * build-aux/ldd.sh.in: New file.
72785         * MODULES.html.sh (Support for building libraries and executables): Add
72786         ldd.
72787
72788 2006-01-12  Bruno Haible  <bruno@clisp.org>
72789
72790         * m4/ldd.m4: New file.
72791
72792 2006-01-12  Bruno Haible  <bruno@clisp.org>
72793
72794         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72795         endless loop while replacing $auxdir with build-aux.
72796
72797 2006-01-11  Simon Josefsson  <jas@extundo.com>
72798
72799         * lib/stdint_.h (SIZE_MAX): Add missing (.
72800
72801 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         Sync from coreutils.
72804         * lib/md5.c: Fix commentary typos.
72805         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72806         * lib/md5.h (__attribute__): Remove; unused.
72807         * lib/sha1.c: Fix commentary to match md5 better.
72808         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72809         so that we don't need to worry about alignment.  All uses changed.
72810         This merges the 2005-10-28 md5 change into sha1.
72811
72812 2006-01-11  Jim Meyering  <jim@meyering.net>
72813
72814         Sync from coreutils.
72815         * lib/md5.c (OP): Fix spacing.
72816
72817 2006-01-11  Bruno Haible  <bruno@clisp.org>
72818
72819         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72820         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72821         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72822
72823 2006-01-11  Bruno Haible  <bruno@clisp.org>
72824
72825         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72826         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72827         the "early" section as well.
72828
72829 2006-01-11  Bruno Haible  <bruno@clisp.org>
72830
72831         Avoid "ar: no archive members specified" error on MacOS X.
72832         * gnulib-tool (func_modules_add_dummy): New function.
72833         (func_import, func_create_testdir): Invoke it.
72834
72835 2006-01-11  Bruno Haible  <bruno@clisp.org>
72836
72837         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72838         with $auxdir in AC_CONFIG_FILES statements.
72839
72840 2006-01-11  Bruno Haible  <bruno@clisp.org>
72841
72842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72843         Initialize also noinst_HEADERS to empty.
72844
72845 2006-01-11  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72848         variables.
72849         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72850         autoreconf.
72851
72852 2006-01-11  Bruno Haible  <bruno@clisp.org>
72853
72854         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72855         overridable by the user.
72856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72857
72858 2006-01-10  Simon Josefsson  <jas@extundo.com>
72859
72860         * modules/sys_socket: New file.
72861
72862 2006-01-10  Simon Josefsson  <jas@extundo.com>
72863
72864         * m4/sys_socket_h.m4: New file.
72865
72866 2006-01-10  Simon Josefsson  <jas@extundo.com>
72867
72868         * lib/socket_.h: New file.
72869
72870 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * modules/readutmp (Maintainer): Add myself.
72873
72874 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72877         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72878         People who are still concerned with buggy memcmp implementations
72879         can invoke gl_FUNC_MEMCMP themselves.
72880
72881 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * lib/regex_internal.h (BITSET_WORD_BITS):
72884         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72885         preprocessor mishandles large unsigned values as if they were signed.
72886         Problem reported by Claudio Fontana in
72887         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72888
72889 2006-01-10  Jim Meyering  <jim@meyering.net>
72890
72891         Avoid the double-free (first in fts_read, second in fts_close) that
72892         would occur when an `active' directory is made inaccessible (e.g.,
72893         via chmod a-x) during a traversal.
72894         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72895         before returning.  Reproduce this failure by
72896         mkdir -p a/b; cd a; chmod a-x . b
72897         Reported by Stavros Passas.
72898
72899         Sync from coreutils.
72900         * lib/sha1.c: Tweak grammar in a comment.
72901
72902 2006-01-10  Jim Meyering  <jim@meyering.net>
72903
72904         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72905         Patch by Joerg Sonnenberger.
72906
72907 2006-01-10  Bruno Haible  <bruno@clisp.org>
72908
72909         * modules/readutmp: Depend on module free.
72910         * modules/strtok_r: Depend on module restrict.
72911
72912 2006-01-10  Bruno Haible  <bruno@clisp.org>
72913
72914         * modules/gettext (configure.ac): Add an invocation of
72915         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72916
72917 2006-01-10  Bruno Haible  <bruno@clisp.org>
72918
72919         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72920         Reported by Werner Lemberg <wl@gnu.org>.
72921
72922 2006-01-10  Bruno Haible  <bruno@clisp.org>
72923
72924         * lib/localcharset.c: Update from GNU gettext.
72925
72926 2006-01-10  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/argp.h (__const): Remove macro. Use const instead.
72929         * lib/argp-fmtstream.h (__const): Likewise.
72930         * lib/glob_.h (__const): Remove macro.
72931         * lib/glob-libc.h: Use const instead of __const.
72932
72933 2006-01-10  Bruno Haible  <bruno@clisp.org>
72934
72935         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72936         variable.
72937         Needed to avoid an automake error regarding the 'gettext' module.
72938
72939 2006-01-09  Simon Josefsson  <jas@extundo.com>
72940
72941         * modules/inet_ntop (Depends-on): Add restrict.
72942
72943 2006-01-09  Simon Josefsson  <jas@extundo.com>
72944
72945         * modules/gc-rijndael-tests (License): Put under LGPL.
72946
72947         * modules/gc-des-tests (License): Likewise.
72948
72949         * modules/gc-arcfour-tests (License): Likewise.
72950
72951         * modules/gc-arctwo-tests (License): Likewise.
72952
72953         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72954
72955         * modules/gc-hmac-sha1-tests (Files): Likewise.
72956
72957         * modules/gc-hmac-md5-tests (License): Likewise.
72958
72959         * modules/gc-sha1-tests (License): Likewise.
72960
72961         * modules/gc-md5-tests (License): Likewise.
72962
72963         * modules/gc-md4-tests (License): Likewise.
72964
72965         * modules/gc-md2-tests (License): Likewise.
72966
72967         * modules/gc-tests (License): Likewise.
72968
72969         * modules/des-tests (License): Likewise.
72970
72971         * modules/md4-tests (License): Likewise.
72972
72973         * modules/md2-tests (License): Likewise.
72974
72975 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72976
72977         Sync from coreutils:
72978
72979         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72980         * modules/lib-ignore: New file.
72981         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72982         chdir-safer.m4, lchmod.m4.
72983         * modules/openat: Add mkdirat.c, openat-priv.h.
72984
72985 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72986
72987         Sync from coreutils.
72988         * m4/lib-ignore.m4: New file.
72989         * m4/lchmod.m4: New file.
72990
72991 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72992
72993         Sync from coreutils.
72994         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72995         for write access: POSIX says that must fail.
72996         * lib/fts.c (diropen): Likewise.
72997         * lib/save-cwd.c (save_cwd): Likewise.
72998         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72999         well, for minor improvements on hosts that lack O_DIRECTORY.
73000         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73001         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73002         Fall back on chown if open failed with EACCES.
73003
73004         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73005         Report an error at compile-time if only a 1-second nominal clock
73006         resolution is found.
73007
73008         * lib/lchmod.h: New file.
73009         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73010         (make_dir_parents): Use lchown rather than chown, and
73011         lchmod rather than chmod.
73012
73013         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73014         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73015         "proc" reported by n0dalus.
73016
73017         * lib/mountlist.c: Include <limits.h>.
73018         (dev_from_mount_options)
73019         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73020         New function.  It no longer assumes "dev=" has the System V meaning
73021         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73022         (read_file_system_list)
73023         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73024         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73025         dev= in that case.
73026
73027         * lib/posixtm.h (PDS_PRE_2000): New macro.
73028         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73029         allow_century.  All usages changed.  Reject dates outside the range
73030         1969-1999 if PDS_PRE_2000 is used.
73031
73032 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73033
73034         Sync from coreutils.
73035         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73036         (Time of day items): Mention the possibility of leap seconds.
73037         Problem reported by Dr. David Alan Gilbert.
73038
73039 2006-01-09  Jim Meyering  <jim@meyering.net>
73040
73041         Sync from coreutils.
73042
73043         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73044
73045         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73046
73047         * lib/modechange.c (mode_compile): Reject an invalid mode string
73048         that starts with an octal digit.  From Andreas Gruenbacher.
73049
73050         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73051         and dup to open_safer and dup_safer, respectively.
73052         (openat_permissive): Fix typo in comment.
73053
73054         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73055         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73056         (_): Remove; no longer needed.
73057         (openat): Renamed from rpl_openat; no need for rpl_openat
73058         since openat.h renames openat for us.
73059         Replace most of the body with a call to openat_permissive,
73060         to avoid duplicate code.
73061         Port to (probably hypothetical) environments were mode_t is
73062         wider than int.
73063         (openat_permissive): Require mode arg, so that we can check
73064         types better.  Put it just after flags.  Change cwd failure
73065         indicator from pointer-to-bool to pointer-to-errno-value.
73066         All callers changed.
73067         Invoke openat_save_fail and/or openat_restore_fail if
73068         cwd_errno is null, so that openat can call us.
73069         (openat_permissive, fdopendir, fstatat, unlinkat):
73070         Simplify errno handling to avoid some duplicate code,
73071         as it's OK to set errno on success.
73072         * lib/openat.h: Revamp code so that function macros depend on
73073         __OPENAT_PREFIX only, not also on AT_FDCWD.
73074         (openat_ro): Remove.  Caller changed to use openat_permissive.
73075         (openat_permissive): Now a macro, if not a function.
73076         (openat_restore_fail, openat_save_fail): Now always functions,
73077         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73078
73079         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73080         and openat.c.
73081         * lib/mkdirat.c: Include openat-priv.h.
73082         Remove definitions of macros defined therein.
73083         * lib/openat.c: Likewise.
73084
73085         * lib/mkdirat.c (mkdirat): New file and function.
73086         * lib/openat.h (mkdirat): Declare.
73087
73088         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73089
73090         * lib/openat.h (openat_permissive): Declare.
73091         (openat_ro): Define.
73092
73093         * lib/openat.c (EXPECTED_ERRNO): New macro.
73094         (openat_permissive): New function -- used in remove.c rewrite.
73095         (all functions): Set errno just before returning, only if there
73096         was an actual failure.
73097         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73098
73099         Emulate openat-family functions using Linux's procfs, if possible.
73100         Idea and some code based on Ulrich Drepper's glibc changes.
73101
73102         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73103         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73104         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73105         before falling back on save_cwd and restore_cwd.
73106         (fdopendir, fstatat, unlinkat): Likewise.
73107
73108         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73109         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73110
73111         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73112         as second argument to va_arg.  Otherwise, some versions of gcc
73113         warn that `if this code is reached, the program will abort'.
73114
73115 2006-01-09  Jim Meyering  <jim@meyering.net>
73116
73117         Sync from coreutils.
73118         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73119         Require openat-priv.h.
73120
73121 2006-01-09  Bruno Haible  <bruno@clisp.org>
73122
73123         * modules/strnlen (Include): Use strnlen.h.
73124
73125 2006-01-09  Bruno Haible  <bruno@clisp.org>
73126
73127         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73128
73129 2006-01-09  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/sysexit_.h (EX_OK): New macro.
73132         Suggested by Martin Lambers <marlam@marlam.de>.
73133
73134 2006-01-09  Bruno Haible  <bruno@clisp.org>
73135
73136         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73137         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73138
73139 2006-01-09  Bruno Haible  <bruno@clisp.org>
73140
73141         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73142         numbers.
73143
73144 2006-01-09  Bruno Haible  <bruno@clisp.org>
73145
73146         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73147         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73148         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73149         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73150
73151 2006-01-09  Bruno Haible  <bruno@clisp.org>
73152
73153         * build-aux/javacomp.sh.in: New file, moved from lib/.
73154         * modules/javacomp-script (Files): Update.
73155         (configure.ac): Add AC_CONFIG_FILES invocation.
73156         (EXTRA_DIST): Remove variable.
73157
73158         * build-aux/javaexec.sh.in: New file, moved from lib/.
73159         * modules/javaexec (Files): Update.
73160         (configure.ac): Add AC_CONFIG_FILES invocation.
73161         (EXTRA_DIST): Remove javaexec.sh.in.
73162
73163         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73164         * modules/csharpcomp-script (Files): Update.
73165         (configure.ac): Add AC_CONFIG_FILES invocation.
73166         (EXTRA_DIST): Remove variable.
73167
73168         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73169         * modules/csharpexec (Files): Update.
73170         (configure.ac): Add AC_CONFIG_FILES invocation.
73171         (EXTRA_DIST): Remove csharpexec.sh.in.
73172
73173 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73174
73175         Sync from coreutils.
73176
73177         Add POSIX ACL support
73178         * lib/acl.h (copy_acl, set_acl): Add declarations.
73179         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73180         systems other than Linux.
73181         (chmod_or_fchmod): New function: use fchmod when possible,
73182         and chmod otherwise.
73183         (file_has_acl): Add a POSIX ACL implementation, with a
73184         Linux-specific subcase.
73185         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73186         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73187         acls are unsupported.
73188         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73189         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73190         are unsupported.
73191
73192 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73193
73194         Sync from coreutils.
73195         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73196
73197 2006-01-07  Bruno Haible  <bruno@clisp.org>
73198
73199         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73200         gl_EARLY.
73201
73202 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73205         Problem reported for Mingw by Mark Junker.
73206
73207 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         * README: Gnulib normally doesn't generate a tarball.
73210
73211 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73214         long int, not int, for nanosecond counts, so that people who are
73215         used to POSIX struct timespec won't be surprised.  Reported by Jim
73216         Meyering.
73217
73218 2005-12-28  Bruno Haible  <bruno@clisp.org>
73219
73220         * build-aux/config.rpath: Update from GNU gettext.
73221
73222 2005-12-16  Jim Meyering  <jim@meyering.net>
73223
73224         * modules/fprintftime: New module.
73225         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73226
73227 2005-12-16  Jim Meyering  <jim@meyering.net>
73228
73229         * m4/fprintftime.m4: New file.
73230
73231 2005-12-16  Jim Meyering  <jim@meyering.net>
73232
73233         * lib/fprintftime.c, lib/fprintftime.h: New files.
73234
73235 2005-12-15  Simon Josefsson  <jas@extundo.com>
73236
73237         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73238         new m4/socklen.m4.
73239
73240 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73241
73242         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73243         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73244
73245 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73246
73247         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73248         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73249         struct uparams is valid. Fall back to the default values if it is
73250         not.
73251
73252 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73253
73254         * modules/argp (Files): Add argp-pin.c
73255         (Depends-on): dirname
73256         (lib_SOURCES): Add argp-pin.c
73257
73258 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73259
73260         * m4/argp.m4:  Check if program_invocation_name and
73261         program_invocation_short_name are declared and define appropriate
73262         macros if they are not.
73263
73264 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73265
73266         * lib/argp-help.c (__argp_base_name): New function
73267         (__argp_short_program_name): Rewrite using __argp_base_name
73268         * lib/argp-namefrob.h: Define program_invocation_name and
73269         program_invocation_short_name if requested
73270         (__argp_base_name): Add prototype
73271         * lib/argp-parse.c (argp_def): Use gettext wrappers
73272         (argp_default_parser): Use __argp_base_name
73273         * lib/argp-pin.c: New file. Defines program_invocation_name and
73274         program_invocation_short_name on systems that lack them.
73275
73276 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73279         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73280         porting problem reported by Georg Schwarz in
73281         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73282
73283 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73286         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73287         porting problem reported by Georg Schwarz in
73288         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73289
73290 2005-12-05  Bruno Haible  <bruno@clisp.org>
73291
73292         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73293         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73294         Reported by Mark Junker <mjscod@gmx.de>.
73295
73296 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73299         Use implementation from Albert Chin, with some
73300         comments/corrections by Stepan Kasal and myself.
73301
73302 2005-12-02  Bruno Haible  <bruno@clisp.org>
73303
73304         * gnulib-tool (func_import): Accept GPLed build tool modules when
73305         --lgpl is given.
73306         * modules/csharpcomp-script: New file.
73307         * modules/csharpcomp: Depend on it.
73308         * modules/javacomp-script: New file.
73309         * modules/javacomp: Depend on it.
73310         Suggested by Simon Josefsson.
73311
73312 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73315         statement, to work around an HP-UX 10.20 compiler bug reported by
73316         Peter O'Gorman.
73317
73318 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         * modules/savedir (Depends-on): Add openat.
73321
73322 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73325         (uintmax_t) [defined uintmax_t]: Do not declare.
73326         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73327         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73328         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73329         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73330         sake of portability to weird hosts that C allows (though we don't
73331         know of any practical examples).
73332
73333         * lib/savedir.h (fdsavedir): New decl.
73334         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73335         contains most of the former guts of savedir.
73336         (savedir): Use savedirstream.
73337         Include "openat.h".
73338
73339 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * modules/obstack (Files): Add m4/ulonglong.m4.
73342         Problem reported by Davide Angelocola.
73343
73344 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73347         coreutils no longer futzes with rounding modes.
73348
73349 2005-11-14  Jim Meyering  <jim@meyering.net>
73350
73351         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73352         replacement of mkstemp.
73353
73354 2005-11-10  Simon Josefsson  <jas@extundo.com>
73355
73356         * lib/readline.c: Remove EOL.
73357
73358 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * modules/gethrxtime (Depends-on): Add gettime.
73361
73362 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73365         or gettimeofday; no longer needed.
73366
73367 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73370         time business.
73371         (gethrxtime) [! (HAVE_NANOUPTIME
73372         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73373         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73374         our own approximation.
73375
73376 2005-11-08  Eric Blake  <ebb9@byu.net>
73377
73378         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73379
73380 2005-11-08  Eric Blake  <ebb9@byu.net>
73381
73382         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73383
73384 2005-11-04  Bruno Haible  <bruno@clisp.org>
73385
73386         * gnulib-tool: Implement --update mode.
73387
73388 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         Fix porting problem reported by Theodoros V. Kalamatianos.
73391         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73392         Don't assume that futimes failing means we must fail.
73393
73394 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73397         variables to suggest the intended function of the PATH_MAX check.
73398
73399 2005-10-30  Kean Johnston  <jkj@sco.com>
73400
73401         Trivial changes to support SCO systems.
73402         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73403         as PATH_MAX.
73404         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73405         where __ptr is null when no I/O is pending.
73406
73407 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73410         leave errno alone.  Problem reported by Dmitry V. Levin.
73411
73412 2005-10-28  Simon Josefsson  <jas@extundo.com>
73413
73414         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73415         Test more.
73416
73417         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73418
73419         * modules/md2, modules/md2-tests: New files.
73420
73421 2005-10-28  Simon Josefsson  <jas@extundo.com>
73422
73423         * m4/inet_ntop.m4: More tests.
73424
73425         * m4/gc-md2.m4, md2.m4: New file.
73426
73427 2005-10-28  Simon Josefsson  <jas@extundo.com>
73428
73429         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73430         "restrict" keywords, as per POSIX.  Protect the function
73431         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73432         Don't use K&R prototypes.  Check the sprintf return values.
73433         Re-define EAFNOSUPPORT if not present.  Indent.
73434
73435         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73436         suggested by Bruno Haible <bruno@clisp.org>.
73437
73438         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73439
73440         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73441
73442         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73443         libgcrypt).
73444
73445         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73446
73447         * lib/md2.h, lib/md2.c: New files.
73448
73449 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73452         errno alone.  Problem reported by Frederic Jolliton.
73453
73454 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * modules/verify (License): Change from GPL to LGPL.  This is a
73457         tiny module and there are apparently near-equivalents that are
73458         under the BSD license.
73459
73460 2005-10-24  Simon Josefsson  <jas@extundo.com>
73461
73462         * modules/sha1: Relicense to LGPL.
73463
73464 2005-10-24  Simon Josefsson  <jas@extundo.com>
73465
73466         * lib/md4.h: Shrink buffer size, now that we changed the type.
73467
73468 2005-10-23  Simon Josefsson  <jas@extundo.com>
73469
73470         * gnulib-tool (func_import): Fix --tests-base.
73471
73472 2005-10-22  Simon Josefsson  <jas@extundo.com>
73473
73474         * modules/arcfour (Depends-on): Need stdint.
73475
73476 2005-10-22  Simon Josefsson  <jas@extundo.com>
73477
73478         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73479         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73480
73481 2005-10-22  Simon Josefsson  <jas@extundo.com>
73482
73483         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73484         suggested by Bruno Haible <bruno@clisp.org>.
73485
73486 2005-10-22  Simon Josefsson  <jas@extundo.com>
73487
73488         * lib/crc.h: Include stddef.h, for size_t.
73489
73490 2005-10-22  Simon Josefsson  <jas@extundo.com>
73491
73492         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73493         arcfour_context struct (simplify test vector testing in GNU
73494         Shishi).
73495
73496 2005-10-21  Simon Josefsson  <jas@extundo.com>
73497
73498         * modules/des, modules/des-tests: New files.
73499
73500         * modules/gc-des, modules/gc-des-tests: New files.
73501
73502         * tests/test-des.c, tests/test-gc-des.c: New file.
73503
73504 2005-10-21  Simon Josefsson  <jas@extundo.com>
73505
73506         * modules/arctwo, modules/arctwo-tests: New files.
73507
73508         * tests/test-arctwo.c: New file.
73509
73510         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73511
73512         * tests/test-gc-arctwo.c: New file.
73513
73514 2005-10-21  Simon Josefsson  <jas@extundo.com>
73515
73516         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73517         Bruno Haible <bruno@clisp.org>.
73518
73519         * m4/gc-des.m4: New file.
73520
73521 2005-10-21  Simon Josefsson  <jas@extundo.com>
73522
73523         * m4/arctwo.m4: New file.
73524
73525         * m4/gc-arctwo.m4: New file.
73526
73527 2005-10-21  Simon Josefsson  <jas@extundo.com>
73528
73529         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73530         block.
73531
73532 2005-10-21  Simon Josefsson  <jas@extundo.com>
73533
73534         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73535         <bruno@clisp.org>.
73536
73537         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73538
73539         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73540         Bruno Haible <bruno@clisp.org>.
73541
73542         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73543         <bruno@clisp.org>.
73544
73545 2005-10-21  Simon Josefsson  <jas@extundo.com>
73546
73547         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73548
73549 2005-10-21  Simon Josefsson  <jas@extundo.com>
73550
73551         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73552
73553 2005-10-21  Simon Josefsson  <jas@extundo.com>
73554
73555         * lib/des.h, lib/des.c: New files.
73556
73557         * lib/gc-gnulib.c: Support DES.c
73558
73559 2005-10-21  Simon Josefsson  <jas@extundo.com>
73560
73561         * lib/arctwo.h, lib/arctwo.c: New files.
73562
73563         * lib/gc-gnulib.c: Support ARCTWO.
73564
73565 2005-10-21  Simon Josefsson  <jas@extundo.com>
73566
73567         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73568         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73569
73570 2005-10-21  Simon Josefsson  <jas@extundo.com>
73571
73572         * gnulib-tool (func_import, func_create_testdir): Define automake
73573         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73574         Makefile.am snippet),
73575         suggested by Bruno Haible <bruno@clisp.org>.
73576
73577         * modules/gc (Makefile.am): Use it.
73578
73579 2005-10-21  Bruno Haible  <bruno@clisp.org>
73580
73581         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73582         patch.
73583
73584 2005-10-19  Simon Josefsson  <jas@extundo.com>
73585
73586         * tests/test-gc-rijndael.c: New file.
73587
73588         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73589
73590 2005-10-19  Simon Josefsson  <jas@extundo.com>
73591
73592         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73593         interface too.
73594
73595 2005-10-19  Simon Josefsson  <jas@extundo.com>
73596
73597         * tests/test-gc-arcfour.c: New file.
73598
73599         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73600
73601 2005-10-19  Simon Josefsson  <jas@extundo.com>
73602
73603         * modules/gc-md4, modules/gc-md4-tests: New file.
73604
73605         * tests/test-gc-md4.c: New file.
73606
73607 2005-10-19  Simon Josefsson  <jas@extundo.com>
73608
73609         * m4/gc-md4.m4: New file.
73610
73611 2005-10-19  Simon Josefsson  <jas@extundo.com>
73612
73613         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73614         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73615         <kasal@ucw.cz>.
73616
73617 2005-10-19  Simon Josefsson  <jas@extundo.com>
73618
73619         * m4/gc-arcfour.m4: New file.
73620
73621         * m4/gc-rijndael.m4: New file.
73622
73623 2005-10-19  Simon Josefsson  <jas@extundo.com>
73624
73625         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73626
73627 2005-10-19  Simon Josefsson  <jas@extundo.com>
73628
73629         * lib/gc-gnulib.c: Support ARCFOUR.
73630
73631 2005-10-19  Simon Josefsson  <jas@extundo.com>
73632
73633         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73634         support.
73635
73636         * lib/gc.h: Add ECB enum type.
73637
73638         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73639
73640 2005-10-18  Simon Josefsson  <jas@extundo.com>
73641
73642         * tests/test-md5.c: New file.
73643
73644         * modules/md5-tests: New file.
73645
73646 2005-10-18  Simon Josefsson  <jas@extundo.com>
73647
73648         * tests/test-md4.c: New file.
73649
73650         * modules/md4, modules/md4-tests: New files.
73651
73652 2005-10-18  Simon Josefsson  <jas@extundo.com>
73653
73654         * m4/md4.m4: New file.
73655
73656 2005-10-18  Simon Josefsson  <jas@extundo.com>
73657
73658         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73659
73660 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73661
73662         * gnulib-tool (func_create_testdir): Omit the second check whether
73663         BUILT_SOURCES in nonempty.
73664
73665 2005-10-17  Simon Josefsson  <jas@extundo.com>
73666
73667         * tests/test-rijndael.c: New file.
73668
73669 2005-10-17  Simon Josefsson  <jas@extundo.com>
73670
73671         * modules/sha1: Depend on stdint instead of md5.
73672
73673         * modules/md5: Depend on stdint, remove uint32_t.
73674
73675 2005-10-17  Simon Josefsson  <jas@extundo.com>
73676
73677         * modules/gc-sha1-tests: New file.
73678
73679         * tests/test-gc-sha1.c: New file.
73680
73681 2005-10-17  Simon Josefsson  <jas@extundo.com>
73682
73683         * m4/md5.m4: Remove call to uint32_t.m4.
73684
73685 2005-10-17  Simon Josefsson  <jas@extundo.com>
73686
73687         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73688
73689         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73690         md5.h.
73691
73692         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73693
73694         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73695
73696 2005-10-17  Simon Josefsson  <jas@extundo.com>
73697
73698         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73699
73700 2005-10-17  Simon Josefsson  <jas@extundo.com>
73701
73702         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73703
73704 2005-10-17  Simon Josefsson  <jas@extundo.com>
73705
73706         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73707
73708         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73709
73710 2005-10-17  Bruno Haible  <bruno@clisp.org>
73711
73712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73713         that it can also be used in a test.
73714
73715 2005-10-16  Bruno Haible  <bruno@clisp.org>
73716
73717         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73718         TESTS_ENVIRONMENT, so that individual tests can augment it.
73719
73720         * gnulib-tool (func_create_testdir): Use an intermediate target for
73721         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73722         macros, like $(ALLOCA_H), which cannot be passed through the command
73723         line.
73724
73725 2005-10-15  Simon Josefsson  <jas@extundo.com>
73726
73727         * modules/rijndael-tests: New file.
73728
73729         * modules/rijndael: New file.
73730
73731 2005-10-15  Simon Josefsson  <jas@extundo.com>
73732
73733         * m4/rijndael.m4: New file.
73734
73735 2005-10-15  Simon Josefsson  <jas@extundo.com>
73736
73737         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73738
73739         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73740
73741 2005-10-14  Simon Josefsson  <jas@extundo.com>
73742
73743         * tests/test-arcfour.c: New file.
73744
73745         * modules/arcfour, modules/arcfour-tests: New files.
73746
73747 2005-10-14  Simon Josefsson  <jas@extundo.com>
73748
73749         * m4/arcfour.m4: New file.
73750
73751 2005-10-14  Simon Josefsson  <jas@extundo.com>
73752
73753         * lib/arcfour.h, lib/arcfour.c: New files.
73754
73755 2005-10-14  Roland McGrath  <roland@redhat.com>
73756
73757         Import from libc.  [BZ #1331]
73758         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73759         macro argument.
73760         Reported by Matej Vela <vela@debian.org>.
73761
73762 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73765         include <wchar.h>; no longer needed.
73766
73767 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73770
73771 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73772         and  Ulrich Drepper  <drepper@redhat.com>
73773
73774         Import from libc.
73775         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73776         instead of inline stream orientation test and two separate
73777         function calls.  Pay no attention to USE_IN_LIBIO.
73778
73779 2005-10-13  Simon Josefsson  <jas@extundo.com>
73780
73781         * modules/gc-hmac-md5-tests: New file.
73782
73783         * tests/test-gc-hmac-sha1.c: New file.
73784
73785         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73786
73787         * modules/gc-hmac-md5-tests: New file.
73788
73789         * tests/test-gc-md5.c: New file.
73790
73791         * modules/gc-md5-tests: New file.
73792
73793 2005-10-13  Simon Josefsson  <jas@extundo.com>
73794
73795         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73796         Move memory allocation outside of loop.
73797
73798 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73801         intermediate directory is in a read-only file system.  Problem
73802         reported by Eric Blake.
73803
73804 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73805
73806         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73807
73808 2005-10-12  Simon Josefsson  <jas@extundo.com>
73809
73810         * tests/test-hmac-sha1.c: New file.
73811
73812         * modules/hmac-sha1-tests: New file.
73813
73814         * modules/hmac-sha1: New file.
73815
73816 2005-10-12  Simon Josefsson  <jas@extundo.com>
73817
73818         * modules/gc-sha1: New file.
73819
73820 2005-10-12  Simon Josefsson  <jas@extundo.com>
73821
73822         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73823
73824         * tests/test-gc-pbkdf2-sha1.c: New file.
73825
73826 2005-10-12  Simon Josefsson  <jas@extundo.com>
73827
73828         * modules/gc-md5, modules/gc-hmac-md5: New files.
73829
73830         * modules/gc (Files): Remove md5, memxor and hmac files.
73831
73832 2005-10-12  Simon Josefsson  <jas@extundo.com>
73833
73834         * m4/gc-pbkdf2-sha1.m4: New file.
73835
73836         * m4/gc-hmac-sha1.m4: New file.
73837
73838         * m4/gc-sha1: New file.
73839
73840         * m4/hmac-sha1.m4: New file.
73841
73842 2005-10-12  Simon Josefsson  <jas@extundo.com>
73843
73844         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73845
73846         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73847
73848 2005-10-12  Simon Josefsson  <jas@extundo.com>
73849
73850         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73851         suggested by Bruno Haible <bruno@clisp.org>.
73852
73853 2005-10-12  Simon Josefsson  <jas@extundo.com>
73854
73855         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73856
73857 2005-10-12  Simon Josefsson  <jas@extundo.com>
73858
73859         * lib/gc-pbkdf2-sha1.c: New file.
73860
73861         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73862
73863 2005-10-12  Simon Josefsson  <jas@extundo.com>
73864
73865         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73866
73867         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73868
73869 2005-10-12  Simon Josefsson  <jas@extundo.com>
73870
73871         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73872         GC_USE_HMAC_MD5, respectively.
73873
73874         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73875         (gc_md5): Fix typo.
73876
73877         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73878
73879         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73880
73881         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73882
73883 2005-10-12  Bruno Haible  <bruno@clisp.org>
73884
73885         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73886         Reported by Stepan Kasal <kasal@ucw.cz>.
73887
73888 2005-10-11  Simon Josefsson  <jas@extundo.com>
73889
73890         * tests/test-crc.c: New file.
73891
73892         * modules/crc, modules/crc-tests: New files.
73893
73894 2005-10-11  Simon Josefsson  <jas@extundo.com>
73895
73896         * m4/crc.m4: New file.
73897
73898 2005-10-11  Simon Josefsson  <jas@extundo.com>
73899
73900         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73901
73902         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73903
73904         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73905
73906 2005-10-11  Simon Josefsson  <jas@extundo.com>
73907
73908         * lib/crc.h, lib/crc.c: New files.
73909
73910         * lib/gc.h (gc_hash_buffer): Add doc.
73911
73912 2005-10-11  Bruno Haible  <bruno@clisp.org>
73913
73914         * modules/c-strcasestr: New file.
73915         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73916
73917 2005-10-11  Bruno Haible  <bruno@clisp.org>
73918
73919         * modules/c-strcase: New file.
73920         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73921
73922 2005-10-11  Bruno Haible  <bruno@clisp.org>
73923
73924         * lib/strcasecmp.c: Include limits.h.
73925         (strcasecmp): Avoid integer overflow on exotic platforms.
73926         * lib/strncasecmp.c: Include limits.h.
73927         (strncasecmp): Avoid integer overflow on exotic platforms.
73928         Reported by Paul Eggert.
73929
73930 2005-10-11  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/c-strcasestr.h: New file, from GNU gettext.
73933         * lib/c-strcasestr.c: New file, from GNU gettext.
73934
73935 2005-10-11  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/c-strcase.h: New file, from GNU gettext.
73938         * lib/c-strcasecmp.c: New file, from GNU gettext.
73939         * lib/c-strncasecmp.c: New file, from GNU gettext.
73940
73941 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * modules/mempcpy (License): GPL -> LGPL.
73944         * modules/strchrnul (License): Likewise.
73945         * modules/sysexits (License): Likewise.
73946
73947 2005-10-08  Simon Josefsson  <jas@extundo.com>
73948
73949         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73950
73951 2005-10-07  Simon Josefsson  <jas@extundo.com>
73952
73953         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73954
73955 2005-10-06  Simon Josefsson  <jas@extundo.com>
73956
73957         * tests/test-hmac-md5.c: New file.
73958
73959         * modules/hmac-md5-tests: New file.
73960
73961         * modules/hmac-md5: New file.
73962
73963 2005-10-06  Simon Josefsson  <jas@extundo.com>
73964
73965         * m4/hmac-md5.m4: New file.
73966
73967         * m4/memxor.m4: Require gl_C_RESTRICT.
73968
73969 2005-10-06  Simon Josefsson  <jas@extundo.com>
73970
73971         * lib/memxor.c (memxor): Avoid casts and warnings.
73972
73973 2005-10-06  Simon Josefsson  <jas@extundo.com>
73974
73975         * lib/hmac-md5.c: New file.
73976
73977         * lib/hmac.h: New file.
73978
73979 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73982         promotes to int, not unsigned int, to catch the AIX 5.3
73983         compiler bug.
73984
73985 2005-10-05  Simon Josefsson  <jas@extundo.com>
73986
73987         * modules/memxor: New file.
73988
73989         * modules/iconv (Files): Move config.rpath to havelib, it is used
73990         there.
73991
73992         * modules/havelib (Files): Add config.rpath.
73993
73994 2005-10-05  Simon Josefsson  <jas@extundo.com>
73995
73996         * m4/memxor.m4: New file.
73997
73998 2005-10-05  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/memxor.c (memxor): Fix compiler error.
74001
74002         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74003         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74004
74005         * lib/memxor.h, lib/memxor.c: New files.
74006
74007         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74008         we assume all systems have it, suggested by Jim Meyering
74009         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74010         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74011         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74012         same reasons.
74013
74014 2005-10-05  Simon Josefsson  <jas@extundo.com>
74015
74016         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74017
74018 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74021         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74022         needed, since the source code now assumes these .h files.
74023
74024 2005-10-05  Derek Price  <derek@ximbiot.com>
74025
74026         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74027
74028 2005-10-05  Bruno Haible  <bruno@clisp.org>
74029
74030         * modules/stdint (License): Change to LGPL.
74031
74032 2005-10-04  Simon Josefsson  <jas@extundo.com>
74033
74034         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74035         D. Baushke" <mdb@gnu.org>.
74036
74037 2005-10-04  Bruno Haible  <bruno@clisp.org>
74038
74039         * lib/verify.h (verify_true): Provide alternative definition for C++.
74040
74041 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74042
74043         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74044         (SSIZE_MAX): New macro, if not already defined.
74045         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74046         than 2 GiB.
74047
74048 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         Sync from coreutils.
74051         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74052         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74053         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74054         ULLONG_MAX doesn't work with 2.7.2.1.
74055
74056 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74059         From Ben Pfaff.
74060
74061         * modules/exclude (Depends-on): Depend on verify.
74062         * modules/strtoimax (Depends-on): Likewise.
74063         * modules/utimecmp (Depends-on): Likewise.
74064
74065 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * lib/exclude.c: Include verify.h.
74068         (verify): Remove.  All callers changed to use verify.h's version.
74069         * lib/strtoimax.c: Likewise.
74070         * lib/utimecmp.c: Likewis.e
74071
74072         Sync from coreutils.
74073         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74074         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74075         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74076         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74077         bother returning ENOSYS if settimeofday or stime fails; just let
74078         them return whatever errno they want to return.
74079         * lib/utimens.c: Include unistd.h, for dup2.
74080         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74081         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74082
74083 2005-10-02  Jim Meyering  <jim@meyering.net>
74084
74085         Sync from coreutils.
74086         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74087         from glibc-2.2.5 that fails for read-only files.
74088
74089 2005-10-02  Jim Meyering  <jim@meyering.net>
74090
74091         Sync from coreutils.
74092         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74093         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74094         `#if HAVE_CONFIG_H'.
74095         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74096         Remove AT_FDCWD test.
74097         Do not consume the fd unless successful.
74098         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74099         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74100         block, so that we don't even try to compile it if settimeofday is
74101         available.  This works around a compilation failure on OSF1 V5.1,
74102         due to stime requiring a `long int*' while tv_sec is `int'.
74103
74104 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74105
74106         Sync from coreutils.
74107         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74108         against `yes', rather than just testing for nonempty.
74109
74110 2005-10-01  Simon Josefsson  <jas@extundo.com>
74111
74112         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74113         and Darwin.
74114
74115         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74116         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74117         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74118         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74119         Check if struct addrinfo is declared.
74120
74121 2005-10-01  Simon Josefsson  <jas@extundo.com>
74122
74123         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74124         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74125         AI_* and EAI_* definitions.  Protect function declarations.
74126
74127 2005-10-01  Jim Meyering  <jim@meyering.net>
74128
74129         Sync from coreutils.
74130
74131         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74132         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74133         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74135         in the inet and nsl libraries.  Required on Solaris 5.7.
74136
74137 2005-10-01  Jim Meyering  <jim@meyering.net>
74138
74139         Sync from coreutils.
74140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74141         in the inet and nsl libraries.  Required on Solaris 5.7.
74142
74143 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74144
74145         * lib/getdelim.c (getdelim): Remove unused variables.
74146
74147 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74150         so that the code works even with ancient cpp.  Portability problem
74151         with GCC 2.7.2.1 reported by Thomas M.Ott.
74152
74153 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * modules/regex (Depends-on): Add strcase.
74156
74157         * modules/gethostname (Licence): Change from GPL to LGPL, since
74158         gethostname.c is a trivial implementation of a standard library
74159         function.
74160         * modules/poll (License): Change from GPL to LGPL, since it's
74161         derived from LGPL code.
74162
74163 2005-09-27  Jim Meyering  <jim@meyering.net>
74164
74165         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74166         HAVE_CONFIG_H.
74167
74168         * lib/intprops.h (signed_type_or_expr__): Define.
74169         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74170         for unsigned types.
74171
74172 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         * lib/verify.h (verify_expr): Remove, replacing with:
74175         (verify_true): New macro that returns true instead of void.
74176         (verify_type__): Remove.
74177         (verify): Use verify_true rather than verify_type__.
74178
74179 2005-09-26  Bruno Haible  <bruno@clisp.org>
74180
74181         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74182         is necessary.
74183         (lib_SOURCES): Remove mbchar.c.
74184         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74185         (Files): Add m4/mbrtowc.m4.
74186         * modules/mbiter: Likewise.
74187         * modules/mbuiter: Likewise.
74188
74189 2005-09-26  Bruno Haible  <bruno@clisp.org>
74190
74191         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74192         compile mbchar.c if they are not both present.
74193         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74194         * m4/mbiter.m4 (gl_MBITER): Likewise.
74195         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74196         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74197         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74198
74199 2005-09-25  Jim Meyering  <jim@meyering.net>
74200
74201         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74202         also uses socklen_t.
74203
74204 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * lib/utimens.c (ENOSYS): Define if not already defined.
74207         (futimens): Support having a null PATH if the file descriptor
74208         is nonnegative.
74209
74210         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74211         Remove.
74212         (__attribute): Define to empty unless GCC 3.1 or later.
74213         This works around a core dump on OpenBSD 3.4, which has GCC
74214         2.95.3, which dumps core when given __attribute__(()).  It also
74215         simplifies other tests, since we really don't want to bother with
74216         worrying about which ancient version of GCC supported what.
74217         Original problem reported by Yoann Vandoorselaere, with part of
74218         the fix suggested by Derek Price.
74219
74220 2005-09-24  Jim Meyering  <jim@meyering.net>
74221
74222         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74223         so we can once again use a positive bitfield width of 1 -- now we
74224         don't have to explain why we were using a bitfield width of 2.
74225
74226 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74229         and similarly for the other external symbols.  Problem reported
74230         by James Gallager.
74231
74232         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74233         bug reported by Jim Meyering.
74234
74235         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74236         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74237         not needed, since socklen is a prerequisite module.
74238
74239 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74242         Problem reported by Eric Blake.
74243         (getaddrinfo): Initialize se so that it's not garbage.
74244         Redo internal storage allocation so that it doesn't make unportable
74245         assumptions about alignment.
74246         Fix a memory leak.
74247
74248         * lib/utimens.c (futimens): Use futimesat if available.
74249         Prefer it to futimes since it doesn't have the futimes bug.
74250
74251         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74252         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74253         Instead, declare a function that returns a pointer to an array,
74254         and use verify_type__ to declare the size of the array.
74255         Problem and germ of a solution reported by Bruno Haible.
74256         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74257         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74258
74259 2005-09-23  Jim Meyering  <jim@meyering.net>
74260
74261         Sync from coreutils.
74262         Correct build failure (socklen_t not defined) on at least
74263         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74265
74266 2005-09-23  Jim Meyering  <jim@meyering.net>
74267
74268         * modules/getaddrinfo (Depends-on): Add socklen.
74269
74270 2005-09-23  Bruno Haible  <bruno@clisp.org>
74271
74272         * tests/test-verify.c: New file.
74273
74274 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74275
74276         Sync from coreutils.
74277
74278         * modules/argmatch (Depends-on): Add verify.
74279         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74280         unistd-safer.
74281         * modules/save-cwd (Depends-on): Likewise.
74282
74283         * modules/openat (Files): Add lib/openat-die.c.
74284         (Depends-on): Remove error, exitfail.
74285         Add dirname.
74286
74287         * modules/verify: New file.
74288         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74289         with "verify" module.
74290
74291 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         Sync from coreutils.
74294
74295         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74296         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74297         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74298         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74299         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74300         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74301         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74302         Don't bother checking for string.h, stdlib.h, unistd.h.
74303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74304         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74305         module's job.
74306         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74307         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74308
74309         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74310         (gl_GETDATE): Use it.
74311
74312         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74313
74314 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         Sync from coreutils.
74317
74318         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74319         stat-time.h.
74320         * lib/argmatch.h: Include verify.h
74321         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74322         (ARGMATCH_ASSERT): Remove; unused.
74323         * lib/canonicalize.c: Assume STDC_HEADERS.
74324         * lib/exclude.c: Include "strcase.h".
74325         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74326         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74327         and stdio-safer.h.
74328         (getusershell): Call fopen, not fopen_safer.
74329         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74330         Do not include unistd-safer.h.
74331         (save_cwd): Don't call fd_safer; no longer needed
74332         now that we include fcntl--.h.
74333
74334         * lib/getdate.y (relative_time): New type.
74335         (RELATIVE_TIME_0): New constant.
74336         (parser_control): Use relative_time instead of doing it ourselves.
74337         (%union): Add new relative_time rel member.
74338         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74339         Now typeless.
74340         (relunit, relunit_snumber): Now of type rel.
74341         (zone, rel, relunit, get_date): Adjust to above changes.
74342
74343         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74344         Do not include unistd-safer.h.
74345         (getloadavg): Don't call fd_safer; no longer needed
74346         now that we include fcntl--.h.
74347
74348         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74349         (make_dir_parents): Treat ENOSYS like EEXIST.
74350
74351         Improve quality of diagnostics on restore_cwd failure.
74352         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74353         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74354         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74355         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74356         each time through the loop.  Do not diagnose restore_cwd failure;
74357         that is the caller's job (and perhaps the caller does not care).
74358
74359         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74360         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74361         If the file already exists but is not a directory, don't bother
74362         to try to make its parents.
74363         Close potential file descriptor leak if we can't chdir("/") (!).
74364         Don't always return true if chdir($PWD) fails; return true only
74365         if the requested action was done successfully (except for the
74366         chdir($PWD)).
74367         Don't log final directory unless we actually made it.
74368         Refactor to avoid duplicate code to fix up permissions.
74369         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74370
74371         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74372         to make it a bit faster and (I hope) clearer.
74373         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74374         Fix bug in formats like %2N.
74375
74376         * lib/verify.h: New file.
74377
74378 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         Sync from coreutils.
74381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74382
74383 2005-09-22  Jim Meyering  <jim@meyering.net>
74384
74385         Sync from coreutils.
74386
74387         * m4/lstat.m4 (gl_FUNC_LSTAT):
74388         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74389         Remove obsolete comment.
74390         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74391         * m4/xstrtod.m4: Likewise.
74392
74393         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74394
74395 2005-09-22  Jim Meyering  <jim@meyering.net>
74396
74397         Sync from coreutils.
74398
74399         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74400
74401         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74402         the .tm_year member, since otherwise gcc-4.0 would now warn about
74403         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74404
74405         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74406         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74407
74408         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74409         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74410         when run in a time zone for which daylight savings time is in effect
74411         for the starting date.
74412
74413         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74414         stop us from restricting permissions of just-created absolute-named
74415         directories.
74416         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74417         to restore initial working directory.
74418         * lib/mkdir-p.c (make_dir_parents): New parameter:
74419         different_working_dir, to tell caller if/when we change the working
74420         directory and are unable to return to the initial one.
74421         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74422         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74423         `return false'.  This fixes a bug introduced on 2004-07-30.
74424
74425         * lib/openat.c (fdopendir): Be sure to close the supplied
74426         file descriptor before returning.  This makes our replacement
74427         implementation a little closer to Solaris's, where fdopendir
74428         ties the file descriptor to the returned DIR* pointer.
74429         * lib/openat.c (unlinkat): New function.
74430         * lib/openat.h (unlinkat): Add prototype.
74431         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74432         (openat_restore_fail): Rename from openat_restore_die.
74433         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74434
74435         Provide an alternative to exiting immediately upon save_cwd or
74436         restore_cwd failure.  Now, an application can arrange e.g.,
74437         to perform a longjump in that case.
74438         * lib/openat.c: Include dirname.h.
74439         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74440         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74441         and openat_restore_die rather than calling error directly.
74442         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74443
74444         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74445         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74446         define.
74447
74448         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74449         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74450                             int utc, int nanoseconds);
74451         Background:
74452         date should not have to allocate a megabyte of virtual memory to
74453         handle a format argument like +%1048575T.  When implemented with
74454         strftime, it must allocate such a buffer, use strftime to fill it
74455         in, print it, then free it.
74456         With fprintftime, it simply prints everything and exits.
74457         With no need for memory allocation, that's one fewer way to fail.
74458         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74459         optional field width, not before, so we accept %9:z, not %:9z.
74460         (my_strftime): Be sure to use L_('x') for literals.
74461
74462         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74463         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74464         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74465         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74466         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74467         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74468         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74469         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74470         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74471         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74472         * lib/xgethostname.c, lib/xreadlink.c:
74473         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74474
74475         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74476         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74477         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74478         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74479         and don't include <sys/file.h>).
74480
74481 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74482
74483         Sync from coreutils.
74484
74485         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74486         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74487         [!LDAV_DONE]: Avoid unused variable warning.
74488
74489 2005-09-21  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/unicodeio.h (unicode_to_mb): New declaration.
74492
74493 2005-09-20  Derek Price  <derek@ximbiot.com>
74494
74495         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74496         getaddrinfo.h.
74497
74498 2005-09-20  Bruno Haible  <bruno@clisp.org>
74499
74500         * gnulib-tool: Remove trailing slashes from the values specified for
74501         --source-base, --m4-base, --tests-base, --aux-dir.
74502         Suggested by Simon Josefsson <jas@extundo.com>.
74503
74504 2005-09-20  Bruno Haible  <bruno@clisp.org>
74505
74506         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74507         func_modules_to_filelist, func_import, func_create_testdir): Make all
74508         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74509         change when gnulib-tool is invoked in a different locale.
74510
74511 2005-09-19  Simon Josefsson  <jas@extundo.com>
74512
74513         * m4/socklen.m4: Fix typo.
74514
74515 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74516
74517         Use a consistent style for including <config.h>.
74518         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74519         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74520         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74521         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74522         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74523         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74524         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74525         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74526         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74527         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74528         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74529         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74530         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74531         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74532         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74533         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74534         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74535         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74536         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74537         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74538         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74539         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74540         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74541         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74542         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74543         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74544         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74545         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74546         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74547         lib/xstrtoumax.c, lib/yesno.c:
74548         Standardize inclusion of config.h.
74549         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74550         lib/inttostr.h:  Removed inclusion of config.h from header files.
74551         * lib/inttostr.c:  Adjusted in-tree users.
74552         * lib/timespec.h: Remove superfluous warning to include config.h.
74553         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74554         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74555         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74556         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74557         config.h with HAVE_CONFIG_H.
74558
74559 2005-09-19  Jim Meyering  <jim@meyering.net>
74560
74561         * modules/pathmax (License): Change to LGPL.
74562
74563 2005-09-19  Derek Price  <derek@ximbiot.com>
74564
74565         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74566
74567 2005-09-19  Bruno Haible  <bruno@clisp.org>
74568
74569         * gnulib-tool (import): Provide default for --tests-base.
74570
74571 2005-09-19  Bruno Haible  <bruno@clisp.org>
74572
74573         * doc/quote.texi: New file, extracted from gnulib.texi.
74574         * doc/ctime.texi: New file, extracted from gnulib.texi.
74575         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74576         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74577         * doc/gnulib.texi: Include them.
74578
74579 2005-09-18  Bruno Haible  <bruno@clisp.org>
74580
74581         Portability fix.
74582         * gnulib-tool (func_readlink): New function.
74583         (func_ln_if_changed): Use it.
74584
74585 2005-09-18  Bruno Haible  <bruno@clisp.org>
74586
74587         * gnulib-tool: Support --with-tests also with --import.
74588         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74589         (func_import): Use variables $testsbase and $inctests. Emit a
74590         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74591         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74592         SUBDIRS += $testsdir.
74593         (func_create_testdir): Update.
74594
74595 2005-09-18  Bruno Haible  <bruno@clisp.org>
74596
74597         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74598         instead of $dry_run.
74599         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74600         (func_ln_if_changed): Don't handle dry-run here.
74601         (func_import): In dry-run mode, detect more precisely which actions
74602         would be performed, and don't use "...ing" verbs.
74603
74604 2005-09-18  Bruno Haible  <bruno@clisp.org>
74605
74606         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74607         (func_import): Use join on two temporary files instead of three nested
74608         loops, in order to determine which files are new or old.
74609
74610 2005-09-18  Bruno Haible  <bruno@clisp.org>
74611
74612         * gnulib-tool (func_import): Comment out code that spits out the
74613         new files with --dry-run.
74614
74615 2005-09-18  Bruno Haible  <bruno@clisp.org>
74616
74617         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74618
74619 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * lib/stat-time.h: New file.
74622         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74623         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74624         in a different way.
74625         (timespec_cmp): New function.
74626         * lib/utimecmp.c: Include stat-time.h.
74627         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74628         members exist, not on the obsolescent ST_MTIM_NSEC.
74629         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74630
74631 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74634
74635 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * MODULES.html.sh (File system functions): Add stat-time.
74638         * modules/stat-time: New file.
74639         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74640         is now done in a different way, by the stat-time module.
74641         * modules/utimecmp (Depends-on): Add stat-time.
74642
74643 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74644
74645         * m4/st_mtim.m4: Remove.  Superseded by...
74646         * m4/stat-time.m4: New file.
74647         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74648         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74649
74650 2005-09-15  Derek Price  <derek@ximbiot.com>
74651
74652         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74653
74654 2005-09-15  Derek Price  <derek@ximbiot.com>
74655
74656         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74657         * lib/regex_internal.c: Ditto, using this...
74658         (__GNUC_PREREQ): ...new macro.
74659         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74660         using...
74661         (__GNUC_PREREQ): ...this new macro.
74662
74663         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74664
74665 2005-09-15  Derek Price  <derek@ximbiot.com>
74666             Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74669         changes, consolidating in...
74670         * lib/regex_internal.h: ...this file.
74671
74672 2005-09-13  Jim Meyering  <jim@meyering.net>
74673
74674         * lib/canon-host.c: Filter through gnu indent and reword comments
74675         slightly.
74676         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74677
74678 2005-09-13  Derek Price  <derek@ximbiot.com>
74679
74680         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74681         failure.
74682         Reported by Jim Meyering  <jim@meyering.net>.
74683
74684 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74685
74686         * lib/base64.c: Typo.
74687         (base64_encode): Put b64str in initialized data section.
74688
74689 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74690
74691         Merge glibc and coreutils changes into gnulib, plus a few
74692         extra fixes.
74693         * lib/md5.c: Use #error rather than a string.
74694         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74695         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74696         (__attribute__): Define to empty for non recent-GCC.
74697         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74698         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74699         Renamed from their non-__ counterparts, with new macros replacing
74700         them if not _LIBC.  Add __THROW attribute.
74701         (rol): Remove.
74702         (struct md5_ctx): Align buffer if using GCC.
74703         * lib/sha1.h (struct sha1_ctx): Likewise.
74704         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74705         The old name was backwards.
74706         (NOTSWAP): Remove; not used.
74707         (rol): New macro, moved here from md5.h.
74708         (sha1_process_block): Remove a FIXME that doesn't make sense.
74709
74710 2005-09-12  Derek Price  <derek@ximbiot.com>
74711
74712         Return usable errors from canon-host.
74713         * lib/canon-host.h: New file.
74714         * lib/canon-host.c (canon_host): Wrap...
74715         (canon_host_r): ...this new function, which now relies exclusively on
74716         getaddrinfo.
74717         (ch_strerror): New function.
74718         (last_cherror): New global.
74719         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74720         interface.
74721         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74722         void *.
74723         (freeaddrinfo): Free ai->ai_canonname when set.
74724
74725 2005-09-12  Derek Price  <derek@ximbiot.com>
74726
74727         Make canon-host require getaddrinfo.
74728         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74729         AC_LIBSOURCE canon-host.h.  Call...
74730         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74731         gl_GETADDRINFO.
74732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74733
74734 2005-09-12  Derek Price  <derek@ximbiot.com>
74735
74736         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74737         LGPL.
74738         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74739
74740 2005-09-12  Derek Price  <derek@ximbiot.com>
74741
74742         * lib/gai_strerror.c: Include config.h when available.  Include
74743         getaddrinfo.h before other headers to test interface.
74744         Reported by Larry Jones <lawrence.jones@ugs.com>.
74745
74746 2005-09-12  Derek Price  <derek@ximbiot.com>
74747             Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * modules/glob (Files): Add glob-libc.h.
74750
74751 2005-09-12  Derek Price  <derek@ximbiot.com>
74752             Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74755         glob_.h, glob-libc.h.
74756         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74757
74758 2005-09-12  Derek Price  <derek@ximbiot.com>
74759             Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74762         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74763         protecting things that should be done only in gnulib contexts.
74764         * lib/glob_.h: New file, containing only the glob things needed for
74765         gnulib.
74766         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74767         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74768         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74769         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74770         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74771         and to respect the namespace rules better.
74772
74773 2005-09-08  Simon Josefsson  <jas@extundo.com>
74774
74775         * modules/socklen: New file.
74776
74777 2005-09-08  Simon Josefsson  <jas@extundo.com>
74778
74779         * m4/socklen.m4: New file.
74780
74781 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74782
74783         * modules/utimens (Files): Add m4/utimbuf.m4, since
74784         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74785         Reported by Sergey Poznyakoff.
74786
74787 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74790         definitions, since that's the preferred style in glibc.
74791         Fix a minor spacing issue, and update copyright notice to match
74792         glibc's.
74793
74794 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74797
74798 2005-09-06  Simon Josefsson  <jas@extundo.com>
74799
74800         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74801         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74802
74803 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74806         warning.
74807
74808 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * config/srclist.txt: Add glibc bug 1302.
74811
74812 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         Change bitset word type from unsigned int to unsigned long int,
74815         as this has better performance on typical 64-bit hosts.
74816         Port bitset code to hosts with unusual word sizes.
74817         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74818         (build_collating_symbol):
74819         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74820         argument is a bitset.  This is merely a style issue, but it makes
74821         it clearer that an entire array is expected.
74822         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74823         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74824         Port to the case where bitset_word is not the same as unsigned int.
74825         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74826         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74827         Likewise.
74828         * lib/regexec.c (check_dst_limits_calc_pos_1,
74829         check_subexp_matching_top):
74830         (build_trtable, group_nodes_into_DFAstates):
74831         Likewise.
74832         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74833         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74834         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74835         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74836         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74837         * lib/regcomp.c (optimize_subexps, lower_subexp):
74838         Work even if bitset_word has holes in its bitwise representation.
74839         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74840         * lib/regexec.c (check_dst_limits_calc_pos_1,
74841         check_subexp_matching_top):
74842         Likewise.
74843         * lib/regex_internal.c (re_string_reconstruct):
74844         Don't assume UCHAR_MAX == 255.
74845         * lib/regex_internal.h (bitset_set_all): Likewise.
74846         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74847         All uses changed.
74848         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74849         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74850         All uses changed.
74851         (BITSET_WORD_MAX): New macro.
74852         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74853         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74854         (bitset_empty, bitset_copy):
74855         Prefer sizeof (bitset) to multiplying it out ourselves.
74856         (bitset_not_merge): Remove; unused.
74857         (bitset_contain): Return bool, not unsigned int with one bit on.
74858         All callers changed.
74859         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74860         alignment than re_node_set; do this by defining a new internal
74861         type struct dests_alloc and using it to allocate memory.
74862
74863 2005-09-05  Bruno Haible  <bruno@clisp.org>
74864
74865         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74866         links.
74867
74868 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74869
74870         * modules/size_max (Makefile.am): Add size_max.h
74871
74872 2005-09-04  Derek Price  <derek@ximbiot.com>
74873
74874         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74875
74876 2005-09-03  Simon Josefsson  <jas@extundo.com>
74877
74878         * gnulib-tool: Fix typo.
74879
74880 2005-09-03  Simon Josefsson  <jas@extundo.com>
74881
74882         * config/srclist.txt: Add glibc bug 1293.
74883
74884 2005-09-03  Derek Price  <derek@ximbiot.com>
74885
74886         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74887         From Larry Jones <lawrence.jones@ugs.com>.
74888
74889 2005-09-02  Simon Josefsson  <jas@extundo.com>
74890
74891         * modules/socklen: New file.
74892
74893 2005-09-02  Simon Josefsson  <jas@extundo.com>
74894
74895         * modules/havelib: New module.
74896
74897         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74898         Use havelib.
74899
74900 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         Check for arithmetic overflow when calculating sizes, to prevent
74903         some buffer-overflow issues.  These patches are conservative, in the
74904         sense that when I couldn't determine whether an overflow was possible,
74905         I inserted a run-time check.
74906         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74907         macros.
74908         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74909         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74910         (re_xnrealloc, re_x2nrealloc): New inline functions.
74911         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74912         parse_bracket_exp):
74913         (build_equiv_class, build_charclass): Check for arithmetic overflow
74914         in size expression calculations.
74915         * lib/regex_internal.c (re_string_realloc_buffers):
74916         (build_wcs_upper_buffer, re_node_set_add_intersect):
74917         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74918         (re_dfa_add_node, register_state): Likewise.
74919         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74920         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74921         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74922         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74923
74924 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74927         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74928
74929 2005-09-02  Bruno Haible  <bruno@clisp.org>
74930
74931         Support for lib vs. lib64 distinction on biarch platforms.
74932         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74933         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74935
74936 2005-09-02  Bruno Haible  <bruno@clisp.org>
74937
74938         * gnulib-tool (import): In the other first-use case, provide defaults
74939         as well.
74940
74941 2005-09-02  Bruno Haible  <bruno@clisp.org>
74942
74943         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74944         patches not yet found in the latest gettext release.
74945
74946 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74949         to avoid a collision with bits/local_lim.h in glibc.
74950         All uses changed.  Problem reported by Dmitry V. Levin in
74951         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74952
74953         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74954         bugs in int versus size_t comparisons.
74955         (re_string_context_at): Fix bug where the code assumed that
74956         Idx is signed.
74957
74958         Use bool where appropriate.
74959         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74960         All callers changed.
74961         (calc_eclosure_iter): Likewise, for ROOT arg.
74962         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74963         (build_charclass_op): Likewise, for NON_MATCH arg.
74964         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74965         (re_string_construct_common): Likewise, for ICASE arg.
74966         * lib/regexec.c (re_search_2_stub, re_search_stub):
74967         Likewise, for RET_LEN arg.
74968         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74969         (set_regs): Likewise, for FL_BACKTRACK arg.
74970         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74971         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74972         (calc_eclosure_iter, parse_bracket_exp):
74973         Use bool for internal variables that are booleans.
74974         * lib/regexec.c (re_search_internal, check_matching,
74975         proceed_next_node):
74976         (set_regs, build_sifted_states, sift_states_bkref):
74977         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74978         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74979         (find_collation_sequence_value):
74980         Likewise.
74981         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74982         (re_node_set_compare):
74983         Return bool, not int. All callers changed.
74984         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74985         (build_trtable, check_node_accept): Likewise.
74986         * lib/regex_internal.h: Include stdbool.h.
74987
74988         Fix bugs uncovered when converting to bool.
74989         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74990         failure instead of charging ahead blindly.
74991         * lib/regex_internal.c (register_state): Likewise.
74992         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74993         for freeing internal storage.
74994         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74995         bitset pieces used as boolean, to avoid undefined behavior
74996         on hosts that do int overflow checking.
74997
74998 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * config/srclist.txt: Add glibc bugs 1285-1287.
75001
75002 2005-09-01  Jim Meyering  <jim@meyering.net>
75003
75004         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75005         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75006         Require gl_STAT_MACROS, too.
75007
75008 2005-09-01  Bruno Haible  <bruno@clisp.org>
75009
75010         * gnulib-tool (import): In the first-use case, provide defaults.
75011
75012 2005-09-01  Bruno Haible  <bruno@clisp.org>
75013
75014         * gnulib-tool (func_import): Remove the .tmp files.
75015
75016 2005-09-01  Bruno Haible  <bruno@clisp.org>
75017
75018         * gnulib-tool (func_import): Fix handling of symbolic links.
75019
75020 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75021
75022         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75023         old glibc regex code mishandles strings longer than 2**31 bytes.
75024         This patch fixes this when the regex code is used in gnulib
75025         (i.e., outside glibc).
75026
75027         This patch should not affect the use of the regex code inside
75028         glibc.  No doubt this problem also needs to be handled for glibc
75029         as well, but the result will be an incompatible change to the
75030         glibc ABI, and the old ABI will have to be supported too.  That
75031         can be the the subject for another patch.
75032
75033         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75034         governing whether the rest of this patch is active.  By default,
75035         the macro is disabled and the patch has no effect.
75036         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75037         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75038         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75039         (re_match_2, re_set_registers): Use the new types.
75040         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75041         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75042         New macros.
75043         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75044         (re_string_context_at, bin_tree_t, re_dfastate_t):
75045         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75046         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75047         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75048         (re_string_char_size_at, re_string_wchar_at):
75049         (re_string_elem_size_at):
75050         Use the new types and macros to port to 64-bit hosts.
75051         Use unsigned types for internal values, so that the code
75052         mostly works even for arrays larger than SSIZE_MAX.
75053         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75054         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75055         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75056         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75057         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75058         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75059         (calc_inveclosure, parse_dup_op, build_range_exp):
75060         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75061         (fetch_number, create_token_tree, mark_opt_subexp):
75062         Likewise.
75063         * lib/regex_internal.c (re_string_construct_common,
75064         create_ci_newstate):
75065         (create_cd_newstate, re_string_allocate, re_string_construct):
75066         (re_string_realloc_buffers, build_wcs_upper_buffer):
75067         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75068         (re_string_reconstruct, re_string_peek_byte_case):
75069         (re_string_fetch_byte_case, re_string_context_at):
75070         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75071         (re_node_set_init_copy, re_node_set_add_intersect):
75072         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75073         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75074         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75075         (re_acquire_state, re_acquire_state_context, register_state):
75076         Likewise.
75077         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75078         search_cur_bkref_entry):
75079         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75080         (re_search_internal, re_search_2_stub, re_search_stub)
75081         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75082         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75083         (update_cur_sifted_state, check_dst_limits):
75084         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75085         (check_subexp_limits, sift_states_bkref, merge_state_array):
75086         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75087         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75088         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75089         (expand_bkref_cache, check_node_accept_bytes):
75090         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75091         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75092         (acquire_init_state_context, check_halt_node_context):
75093         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75094         (sift_states_backward, clean_state_log_if_needed):
75095         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75096         (find_recover_state, transit_state_sb, transit_state_mb):
75097         (transit_state_bkref, build_trtable, match_ctx_clean):
75098         Likewise.
75099         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75100         to work around an assumption that REG_MISSING is negative.
75101
75102         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75103         (seek_collating_symbol_entry) [defined _LIBC]:
75104         (lookup_collation_sequence_value) [defined _LIBC]:
75105         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75106         Use prototypes rather than old-style function definitions.
75107         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75108         (transit_state_sb) [0]:
75109         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75110
75111         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75112         rm_eo.
75113
75114         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75115         (optimize_subexps, lower_subexp):
75116         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75117         since the signed shift might overflow.  Use 1u<<31 instead.
75118         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75119         Likewise.
75120         * lib/regexec.c (check_dst_limits_calc_pos_1,
75121         check_subexp_matching_top): Likewise.
75122
75123         * lib/regcomp.c (optimize_subexps, lower_subexp):
75124         Use CHAR_BIT rather than 8, for clarity.
75125         * lib/regexec.c (check_dst_limits_calc_pos_1):
75126         (check_subexp_matching_top): Likewise.
75127         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75128         have to worry about portability issues when shifting it left.
75129         Remove no-longer-needed test for table_size > 0.
75130         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75131         in a word, as the resulting behavior is undefined.
75132         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75133         in one case, a <= should have been an <, and in another case the
75134         whole test was missing.
75135         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75136         the standard name CHAR_BIT.
75137         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75138         this is not true on one's complement and signed-magnitude hosts.
75139
75140         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75141         next_last_offset.
75142         (struct re_dfa_t): Remove unused member states_alloc.
75143         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75144
75145 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75146
75147         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75148         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75149         and large-file glibc and in 32-bit large-file Solaris.
75150
75151 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75152
75153         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75154         lengths fit in regoff_t; this isn't true if regoff_t is the same
75155         width as size_t.
75156         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75157         (= START + RANGE) instead of RANGE.  This avoids overflow
75158         problems when regoff_t is the same width as size_t.
75159         All callers changed.
75160         (re_search_2_stub): Check for overflow when adding the
75161         sizes of the two strings.
75162         (re_search_stub): Check for overflow when adding START
75163         to RANGE; if it occurs, substitute the extreme value.
75164
75165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75166
75167         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75168
75169 2005-08-31  Jim Meyering  <jim@meyering.net>
75170
75171         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75172         a pointer-to-const.
75173         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75174         (register_state): Likewise.
75175         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75176         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75177         (group_nodes_into_DFAstates): Likewise.
75178
75179 2005-08-31  Jim Meyering  <jim@meyering.net>
75180
75181         * check-module: Add a FIXME comment.
75182
75183 2005-08-31  Eric Blake  <ebb9@byu.net>
75184
75185         * modules/unistd-safer (Files): Add unistd--.h.
75186         * modules/stdio-safer (Files): Add stdio--.h.
75187
75188 2005-08-31  Derek Price  <derek@ximbiot.com>
75189
75190         * lib/getdelim.c (getdelim): Return EOF on EOF.
75191         Reported by Larry Jones <lawrence.jones@ugs.com>.
75192
75193 2005-08-31  Bruno Haible  <bruno@clisp.org>
75194
75195         Avoid unnecessary diffs in the generated lib/Makefile.am.
75196         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75197         the generated files.
75198         (func_import): Don't set cmd.
75199
75200 2005-08-31  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/strstr.c: Include <stddef.h>, for NULL.
75203         * lib/strcasestr.c: Likewise.
75204         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75205
75206 2005-08-31  Bruno Haible  <bruno@clisp.org>
75207
75208         * gnulib-tool: New option --macro-prefix.
75209         (func_import): Use macro_prefix.
75210         (import): Handle option --macro-prefix.
75211
75212 2005-08-31  Bruno Haible  <bruno@clisp.org>
75213
75214         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75215         Also use new variables cached_lgpl, cached_libtool.
75216
75217 2005-08-31  Bruno Haible  <bruno@clisp.org>
75218
75219         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75220         always instantiating them.
75221
75222 2005-08-31  Bruno Haible  <bruno@clisp.org>
75223
75224         * gnulib-tool (func_import): Read the previous cached settings
75225         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75226         earlier added by gnulib but are now dropped. Warn when a gnulib file
75227         overwrites a non-gnulib file.
75228
75229 2005-08-31  Bruno Haible  <bruno@clisp.org>
75230
75231         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75232         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75233         projects that don't keep autogenerated files in CVS. Put into
75234         actioncmd only the specified modules, not the transitive closure.
75235
75236 2005-08-31  Bruno Haible  <bruno@clisp.org>
75237
75238         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75239         Create directories that shall be filled.
75240         (import): Don't look for gl_* macros in configure.ac. Recurse across
75241         all directories containing a gnulib-cache.m4 files, if meaningful.
75242
75243 2005-08-31  Bruno Haible  <bruno@clisp.org>
75244
75245         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75246         (import): Set seen_libtool when we see gl_LIBTOOL.
75247
75248 2005-08-31  Bruno Haible  <bruno@clisp.org>
75249
75250         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75251         declaration macro definitions from generated gnulib.m4.
75252
75253 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75254
75255         * lib/iconvme.h: Add prototype for iconv_alloc.
75256
75257 2005-08-29  Simon Josefsson  <jas@extundo.com>
75258
75259         * lib/iconvme.c: Fix errno.
75260
75261 2005-08-29  Bruno Haible  <bruno@clisp.org>
75262
75263         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75264         that it works when the directory contains spaces.
75265
75266 2005-08-29  Bruno Haible  <bruno@clisp.org>
75267
75268         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75269
75270 2005-08-29  Bruno Haible  <bruno@clisp.org>
75271
75272         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75273         Emit more advice.
75274
75275 2005-08-29  Bruno Haible  <bruno@clisp.org>
75276         and Stepan Kasal  <kasal@ucw.cz>
75277
75278         * check-module: If more parameters are given, check each of them
75279         separately; add more exceptions, as noted by Jim Meyering.
75280         (check_module): New procedure.
75281         (%exempt_header): Now contains all exceptions.
75282
75283 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75284
75285         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75286
75287 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75288
75289         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75290
75291 2005-08-28  Bruno Haible  <bruno@clisp.org>
75292
75293         * m4/gnulib-tool.m4: New file.
75294
75295 2005-08-27  Jim Meyering  <jim@meyering.net>
75296
75297         * modules/unistd-safer (Files): Add pipe-safer.c.
75298         * modules/fcntl-safer (Files): Add creat-safer.c.
75299
75300 2005-08-27  Jim Meyering  <jim@meyering.net>
75301
75302         * m4/stdlib-safer.m4: New file.  From coreutils.
75303         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75304         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75305         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75306         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75307         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75308
75309 2005-08-27  Jim Meyering  <jim@meyering.net>
75310
75311         * lib/fopen-safer.c: Merge minor changes from coreutils.
75312         * lib/dup-safer.c: Likewise.
75313         * lib/fd-safer.c: Likewise.
75314
75315         Merge from coreutils.
75316         * lib/stdio--.h: New file.
75317         * lib/stdlib--.h: New file.
75318         * lib/mkstemp-safer.c: New file.
75319
75320         GNU tar needs these.
75321         * lib/pipe-safer.c: New file.
75322         * lib/creat-safer.c: New file.
75323         * lib/fcntl--.h (creat): Define to creat_safer.
75324         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75325         * lib/unistd--.h (pipe): Define to pipe_safer.
75326         * lib/unistd-safer.h: Declare pipe_safer.
75327
75328 2005-08-26  Simon Josefsson  <jas@extundo.com>
75329
75330         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75331         Haible <bruno@clisp.org>.
75332
75333 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * lib/regex_internal.h: Remove all references to
75336         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75337         or better.
75338         (bitset_not, bitset_merge, bitset_not_merge):
75339         (bitset_mask, re_string_allocate, re_string_construct):
75340         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75341         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75342         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75343         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75344         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75345         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75346         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75347         (re_acquire_state_context):
75348         Remove unnecessary forward decls.
75349         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75350         Put __attribute at function definition,
75351         now that the function decl has been removed.
75352         * lib/regex_internal.c (re_string_peek_byte_case):
75353         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75354         Likewise.
75355
75356 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75357
75358         * m4/regex.m4: Add AC_PREREQ(2.50).
75359         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75360
75361 2005-08-25  Simon Josefsson  <jas@extundo.com>
75362
75363         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75364         __fsetlocking.
75365
75366 2005-08-25  Simon Josefsson  <jas@extundo.com>
75367
75368         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75369         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75370         GLIBC specific code.
75371
75372 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         Make regex safe for g++.  This fixes one real bug (an "err"
75375         that should have been "*err").  g++ problem reported by
75376         Sam Steingold.
75377         * lib/regex_internal.h (re_calloc): New macro, consistent with
75378         re_malloc etc.  All callers of calloc changed to use re_calloc.
75379         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75380         not int.  All callers changed.
75381         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75382         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75383         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75384         (find_recover_state): Change "err" to "*err"; this fixes what
75385         appears to be a real bug.
75386         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75387         versus int.
75388
75389 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         * modules/regex (Depends-on): Add malloc, since the code
75392         assumes that !malloc(0) means failure.
75393
75394 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75397
75398         alloca modernization/simplification for regex.
75399         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75400         needs to be at the start of the file, and can be moved into
75401         regex_internal.h and simplified.
75402         * lib/regex_internal.h: Include <alloca.h>.
75403         (__libc_use_alloca) [!defined _LIBC]: New macro.
75404         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75405         now works outside glibc.
75406
75407 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         * config/srclist.txt: Add glibc bugs 1241, 1245.
75410
75411 2005-08-25  Jim Meyering  <jim@meyering.net>
75412
75413         * lib/open-safer.c: Include <config.h>.
75414         Otherwise, we'd lose LARGEFILE support in any file using
75415         e.g. "fcntl--.h"
75416
75417 2005-08-25  Bruno Haible  <bruno@clisp.org>
75418
75419         * m4/minmax.m4: Require autoconf 2.52.
75420         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75421         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75422         alternatives of translit over the alphabet.
75423         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75424
75425 2005-08-24  Simon Josefsson  <jas@extundo.com>
75426
75427         * tests/test-getpass.c: New file.
75428
75429 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75432         for GNU regex features.
75433
75434 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75437         * lib/regex.h (regerror): Likewise.
75438
75439         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75440         requires this.  (The code never needed it.)
75441
75442         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75443         All uses of recently-renamed identifiers changed to use the new,
75444         POSIX-compliant names.  The code will build and run just fine
75445         without these changes, but it's better to eat our own dog food
75446         and use the standard-conforming names.
75447
75448         * lib/regex.h: Fix a multitude of POSIX name space violations.
75449         These changes have an effect only for programs that define
75450         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75451         do not change anything for programs compiled in the normal way.
75452         Also, there is no effect on the ABI.
75453
75454         (_REGEX_SOURCE): New macro.
75455         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75456         defined and _GNU_SOURCE is not; this fixes a name space violation.
75457
75458         Rename the following macros to obey POSIX requirements.
75459         The old names are still visible as macros if _REGEX_SOURCE is defined.
75460         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75461         RE_BACKSLASH_ESCAPE_IN_LISTS.
75462         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75463         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75464         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75465         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75466         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75467         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75468         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75469         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75470         (REG_INTERVALS): renamed from RE_INTERVALS.
75471         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75472         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75473         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75474         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75475         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75476         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75477         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75478         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75479         RE_UNMATCHED_RIGHT_PAREN_ORD.
75480         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75481         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75482         (REG_DEBUG): renamed from RE_DEBUG.
75483         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75484         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75485         unusual, since we can't clash with the POSIX REG_ICASE.
75486         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75487         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75488         (REG_NO_SUB): renamed from RE_NO_SUB.
75489         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75490         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75491         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75492         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75493         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75494         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75495         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75496         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75497         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75498         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75499         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75500         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75501         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75502         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75503         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75504         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75505         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75506         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75507         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75508         (REG_FIXED): Renamed from REGS_FIXED.
75509         (REG_NREGS): Renamed from RE_NREGS.
75510
75511         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75512         of other REG_* macros, since POSIX says the user is allowed to
75513         #undef these macros selectively.
75514
75515         (reg_errcode_t): Update comment stating what other tables need
75516         to be consistent.
75517
75518         Rename the following enum values to obey POSIX requirements.
75519         The old names are still visible as macros.
75520         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75521         is not defined, since GNU is supposed to be a superset of POSIX as
75522         much as possible, and since we want reg_errcode_t to be a signed
75523         type for implementation consistency.
75524         (_REG_NOERROR): Renamed from REG_NOERROR.
75525         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75526         (_REG_BADPAT): Renamed from REG_BADPAT.
75527         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75528         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75529         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75530         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75531         (_REG_EBRACK): Renamed from REG_EBRACK.
75532         (_REG_EPAREN): Renamed from REG_EPAREN.
75533         (_REG_EBRACE): Renamed from REG_EBRACE.
75534         (_REG_BADBR): Renamed from REG_BADBR.
75535         (_REG_ERANGE): Renamed from REG_ERANGE.
75536         (_REG_ESPACE): Renamed from REG_ESPACE.
75537         (_REG_BADRPT): Renamed from REG_BADRPT.
75538         (_REG_EEND): Renamed from REG_EEND.
75539         (_REG_ESIZE): Renamed from REG_ESIZE.
75540         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75541         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75542         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75543         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75544         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75545
75546         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75547         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75548         changed.  But support the old name if the new one is not defined
75549         and if _REGEX_SOURCE.
75550
75551         Change the following member names in struct re_pattern_buffer.
75552         The old names are still supported if !_REGEX_SOURCE.
75553         The new names are always supported, regardless of _REGEX_SOURCE.
75554         (re_buffer): Renamed from buffer.
75555         (re_allocated): Renamed from allocated.
75556         (re_used): Renamed from used.
75557         (re_syntax): Renamed from syntax.
75558         (re_fastmap): Renamed from fastmap.
75559         (re_translate): Renamed from translate.
75560         (re_can_be_null): Renamed from can_be_null.
75561         (re_regs_allocated): Renamed from regs_allocated.
75562         (re_fastmap_accurate): Renamed from fastmap_accurate.
75563         (re_no_sub): Renamed from no_sub.
75564         (re_not_bol): Renamed from not_bol.
75565         (re_not_eol): Renamed from not_eol.
75566         (re_newline_anchor): Renamed from newline_anchor.
75567
75568         Change the following member names in struct re_registers.
75569         The old names are still supported if !_REGEX_SOURCE.
75570         The new names are always supported, regardless of _REGEX_SOURCE.
75571         (rm_num_regs): Renamed from num_regs.
75572         (rm_start): Renamed from start.
75573         (rm_end): Renamed from end.
75574
75575         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75576         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75577         Prepend __ to parameter names.
75578
75579         Undo yesterday's changes.
75580
75581 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75584         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75585         lib/regex.c.
75586
75587 2005-08-24  Jim Meyering  <jim@meyering.net>
75588
75589         Sync from coreutils.
75590         * m4/fcntl-safer.m4: New file.
75591
75592         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75593         and object files for this module.
75594
75595 2005-08-24  Jim Meyering  <jim@meyering.net>
75596
75597         Sync from coreutils.
75598         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75599
75600 2005-08-24  Jim Meyering  <jim@meyering.net>
75601
75602         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75603         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75604
75605 2005-08-24  Jim Meyering  <jim@meyering.net>
75606
75607         * modules/fcntl-safer: New module.
75608         * modules/fts (Depends-on): Add fcntl-safer.
75609         * MODULES.html.sh (File descriptor based Input/Output):
75610         Add fcntl-safer.
75611
75612 2005-08-24  Bruno Haible  <bruno@clisp.org>
75613
75614         Support for unit test modules.
75615         * modules/README: Mention tests modules.
75616         * modules/TEMPLATE-TESTS: New file.
75617         * gnulib-tool: New options --extract-tests-module, --with-tests and
75618         --tests-base (unused for the moment).
75619         (testsbase, inctests): New variables.
75620         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75621         (func_verify_module): Exclude TEMPLATE-TESTS.
75622         (func_verify_nontests_module, func_verify_tests_module): New functions.
75623         (func_get_dependencies): Add implicit dependency for tests modules.
75624         (func_get_tests_module): New function.
75625         (func_modules_transitive_closure): When --with-tests was specified,
75626         include the unit tests as well, unless explicitly avoided.
75627         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75628         (func_emit_tests_Makefile_am): New function.
75629         (func_create_testdir): When --with-tests was specified, emit a
75630         tests/ directory.
75631         * MODULES.html.sh (Future developments): Update.
75632
75633 2005-08-24  Bruno Haible  <bruno@clisp.org>
75634
75635         * modules/tls-tests: New file.
75636         * tests/test-tls.c: New file, from GNU gettext.
75637
75638 2005-08-24  Bruno Haible  <bruno@clisp.org>
75639
75640         * modules/lock-tests: New file.
75641         * tests/test-lock.c: New file, from GNU gettext.
75642
75643 2005-08-24  Bruno Haible  <bruno@clisp.org>
75644
75645         * lib/lock.h: Add multiple inclusion guard.
75646         * lib/tls.h: Add multiple inclusion guard.
75647
75648 2005-08-24  Bruno Haible  <bruno@clisp.org>
75649
75650         * gnulib-tool: Add support for the --aux-dir option to
75651         --create-testdir, --create-megatestdir, --test, --megatest.
75652         (func_create_testdir, func_create_megatestdir): Optionally emit a
75653         AC_CONFIG_AUX_DIR directive.
75654         (create-testdir, create-megatestdir, test, megatest): Provide a
75655         default value for $auxdir.
75656
75657 2005-08-24  Bruno Haible  <bruno@clisp.org>
75658
75659         * gnulib-tool (import): Use compound statement instead of subshell
75660         where possible.
75661
75662 2005-08-24  Bruno Haible  <bruno@clisp.org>
75663
75664         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75665
75666 2005-08-24  Bruno Haible  <bruno@clisp.org>
75667
75668         * gnulib-tool (func_version): Update.
75669
75670 2005-08-24  Bruno Haible  <bruno@clisp.org>
75671
75672         * gnulib-tool (func_import, func_create_testdir,
75673         func_create_megatestdir): Quote all autoconf macro arguments.
75674
75675 2005-08-24  Bruno Haible  <bruno@clisp.org>
75676
75677         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75678         option --force, because --force causes the aclocal.m4 of each
75679         subdirectory to be newer than the corresponding config.h.in.
75680
75681 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75684         All contents moved to gl_REGEX.
75685         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75686         assume that it does.
75687
75688 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         * lib/regex.h (REG_NOSYS)
75691         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75692         Define, since POSIX requires it as of 2001.
75693         (_REG_ENOSYS)
75694         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75695         New private symbol, used to keep the enum signed in all cases.
75696         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75697         Youngman in
75698         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75699
75700         * lib/regex_internal.c (re_string_skip_chars, register_state):
75701         (calc_state_hash):
75702         Remove forward decls; no longer needed now that we use prototypes.
75703         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75704         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75705         (clean_state_log_if_needed): Likewise.
75706
75707 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         * config/srclist.txt: Add glibc bugs 1231-1233.
75710
75711 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         Fix problems reported by Sam Steingold in
75714         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75715         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75716         assumed that reg_errcode_t is a signed type, which is not
75717         necessarily true if _XOPEN_SOURCE is not defined.
75718         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75719         since some compilers warn about it otherwise.
75720
75721 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75724         (init_word_char, create_initial_state, duplicate_node_closure):
75725         (fetch_token, peek_token_bracket, build_range_exp):
75726         (build_collating_symbol): Remove forward decls; no longer needed
75727         now that we use prototypes.
75728
75729         * lib/regcomp.c:
75730         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75731         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75732         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75733         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75734         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75735         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75736         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75737         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75738         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75739         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75740         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75741         (build_charclass, build_charclass_op, fetch_number, create_tree):
75742         (create_token_tree, mark_opt_subexp, duplicate_tree):
75743         Use prototypes rather than old-style definitions.
75744
75745         * lib/regex_internal.c:
75746         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75747         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75748         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75749         (re_string_reconstruct, re_string_peek_byte_case):
75750         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75751         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75752         (re_node_set_init_copy, re_node_set_add_intersect):
75753         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75754         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75755         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75756         (re_acquire_state, re_acquire_state_context, register_state):
75757         (create_ci_newstate, create_cd_newstate, free_state):
75758         Likewise.
75759         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75760         re_search_2):
75761         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75762         (re_search_internal, prune_impossible_nodes):
75763         (acquire_init_state_context, check_matching, static):
75764         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75765         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75766         (update_regs, sift_states_backward, build_sifted_states):
75767         (clean_state_log_if_needed, merge_state_array):
75768         (update_cur_sifted_state, add_epsilon_src_nodes):
75769         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75770         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75771         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75772         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75773         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75774         (check_arrival, check_arrival_add_next_nodes):
75775         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75776         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75777         (check_node_accept_bytes, check_node_accept, extend_buffers):
75778         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75779         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75780         (sift_ctx_init):
75781         Likewise.
75782
75783         * lib/regex_internal.h:
75784         (re_string_allocate, re_string_construct, re_string_reconstruct):
75785         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75786         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75787         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75788         (re_string_context_at, re_string_peek_byte_case):
75789         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75790         is defined, since we now use prototypes always.
75791
75792         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75793         C89 or better.  All uses removed.
75794
75795 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * config/srclist.txt: Add glibc bugs 1220-1227.
75798
75799 2005-08-20  Jim Meyering  <jim@meyering.net>
75800
75801         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75802         of unused local, dfa.
75803
75804 2005-08-20  Bruno Haible  <bruno@clisp.org>
75805
75806         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75807
75808 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75811         (re_node_set_insert_last, re_dfa_add_node):
75812         Rename local variables to avoid GCC shadowing warnings.
75813
75814 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75817         [defined lint]: Suppress bogus uninitialized-variable warnings.
75818
75819         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75820         and let the caller return REG_ESPACE if out of space.  This
75821         removes an uninitialied-variable warning with GCC 4.0.1, and also
75822         avoids taking the address of a local variable.  All callers
75823         changed.
75824
75825 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75828         $LIBCSRC/posix/regexec.c.
75829         Add glibc bug 1217 for regcomp.c.
75830
75831 2005-08-19  Jim Meyering  <jim@meyering.net>
75832
75833         * lib/regexec.c (proceed_next_node): Redo local variables to
75834         avoid GCC shadowing warnings.
75835
75836 2005-08-18  Bruno Haible  <bruno@clisp.org>
75837
75838         * lib/strstr.c (strstr): Fix return value in multibyte case.
75839         * lib/strcasestr.c (strcasestr): Likewise.
75840
75841 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75844
75845 2005-08-17  Jim Meyering  <jim@meyering.net>
75846
75847         Make the %s format (seconds since the epoch) work for a negative
75848         number and when used with a zero-padded field width, e.g. %015s.
75849
75850         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75851         label so that it precedes the code to set `digits'.  Otherwise,
75852         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75853         print `00-22'.  Now, it prints `-0022', as it should.
75854
75855 2005-08-17  Bruno Haible  <bruno@clisp.org>
75856
75857         * modules/strstr (Files): Add m4/mbrtowc.m4.
75858         (Depends-on): Add mbuiter.
75859
75860 2005-08-17  Bruno Haible  <bruno@clisp.org>
75861
75862         * modules/strcasestr: New file.
75863         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75864         strcasestr.
75865
75866 2005-08-17  Bruno Haible  <bruno@clisp.org>
75867
75868         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75869
75870 2005-08-17  Bruno Haible  <bruno@clisp.org>
75871
75872         * modules/mbuiter: New file.
75873         * MODULES.html.sh (Extended multibyte and wide character utilities):
75874         Add mbuiter.
75875
75876 2005-08-17  Bruno Haible  <bruno@clisp.org>
75877
75878         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75879         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75880
75881 2005-08-17  Bruno Haible  <bruno@clisp.org>
75882
75883         * m4/strcasestr.m4: New file.
75884
75885 2005-08-17  Bruno Haible  <bruno@clisp.org>
75886
75887         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75888         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75889
75890 2005-08-17  Bruno Haible  <bruno@clisp.org>
75891
75892         * lib/strcasestr.h: New file.
75893         * lib/strcasestr.c: New file.
75894
75895 2005-08-17  Bruno Haible  <bruno@clisp.org>
75896
75897         * lib/strcasecmp.c: Use mbuiter.h.
75898
75899 2005-08-17  Bruno Haible  <bruno@clisp.org>
75900
75901         * lib/mbuiter.h: New file.
75902
75903 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75904
75905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75906         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75907         and gl_GETOPT are both invoked via different paths (as happens
75908         with GNU tar CVS because it uses both argp and getopt), the former
75909         wins.
75910
75911 2005-08-16  Bruno Haible  <bruno@clisp.org>
75912
75913         * modules/tls: New file.
75914         * MODULES.html.sh (Multithreading): Add tls.
75915
75916 2005-08-16  Bruno Haible  <bruno@clisp.org>
75917
75918         * modules/strnlen1: New file.
75919         * MODULES.html.sh (String handling): Add strnlen1.
75920
75921 2005-08-16  Bruno Haible  <bruno@clisp.org>
75922
75923         * modules/strcase (Files): Add m4/mbrtowc.m4.
75924         (Depends-on): Add strnlen1, mbchar.
75925
75926 2005-08-16  Bruno Haible  <bruno@clisp.org>
75927
75928         * modules/mbiter: New file.
75929         * MODULES.html.sh (Extended multibyte and wide character utilities):
75930         Add mbiter.
75931
75932 2005-08-16  Bruno Haible  <bruno@clisp.org>
75933
75934         * modules/mbfile: New file.
75935         * MODULES.html.sh (Extended multibyte and wide character utilities):
75936         Add mbfile.
75937
75938 2005-08-16  Bruno Haible  <bruno@clisp.org>
75939
75940         * modules/mbchar: New file.
75941         * MODULES.html.sh (Extended multibyte and wide character utilities):
75942         New section.
75943
75944 2005-08-16  Bruno Haible  <bruno@clisp.org>
75945
75946         * m4/tls.m4: New file, from GNU gettext.
75947
75948 2005-08-16  Bruno Haible  <bruno@clisp.org>
75949
75950         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75951         always.
75952         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75953
75954 2005-08-16  Bruno Haible  <bruno@clisp.org>
75955
75956         * m4/mbiter.m4: New file.
75957
75958 2005-08-16  Bruno Haible  <bruno@clisp.org>
75959
75960         * m4/mbfile.m4: New file.
75961
75962 2005-08-16  Bruno Haible  <bruno@clisp.org>
75963
75964         * m4/mbchar.m4: New file.
75965
75966 2005-08-16  Bruno Haible  <bruno@clisp.org>
75967
75968         * lib/tls.h: New file, from GNU gettext.
75969         * lib/tls.c: New file, from GNU gettext.
75970
75971 2005-08-16  Bruno Haible  <bruno@clisp.org>
75972
75973         * lib/strnlen1.h: New file.
75974         * lib/strnlen1.c: New file.
75975
75976 2005-08-16  Bruno Haible  <bruno@clisp.org>
75977
75978         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75979         (mbi_init): Update.
75980         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75981         NUL byte, not after it.
75982
75983 2005-08-16  Bruno Haible  <bruno@clisp.org>
75984
75985         * lib/strcase.h (strcasecmp): Add note in comments.
75986         * lib/strncasecmp.c: Use code from strcasecmp.c.
75987         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75988         (strcasecmp): Work correctly in multibyte locales.
75989
75990 2005-08-16  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/mbiter.h: New file.
75993
75994 2005-08-16  Bruno Haible  <bruno@clisp.org>
75995
75996         * lib/mbfile.h: New file.
75997
75998 2005-08-16  Bruno Haible  <bruno@clisp.org>
75999
76000         * lib/mbchar.h: New file.
76001         * lib/mbchar.c: New file.
76002
76003 2005-08-16  Bruno Haible  <bruno@clisp.org>
76004
76005         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76006         the valid ones. Makes the comparison operations transitive:
76007         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76008         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76009
76010 2005-08-15  Simon Josefsson  <jas@extundo.com>
76011
76012         * modules/ssize_t (License): Change to 'unlimited'.
76013
76014         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76015
76016 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76019         Add comments for each pending glibc patch.
76020
76021 2005-08-15  Bruno Haible  <bruno@clisp.org>
76022
76023         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76024         __cplusplus is defined.
76025
76026 2005-08-14  Jim Meyering  <jim@meyering.net>
76027
76028         Sync from coreutils.
76029
76030         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76031         Use the hash-table-based cycle-detection code not just when
76032         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76033         Reported by James Youngman in
76034         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76035         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76036         FTS_TIGHT_CYCLE_CHECK.
76037         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76038         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76039         once again.
76040         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76041         * lib/fts.c (fd_safer): Remove decl.
76042         Include fcntl--.h rather than unistd-safer.h
76043         (fts_safe_changedir): Don't call fd_safer; no longer needed
76044         now that we include fcntl--.h.
76045
76046 2005-08-12  Simon Josefsson  <jas@extundo.com>
76047
76048         * modules/getndelim2: Use ssize_t module.
76049         * modules/getnline: Likewise.
76050         * modules/safe-read: Likewise.
76051         * modules/xreadlink: Likewise.
76052
76053         * modules/ssize_t: New file.
76054
76055 2005-08-12  Simon Josefsson  <jas@extundo.com>
76056
76057         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76058
76059 2005-08-12  Simon Josefsson  <jas@extundo.com>
76060
76061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76062         ssize_t.
76063
76064 2005-08-12  Simon Josefsson  <jas@extundo.com>
76065
76066         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76067         readline, getdelim and check_version.
76068         (Support for systems lacking ISO C 99: Sizes of integer types):
76069         Add size_max.
76070
76071 2005-08-12  Bruno Haible  <bruno@clisp.org>
76072
76073         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76074
76075 2005-08-11  Simon Josefsson  <jas@extundo.com>
76076
76077         * modules/readline: New file.
76078
76079         * modules/strnlen (Files): Add strnlen.h.
76080
76081 2005-08-11  Simon Josefsson  <jas@extundo.com>
76082
76083         * m4/readline.m4: New file.
76084
76085 2005-08-11  Simon Josefsson  <jas@extundo.com>
76086
76087         * lib/readline.h, readline.c: New file.
76088
76089 2005-08-11  Simon Josefsson  <jas@extundo.com>
76090
76091         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76092         gl_AVOID.
76093
76094 2005-08-11  Bruno Haible  <bruno@clisp.org>
76095
76096         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76097
76098 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76099
76100         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76101
76102 2005-08-10  Simon Josefsson  <jas@extundo.com>
76103
76104         * tests/test-iconvme.c: New file.
76105
76106 2005-08-10  Simon Josefsson  <jas@extundo.com>
76107
76108         * m4/strnlen.m4: New file.
76109
76110         * m4/strndup.m4: Don't check for strnlen declaration, done in
76111         strnlen.m4.
76112
76113 2005-08-10  Simon Josefsson  <jas@extundo.com>
76114
76115         * lib/strndup.c: Use strnlen.h.
76116
76117         * lib/strnlen.h: New file.
76118
76119 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76120
76121         * README: Typos.
76122
76123 2005-08-02  Simon Josefsson  <jas@extundo.com>
76124
76125         * modules/readline: New file.
76126
76127 2005-08-02  Simon Josefsson  <jas@extundo.com>
76128
76129         * modules/getdelim: New file.
76130
76131         * modules/getline: Rewrite, don't use getndelim2.
76132
76133 2005-08-02  Simon Josefsson  <jas@extundo.com>
76134
76135         * m4/getline.m4: Separate out getdelim stuff into separate module.
76136
76137         * m4/getdelim.m4: New file.
76138
76139 2005-08-02  Simon Josefsson  <jas@extundo.com>
76140
76141         * lib/getline.h, getline.c: Rewrite.
76142
76143         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76144
76145 2005-07-31  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/lock.h (gl_lock_initializer): New macro.
76148         (gl_lock_define_initialized): Use it.
76149         (gl_rwlock_initializer): New macro.
76150         (gl_rwlock_define_initialized): Use it.
76151         (gl_recursive_lock_initializer): New macro.
76152         (gl_recursive_lock_define_initialized): Use it.
76153
76154 2005-07-30  Karl Berry  <karl@gnu.org>
76155
76156         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76157         Report from Ben Pfaff, regarding getopt.
76158
76159 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76162         normal way.
76163         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76164         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76165         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76166         (gl_GETOPT): Use the new macros.  Most of the implementation
76167         is moved to the new macros.  This is for programs like Emacs
76168         that don't want all the functionality of gl_GETOPT.
76169
76170 2005-07-26  Bruno Haible  <bruno@clisp.org>
76171
76172         * m4/lock.m4: Update from GNU gettext.
76173
76174 2005-07-26  Bruno Haible  <bruno@clisp.org>
76175
76176         * lib/lock.h: Update from GNU gettext.
76177         * lib/lock.c: Update from GNU gettext.
76178
76179 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76180
76181         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76182         obsolescent AC_TRY_RUN.  Include the default includes files, for
76183         'exit'.
76184
76185 2005-07-24  Bruno Haible  <bruno@clisp.org>
76186
76187         * modules/visibility: New file.
76188         * MODULES.html.sh (Misc): Add visibility.
76189
76190 2005-07-24  Bruno Haible  <bruno@clisp.org>
76191
76192         * m4/visibility.m4: New file.
76193
76194 2005-07-24  Bruno Haible  <bruno@clisp.org>
76195
76196         * doc/visibility.texi: New file.
76197
76198 2005-07-22  Bruno Haible  <bruno@clisp.org>
76199
76200         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76201         $(ALLOCA_H), redundant through BUILT_SOURCES.
76202         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76203         redundant through BUILT_SOURCES.
76204         * modules/byteswap (Makefile.am): Remove explicit dependency on
76205         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76206         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76207         $(FNMATCH_H), redundant through BUILT_SOURCES.
76208         * modules/getopt (Makefile.am): Remove explicit dependency on
76209         $(GETOPT_H), redundant through BUILT_SOURCES.
76210         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76211         redundant through BUILT_SOURCES.
76212         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76213         redundant through BUILT_SOURCES.
76214         * modules/stdbool (Makefile.am): Remove explicit dependency on
76215         $(STDBOOL_H), redundant through BUILT_SOURCES.
76216         * modules/stdint (Makefile.am): Remove explicit dependency on
76217         $(STDINT_H), redundant through BUILT_SOURCES.
76218         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76219         Remove explicit dependency on $(SYSEXITS_H).
76220         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76221
76222 2005-07-18  Simon Josefsson  <jas@extundo.com>
76223
76224         * lib/check-version.c (check_version): Accept identical versions too.
76225
76226 2005-07-18  Bruno Haible  <bruno@clisp.org>
76227
76228         * modules/lock: New file.
76229         * MODULES.html.sh (Multithreading): New section.
76230
76231 2005-07-18  Bruno Haible  <bruno@clisp.org>
76232
76233         * m4/lock.m4: New file, from GNU gettext.
76234
76235 2005-07-18  Bruno Haible  <bruno@clisp.org>
76236
76237         * lib/lock.h: New file, from GNU gettext.
76238         * lib/lock.c: New file, from GNU gettext.
76239
76240 2005-07-18  Bruno Haible  <bruno@clisp.org>
76241
76242         * lib/lock.h (gl_once_t): New type.
76243         (gl_once_define, gl_once): New macros.
76244         * lib/lock.c (fresh_once): New variable.
76245         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76246         functions.
76247
76248 2005-07-16  Simon Josefsson  <jas@extundo.com>
76249
76250         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76251         workaround, suggested by Bruno.
76252
76253 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * modules/xalloc (Depends-on): Add xalloc-die.
76256         * modules/xvasprintf (Depends-on): Add xalloc-die.
76257
76258 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76259
76260         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76261         with a minor change.
76262
76263 2005-07-15  Bruno Haible  <bruno@clisp.org>
76264
76265         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76266         When using lib/poll.c, define poll as rpl_poll.
76267
76268 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * modules/argp (Depends-on): Remove unlocked-io.
76271
76272 2005-07-14  Derek Price  <derek@ximbiot.com>
76273
76274         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76275         for glob symlink bug.
76276
76277 2005-07-14  Bruno Haible  <bruno@clisp.org>
76278
76279         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76280         Instead, test for *_unlocked function declarations directly.
76281
76282 2005-07-11  Simon Josefsson  <jas@extundo.com>
76283
76284         * modules/size_max: New file.
76285
76286         * modules/xsize: Depend on size_max module for size_max.m4.
76287
76288 2005-07-11  Simon Josefsson  <jas@extundo.com>
76289
76290         * lib/size_max.h: New file.
76291
76292 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76293
76294         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76295         copyright symbol and the year.
76296         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76297         (version_etc_va): Use parameterized copyright notice.
76298         Reword to conform to the current GNU coding standards.
76299
76300 2005-07-11  Karl Berry  <karl@gnu.org>
76301
76302         * doc/gnulib.texi (Quoting): new node.
76303         (Initial import): more info, from Patrice.
76304
76305 2005-07-11  Bruno Haible  <bruno@clisp.org>
76306
76307         * gnulib-tool (func_usage): Document option --avoid.
76308         (Command line options): Handle --avoid.
76309         (func_acceptable): New function.
76310         (func_modules_transitive_closure): Use it.
76311
76312 2005-07-11  Bruno Haible  <bruno@clisp.org>
76313
76314         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76315         Reported by Jim Meyering.
76316
76317 2005-07-10  Bruno Haible  <bruno@clisp.org>
76318
76319         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76320         Needed when size_t is smaller than 'unsigned int'.
76321         Reported by Paul Eggert.
76322
76323 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76324
76325         * modules/argp (Depends-on): Add unlocked-io
76326
76327 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76328
76329         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76330         block of defines.
76331
76332 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76335         fix now.
76336
76337 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76338         and Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76341         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76342
76343 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * modules/regex (Files): Add lib/regex_internal.c,
76346         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76347         (Depends-on): Add extensions.
76348         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76349
76350 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76353         pathconf.
76354         * m4/same.m4 (gl_SAME): Likewise.
76355         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76356
76357         * m4/regex.m4: Adjust to new libc regex implementation.
76358         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76359         all the .c and .h parts of (the new) regex.
76360         Quote the m4 stuff better.
76361         Check for RE_ICASE bug of old gnulib.
76362         Check for REG_STARTEND of recent libc.
76363         Rename local variables from jm_* to gl_*.
76364         Quote operand of "test -f".
76365         Say "recent enough" version of libc, not "version 2".
76366         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76367         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76368         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76369         Remove check for btowc, isascii.
76370         Require AM_LANGINFO_CODESET.
76371
76372 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76373
76374         * lib/regex.c, regex.h: Sync from libc.
76375         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76376         * lib/regexec.c:
76377         New files, synced from libc, except that regex_internal.h
76378         currently has a small porting fix.
76379
76380 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76383         regex_internal.c, regexec.c.
76384         Add regex_internal.h too, but as a comment, since the libc version
76385         is currently broken in gnulib mode.
76386
76387 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         Support programs like Emacs that use gnulib but not gettext.
76390         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76391         * modules/gettext-h: New file.
76392         * modules/gettext (Files): Remove lib/gettext.h.
76393         (Depends-on): Add gettext-h.
76394         (Makefile.am): Remove lib_SOURCES.
76395         * modules/argmatch, modules/c-stack, modules/closeout:
76396         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76397         * modules/execute, modules/file-type, modules/getaddrinfo:
76398         * modules/getopt, modules/human, modules/javacomp:
76399         * modules/javaexec, modules/mkdir-p, modules/obstack:
76400         * modules/openat, modules/pagealign_alloc, modules/pipe:
76401         * modules/quotearg, modules/regex, modules/rpmatch:
76402         * modules/unicodeio, modules/userspec, modules/version-etc:
76403         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76404         * modules/xsetenv:
76405         Depend on gettext-h, not gettext.
76406
76407 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * gnulib-tool (func_import): Add support for 'public domain' license.
76410         * modules/alloca, modules/atexit, modules/memmove:
76411         Now public domain, not GPL.
76412         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76413         * modules/realloc, modules/strerror, modules/strtod:
76414         Now LGPL, not GPL.
76415
76416 2005-07-05  Bruno Haible  <bruno@clisp.org>
76417
76418         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76419         autoconf CVS. Needed for mingw.
76420
76421 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         Remove the dependency of the strftime module on the tzset module.
76424         * modules/strftime (Depends-on): Remove dependency on tzset.
76425
76426 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         Remove the dependency of the strftime module on the tzset module.
76429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76430         gl_FUNC_TZSET_CLOBBER.
76431
76432 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         Remove the dependency of the strftime module on the tzset module.
76435         * lib/strftime.c (my_strftime)
76436         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76437         Copy the input structure, to work around some of the bug with
76438         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76439         Solaris releases, you should also use the tzset module, but we won't
76440         require it as a dependency any more since we don't want LGPLed code
76441         to depend on GPLed code.
76442
76443 2005-07-02  Jim Meyering  <jim@meyering.net>
76444
76445         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76446         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76447         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76448         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76449
76450 2005-07-02  Jim Meyering  <jim@meyering.net>
76451
76452         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76453
76454 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76457         declares only 'struct timespec;' (!).
76458
76459 2005-07-01  Jim Meyering  <jim@meyering.net>
76460
76461         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76462         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76463         * lib/save-cwd.c, tempname.c:
76464         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76465         and don't include <sys/file.h>).
76466
76467 2005-06-29  Jim Meyering  <jim@meyering.net>
76468
76469         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76470         type name.  Use the variable name instead.
76471         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76472         Likewise.
76473
76474 2005-06-28  Simon Josefsson  <jas@extundo.com>
76475
76476         * modules/check-version (Files): Add check-version.m4.
76477
76478 2005-06-28  Simon Josefsson  <jas@extundo.com>
76479
76480         * m4/check-version.m4: New file, suggested by Jim Meyering
76481         <jim@meyering.net>.
76482
76483 2005-06-28  Simon Josefsson  <jas@extundo.com>
76484
76485         * lib/check-version.h, lib/check-version.c: New files.
76486
76487 2005-06-28  Simon Josefsson  <jas@extundo.com>
76488
76489         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76490         collision with global variable.  Better indentation.  Don't
76491         increment buffer pointer beyond buffer end.  Based on comments
76492         from Paul Eggert <eggert@cs.ucla.edu>.
76493
76494         * lib/base64.h: Indent.
76495
76496 2005-06-28  Simon Josefsson  <jas@extundo.com>
76497
76498         * doc/gnulib.texi (Library version handling): New section.
76499
76500 2005-06-28  Jim Meyering  <jim@meyering.net>
76501
76502         * check-module (find_included_lib_files): Hard-code another
76503         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76504         but modules/fts-lgpl (correctly) does not list those files.
76505
76506         * modules/canonicalize (Files): Add lib/pathmax.h.
76507
76508 2005-06-25  Simon Josefsson  <jas@extundo.com>
76509
76510         * modules/check-version: New file.
76511
76512 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76513
76514         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76515         initializer of struct addrinfo, as an indication that we don't
76516         care how many members the structure has.
76517
76518 2005-06-24  Derek Price  <derek@ximbiot.com>
76519         and Bruno Haible  <bruno@clisp.org>
76520
76521         Remove stat module & update lstat.
76522         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76523         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76524         * m4/stat.m4: Remove this file.
76525
76526 2005-06-24  Derek Price  <derek@ximbiot.com>
76527         and Bruno Haible  <bruno@clisp.org>
76528
76529         Remove stat module & update lstat.
76530         * lib/stat.c: Remove this file...
76531         (slash_aware_lstat): ...moving this content and its support...
76532         * lib/lstat.c (rpl_lstat): ...into here.
76533         * lib/lstat.h: New file.
76534
76535 2005-06-24  Derek Price  <derek@ximbiot.com>
76536         and Bruno Haible  <bruno@clisp.org>
76537
76538         Remove stat module & update lstat.
76539         * config/srclist.txt (libc sources): Remove stat.
76540
76541 2005-06-24  Derek Price  <derek@ximbiot.com>
76542         and Bruno Haible  <bruno@clisp.org>
76543
76544         Remove stat module & update lstat.
76545         * MODULES.html.sh (stat): Remove.
76546         * MODULES.html: Regenerated.
76547         * modules/lstat (Description): Correct function name.
76548         (Files): Add "lstat.h".
76549         (Depends-on): Remove stat, add xalloc, stat-macros.
76550         * modules/stat: Remove this file.
76551         (Include): Add "lstat.h", remove <sys/stat.h>.
76552
76553 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76554
76555         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76556         (ranged_convert): Don't save conversion in a temporary struct.
76557         This causes a warning with GCC 4.0.0, and anyway in the typical
76558         case it's not worth the extra 100 bytes or so of code.
76559         (ranged_convert, __mktime_internal): When calling a function via a
76560         pointer P, use P () rather than (*P) (), as we now assume C89 or
76561         better.
76562
76563 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76566         "who -r" failed to give output.  Problem reported by Tim Waugh.
76567
76568         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76569         (xcalloc): Use it to avoid needless tests.
76570         Problem reported by Jim Meyering.
76571
76572 2005-06-20  Derek Price  <derek@ximbiot.com>
76573
76574         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76575         unnecessary for Autoconfs > 2.59c.
76576
76577 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76578
76579         * lib/argp.h (__option_is_short): Check upper limit of
76580         __key. Isprint() requires its argument to have the value
76581         of an unsigned char or EOF.
76582
76583 2005-06-16  Jim Meyering  <jim@meyering.net>
76584
76585         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76586         when either N or S is zero.
76587
76588 2005-06-16  Derek Price  <derek@ximbiot.com>
76589
76590         * m4/bison.m4: Declare YACC & YFLAGS precious.
76591
76592 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76595         multibyte string or pattern, fall back on unibyte matching.
76596         Problem reported by James Youngman.
76597
76598 2005-06-08  Bruno Haible  <bruno@clisp.org>
76599
76600         * modules/csharpcomp: New file.
76601         * MODULES.html.sh (C#): Add csharpcomp.
76602
76603 2005-06-08  Bruno Haible  <bruno@clisp.org>
76604
76605         * m4/csharpcomp.m4: New file, from GNU gettext.
76606
76607 2005-06-08  Bruno Haible  <bruno@clisp.org>
76608
76609         * lib/csharpcomp.h: New file, from GNU gettext.
76610         * lib/csharpcomp.c: New file, from GNU gettext.
76611         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76612
76613 2005-06-08  Bruno Haible  <bruno@clisp.org>
76614
76615         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76616         warning on mingw.
76617
76618 2005-06-07  Derek Price  <derek@ximbiot.com>
76619
76620         Sync from CVS.
76621         * lib/glob_.h: Indent nested #ifdef.
76622
76623 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         Sync from coreutils.
76626         Use "file name" when talking about file names, instead of "filename"
76627         or "path", as per the GNU coding standards.
76628         * lib/mkdir-p.c: Renamed from makepath.c.
76629         (make_dir_parents): Renamed from make_path.  All callers changed.
76630         * lib/mkdir-p.h: Likewise.  All includers changed.
76631         * lib/filenamecat.c: Renamed from path-concat.c.
76632         (file_name_concat): Renamed from path_concat.  All callers changed.
76633         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76634         * lib/filenamecat.h: Likewise.  All includers changed.
76635         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76636         in comments or local variable names.
76637         * lib/basename.c: Likewise.
76638         * lib/canonicalize.c, canonicalize.h: Likewise.
76639         * lib/dirname.c, dirname.h: Likewise.
76640         * lib/euidaccess.c: Likewise.
76641         * lib/exclude.c: Likewise
76642         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76643         * lib/fsusage.c, fsuage.h: Likewise.
76644         * lib/fts.c, fts_.h: Likewise.
76645         * lib/getcwd.c: Likewise.
76646         * lib/getloadavg.c: Likewise.
76647         * lib/mkstemp.c: Likewise.
76648         * lib/mountlist.c, mountlist.h: Likewise.
76649         * lib/openat.c, openat.h: Likewise.
76650         * lib/readlink-stub.c: Likewise.
76651         * lib/readutmp.c, readutmp.h: Likewise.
76652         * lib/rename.c: Likewise.
76653         * lib/rmdir.c: Likewise.
76654         * lib/same.c: Likewise.
76655         * lib/savedir.c: Likewise.
76656         * lib/stripslash.c: Likewise.
76657         * lib/tempname.c: Likewise.
76658         * lib/xreadlink.c: Likewise.
76659         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76660         All uses changed.
76661         * lib/exclude.h: Likewise.
76662
76663         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76664         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76665         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76666         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76667         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76668         files have been getting away with it for years (MORE/BSD 4.3
76669         is extinct now).
76670         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76671         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76672
76673         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76674         Define to 256, not 255, as per modern POSIX.
76675
76676 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         Sync from coreutils.
76679         Use "file name" when talking about file names, instead of "filename"
76680         or "path", as per the GNU coding standards.
76681         * MODULES.html.sh: mkdir-p renamed from makepath.
76682         filenamecat renamed from path-concat.
76683         * modules/filenamecat: Renamed from modules/path-concat.
76684         (Files): filenamecat.h and filenamecat.c renamed from
76685         path-concat.h and path-concat.c.
76686         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76687         (Include): filenamecat.h, not path-concat.h.
76688         * modules/mkdir-p: Renamed from modules/makepath.
76689         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76690         makepath.c.
76691         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76692         (Include): mkdir-p.h, not makepath.h.
76693
76694 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         Sync from coreutils.
76697         * m4/mkdir-p.m4: Renamed from makepath.m4.
76698         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76699         Rename files from makepath.c to mkdir-p.c, and from
76700         makepath.h to mkdir-p.h.
76701         * m4/filenamecat.m4: Renamed from path-concat.m4.
76702         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76703         Rename files from path-concat.c to filenamecat.c,
76704         and from path-concat.h to filenamecat.h.
76705         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76706         "file name" in local variables or comments.
76707         * m4/rename.m4: Likewise.
76708
76709 2005-06-01  Bruno Haible  <bruno@clisp.org>
76710
76711         * modules/csharpexec: New file.
76712         * MODULES.html.sh (C#): New section.
76713
76714 2005-06-01  Bruno Haible  <bruno@clisp.org>
76715
76716         * m4/csharp.m4: New file, from GNU gettext.
76717         * m4/csharpexec.m4: New file, from GNU gettext.
76718
76719 2005-06-01  Bruno Haible  <bruno@clisp.org>
76720
76721         * lib/csharpexec.h: New file, from GNU gettext.
76722         * lib/csharpexec.c: New file, from GNU gettext.
76723         * lib/csharpexec.sh.in: New file, from GNU gettext.
76724
76725 2005-05-31  Derek Price  <derek@ximbiot.com>
76726             Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         Sync from cvs.
76729         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76730
76731 2005-05-31  Derek Price  <derek@ximbiot.com>
76732             Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         Sync from cvs.
76735         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76736
76737 2005-05-29  Derek Price  <derek@ximbiot.com>
76738
76739         * config/srclist.txt (glob_.h, glob.c): Add these files.
76740
76741 2005-05-29  Derek Price  <derek@ximbiot.com>
76742
76743         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76744         * modules/glob: New file.
76745         * modules/getlogin_r: Add link to POSIX spec in description.
76746
76747 2005-05-29  Derek Price  <derek@ximbiot.com>
76748             Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         * m4/glob.m4: New file.
76751
76752 2005-05-29  Derek Price  <derek@ximbiot.com>
76753             Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * lib/glob_.h, lib/glob.c: New files.
76756
76757 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76760         * modules/fts-lgpl (Depends-on): Remove gettext.
76761
76762 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76765         and don't require gt_INTTYPES_PRI.
76766
76767 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76770
76771         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76772         the configuration hassle isn't worth it.
76773         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76774         (LONGEST_MODIFIER, PRIuMAX): Remove.
76775
76776 2005-05-27  Bruno Haible  <bruno@clisp.org>
76777
76778         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76779
76780 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76783         _POSIX_PTHREAD_SEMANTICS for Solaris.
76784
76785 2005-05-25  Derek Price  <derek@ximbiot.com>
76786
76787         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76788
76789 2005-05-25  Derek Price  <derek@ximbiot.com>
76790             Paul Eggert  <eggert@cs.ucla.edu>
76791
76792         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76793         * lib/getlogin_r.c, getlogin_r.h: New files.
76794
76795 2005-05-25  Bruno Haible  <bruno@clisp.org>
76796             Derek Price  <derek@ximbiot.com>
76797
76798         * lib/getlogin_r.h: Simplify API documentation.
76799
76800 2005-05-23  Derek Price  <derek@ximbiot.com>
76801
76802         * modules/minmax (Files): Add m4/minmax.m4.
76803         (configure.ac): Add gl_MINMAX.
76804
76805 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76808         so that unistd-safer.h (GPL'ed code) need not be included.
76809
76810 2005-05-22  Bruno Haible  <bruno@clisp.org>
76811
76812         * m4/minmax.m4: New file.
76813         Based on a patch by Derek Price <derek@ximbiot.com>.
76814
76815 2005-05-22  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76818         (INT64_MIN): Fix definition.
76819         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76820
76821         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76822         NEED_SIGNED_INT_TYPES.
76823
76824         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76825         HAVE_SYSTEM_INTTYPES.
76826
76827 2005-05-22  Bruno Haible  <bruno@clisp.org>
76828
76829         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76830         Also include <sys/param.h> if it defines MIN, MAX.
76831         Based on a patch by Derek Price <derek@ximbiot.com>.
76832
76833 2005-05-21  Jim Meyering  <jim@meyering.net>
76834
76835         * modules/fts (Files): Add m4/inttypes-pri.m4.
76836         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76837
76838 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         New fts module.
76841         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76842         (setup_dir, free_dir): New functions.
76843         (enter_dir, leave_dir): Define trivial
76844         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76845         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76846         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76847         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76848         Move to fts-cycle.c.
76849         (fts_open): Use setup_dir.
76850         (fts_close): Use free_dir.
76851         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76852         This adds a label and some gotos, but the alternatives were messier.
76853         Check for memory allocation failure when entering a dir.
76854         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76855         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76856         (FTS): New member fts_cycle, that is a union that contains the
76857         old active_dir_ht and cycle_state.  All uses changed to mention
76858         fts_cycle.ht and fts_cycle.state.
76859         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76860         fts.c, with the following changes:
76861         (setup_dir, free_dir): New functions.
76862         (enter_dir): Now returns bool.  Return true if successful, false
76863         if memory exhausted.  All callers changed.
76864         Do not bother partly cleaning up on
76865         memory allocation failure; that is free_dir's job.
76866         However, free ad if hash_insert fails, to avoid memory leak.
76867         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76868         fts->fts_options to see which union member to use.
76869
76870 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76873         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76874
76875 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76876
76877         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76878
76879 2005-05-20  Jim Meyering  <jim@meyering.net>
76880
76881         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76882         Now a macro, to pacify GCC.
76883
76884 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76885
76886         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76887         of -1.
76888
76889 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76890
76891         * lib/chown.c (rpl_chown): Return -1 on failure.
76892
76893 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76896         Don't check for stddef.h.
76897         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76898         don't use its results.
76899         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76900         since we include them unconditionally.  Don't require
76901         AM_STDBOOL_H, since stdbool is a prerequisite.
76902         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76903         since we assume C89 or better.
76904         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76905         as we don't use their results.
76906         Don't check for fchdir, memmove, memset, strrchr, as we use
76907         them unconditionally.
76908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76909         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76910
76911 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76912
76913         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76914         Include <stddef.h> unconditionally, since we assume C89 now.
76915         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76916         * lib/fts.c: Include fts_.h first, to check interface.
76917         Do not include intprops.h; no longer needed.
76918         Include cycle-check.h and hash.h, since fts_.h no longer does.
76919         Remove unnecessary casts of closedir to void.
76920         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76921         decide whether to decrement nlinks.
76922         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76923         (FTS): Use struct hash_table * instead of Hash_table, so that
76924         we no longer need to include hash.h here.
76925
76926 2005-05-18  Jim Meyering  <jim@meyering.net>
76927
76928         * modules/dirfd (License): Change to LGPL.  Most of the code
76929         is already in the public domain.
76930
76931 2005-05-18  Jim Meyering  <jim@meyering.net>
76932
76933         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76934         Reported by Yoann Vandoorselaere.
76935
76936 2005-05-17  Jim Meyering  <jim@meyering.net>
76937
76938         * m4/fts.m4: New file, from coreutils.
76939
76940 2005-05-17  Jim Meyering  <jim@meyering.net>
76941
76942         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76943
76944 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         Sync from coreutils.
76947         * m4/unlinkdir.m4: New file.
76948
76949 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         Sync from coreutils.
76952         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76953         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76954         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76955         White space changes only.
76956         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76957         special.
76958         * lib/yesno.c: Include getline.h, not ctype.h.
76959         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76960         Use getline to remove arbitrary restriction on response length.
76961
76962 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * config/srclist-update: Spell out "Street" in FSF postal
76965         mail address; this is the style the FSF seems to prefer.
76966
76967         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76968         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76969         this updates FSF postal mail address.
76970
76971         Sync from coreutils.
76972         * modules/unlinkdir: New file.
76973         * modules/yesno (Depends-on): Add getline.
76974         * MODULES.html.sh (File system functions): Add unlinkdir.
76975
76976 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76979         lib/strsep.h:
76980         Change the initial comment to refer to GPL, not LGPL.
76981         gnulib-tool will change it to LGPL as needed.
76982
76983         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76984         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76985         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76986         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76987         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76988         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76989         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76990         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76991         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76992         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76993         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76994         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76995         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76996         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76997         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76998         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76999         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77000         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77001         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77002         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77003         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77004         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77005         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77006         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77007         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77008         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77009         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77010         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77011         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77012         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77013         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77014         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77015         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77016         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77017         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77018         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77019         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77020         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77021         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77022         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77023         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77024         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77025         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77026         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77027         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77028         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77029         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77030         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77031         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77032         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77033         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77034         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77035         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77036         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77037         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77038         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77039         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77040         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77041         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77042         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77043         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77044         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77045         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77046         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77047         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77048         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77049         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77050         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77051         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77052         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77053         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77054         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77055         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77056         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77057         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77058         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77059         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77060         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77061         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77062         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77063         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77064         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77065         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77066         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77067         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77068         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77069         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77070         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77071         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77072         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77073         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77074         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77075         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77076         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77077         lib/yesno.c, lib/yesno.h:
77078         Update FSF postal mail address.
77079
77080 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77083         tests/test-memmem.c, tests/test-stpncpy.c:
77084         Update FSF postal mail address.
77085
77086 2005-05-13  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77089         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77090         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77091         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77092         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77093         Add support for 64-bit integers in the MSVC compiler.
77094
77095 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77096
77097         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77098
77099 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77100
77101         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77102
77103 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * doc/getdate.texi (General date syntax): Don't say that date
77106         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77107         Problem reported by Nic Ferrier.
77108
77109 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77110
77111         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77112         specified in ai_socktype. Fix invalid ai_protocol
77113         check. ai_protocol is usually set to 0 or depending on
77114         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77115         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77116         ai_socktype / ai_protocol in the returned addrinfo structure.
77117
77118 2005-05-10  Simon Josefsson  <jas@extundo.com>
77119
77120         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77121         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77122
77123 2005-05-10  Karl Berry  <karl@gnu.org>
77124
77125         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77126         (from http://www.gnu.org/licenses).
77127         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77128         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77129         fdl.texi suffices.
77130
77131 2005-05-10  Karl Berry  <karl@gnu.org>
77132
77133         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77134         (COPYING.DOC): remove.
77135
77136         * config/srclist-update: new FSF address.
77137
77138 2005-05-10  Derek Price  <derek@ximbiot.com>
77139
77140         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77141         possible.
77142
77143 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77144             Bruno Haible  <bruno@clisp.org>
77145
77146         * modules/inet_ntop: New file.
77147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77148         inet_ntop.
77149
77150 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77151             Bruno Haible  <bruno@clisp.org>
77152
77153         * m4/inet_ntop.m4: New file.
77154
77155 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77156             Bruno Haible  <bruno@clisp.org>
77157
77158         * lib/inet_ntop.h: New file.
77159         * lib/inet_ntop.c: New file, from glibc with modifications.
77160
77161 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * modules/time_r (License): Change to LGPL.
77164         * modules/extensions (License): Change to LGPL.  Actually,
77165         the license is more permissive than that, but currently gnulib-tool
77166         doesn't know how to handle more-permissive licenses.
77167
77168         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77169         Problem reported by Dave Love.
77170
77171 2005-05-08  Jim Meyering  <jim@meyering.net>
77172
77173         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77174         blank.
77175
77176 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * modules/argmatch (Depends-on): Add stdbool.
77179         * modules/backupfile (Depends-on): Likewise.
77180         * modules/chdir-long (Depends-on): Likewise.
77181         * modules/closeout (Depends-on): Likewise.
77182         * modules/cycle-check (Depends-on): Likewise.
77183         * modules/dirname (Depends-on): Likewise.
77184         * modules/fnmatch (Depends-on): Likewise.
77185         * modules/fsusage (Depends-on): Likewise.
77186         * modules/fwriteerror (Depends-on): Likewise.
77187         * modules/getcwd (Depends-on): Likewise.
77188         * modules/getloadavg (Depends-on): Likewise.
77189         * modules/hard-locale (Depends-on): Likewise.
77190         * modules/makepath (Depends-on): Likewise.
77191         * modules/mountlist (Depends-on): Likewise.
77192         * modules/nanosleep (Depends-on): Likewise.
77193         * modules/posixtm (Depends-on): Likewise.
77194         * modules/quotearg (Depends-on): Likewise.
77195         * modules/readtokens (Depends-on): Likewise.
77196         * modules/readtokens0 (Depends-on): Likewise.
77197         * modules/readutmp (Depends-on): Likewise.
77198         * modules/save-cwd (Depends-on): Likewise.
77199         * modules/strftime (Depends-on): Likewise.
77200         * modules/userspec (Depends-on): Likewise.
77201         * modules/utimecmp (Depends-on): Likewise.
77202         * modules/xgetcwd (Depends-on): Likewise.
77203         * modules/xnanosleep (Depends-on): Likewise.
77204         * modules/xstrtod (Depends-on): Likewise.
77205         * modules/yesno (Depends-on): Likewise.
77206
77207 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77210         needless checks.
77211
77212 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77213
77214         Merge from coreutils.  Among other things,
77215         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77216         * lib/fd-safer.c: New file.
77217         * lib/fcntl-safer.h, open-safer.c: Remove.
77218         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77219         * lib/dup-safer.c: Include unistd-safer.h first.
77220         Don't include errno.h.
77221         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77222         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77223         * lib/file-type.c: Rely on file-type.h change.
77224         * lib/getloadavg.c: Include unistd-safer.h.
77225         (getloadavg): Use safer open.
77226         * lib/getusershell.c: Include "stdio-safer.h".
77227         (getusershell): Use safer fopen.
77228         * lib/long-options.c (long_options): Use NULL rather than 0.
77229         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77230         'free'.
77231         * lib/modechange.c: Likewise.
77232         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77233         (MODE_DONE): New constant.
77234         (struct mode_change): Remove 'next' member.
77235         (make_node_op_equals): New function; like the old one of the
77236         same name, except it allocates an array.
77237         (mode_compile, mode_create_from_ref): Use it.
77238         (mode_compile): Allocate result as an array, not a linked list.
77239         Parse octal string ourself, so that we catch mistakes like "+0".
77240         (mode_adjust): Arg is an array, not a linked list.
77241         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77242         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77243         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77244         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77245         Remove.  This is now stat-macros.h's job.
77246         (talloc): Remove.  All callers replaced by xalloc, so that
77247         our invokers don't have to worry about reporting memory failures.
77248         (make_node_op_equals): Remove.
77249         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77250         New constants.
77251         (struct mode_change): Moved here from modechange.h.
77252         (mode_append_entry): Remove.
77253         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77254         apps to have incorrect behavior.  Use simpler algorithm for head
77255         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77256         Detect more invalid usages rather than having somewhat-random behavior.
77257         Don't insert an "a=" action, as that leads to incorrect behavior.
77258         (mode_compile, mode_create_from_ref): Return NULL on error instead
77259         of an enum, since now there's only one way to have an error.  All
77260         callers changed.
77261         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77262         at the correct time.  Simplify calculation of "+u" and its ilk.
77263         Don't mishandle "+X".
77264         (mode_free): Remove "register" and localize decls.
77265         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77266         (struct mode_change): Move to modechange.c; callers don't
77267         need to see this stuff.
77268         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77269         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77270         (mode_change, mode_adjust): Reflect the new signatures noted above.
77271         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77272         that might redefine system include files.
77273         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77274         (my_usleep): Use NULL rather than (void *) 0.
77275         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77276         Use siginterrupt to specify that system calls should be interrupted.
77277         (rpl_nanosleep): Move initialization of suspended closer to call of
77278         my_usleep.
77279         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77280         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77281         (desirable_utmp_entry): New function.
77282         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77283         using x2nrealloc, to simplify logic.
77284         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77285         size calculation.  Do not assume utmp file is a regular file.
77286         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77287         (READ_UTMP_CHECK_PIDS): New constant.
77288         * lib/save-cwd.c: Include unistd-safer.h.
77289         (save_cwd): Use fd_safer.
77290         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77291         [!_LIBC] Include "stat-macros.h" instead.
77292         * lib/unistd-safer.h (fd_safer): New decl.
77293
77294 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         * modules/getloadavg (Depends-on): Add unistd-safer.
77297         * modules/getusershell (Depends-on): Add stdio-safer.
77298         * modules/lstat (Depends-on): Remove xalloc.
77299         * modules/mkstemp (Depends-on): Add stat-macros.
77300         * modules/modechange (Depends-on): Remove xstrtol.
77301         Add stat-macros, xalloc.
77302         * modules/save-cwd (Depends-on): Add unistd-safer.
77303         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77304         * modules/unistd-safer (Files): Add lib/fd-safer.c
77305         (Makefile.am): Remove lib_SOURCES.
77306
77307         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77308         Remove fcntl-safer; unistd-safer supersedes it.
77309
77310 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77313         AC_HEADER_STAT.
77314         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77315         (gl_PREREQ_CHOWN): Remove.
77316         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77317         it.  Don't require AC_HEADER_STAT.
77318         (gl_PREREQ_LSTAT): Remove.
77319         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77320         Don't require AC_HEADER_STAT.
77321         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77322         (gl_PREREQ_RMDIR): Remove.
77323         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77324         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77325         the stat-macros module a prerequisite.
77326         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77327         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77328         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77329         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77330         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77331         variable names.
77332         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77333         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77334         variable prefixes.
77335         * m4/fcntl-safer.m4: Remove.
77336         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77337         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77338         Invoke gl_PREREQ_FD_SAFER.
77339         (gl_PREREQ_FD_SAFER): New macro.
77340         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77341         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77342         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77343         Remove duplicate call to AC_LIBOBJ(readutmp).
77344         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77345
77346         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77347         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77348
77349 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * MODULES.html.sh (Misc): Add byteswap.
77352
77353 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77354
77355         * modules/getcwd (Depends-on): Add extensions.
77356         * modules/openat (Depends-on): Likewise.
77357
77358 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77359
77360         * modules/byteswap: New file.
77361
77362 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77363
77364         * m4/byteswap.m4: New file.
77365
77366 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77367
77368         * lib/byteswap_.h: New file.
77369
77370 2005-04-25  Karl Berry  <karl@gnu.org>
77371
77372         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77373
77374 2005-04-25  Albert Chin  <china@thewrittenword.com>
77375
77376         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77377         Toolkit C bug.
77378
77379 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77380
77381         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77382         (func_ln_if_changed): Remove forcibly for no error message
77383         in case file does not exist.
77384
77385 2005-04-19  Simon Josefsson  <jas@extundo.com>
77386
77387         * gnulib-tool (Options): Make --symlink mean --symbolic.
77388
77389 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77390
77391         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77392
77393 2005-04-16  Simon Josefsson  <jas@extundo.com>
77394
77395         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77396
77397 2005-04-15  Simon Josefsson  <jas@extundo.com>
77398
77399         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77400
77401 2005-04-15  Simon Josefsson  <jas@extundo.com>
77402
77403         * gnulib-tool: Rename --symlink to --symbolic.
77404
77405 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77406
77407         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77408         symbolic links to files instead of copying/moving.  Add --aux-dir,
77409         specifying directory relative --dir where auxiliary build tools
77410         are placed.
77411
77412 2005-04-14  Bruno Haible  <bruno@clisp.org>
77413
77414         * modules/allocsa (License): Change to LGPL.
77415         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77416
77417 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77420         that "UTC +1 second" continues to work.  Problem reported
77421         by Dmitry V. Levin.
77422         (relunit_snumber): New rule.
77423         (relunit): Use it.
77424
77425 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * lib/getdate.y (universal_time_zone_table): New constant.
77428         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77429         universal_time_zone_table.
77430         (lookup_zone): Prefer universal_time_zone_table to
77431         local_time_zone_table, so that "GMT" time stamps are allowed in
77432         London during the summer.  Problem reported by Ian Abbott.
77433
77434 2005-04-12  Jim Meyering  <jim@meyering.net>
77435
77436         * lib/human.c (humblock): Set *options even when returning due to
77437         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77438         warning from gcc-4.
77439
77440 2005-04-09  Jim Meyering  <jim@meyering.net>
77441
77442         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77443         -Wuninitialized: initialize tm0.tm_year.
77444
77445 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77448         count, since there's no maximum.  All uses changed.
77449         Add member dsts_seen.
77450         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77451         not being INT_MAX.
77452         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77453         Use pc_rels_seen to decide whther a date is absolute.
77454
77455         * lib/getdate.y (number): Don't overwrite year.
77456         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77457         check.
77458
77459 2005-04-02  Simon Josefsson  <jas@extundo.com>
77460
77461         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77462         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77463
77464 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77465
77466         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77467         where no absolute path name can be longer than PATH_MAX.
77468
77469 2005-03-27  Jim Meyering  <jim@meyering.net>
77470
77471         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77472
77473 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77474
77475         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77476         "one's complement" -> "ones' complement" in comment, as per Knuth.
77477         "value of type" -> "type or expression" in comment.
77478         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77479
77480 2005-03-26  Jim Meyering  <jim@meyering.net>
77481
77482         Comment nits.
77483         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77484         Correct typos: s/or/of/.
77485
77486 2005-03-26  Jim Meyering  <jim@meyering.net>
77487
77488         * modules/check-include-files: Move to ../ and rename to...
77489         * check-module: ...this.
77490
77491 2005-03-25  Jim Meyering  <jim@meyering.net>
77492
77493         * modules/xvasprintf (Files): Add xalloc.h.
77494
77495 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * modules/gettext (Files): config/config.rpath ->
77498         build-aux/config.rpath
77499         * modules/iconv (Files): Likewise.
77500         Problem reported by Oskar Liljeblad.
77501
77502 2005-03-23  Jim Meyering  <jim@meyering.net>
77503
77504         * modules/check-include-files: New script to check for
77505         missing dependencies, multiple includes, etc.
77506
77507         * modules/c-strtold (Depends-on): Add xalloc.
77508         * modules/c-strtod (Depends-on): Add xalloc.
77509         * modules/hash (Depends-on): Add xalloc.
77510         (Files): Remove lib/xalloc.h.
77511
77512         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77513         * modules/userspec (Files): Add lib/inttostr.h.
77514
77515 2005-03-23  Jim Meyering  <jim@meyering.net>
77516
77517         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77518
77519 2005-03-22  Jim Meyering  <jim@meyering.net>
77520
77521         * modules/stat-macros: New module.
77522         * modules/canonicalize, modules/euidaccess, modules/file-type,
77523         * modules/filemode, modules/lchown, modules/makepath,
77524         * modules/rmdir, modules/stat: Depend on new stat-macros module
77525         rather than listing lib/stat-macros.h manually.
77526         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77527
77528 2005-03-22  Jim Meyering  <jim@meyering.net>
77529
77530         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77531
77532 2005-03-22  Bruno Haible  <bruno@clisp.org>
77533
77534         * config/srclist.txt: Replace target directory 'config' with
77535         'build-aux'.
77536         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77537         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77538         ../build-aux/.
77539
77540 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * modules/chdir-long (Depends-on): Add mempcpy.
77543
77544         * modules/acl, modules/backupfile, modules/c-strtod,
77545         modules/c-strtold, modules/canon-host, modules/canonicalize,
77546         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77547         modules/exclude, modules/exitfail, modules/file-type,
77548         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77549         modules/getdate, modules/getline, modules/getpagesize,
77550         modules/getpass, modules/getugroups, modules/group-member,
77551         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77552         modules/inttostr, modules/long-options, modules/makepath,
77553         modules/md5, modules/memcasecmp, modules/memcoll,
77554         modules/modechange, modules/mountlist, modules/path-concat,
77555         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77556         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77557         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77558         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77559         modules/strftime, modules/strndup, modules/strverscmp,
77560         modules/timespec, modules/unlocked-io, modules/userspec,
77561         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77562         modules/yesno:
77563         Remove lib_SOURCES line from Makefile.am section, as this is now
77564         done automatically by the corresponding Autoconf macro.
77565
77566 2005-03-21  Jim Meyering  <jim@meyering.net>
77567
77568         Changes imported from coreutils.
77569
77570         * lib/cycle-check.c: Don't include xalloc.h.
77571
77572         * lib/path-concat.c: Don't include assert.h.
77573         (path_concat): Remove assertion that would have triggered
77574         for ABASE starting with more than one slash.
77575         Reported by Andreas Schwab.
77576
77577         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77578         properly when ABASE is an absolute file name.
77579         Correct the description of this function.
77580         Include <assert.h>.
77581         Add an assertion and a test driver.
77582         This fixes a bug introduced on 2004-07-02.
77583         Andreas Schwab reported the resulting failure of cp --parents:
77584         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77585
77586 2005-03-21  Jim Meyering  <jim@meyering.net>
77587
77588         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77589         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77590
77591 2005-03-21  Jim Meyering  <jim@meyering.net>
77592         and  Paul Eggert  <eggert@cs.ucla.edu>
77593
77594         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77595         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77596         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77597         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77598         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77599         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77600         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77601         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77602         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77603         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77604         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77605         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77606         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77607         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77608         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77609         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77610         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77611         for these modules.
77612
77613 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77616         (which shouldn't happen), generate nothing instead of returning 0
77617         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77618
77619 2005-03-16  Bruno Haible  <bruno@clisp.org>
77620
77621         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77622         HAVE_LONGLONG_64BIT.
77623
77624 2005-03-16  Bruno Haible  <bruno@clisp.org>
77625
77626         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77627         HAVE_LONGLONG_64BIT.
77628
77629 2005-03-16  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77632         HAVE_LONGLONG_64BIT.
77633
77634 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77637         reliably distinguish strftime failure from empty output on POSIX
77638         hosts.
77639
77640 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77643         (iconv_string): Don't guess a size-zero buffer, as that might cause
77644         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77645         result would be 'too large', where 'too large' is (heuristically)
77646         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77647         overflow concerns.  This will prevent some unwanted malloc failures
77648         when the inputs are very large.
77649
77650 2005-03-15  Karl Berry  <karl@gnu.org>
77651
77652         * config/srclist.txt (config.rpath): from gettext.
77653         * config/config.rpath: update.
77654
77655 2005-03-15  Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77658         to 'negate'.
77659
77660         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77661         variable.
77662
77663         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77664         results.
77665
77666 2005-03-14  Simon Josefsson  <jas@extundo.com>
77667
77668         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77669         <fx@gnu.org>.
77670
77671 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77674         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77675         intprops.h.
77676         * lib/strtol.c: Likewise.
77677
77678 2005-03-14  Jim Meyering  <jim@meyering.net>
77679
77680         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77681         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77682         to be nonzero so that we (and caller) can detect the difference
77683         between a valid zero-length expansion and an error return, even
77684         when the underlying strftime fails before writing anything into
77685         that location.
77686
77687 2005-03-14  Bruno Haible  <bruno@clisp.org>
77688
77689         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77690         Update from GNU gettext 0.14.3.
77691
77692 2005-03-10  Jim Meyering  <jim@meyering.net>
77693
77694         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77695
77696 2005-03-10  Jim Meyering  <jim@meyering.net>
77697
77698         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77699         so that this module works on systems without fchdir.
77700
77701 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         Factor int-properties macros into a single file, except for
77704         glibc-related files.
77705         * lib/intprops.h: New file.
77706         * lib/getloadavg.c: Include it instead of limits.h.
77707         (INT_STRLEN_BOUND): Remove.
77708         * lib/human.c: Include intprops.h.
77709         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77710         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77711         302/1000.
77712         * lib/inttostr.h: Include intprops.h instead of limits.h.
77713         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77714         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77715         for consistency with intprops.h.
77716         (time_t_is_integer, twos_complement_arithmetic): Use them.
77717         * lib/sig2str.h: Include <signal.h>, intprops.h.
77718         (INT_STRLEN_BOUND): Remove.
77719         * lib/strftime.c (TYPE_SIGNED): Remove.
77720         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77721         * lib/strtol.c: Adjust comments to match intprops.h.
77722         * lib/userspec.c: Include intprops.h.
77723         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77724         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77725         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77726         instead of rolling our own expressions.
77727         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77728
77729         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77730         instead of int.
77731         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77732         the right thing even if adding 1900 would overflow.  Similarly
77733         for tm_mon + 1 and tm_yday + 1.
77734         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77735         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77736         (DO_SIGNED_NUMBER): New macro.
77737         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77738
77739 2005-03-07  Bruno Haible  <bruno@clisp.org>
77740
77741         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77742
77743 2005-03-07  Bruno Haible  <bruno@clisp.org>
77744
77745         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77746
77747 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77748
77749         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77750         (func_import): Only replace files via --import when they have actually
77751         changed.
77752
77753 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77754
77755         * m4/mmap-anon.m4: New file.
77756         * m4/pagealign_alloc.m4: New file.
77757
77758 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77759             Bruno Haible  <bruno@clisp.org>
77760
77761         * modules/pagealign_alloc: New file.
77762         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77763
77764 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77765             Bruno Haible  <bruno@clisp.org>
77766
77767         * lib/pagealign_alloc.h: New file.
77768         * lib/pagealign_alloc.c: New file.
77769
77770 2005-03-03  Bruno Haible  <bruno@clisp.org>
77771
77772         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77773         Use an all-permissive copyright notice, recommended by RMS.
77774
77775 2005-03-02  Bruno Haible  <bruno@clisp.org>
77776
77777         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77778         of AIX, the replacement has to be done only after <string.h> is
77779         included, therefore not in config.h. stpncpy.h does the replacement,
77780         and stpncpy.c uses it.
77781
77782 2005-03-02  Bruno Haible  <bruno@clisp.org>
77783
77784         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77785         stpncpy.c uses it.
77786
77787 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77790         The workaround isn't strictly needed for POSIX conformance, and
77791         it's too much of a pain to configure and maintain.  We'll ask
77792         people to fix their kernels instead.
77793         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77794         (NANOSLEEP_BUG_WORKAROUND): Remove.
77795         (xnanosleep): Remove the workaround.
77796
77797 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77798
77799         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77800         Reported by Derek Price.
77801         (Include): Add "timespec.h".
77802
77803         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77804
77805 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77806
77807         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77808         to detect nanosleep bug.
77809
77810 2005-03-01  Bruno Haible  <bruno@clisp.org>
77811
77812         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77813
77814 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77815
77816         * modules/gethrxtime: New file.
77817         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77818         (Depends-on): Add gethrxtime.
77819         (configure.ac): Add gl_XNANOSLEEP.
77820         (Makefile.am): Remove lib_SOURCES line.
77821
77822 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77825         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77826
77827 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77830         * lib/timespec.h (gettime): Return void, since it always
77831         succeeds now.  All uses changed.
77832         * lib/gettime.c (gettime): Likewise.
77833         [HAVE_NANOTIME]: Prefer nanotime.
77834         Assume gettimeofday succeeds, as POSIX requires.
77835         Assime time () succeeds, since other code already does.
77836         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77837         (timespec_subtract): Remove.
77838         (NANOSLEEP_BUG_WORKAROUND): New constant.
77839         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77840         things considerably.  Use it only on GNU/Linux hosts, since the
77841         workaround shouldn't be needed elsewhere.
77842
77843 2005-02-24  Bruno Haible  <bruno@clisp.org>
77844
77845         * modules/gettext (Files): Add m4/glibc2.m4.
77846
77847 2005-02-24  Bruno Haible  <bruno@clisp.org>
77848
77849         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77850         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77851         * m4/progtest.m4:
77852         Update from GNU gettext 0.14.2.
77853         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77854
77855 2005-02-24  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77858         * lib/config.charset: Update from GNU gettext 0.14.2.
77859
77860 2005-02-24  Bruno Haible  <bruno@clisp.org>
77861
77862         * lib/gettext.h: Update from GNU gettext 0.14.2.
77863
77864 2005-02-23  Simon Josefsson  <jas@extundo.com>
77865
77866         * m4/iconvme.m4: New file.
77867
77868 2005-02-23  Jim Meyering  <jim@meyering.net>
77869
77870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77871         change.
77872         Thanks to Bruno Haible for catching it.
77873
77874 2005-02-22  Simon Josefsson  <jas@extundo.com>
77875
77876         * modules/iconvme: New file.
77877
77878         * MODULES.html.sh: Add iconvme.
77879
77880 2005-02-22  Simon Josefsson  <jas@extundo.com>
77881
77882         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77883
77884 2005-02-22  Simon Josefsson  <jas@extundo.com>
77885
77886         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77887
77888 2005-02-22  Jim Meyering  <jim@meyering.net>
77889
77890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77891         s/ifndef/ifdef/.
77892
77893 2005-02-20  Neil Conway  <neilc@samurai.com>
77894
77895         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77896         returned by OSX/Darwin if the specified buffer is not large
77897         enough for the hostname.
77898
77899 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77900
77901         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77902         pass it to _help, otherwise the latter coredumps trying to
77903         dereference state.root_argp.
77904
77905 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * modules/chdir-long (Depends-on): Add memrchr.
77908         * modules/memrchr (Files): Add lib/memrchr.h.
77909         (Include): "memrchr.h".
77910
77911 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77912
77913         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77914
77915 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         * lib/memrchr.h: New file.
77918         * lib/chdir-long.c: Include it.
77919         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77920         Don't bother including stddef.h.
77921
77922 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77923
77924         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77925         inclusion.
77926         Include <sys/types.h>, for dev_t.
77927         (ME_DUMMY, ME_REMOTE): Move from here....
77928         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77929         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77930         Dmitry V. Levin.
77931         Include mountlist.h first, to test the interface.
77932
77933 2005-01-29  Bruno Haible  <bruno@clisp.org>
77934
77935         * lib/progname.c (program_name): Initialize.
77936         Needed when linking statically on MacOS X.
77937
77938 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77939
77940         Sync from coreutils.
77941         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77942         (Depends-on): Add c-strtod.
77943         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77944
77945 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         Sync from coreutils.
77948         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77949
77950         Remove files that are specific to coreutils.
77951         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77952
77953 2005-01-28  Bruno Haible  <bruno@clisp.org>
77954
77955         * modules/javacomp: New file.
77956         * MODULES.html.sh (Java): Add javacomp.
77957
77958 2005-01-28  Bruno Haible  <bruno@clisp.org>
77959
77960         * m4/javacomp.m4: New file, from GNU gettext.
77961
77962 2005-01-28  Bruno Haible  <bruno@clisp.org>
77963
77964         * lib/javacomp.sh.in: New file, from GNU gettext.
77965         * lib/javacomp.h: New file, from GNU gettext.
77966         * lib/javacomp.c: New file, from GNU gettext.
77967
77968 2005-01-26  Simon Josefsson  <jas@extundo.com>
77969
77970         * lib/gai_strerror.c: Use GPL in header.
77971
77972 2005-01-26  Bruno Haible  <bruno@clisp.org>
77973
77974         * modules/javaexec: New file.
77975         * MODULES.html.sh (Java): Add javaexec.
77976
77977 2005-01-26  Bruno Haible  <bruno@clisp.org>
77978
77979         * m4/javaexec.m4: New file, from GNU gettext.
77980
77981 2005-01-26  Bruno Haible  <bruno@clisp.org>
77982
77983         * lib/javaexec.sh.in: New file, from GNU gettext.
77984         * lib/javaexec.h: New file, from GNU gettext.
77985         * lib/javaexec.c: New file, from GNU gettext.
77986
77987 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77988
77989         * modules/lchown (Depends-on): Remove lchown.h
77990
77991 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77992
77993         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77994         must be defined if the header file was not found, in order
77995         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77996
77997 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77998
77999         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78000         initializers for struct pentry_state.
78001         (__argp_error): Check return value of __asprintf
78002         (__argp_failure): Translate error message
78003
78004         * lib/argp-parse.c: Removed braces around the expansion of N_()
78005
78006 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78009         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78010         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78011         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78012         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78013         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78014         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78015         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78016         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78017         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78018         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78019         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78020         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78021         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78022         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78023         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78024         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78025         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78026         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78027         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78028         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78029         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78030         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78031         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78032         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78033         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78034         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78035         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78036         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78037         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78038         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78039         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78040         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78041         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78042         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78043         Use an all-permissive copyright notice, recommended by RMS.
78044
78045 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * modules/chdir-long (Depends-on): Remove mempcpy.
78048
78049 2005-01-21  Jim Meyering  <jim@meyering.net>
78050
78051         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78052         same value as for Solaris 9.
78053
78054         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78055         component length.  This included changing the parameter to be
78056         of type `char *' rather than `char const *'.
78057         * lib/chdir-long.h (chdir_long): Update prototype.
78058
78059         * lib/openat.c (fdopendir, fstatat): New functions.
78060         * lib/openat.h: Include headers required for use of DIR and struct
78061         stat.
78062         [AT_SYMLINK_NOFOLLOW]: Define.
78063         (fdopendir, fstatat): Add prototypes.
78064
78065 2005-01-21  Bruno Haible  <bruno@clisp.org>
78066
78067         * modules/classpath: New file.
78068         * MODULES.html.sh (Java): Add classpath.
78069
78070 2005-01-21  Bruno Haible  <bruno@clisp.org>
78071
78072         * lib/classpath.h: New file, from GNU gettext.
78073         * lib/classpath.c: New file, from GNU gettext.
78074
78075 2005-01-20  Simon Josefsson  <jas@extundo.com>
78076
78077         * modules/version-etc-fsf: New file.
78078
78079 2005-01-20  Simon Josefsson  <jas@extundo.com>
78080
78081         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78082         * lib/version-etc.c: Remove version_etc_copyright.
78083         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78084         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78085
78086 2005-01-20  Simon Josefsson  <jas@extundo.com>
78087
78088         * lib/base64.h (isbase64): Add.
78089
78090         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78091         using a unsigned prototype, don't inline.
78092         (base64_decode): Use it.
78093
78094 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78097         it.
78098
78099 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         * lib/save-cwd.c (save_cwd): Remove code to support the case
78102         where fchdir is missing or flaky.
78103
78104 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78105
78106         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78107
78108 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78111         AC_LIBSOURCES now does this.
78112         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78113         with new ullong_max module.
78114
78115 2005-01-19  Bruno Haible  <bruno@clisp.org>
78116
78117         * modules/sh-quote: New file.
78118         * MODULES.html.sh (Executing programs): Add sh-quote.
78119
78120 2005-01-19  Bruno Haible  <bruno@clisp.org>
78121
78122         * lib/sh-quote.h: New file, from GNU gettext.
78123         * lib/sh-quote.c: New file, from GNU gettext.
78124
78125 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         Merge from coreutils.
78128         * m4/ullong_max.m4: New file.
78129         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78130         (gl_MACROS): Assume localeconv exists.
78131
78132 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         Merge changes from coreutils, as described below in several
78135         changelogs dated today.
78136
78137         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78138         (O_DIRECTORY): Remove; not needed here, since "." must be
78139         a directory.  All uses removed.
78140         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78141         universal on Suns, and we also need to test for IRIX.
78142         Revamp code to use 'if' rather than '#if'.
78143         Avoid unnecessary comparison of cwd->desc to 0.
78144
78145         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78146         for known valid error numbers rather than observed invalid ones.
78147
78148 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * modules/ullong_max: New file.
78151
78152         * modules/chdir-long, modules/openat: New files.
78153         * modules/save-cwd (Depends-on): Depend on chdir-long.
78154         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78155
78156 2005-01-18  Jim Meyering  <jim@meyering.net>
78157
78158         Merge from coreutils.
78159         * m4/chdir-long.m4, m4/openat.m4: New files.
78160         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78161         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78162         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78163         is sane and DOES follow symlinks.  Besides, testing 20 different
78164         systems found no broken chown implementations.
78165         Prompted by a change in rsync's copy of this macro.
78166         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78167
78168         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78169
78170         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78171         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78172         NULL-means-set-to-current-time semantics.
78173         Remove temporary file immediately, rather than waiting
78174         for configure's at-exit trap code to do it.
78175
78176 2005-01-18  Jim Meyering  <jim@meyering.net>
78177
78178         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78179
78180         * lib/utimens.c (futimens): Account for the fact that futimes
78181         can also fail with errno == ENOSYS or errno == ENOENT.
78182         Patch from Dmitry V. Levin.
78183
78184         Change the name of the robust chdir function from chdir to chdir_long.
78185         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78186         (restore_cwd): Use chdir_long, not chdir.
78187         * lib/chdir-long.c: Renamed from chdir.c.
78188         * lib/chdir-long.h: Renamed from chdir.h.
78189         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78190         Hurd.
78191
78192 2005-01-18  Bruno Haible  <bruno@clisp.org>
78193
78194         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78195         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78196         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78197         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78198         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78199         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78200         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78201         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78202         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78203         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78204         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78205         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78206         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78207         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78208         Use an all-permissive copyright notice, recommended by RMS.
78209
78210 2005-01-18  Bob Proulx  <bob@proulx.com>
78211
78212         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78213         simplify offsetof() macro construct to avoid compile failure with
78214         native HP-UX 11.0 ANSI C compiler.
78215
78216 2005-01-17  Bruno Haible  <bruno@clisp.org>
78217
78218         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78219         redundant because stpncpy.m4 takes care of it.
78220
78221 2005-01-17  Bruno Haible  <bruno@clisp.org>
78222
78223         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78224
78225 2005-01-17  Bruno Haible  <bruno@clisp.org>
78226
78227         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78228         used.
78229
78230 2005-01-17  Bruno Haible  <bruno@clisp.org>
78231
78232         * lib/fwriteerror.h (fwriteerror): Change specification to include
78233         fclose.
78234         * lib/fwriteerror.c: Include <stdbool.h>.
78235         (fwriteerror): At the end, close the file stream. Record whether
78236         stdout was already closed.
78237
78238 2005-01-17  Bruno Haible  <bruno@clisp.org>
78239
78240         * lib/execute.c (environ): Declare if needed.
78241         * lib/pipe.c (environ): Likewise.
78242         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78243
78244 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78245
78246         * modules/argp: Depend on vsnprintf
78247
78248 2005-01-10  Jim Meyering  <jim@meyering.net>
78249
78250         * modules/closeout (Depends-on): Add atexit.
78251
78252 2005-01-06  Bruno Haible  <bruno@clisp.org>
78253
78254         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78255
78256 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78259         definitions to be after all include files, to avoid collisions.
78260         Problem reported by Bob Proulx.
78261
78262 2005-01-04  Jim Meyering  <jim@meyering.net>
78263
78264         Changes imported from coreutils.
78265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78266         as the mkstemp template, use a temporary directory and an
78267         8.3-friendly template to avoid trouble on systems like DJGPP.
78268         Reported by Juan M. Guerrero via Stepan Kasal.
78269         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78270         close. Remove the temporary directory right away, rather than waiting
78271         for configure's at-exit trap code to do it.
78272         Suggestion from Stepan Kasal.
78273
78274 2005-01-01  Simon Josefsson  <jas@extundo.com>
78275
78276         * gnulib-tool: Print #include directives when --import'ing.
78277
78278 2004-12-28  Simon Josefsson  <jas@extundo.com>
78279
78280         * tests/test-base64.c: Include required header files.  Remove
78281         unused variables.
78282
78283 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * modules/error (Depends-on): Remove gettext.
78286
78287 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78290         not needed.  This removes a dependency on the gettext module.
78291         [defined _LIBC]: Do not include <libintl.h>; not needed.
78292
78293 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78294
78295         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78296         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78297
78298 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78301         HAVE_DECL_STRTOLD.
78302
78303 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78304
78305         * modules/getdate (Depends-on): Remove alloca-opt.
78306
78307 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78310
78311 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * lib/argp-parse.c: Include <stddef.h>.
78314         (alignof, alignto): New macros.
78315         (parser_init): Don't assume that void * is aligned sufficiently
78316         for struct option.
78317
78318         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78319         need to extend the stack.
78320         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78321         large.
78322
78323 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78324
78325         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78326
78327 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78330         (2004-10-24) change.  Apparently this was a false alarm.
78331
78332         * modules/getdate: Depend on alloca-opt, not alloca.
78333
78334 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78337         Remove now-obsolete comment about AIX.
78338         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78339         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78340         (YYMAXDEPTH): New macro.
78341
78342 2004-12-18  Simon Josefsson  <jas@extundo.com>
78343
78344         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78345
78346 2004-12-18  Bruno Haible  <bruno@clisp.org>
78347
78348         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78349
78350 2004-12-18  Bruno Haible  <bruno@clisp.org>
78351
78352         * lib/fatal-signal.c (fatal_signals): Make non-const.
78353         (init_fatal_signals): New function.
78354         (uninstall_handlers, install_handlers): Ignore signals that were set to
78355         SIG_IGN.
78356         (at_fatal_signal): Call init_fatal_signals.
78357         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78358         SIG_IGN.
78359         Reported by Paul Eggert.
78360
78361 2004-12-18  Bruno Haible  <bruno@clisp.org>
78362
78363         * doc/alloca.texi: New file.
78364         * doc/alloca-opt.texi: New file.
78365
78366 2004-12-17  Jim Meyering  <jim@meyering.net>
78367
78368         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78369         Otherwise, install-sh could exit with improper exit status when
78370         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78371
78372 2004-12-16  Simon Josefsson  <jas@extundo.com>
78373
78374         * tests/test-base64.c: Add license.
78375
78376 2004-12-15  Stepan Kasal  <address@hidden>
78377
78378         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78379
78380 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         * modules/getcwd (Files): Add m4/d-ino.m4.
78383         Suggested by Mark D. Baushke.
78384
78385 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * lib/getdate.y (textint): New member "negative".
78388         (time_zone_hhmm): New function.
78389         Expect 14 shift-reduce conflicts, not 13.
78390         (o_colon_minutes): New rule.
78391         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78392         (yylex): Set the "negative" member of signed numbers.
78393
78394 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * doc/getdate.texi (Time of day items, Time zone items):
78397         Describe new formats +00:00, UTC+00:00.
78398
78399 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78400
78401         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78402         spurious "-l"s.  Problem reported by Stepan Kasal.
78403
78404 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78407         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78408
78409 2004-12-04  Simon Josefsson  <jas@extundo.com>
78410
78411         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78412         Vandoorselaere <yoann@prelude-ids.org>.
78413
78414 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         Changes imported from coreutils.
78417         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78418         exist.
78419         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78420
78421 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         Changes imported from coreutils.
78424         * lib/hard-locale.c: Assume <locale.h> exists.
78425         Include "strdup.h".
78426         (GLIBC_VERSION): New macro.
78427         (hard_locale): Assume setlocale exists.
78428         Rewrite to avoid #ifdef.
78429         Use strdup rather than malloc + strcpy.
78430         * lib/human.c: Assume <locale.h> exists.
78431         (human_readable): Assume localeconv exists.
78432
78433 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * modules/hard-locale (Depends-on): Add strdup.
78436
78437 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78438
78439         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78440         convert T2, not T.  (Imported from libc.)
78441
78442 2004-11-30  Simon Josefsson  <jas@extundo.com>
78443
78444         * modules/restrict (License): Change to LGPL.
78445
78446 2004-11-30  Simon Josefsson  <jas@extundo.com>
78447
78448         * m4/restrict.m4: Add copyright and copying conditions.
78449
78450 2004-11-30  Simon Josefsson  <jas@extundo.com>
78451
78452         * m4/base64.m4: New file.
78453
78454 2004-11-30  Simon Josefsson  <jas@extundo.com>
78455
78456         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78457         base64.
78458
78459         * tests/test-base64.c: New file.
78460
78461         * modules/base64: New file.
78462
78463 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78466         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78467
78468         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78469
78470 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78473         (__getcwd.c): Don't restore errno; glibc doesn't.
78474         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78475         first, falling back to our code only if its results look suspicious.
78476         Ensure that the resulting buffer is only as large as necessary.
78477
78478         * lib/readutmp.c: Include readutmp.h first.
78479         Include <errno.h>, since readutmp.h no longer does that.
78480         * lib/readutmp.h: Don't include <errno.h>,
78481         <sys/param.h>, <time.h>; not needed to establish interface.
78482         (errno): Remove decl.
78483         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78484         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78485         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78486
78487 2004-11-28  Simon Josefsson  <jas@extundo.com>
78488
78489         * lib/base64.h, base64.c: New file.
78490
78491 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78492
78493         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78494
78495 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78498         (Depends-on): Remove pathmax, same.  Add mempcpy.
78499         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78500         (Makefile.am): Append getcwd.h to lib_SOURCES.
78501         (Include): Add getcwd.h.
78502         (Maintainer): Change from Jim Meyering to "all, glibc",
78503         since getdate now uses intended-for-glibc code.
78504         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78505         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78506
78507 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78508
78509         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78510         HP's ANSI C compiler.
78511         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78512         Declaring int functions causes warnings on some modern systems and
78513         shouldn't be needed to compile on ancient ones.
78514         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78515         defined.
78516
78517         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78518         with the following changes.
78519         (__set_errno): Parenthesize properly.
78520         Include <stdbool.h>.
78521         (MIN, MAX, MATCHING_INO): New macros.
78522         (__getcwd): Define with prototype, not K&R form.
78523         Use heuristics to allocate default buffer on stack if possible.
78524         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78525         behavior, and to avoid the PATH_MAX limit when computing
78526         ../../../../...
78527         Use MATCHING_INO to compare inode number to file.
78528         Check for arithmetic overflow in size calculations.
78529         Fix bug in reallocation of dot array that caused getcwd to fail
78530         on directories nested deeper than 75.
78531         Be more careful about saving errno on error.
78532         Do not use realloc; use only free+malloc, as this is a bit
78533         more flexible and avoids a needless copy operation.
78534         Do not inspect st_dev and st_ino for symbolic links; POSIX
78535         doesn't specify the latter.
78536         Check for closedir errors.
78537         Avoid needless casts.
78538         Use "#ifdef weak_alias" around weak_alias, to be like other
78539         glibc code.
78540         The following changes to getcwd.c have effect only when used in
78541         gnulib; they have no effect inside glibc proper.
78542         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78543         as alloca isn't used.
78544         (alloca, __alloca): Likewise.
78545         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78546         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78547         unconditionally, as gnulib assumes C89 or better.
78548         Do not include <sys/param.h>.
78549         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78550         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78551         better.
78552         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78553         Include <dirent.h> in a way that is compatible with modern Autoconf.
78554         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78555         New macros, if not already defined.
78556         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78557         Use "_LIBC", not "defined _LIBC", for consistency.
78558         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78559         a mempcpy module.
78560         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78561         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78562         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78563         credit only to Jim Meyering and adjust the copyright dates.
78564         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78565         <stdlib.h>, <unistd.h>, "pathmax.h".
78566         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78567         (INITIAL_BUFFER_SIZE): Remove.
78568         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78569
78570 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78573         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78574         Use the _ONCE methods, for efficiency.
78575         Check for fcntl.h.  In test program, include <errno.h>
78576         and <fcntl.h> if available.  Remove old K&R cruft from
78577         test program.  Check for common errors in GNU/Linux,
78578         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78579         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78580         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78581         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78582         name accordingly.
78583         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78584         accommodate new getcwd.c.
78585         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78586         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78587         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78588         that's all we need now.
78589
78590 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78591
78592         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78593         argp-parse.c depends on getopt internals, that means we should
78594         always use our getopt, to be on the safe side.
78595         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78596         order not to spoil the result of an eventual previous invocation
78597         of gl_GETOPT_SUBSTITUTE.
78598
78599 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78600
78601         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78602         redefinition warnings. To avoid them, include the defines
78603         in `#if !defined __need_getopt ... #endif'. The only place
78604         where __getopt_argv_const is used is in definitions
78605         of getopt_long and getopt_long_only below, which are as well
78606         protected by `#ifndef __need_getopt'.
78607         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78608         __need_getopt after including <stdio.h> and <unistd.h> These
78609         headers might have defined it.
78610
78611 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78614
78615 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78616
78617         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78618         (futimens): New function, which uses futimes if available.
78619         (futimens, utimens): Support timespec==NULL, with same semantics
78620         as utime and utimens.
78621         * lib/utimens.h (futimens): New decl.
78622
78623 2004-11-23  Jim Meyering  <jim@meyering.net>
78624
78625         * lib/getopt_.h: Remove trailing blanks.
78626
78627 2004-11-23  Jim Meyering  <jim@meyering.net>
78628
78629         * lib/__fpending.c: Add comment.
78630
78631 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78632
78633         * modules/canonicalize (Depends-on): Add xreadlink.
78634         Problem reported by James Youngman.
78635
78636 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78639         New macros.
78640         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78641         optopt): Use them instead of invoking ## directly; otherwise, the
78642         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78643
78644 2004-11-19  Bruno Haible  <bruno@clisp.org>
78645
78646         * lib/strtok_r.c: Move comments from here...
78647         * lib/strtok_r.h: ... to here.
78648
78649 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78652         implementations that mishandle size_t overflow.
78653
78654 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78657         might fail.  Problem reported by Yoann Vandoorselaere.
78658         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78659         implementations that mishandle size_t overflow.
78660
78661 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * modules/canon-host (Depends-on): Add strdup.
78664
78665 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78668
78669 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         * lib/canon-host.c: Include "strdup.h".
78672         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78673         Use strdup instead of malloc/strcpy to duplicate strings.
78674
78675         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78676         (human_space_before_unit): New constant.
78677         * lib/human.c (human_readable): Support it.
78678
78679         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78680         (xgetcwd): Set errno correctly when failing.
78681         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78682         the failure is actually due to a PATH_MAX problem.
78683
78684         Further getopt changes to make it more likely that glibc will
78685         buy the changes back.
78686         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78687         (getopt): Use it, so to preserve glibc semantic
78688         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78689         when compiling for libc.
78690         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78691         (getopt_long, getopt_long_only): Use it.
78692
78693         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78694         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78695         (getopt): Argv is now char * const *, as per standard.
78696         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78697         not char *__getopt_argv_const *.
78698         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78699         _getopt_long_only_r): Likewise.
78700         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78701         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78702         _getopt_long_r, _getopt_long_only_r): Likewise.
78703         * lib/getopt_.h (__getopt_argv_const): Remove.
78704         (getopt): Argv is now char * const *, as per standard.
78705
78706         * lib/getdate.y (tORDINAL): New token.
78707         (day, relunit): Allow it for relative times.
78708         (relative_time_table): Use tORDINAL for ordinals.
78709
78710 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78713         Document that "second" isn't allowed as an ordinal number.
78714
78715 2004-11-16  Jim Meyering  <jim@meyering.net>
78716
78717         * modules/closeout (Depends-on): Add fpending.
78718
78719 2004-11-15  Jim Meyering  <jim@meyering.net>
78720
78721         * lib/closeout.c: Include "__fpending.h" once again.
78722         Include <stdbool.h>.
78723         (close_stdout): Don't fail just because stdout was closed initially,
78724         since some programs don't write to stdout in the normal course of
78725         operation (other than --version and --help), and we don't want this
78726         function to make e.g. `touch file >&-' fail.
78727         But do fail if it was closed and someone has tried to write to it.
78728         E.g., `printf foo >&-' must fail.
78729
78730 2004-11-13  Jim Meyering  <jim@meyering.net>
78731
78732         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78733
78734 2004-11-12  Simon Josefsson  <jas@extundo.com>
78735
78736         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78737         small doc fix is still pending.
78738
78739 2004-11-11  Simon Josefsson  <jas@extundo.com>
78740
78741         * modules/strtok_r: New file.
78742
78743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78744         strtok_r.
78745
78746 2004-11-11  Simon Josefsson  <jas@extundo.com>
78747
78748         * m4/strtok_r.m4: New file.
78749
78750         * m4/getopt.m4: Replace opterr.
78751
78752 2004-11-11  Simon Josefsson  <jas@extundo.com>
78753
78754         * lib/strtok_r.h, strtok_r.c: New file.
78755
78756 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78759         of replacing opterr, getopt, etc.  This should handle the
78760         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78761
78762 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78765         we can stop lying to compilers about the constness of argv when we
78766         are compiled outside glibc.
78767         (getopt, getopt_long, getopt_long_only): Use it.
78768         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78769         _getopt_internal, getopt): Likewise.
78770         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78771         _getopt_long_only_r): Likewise.
78772         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78773         _getopt_long_r, _getopt_long_only_r): Likewise.
78774
78775         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78776         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78777         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78778         the other external symbols.
78779         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78780         declaration, since the above renaming now works around collisions.
78781
78782 2004-11-11  Jim Meyering  <jim@meyering.net>
78783
78784         * lib/linebreak.c: Remove trailing blanks.
78785         * lib/alloca_.h: Likewise.
78786         * lib/acosl.c: Likewise.
78787         * lib/euidaccess.c: Likewise.
78788         * lib/allocsa.h: Likewise.
78789
78790 2004-11-10  Simon Josefsson  <jas@extundo.com>
78791
78792         * m4/getaddrinfo.m4: New file.
78793
78794 2004-11-10  Simon Josefsson  <jas@extundo.com>
78795
78796         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78797
78798 2004-11-10  Simon Josefsson  <jas@extundo.com>
78799
78800         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78801         getaddrinfo.
78802
78803         * modules/getaddrinfo: New file.
78804
78805 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78808
78809 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * lib/mktime.c (SHR): New macro, which is a portable
78812         substitute for >> that should work even on Crays.
78813         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78814         Problem reported by Mark D. Baushke in
78815         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78816         * lib/getdate.y (SHR): Likewise.
78817         (tm_diff): Use it.
78818         * lib/strftime.c (SHR): Likewise.
78819         (tm_diff): Use it.
78820         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78821         quote_these_too, so that right shifts are well defined.  All uses
78822         changed.
78823
78824 2004-11-10  Jim Meyering  <jim@meyering.net>
78825
78826         Ensure that no close failure goes unreported.
78827         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78828         return early when it seems there's nothing to flush.
78829         Don't include __fpending.h.
78830
78831 2004-11-10  Jim Meyering  <jim@meyering.net>
78832
78833         * modules/closeout (Depends-on): Remove fpending.
78834
78835 2004-11-10  Jim Meyering  <jim@meyering.net>
78836
78837         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78838
78839 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78842         gl_FUNC_STRFTIME.
78843         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78844         and AC_REQUIRE when possible, to avoid duplicate checks.
78845         Check for <wchar.h>.
78846
78847 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78850
78851 2004-11-09  Bruno Haible  <bruno@clisp.org>
78852
78853         * m4/sockpfaf.m4: New file.
78854
78855 2004-11-05  Bruno Haible  <bruno@clisp.org>
78856
78857         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78858         Reported by Mark D. Baushke <mdb@cvshome.org>.
78859
78860 2004-11-04  Bruno Haible  <bruno@clisp.org>
78861
78862         2004-09-11  Bruno Haible  <bruno@clisp.org>
78863                 * allocsa.valgrind: New file.
78864         2004-02-06  Bruno Haible  <bruno@clisp.org>
78865                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78866                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78867                 Reported by Christopher Seip <chris.seip@hp.com>.
78868
78869 2004-11-04  Bruno Haible  <bruno@clisp.org>
78870
78871         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78872         (Makefile.am): Distribute it.
78873
78874 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78877         with errno == ERANGE if the buffer is too small.
78878         Problem reported by Mark D. Baushke.
78879
78880 2004-11-03  Albert Chin  <china@thewrittenword.com>
78881             Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78884         equivalent, substitute $ac_type for equivalent type rather than
78885         blindly using uint32_t *always* which won't work if uint32_t is not
78886         available.  Define _UINT32_T to work around typedef of uint32_t if
78887         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78888         2.5.1.
78889
78890 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * m4/jm-macros.m4: Sync from coreutils.
78893         (gl_MACROS): Check for mbrlen, for pathchk.
78894         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78895
78896 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * lib/xreadlink.c (MAXSIZE): New macro.
78899         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78900         size does not exceed MAXSIZE.  Avoid cast.
78901         As suggested by Mark D. Baushke in
78902         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78903         if readlink fails with buffer size just under MAXSIZE, try again
78904         with MAXSIZE.
78905
78906 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78909
78910 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78911         and  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78914         (get_date): Overparenthesize to avoid GCC warning.
78915
78916 2004-11-02  Bruno Haible  <bruno@clisp.org>
78917
78918         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78919         returns void.
78920
78921 2004-11-02  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78924         function returns void.
78925
78926 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78929         fflush_unlocked, flockfile, funlockfile, funlockfile,
78930         fputs_unlocked, putc_unlocked.
78931
78932 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78935         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78936         already declared.
78937
78938 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * modules/getdate (Files): Add doc/getdate.texi.
78941         (Depends-on): Add setenv, xalloc.
78942
78943 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         * lib/getdate.y: Add support for TZ="foo" within a date string.
78946         Fix some bugs near time_t boundaries.  Reject dates with
78947         out-of-range components, e.g., "Sept 31".
78948         Include <stdlib.h>, "setenv.h", "xalloc.h".
78949         (ISDIGIT_LOCALE): Remove; unused.
78950         Note that the TZ and time functions used here are not reentrant.
78951         (mktime_ok, get_tz): New functions.
78952         (TZBUFSIZE): New constant.
78953         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78954         This requires that we sometimes generate our own TZ="XXX..." setting.
78955
78956 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * doc/getdate.texi: New file, from coreutils with modifications for
78959         the new TZ parsing.
78960
78961 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78962
78963         * lib/mktime.c (not_equal_tm): Remove redundant check.
78964
78965 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         * modules/regex (lib_SOURCES): Add regex.c.
78968         Reported by James Youngman in
78969         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78970
78971 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * lib/getdate.y: Use Bison 1.875 features, and some minor
78974         code cleanups.  This change does not affect semantics.
78975         Don't include <stdlib.h>; no longer needed.
78976         Don't include unlocked-io.h; only the "#if TEST" code uses
78977         stdio, and performance isn't crucial there.
78978         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78979         Bison 1.875 features as described below.
78980         All uses of "PC." replaced by "pc->".
78981         (YYSTYPE): Add a forward declaration.
78982         (yylex, yyerror): Use full prototypes in forward decls.
78983         Use "%pure-parser" rather than obsolescent "%pure_parser".
78984         Use %parse-param and %lex-param instead of obsolescent
78985         YYPARSE_PARAM and YYLEX_PARAM.
78986         (meridian_table, month_and_day_table, time_units_table,
78987         relative_time_table, time_zone_table, military_table,
78988         lookup_zone, lookup_word, get_date):
78989         Use NULL instead of 0 where appropriate.
78990         (to_hour): Avoid abort (), to avoid a dependency on
78991         stdlib.h.
78992         (yyerror, yylex): Now accepts parser_control * arg.
78993         (main) [TEST]: Use '\0' rather than 0 for char.
78994
78995 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78998
78999 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79002         It's now the caller's responsibility to handle the case where
79003         !HAVE_GETPAGESIZE && !defined getpagesize.
79004
79005         * lib/mktime.c (leapyear): Arg is long int, not int.
79006
79007 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79010
79011 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79014         missing.  Problem reported by James Youngman.
79015
79016 2004-10-16  Simon Josefsson  <jas@extundo.com>
79017
79018         * gnulib-tool: Fix comments.  Fix parse problem.
79019         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79020
79021 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79024         implementation of getopt_long.  Problem reported by Alexander Taler in:
79025         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79026
79027 2004-10-15  Bruno Haible  <bruno@clisp.org>
79028
79029         * gnulib-tool: Untabify. Initialize supplied_libname.
79030         (func_usage): More homogenous output.
79031         (func_modules_transitive_closure, func_modules_to_filelist,
79032         func_emit_lib_Makefile_am): New functions.
79033         (func_import): New function, extracted from big case statement. Use
79034         func_get_license, func_modules_transitive_closure,
79035         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79036         opt_lgpl. Don't use test -a, as it's not portable.
79037         (func_create_testdir): Use func_modules_transitive_closure,
79038         func_modules_to_filelist, func_emit_lib_Makefile_am.
79039
79040 2004-10-15  Bruno Haible  <bruno@clisp.org>
79041
79042         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79043
79044 2004-10-15  Bruno Haible  <bruno@clisp.org>
79045
79046         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79047         the portions belonging to each module.
79048         Suggested by Derek Robert Price <derek@ximbiot.com>.
79049
79050 2004-10-12  Simon Josefsson  <jas@extundo.com>
79051
79052         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79053         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79054         to real functions.
79055
79056 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79057
79058         * modules/vsnprintf: New file.
79059
79060 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79061
79062         * m4/vsnprintf.m4: New file.
79063
79064 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79065
79066         * lib/vsnprintf.h: New file.
79067         * lib/vsnprintf.c: New file.
79068
79069 2004-10-11  Bruno Haible  <bruno@clisp.org>
79070
79071         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79072         vsnprintf.
79073
79074 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79077
79078 2004-10-07  Bruno Haible  <bruno@clisp.org>
79079
79080         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79081         fits into the provided buffer.
79082
79083 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * lib/diacrit.c, diacrit.h: Add GPL notice.
79086
79087         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79088         notice.
79089         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79090         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79091         This avoids a potential constant-folding bug.
79092
79093 2004-10-05  Bruno Haible  <bruno@clisp.org>
79094
79095         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79096         for the declaration of strsep.
79097
79098 2004-10-05  Bruno Haible  <bruno@clisp.org>
79099
79100         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79101
79102 2004-10-04  Simon Josefsson  <jas@extundo.com>
79103
79104         * modules/memmem: New file.
79105         * tests/test-memmem.c: New file.
79106         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79107
79108 2004-10-04  Simon Josefsson  <jas@extundo.com>
79109
79110         * m4/memmem.m4: New file.
79111
79112 2004-10-04  Simon Josefsson  <jas@extundo.com>
79113
79114         * lib/memmem.h: New file.
79115         * lib/memmem.c: New file, taken from glibc.
79116
79117 2004-10-04  Simon Josefsson  <jas@extundo.com>
79118
79119         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79120         '#ifdef USE_UNLOCKED_IO'.
79121
79122 2004-10-04  Simon Josefsson  <jas@extundo.com>
79123
79124         * config/srclist.txt: Add memmem from glibc.
79125
79126 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79127
79128         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79129
79130         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79131         modules/exclude, modules/getdate, modules/getline,
79132         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79133         modules/getusershell, modules/linebuffer, modules/md5,
79134         modules/mountlist, modules/posixtm, modules/readtokens,
79135         modules/readutmp, modules/regex, modules/sha1,
79136         modules/version-etc, modules/yesno:
79137         Remove dependency on unlocked-io.
79138
79139 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79142
79143         * m4/unlocked-io.m4: Add copyright notice.
79144         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79145
79146 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79149         * lib/xmalloc.c (xmemdup): Likewise.
79150         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79151         XFREE): Remove these long-obsolescent macros.
79152         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79153         * lib/xstrdup.c: Remove.
79154
79155         * lib/regex.c (re_comp): Cast gettext return value to char *,
79156         Problem reported by Martin Neitzel via Mark D. Baushke.
79157
79158 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79161         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79162         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79163         regex.c, sha1.c, version-etc.c, yesno.c:
79164         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79165         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79166         the includer's responsibility.
79167
79168         Sync from coreutils.
79169
79170         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79171         points to the start of a string, as the C Standard says the
79172         resulting behavior is undefined.
79173
79174         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79175         simple -> simple_backups, numbered_existing ->
79176         numbered_existing_backups, numbered -> numbered_backups
79177         to avoid shadowing problems.  All uses changed.
79178         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79179         * lib/backupfile.c (check_extension, numbered_backup):
79180         Rename locals to avoid shadowing 'basename'.
79181         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79182         once.
79183
79184         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79185         * lib/.cvsignore: Add getopt.h.
79186
79187 2004-10-04  Bruno Haible  <bruno@clisp.org>
79188
79189         * modules/README: New file.
79190         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79191         not a module.
79192
79193 2004-10-02  Jim Meyering  <jim@meyering.net>
79194
79195         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79196
79197 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79198
79199         * modules/strsep: New file.
79200
79201 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79202
79203         * m4/strsep.m4: New file.
79204
79205 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79206
79207         * lib/strsep.h: New file.
79208         * lib/strsep.c: New file.
79209
79210 2004-10-01  Simon Josefsson  <jas@extundo.com>
79211
79212         * lib/snprintf.c (snprintf): Handle size==0.
79213
79214 2004-10-01  Simon Josefsson  <jas@extundo.com>
79215             Bruno Haible  <bruno@clisp.org>
79216
79217         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79218         (snprintf): Declare 'args'.
79219
79220 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * lib/snprintf.c: Remove comments as to why each header is needed.
79223
79224 2004-10-01  Bruno Haible  <bruno@clisp.org>
79225
79226         * MODULES.html.sh: Add strsep.
79227
79228 2004-09-30  Simon Josefsson  <jas@extundo.com>
79229
79230         * modules/snprintf: New file.
79231
79232 2004-09-30  Simon Josefsson  <jas@extundo.com>
79233
79234         * m4/snprintf.m4: New file.
79235
79236 2004-09-30  Simon Josefsson  <jas@extundo.com>
79237
79238         * lib/snprintf.h, lib/snprintf.c: New files.
79239
79240 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79241
79242         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79243         (hol_entry_help): Never translate an empty string.
79244         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79245         * lib/argp.h (OPTION_NO_TRANS): New option.
79246
79247 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79248
79249         * modules/argp (Maintainer): Replace Simon Josefsson
79250         by Sergey Poznyakoff.
79251
79252 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79255         changes merged back into glibc.
79256
79257 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79260
79261 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79262
79263         * lib/xvasprintf.c: Include xalloc.h.
79264         (xvasprintf): Use xalloc_die, not xmalloc_die.
79265
79266 2004-09-29  Bruno Haible  <bruno@clisp.org>
79267
79268         * modules/alloca-opt: New file, derived from modules/alloca.
79269         * modules/allocsa: Depend on alloca-opt instead of alloca.
79270         * modules/setenv: Likewise.
79271         * modules/vasnprintf: Likewise.
79272         * MODULES.html.sh: Add alloca-opt.
79273
79274 2004-09-28  Simon Josefsson  <jas@extundo.com>
79275
79276         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79277         LGPL, and to replace license template from GPL to LGPL.
79278
79279 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * modules/dummy: Change license to LGPL.
79282
79283 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79286
79287 2004-09-24  Simon Josefsson  <jas@extundo.com>
79288
79289         * modules/minmax (License): Change from GPL to LGPL.
79290
79291 2004-09-23  Simon Josefsson  <jas@extundo.com>
79292
79293         * gnulib-tool (--import): Typo.
79294
79295 2004-09-23  Simon Josefsson  <jas@extundo.com>
79296
79297         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79298
79299 2004-09-22  Bruno Haible  <bruno@clisp.org>
79300
79301         * modules/*: Add 'License' field.
79302         * gnulib-tool: Accept --extract-license option.
79303         (func_get_license): New function.
79304
79305 2004-09-21  Bruno Haible  <bruno@clisp.org>
79306
79307         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79308         Reported by Simon Josefsson.
79309
79310 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79313         gl_AC_TYPE_LONG_LONG.
79314
79315 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79316
79317         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79318
79319 2004-09-18  Simon Josefsson  <jas@extundo.com>
79320         and  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79323         calls with autoreconf.  Define GL_LIB.
79324
79325 2004-09-14  Karl Berry  <karl@gnu.org>
79326
79327         * config/srclist.txt: unsync setenv.c, sigh.
79328
79329 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79332         Problem reported by Bruno Haible in:
79333         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79334
79335 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * config/srclist.txt: Comment out argp-pvh.c.
79338
79339 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79342         in case some system header has #define'd it.  Problem reported by
79343         Soeren D. Schulze in
79344         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79345
79346 2004-09-09  Karl Berry  <karl@gnu.org>
79347
79348         * regex.[ch]: delete from the root.  These were supposed to be
79349                 synced with emacs cvs, but this has not happened for about
79350                 a year, and anyway nothing else uses emacs regex.[ch].
79351                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79352                 lib/regex[.ch] is untouched.
79353
79354 2004-09-09  Bruno Haible  <bruno@clisp.org>
79355
79356         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79357
79358 2004-09-09  Bruno Haible  <bruno@clisp.org>
79359
79360         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79361         modifications.
79362         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79363
79364 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79365
79366         * modules/xvasprintf: New file.
79367         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79368
79369 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79370
79371         * lib/xvasprintf.h: New file.
79372         * lib/xvasprintf.c: New file.
79373         * lib/xasprintf.c: New file.
79374
79375 2004-09-08  Bruno Haible  <bruno@clisp.org>
79376
79377         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79378
79379 2004-09-08  Bruno Haible  <bruno@clisp.org>
79380
79381         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79382         length is > INT_MAX.
79383         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79384         more.
79385
79386 2004-09-08  Bruno Haible  <bruno@clisp.org>
79387
79388         * lib/stdint_.h: New file, taken from GNU clisp.
79389
79390 2004-09-08  Bruno Haible  <bruno@clisp.org>
79391             Oskar Liljeblad  <oskar@osk.mine.nu>
79392
79393         * modules/stdint: New file.
79394         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79395
79396 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         Import from coreutils.
79399         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79400         strings on unbounded length.  alloca's performance benefits aren't
79401         that important here.
79402         (V_STRDUP): Remove.
79403         (parse_with_separator): New function, with most of the internals
79404         of the old parse_user_spec.  Allow user to omit both user and group,
79405         for compatibility with FreeBSD.
79406         Clone only the user name, not the entire spec.
79407         Do not set *uid, *gid unless entirely successful.
79408         Avoid memory leak in some failing cases.
79409         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79410         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79411         (parse_user_spec): Rewrite to use parse_with_separator.
79412
79413 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79414
79415         * modules/userspec: Don't depend on alloca.
79416
79417 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79420
79421 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79424         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79425         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79426
79427 2004-08-16  Simon Josefsson  <jas@extundo.com>
79428
79429         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79430         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79431         Add --dry-run for --import.
79432         Let user provided command line parameters override configure.ac
79433         settings.
79434
79435 2004-08-12  Simon Josefsson  <jas@extundo.com>
79436
79437         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79438         as discussed with Paul Eggert in threads rooted at
79439         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79440         and
79441         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79442         Before, the test was empty, and relied on ELIDE_CODE in source
79443         code.)
79444         (gl_PREREQ_GETOPT): New macro.
79445         (gl_GETOPT): Use them.
79446
79447 2004-08-12  Simon Josefsson  <jas@extundo.com>
79448
79449         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79450         * lib/getopt_.h: Renamed from getopt.h.
79451
79452 2004-08-12  Simon Josefsson  <jas@extundo.com>
79453
79454         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79455         Change default library name from libfoo to libgnu.
79456         Now, if you have a configure.ac that says:
79457                 gl_SOURCE_BASE(gl)
79458                 gl_M4_BASE(gl/m4)
79459                 gl_MODULES(error getopt etcetera)
79460                 gl_INIT
79461         you can import all you need by running:
79462                 ../gnulib/gnulib-tool --import
79463
79464         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79465         (Makefile.am): Rewrite, use logic from argz.
79466         (Include): Use <getopt.h> instead of "getopt.h".
79467
79468 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * modules/argp (Files): Add m4/unlocked-io.m4.
79471         (Depends-on): Add extensions.
79472
79473 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79476         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79477         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79478         Check for program_invocation_name, program_invocation_short_name,
79479         flockfile, funlockfile, features.h, _getopt_long_only_r.
79480
79481 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79482
79483         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79484         its complicated substitute.
79485         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79486         and program_invocation_name.
79487         (__argp_basename) [!_LIBC]: Remove; the only use was
79488         replaced by its body.
79489         (__argp_short_program_name): Change condition from
79490         !defined __argp_short_program_name to
79491         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79492         to match argp-namefrob.h.
79493         (__argp_failure): Don't assume strerror_r returns char *.
79494         * lib/argp-parse.c (N_): Define unconditionally.
79495         (argp_default_options): Fill out initializers with 0 to avoid
79496         gcc warnings.
79497
79498 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79501         getopt1.c.
79502
79503 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         Merge from coreutils.
79506
79507         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79508
79509         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79510         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79511
79512 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         Merge from coreutils.
79515
79516         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79517         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79518         for Reliant Unix 5.43.
79519
79520         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79521         (union fooround): Use uintmax_t, not long int.
79522         The rest is a merge from libc:
79523         [defined _LIBC]: Include <shlib-compat.h>.
79524         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79525
79526         * lib/settime.c (settime): Recode to avoid warning with
79527         Sun Forte C 6U2.
79528
79529         * lib/strverscmp.c: Convert to UTF-8.
79530
79531 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79532
79533         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79534         m4/uintmax_t.m4.
79535
79536 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79537
79538         * modules/xalloc-die: New file.
79539         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79540
79541         * modules/md5 (Files): Add m4/uint32_t.m4.
79542         * modules/sha1: Renamed from modules/sha.
79543         (Files):
79544         Rename lib/sha.h to lib/sha1.h.
79545         Rename lib/sha.c to lib/sha1.c.
79546         Rename m4/sha.m4 to m4/sha1.m4.
79547         (lib_SOURCES): Likewise.
79548         (configure.ac): Rename gl_SHA to gl_SHA1.
79549         (Include): sha.h -> sha1.h.
79550
79551 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79554         * m4/sha1.m4: Renamed from sha.m4.
79555         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79556
79557 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * lib/obstack.h (obstack_empty_p):
79560         Don't assume that chunk->contents is suitably aligned.
79561         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79562         Likewise. Problem reported by Benno in
79563         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79564
79565         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79566         readable.  This could be improved further but it'd take some work.
79567
79568 2004-08-08  Simon Josefsson  <jas@extundo.com>
79569
79570         * modules/xgethostname (Depends-on): Remove exit and error (not
79571         used).
79572
79573         * modules/getpass-gnu: Add getpass.h.
79574         (Depends-on): Add stdbool.
79575         * modules/getpass: Add getpass.h.
79576
79577 2004-08-08  Simon Josefsson  <jas@extundo.com>
79578
79579         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79580         Check getpass declaration.
79581
79582 2004-08-08  Simon Josefsson  <jas@extundo.com>
79583
79584         * lib/xgethostname.c: Don't include error.h (not used).
79585
79586         * lib/getpass.h: Add.
79587         * lib/getpass.c: Include getpass.h first.
79588
79589 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * lib/xalloc-die.c: New file.
79592         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79593         All uses removed.
79594         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79595         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79596         xalloc-die.c.
79597         (_, N_, xalloc_die): Move to xalloc-die.c.
79598         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79599         so that we needn't mess with xalloc_msg_memory_exhausted.
79600
79601         * lib/sha1.h: Renamed from sha.h.
79602         (SHA1_H): Renamed from _SHA_H.
79603         (sha1_ctx): Renamed from sha_ctx.
79604         (sha1_init_ctx): Renamed from sha_init_ctx.
79605         (sha1_process_block): Renamed from sha_process_block.
79606         (sha1_process_bytes): Renamed from sha_process_bytes.
79607         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79608         (sha1_read_ctx): Renamed from sha_read_ctx.
79609         (sha1_stream): Renamed from sha_stream.
79610         (sha1_buffer): Renamed from sha_buffer.
79611         * lib/sha1.c: Likewise; renamed from sha.c.
79612         Do not include <sys/types.h>.
79613         Include <stddef.h> rather than <stdlib.h>.
79614
79615 2004-08-08  Bruno Haible  <bruno@clisp.org>
79616
79617         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79618         FILESYSTEM_PREFIX_LEN.
79619         * lib/progreloc.c: Likewise.
79620         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79621
79622 2004-08-06  Simon Josefsson  <jas@extundo.com>
79623
79624         * modules/progname (Depends-on): Don't depend on stdbool.
79625
79626 2004-08-06  Simon Josefsson  <jas@extundo.com>
79627
79628         * modules/getsubopt: New file.
79629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79630         getsubopt.
79631
79632 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79633
79634         More merge from coreutils.
79635
79636         * m4/utimens.m4, m4/utimecmp.m4: New files.
79637         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79638         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79639         prereq.m4, sha.m4: Import changes from coreutils.
79640
79641 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         More merge from coreutils.
79644         * modules/raise, modules/readtokens0, modules/utimens:
79645         * modules/utimecmp, module/xnanosleep: New files.
79646         * modules/strftime: Add lib/strftime.h.
79647         Change include from <time.h> to "strftime.h".
79648         * modules/yesno: Add lib/yesno.h.
79649         * modules/backupfile: Remove lib/addext.c.
79650         * modules/euidaccess: Add stat-macros.h.
79651         * modules/canonicalize, modules/euidaccess,
79652         modules/filemode, modules/lchown, modules/makepath,
79653         modules/rmdir, modules/stat: Likewise.
79654
79655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         Merge from tar.
79658         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79659         SIZE_MAX is a valid preprocessor constant.
79660         (__argp_basename): Change from "#ifndef _LIBC"
79661         to "#ifndef __argp_short_program_name", so that
79662         we don't compile these functions for tar.
79663
79664         More merges from coreutils.
79665         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79666         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79667         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79668         * lib/addext.c: Remove; no longer needed.
79669         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79670         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79671         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79672         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79673         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79674         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79675         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79676         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79677         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79678         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79679         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79680         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79681         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79682         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79683         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79684         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79685         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79686         Import changes from coreutils.
79687
79688 2004-08-05  Simon Josefsson  <jas@extundo.com>
79689
79690         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79691
79692 2004-08-05  Simon Josefsson  <jas@extundo.com>
79693
79694         * m4/getsubopt.m4: New file.
79695
79696 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         Merge from coreutils.
79699
79700         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79701         * m4/getcwd-path-max.m4: New files.
79702
79703         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79704         FILESYSTEM_PREFIX_LEN ->
79705         FILE_SYSTEM_PREFIX_LEN.
79706         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79707         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79708         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79709         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79710
79711         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79712         prerequisite modules now handle the DOS stuff.
79713         Don't check for unistd.h.
79714
79715 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         Merge from coreutils.
79718
79719         * lib/.gdb-history: Remove; this doesn't belong here.
79720
79721         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79722         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79723         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79724         * lib/getcwd.c: New files.
79725
79726         * lib/dirname.h: Include <stdbool.h>.
79727         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79728         for consistency with POSIX terminology.  All uses changed.
79729         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79730         (strip_trailing_slashes): Use bool for booleans.
79731         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79732
79733         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79734         sometimes returns a positive errno value even when it succeeds.
79735         (print_errno_message) [!LIBC]: Fall back on strerror if
79736         __strerror_r fails.
79737
79738         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79739         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79740         (longest_relative_suffix): New function.
79741         (path_concat): Use it.  Assume first argument is not NULL.
79742         Port to DOS.  Omit redundant separators.
79743         Report an error instead of returning NULL.
79744         Use mempcpy instead of memcpy.
79745         (xpath_concat): Remove: not declared or used.
79746
79747         * lib/same.h: Include <stdbool.h>
79748         (same_name): Return bool, not int.
79749         * lib/same.c (same_name): Likewise.
79750         (errno): Don't declare; we assume C89 or better now.
79751
79752         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79753         if not already defined.
79754
79755         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79756         * lib/dup-safer.c (errno): Likewise.
79757
79758 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79759
79760         Merge from coreutils.
79761         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79762         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79763         * modules/path-concat: Don't depend on strdup.
79764
79765 2004-08-03  Simon Josefsson  <jas@extundo.com>
79766
79767         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79768         * lib/progname.h: Don't include stdbool.h.
79769
79770 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79771
79772         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79773         * MODULES.html.sh (func_all_modules): Remove fatal.
79774
79775 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79776
79777         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79778
79779 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79782         working.
79783
79784 2004-08-02  Simon Josefsson  <jas@extundo.com>
79785
79786         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79787         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79788         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79789
79790 2004-08-01  Simon Josefsson  <jas@extundo.com>
79791
79792         * lib/xgetdomainname.c: Include stdlib.h, for free().
79793
79794 2004-07-19  Bruno Haible  <bruno@clisp.org>
79795
79796         * MODULES.html.sh (func_all_modules): Add dummy.
79797
79798 2004-07-16  Simon Josefsson  <jas@extundo.com>
79799
79800         * modules/dummy: New file.
79801
79802 2004-07-16  Simon Josefsson  <jas@extundo.com>
79803
79804         * lib/dummy.c: New file.
79805
79806 2004-07-16  Bruno Haible  <bruno@clisp.org>
79807
79808         * lib/backupfile.h: Add extern "C" for C++.
79809         * lib/closeout.h: Likewise.
79810         * lib/copy-file.h: Likewise.
79811         * lib/findprog.h: Likewise.
79812         * lib/full-write.h: Likewise.
79813         * lib/pathname.h: Likewise.
79814         * lib/progname.h: Likewise.
79815         * lib/stpcpy.h: Likewise.
79816         * lib/stpncpy.h: Likewise.
79817         * lib/strcase.h: Likewise.
79818         * lib/strstr.h: Likewise.
79819         * lib/xalloc.h: Likewise.
79820
79821         * lib/mbswidth.h: Add extern "C" for C++.
79822         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79823
79824 2004-07-13  Robert Millan  <robertmh@gnu.org>
79825
79826         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79827
79828 2004-07-09  Simon Josefsson  <jas@extundo.com>
79829
79830         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79831         failed without this.)
79832
79833 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         * modules/chown (Files): Add lib/fchown-stub.c, since
79836         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79837
79838 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79839
79840         * lib/fchown-stub.c: New file.
79841
79842 2004-06-24  Jim Meyering  <jim@meyering.net>
79843
79844         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79845
79846 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * modules/argz: Omit "#include".
79849
79850         * MODULES.html.sh (func_all_modules): Add calloc, to match
79851         2004-06-01 addition of calloc module.
79852
79853 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * m4/argz.m4: New file, which is autoupdated from libtool.
79856
79857 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79860         libtool.
79861
79862 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         * config/srclist-update: Don't insist on "USA." before the
79865         close-comment, as libtool omits the period and puts the */ on a
79866         separate line.
79867         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79868         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79869
79870 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79871
79872         * modules/argz: New file.
79873         * MODULES.html.sh (func_all_modules): Add argz.
79874
79875 2004-06-12  Jim Meyering  <jim@meyering.net>
79876         and  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         * modules/hash (Files): Add lib/xalloc.h.
79879         * modules/pipe (Depends-on): Add wait-process.
79880         * modules/stat (Depends-on): Add xalloc.
79881         * modules/userspec (Files): Add lib/userspec.h.
79882         * modules/xstrto
79883
79884         Upgrade from gettext-0.13.
79885         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79886         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79887         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79888
79889 2004-06-10  Jim Meyering  <jim@meyering.net>
79890
79891         * lib/calloc.c: New file.
79892
79893 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * lib/getdate.y (yylex): Allow space between sign and number.
79896         Problem reported by Dan Jacobson.
79897
79898 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79899
79900         Merge from coreutils CVS.
79901
79902         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79903         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79904         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79905         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79906         xstrtol.m4: Fix copyright date and/or serial number.
79907
79908         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79909         See if we need an fchown replacement.
79910         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79911         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79912         and use the replacement function if we detect either defect.
79913
79914         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79915         gl_UTIMECMP.
79916
79917 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79918         and  Jim Meyering  <jim@meyering.net>
79919
79920         Merge from coreutils CVS.
79921
79922         * lib/stat-macros.h: New file, with contents from file-type.h
79923         and coreutils' system.h.
79924         * lib/file-type.c: Include "stat-macros.h".
79925         * lib/file-type.h (file_type): Move all macro definitions to new file,
79926         stat-macros.h.
79927
79928         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79929         Wrap old code with this conditional.
79930         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79931         function that does not dereference symlinks.
79932         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79933
79934         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79935         dependency problems.
79936         (xreadlink): Accept new arg SIZE, for efficiency.
79937         All decls and uses changed.
79938         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79939
79940         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79941         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79942
79943         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79944         sysexits.h.
79945
79946 2004-06-01  Jim Meyering  <jim@meyering.net>
79947
79948         * m4/calloc.m4: New file.
79949
79950 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79951
79952         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79953         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79954         Also, fix a typo in a diagnostic.
79955
79956 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79959         or AC_FUNC_REALLOC.
79960
79961 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79962
79963         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79964         macros to be defined.
79965         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79966         the allocator returns NULL because the requested size is zero.
79967
79968 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79971         var.  Add comment explaining why libc still defines it.  This
79972         merges the following patch from glibc:
79973         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79974
79975 2004-05-20  Andreas Schwab  <schwab@suse.de>
79976
79977         * m4/free.m4: Replace free if it not known to work, not the other
79978         way round.
79979
79980 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79983         present in glibc since revision 1.1 of this file.
79984         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79985         obstack_alignment_mask, obstack_alloc, obstack_base,
79986         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79987         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79988         obstack_grow0, obstack_init, obstack_int_grow,
79989         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79990         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79991         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79992         nonexistent functions.
79993
79994 2004-05-18  Karl Berry  <karl@gnu.org>
79995
79996         * config/srclist.txt: break link for vasnprintf.c.
79997
79998 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         Port obstack to the AS/400, where pointers are 16 bytes wide and
80001         you cannot cast an integer to a valid pointer.  This patch is
80002         currently waiting to be integrated into glibc; see
80003         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80004
80005         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80006         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80007         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80008         (struct obstack): temp member is now a union of a pointer and
80009         an integer, instead of an integer.  All integer uses changed.
80010         This does not affect the physical layout of struct obstack,
80011         except on hosts (like the AS/400) where the size or alignment of
80012         void * is greater than that of ptrdiff_t.
80013         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80014         __STDC__)]: Store temporary in pointer member of union, not
80015         integer member.
80016         * lib/obstack.c: Include <stddef.h>, for offsetof.
80017         (struct fooalign): Remove; it doesn't need a name.
80018         (union fooround): Change double to long double, and add void *.
80019         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80020         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80021         not a macro.  Hence the values are always int; so remove all
80022         casts-to-int in uses.
80023
80024 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80025
80026         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80027         we can get this patch merged into glibc.
80028
80029 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80030             Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * m4/argp: Depend on alloca.
80033
80034 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80035             Paul Eggert  <eggert@cs.ucla.edu>
80036
80037         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80038         freecoding.
80039
80040 2004-05-17  Bruno Haible  <bruno@clisp.org>
80041
80042         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80043         precision that consists of a '.' followed by an empty digit string.
80044         Patch by Tor Lillqvist <tml@iki.fi>.
80045
80046 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80049         for backward compatibility with older code.  We need our own
80050         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80051         it under some other name, and our alloca.h will define it.
80052
80053 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80054             Derek Price  <derek@ximbiot.com>
80055
80056         * lib/alloca.c: Include <alloca.h>, to get our interface.
80057         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80058         include <alloca.h> first.  Use C89 prototype for alloca; this
80059         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80060         Use #elif for simplicity, since we can assume C89 now.
80061         Don't try to source the system alloca.h since it will not be found
80062         and to prevent recursively including its replacement.
80063         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80064         * lib/regex.c: Likewise.
80065
80066 2004-05-16  Derek Price  <derek@ximbiot.com>
80067             Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         getline cleanup.  This changes the getndelim2 API: both order of
80070         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80071         no delimiter).
80072
80073         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80074         interface does that.
80075         (getline): Always use getdelim, so that we don't have two
80076         copies of this code.
80077         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80078         if available.
80079         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80080         (GETNDELIM2_MAXIMUM): New macro.
80081         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80082         instead of the old practice of delim2==0.  All callers changed.
80083         Return -1 on overflow, instead of returning junk.
80084         Do not set *linesize unless allocation succeeds.
80085         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80086         that we include sys/types.h.
80087         * lib/getnline.h: Likewise.
80088         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80089         (getndelim2): Reorder arguments.
80090         * lib/getnline.c (getnline, getndelim):
80091         Don't discard the NMAX argument.
80092         (getnline): Invoke getndelim, to avoid code duplication.
80093         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80094         of (size_t) -1 by callers of the getnline family.
80095
80096 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80099         Check for gettimeofday.
80100         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80101         Check for settimeofday, stime.
80102
80103 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * lib/nanosleep.c (suspended): Change its type from int to
80106         sig_atomic_t volatile.
80107         (first_call): Make it private to rpl_nanosleep, and have it
80108         be zero initially as that's a bit faster.
80109         (my_usleep): Round up fractional times instead of truncating them,
80110         as this is the usual meaning for 'sleep'.
80111
80112         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80113         doesn't work.
80114         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80115         (ENOSYS): Define if not defined.
80116         (settime): Fall back on stime if it exists and settimeofday fails.
80117         But don't bother with fallbacks if a method fails with errno == EPERM.
80118
80119 2004-05-11  Jim Meyering  <jim@meyering.net>
80120
80121         Prior to this change, the save_cwd caller required read access to the
80122         current directory on most systems (ones with the fchdir function).
80123
80124         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80125         fails, try write-only, and finally, resort to using xgetcwd.
80126
80127 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80128
80129         * lib/obstack.c, obstack.h: Import changes from libc.
80130
80131 2004-04-28  Bruno Haible  <bruno@clisp.org>
80132
80133         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80134         also implicitly appends .exe to executables.
80135         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80136         accepts Windows pathnames.
80137         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80138         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80139         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80140         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80141         Reported by Derek Robert Price <derek@ximbiot.com>.
80142
80143 2004-04-21  Karl Berry  <karl@gnu.org>
80144
80145         * config/srclist.txt (localcharset.c): break sync.
80146
80147 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80148
80149         * m4/host-os.m4: Add a copyright notice.
80150
80151 2004-04-20  Jim Meyering  <jim@meyering.net>
80152
80153         Change UTILS_ to gl_ in AC_DEFINE'd names.
80154         Change utils_- and jm_-prefixed variables, too.
80155         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80156         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80158
80159         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80160         Don't emit trailing blanks.
80161         Also rename jm_-prefixed variables to have gl_ prefix.
80162
80163         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80164         Also rename jm_-prefixed variables to have gl_ prefix.
80165
80166         * m4/jm-macros.m4: Reflect the renamings.
80167         * m4/prereq.m4: Likewise.
80168
80169 2004-04-20  Jim Meyering  <jim@meyering.net>
80170
80171         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80172         memory.
80173
80174 2004-04-20  Jim Meyering  <jim@meyering.net>
80175             Bruno Haible  <bruno@clisp.org>
80176
80177         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80178         memory when realloc fails.
80179
80180 2004-04-19  Jim Meyering  <jim@meyering.net>
80181
80182         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80183         now that readutmp.c may call `free (0)'.
80184
80185 2004-04-19  Bruno Haible  <bruno@clisp.org>
80186
80187         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80188         * m4/inttypes_h.m4: Likewise.
80189         * m4/stdint_h.m4: Likewise.
80190         * m4/intmax_t.m4: Likewise.
80191         * m4/uintmax_t.m4: Likewise.
80192
80193 2004-04-18  Jim Meyering  <jim@meyering.net>
80194
80195         * m4/prereq.m4: Don't forbid jm_ prefix.
80196
80197         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80198         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80199         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80200         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80201         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80202         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80203         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80204         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80205         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80206         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80207         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80208         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80209         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80210         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80211         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80212         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80213         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80214         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80215         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80216
80217 2004-04-18  Jim Meyering  <jim@meyering.net>
80218
80219         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80220         failure, don't leak memory and do call END_UTMP_ENT.
80221
80222 2004-04-16  Jim Meyering  <jim@meyering.net>
80223
80224         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80225         coreutils' stat program.
80226         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80227
80228 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80229
80230         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80231         C89.
80232         (CHAR_BIT): Remove, since we assume C89.
80233         Include <stdint.h> if available, as per current Autoconf CVS advice.
80234
80235 2004-03-31  Jim Meyering  <jim@meyering.net>
80236
80237         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80238         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80239         * m4/xalloc.m4: Likewise.
80240
80241 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80242
80243         Merge from coreutils.
80244
80245         * m4/inttostr.m4: New file.
80246         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80247         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80248         Require gl_CLOCK_TIME.
80249         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80250
80251 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80252
80253         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80254         not bool, to be more consistent with Unix conventions.
80255         Suggested by Bruno Haible.
80256
80257         Merge from coreutils.
80258
80259         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80260         * lib/umaxtostr.c: New files.
80261
80262         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80263         the usual <time.h> dance.
80264         (get_date): Change signature to support fractional time stamps.
80265         All callers changed.
80266         * lib/getdate.y: Include "getdate.h" first, as we can now
80267         assume C89 and don't need to worry about 'const'.
80268         Similarly, include "unlocked-io.h" near start, not in middle.
80269         Include <limits.h>.
80270         (textint.value): Use long int rather than int.
80271         (textint.digits): Use size_t rather than int.
80272         (BILLION, LOG10_BILLION): New constants.
80273         (parser_control): New member rel_ns.  Members day_ordinal,
80274         time_zone, month, day, hour, minutes, rel_year, rel_month,
80275         rel_day, rel_hour, rel_minutes, rel_seconds
80276         are now long int, not int.  Member seconds is now struct timespec,
80277         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80278         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80279         not int.
80280         (%union.intval): Now long int, not int.
80281         New member timespec.
80282         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80283         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80284         (spec): Now is a timespec or an item list.
80285         (timespec, items): New nonterminals.
80286         (time, rel, relunit, number, get_date):
80287         Add support for fractional seconds.
80288         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80289         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80290         (to_hour): First arg is now long int, not int.
80291         (to_year): Returns long int, not int.
80292         Don't treat year -70 like 70.
80293         (tm_diff): Returns long int, not int.
80294         (lookup_word): Use bool instead of int when appropriate.
80295         (yylex): Use size_t for count, not int.
80296         Detect overflow when parsing large integer constants.
80297         Add support for fractions.
80298         (get_date): Make pointers 'const' if possible.
80299         Use more-portable code to detect integer overflow.
80300         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80301         Don't use ctime; it's not reliable if the year has >4 digits.
80302
80303         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80304         This is for compatibility with BSD.
80305
80306         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80307         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80308         From coreutils' system.h.
80309
80310         * lib/userspec.c: Don't include "posixver.h".
80311         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80312         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80313         compatible extension.  Simplify code by removing a boolean int
80314         that was always nonzero if a string was nonnull.
80315
80316 2004-03-30  Jim Meyering  <jim@meyering.net>
80317
80318         Merge from coreutils.
80319
80320         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80321         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80322         on some systems one must include <grp.h> before it.
80323         Reported by Christian Krackowizer.
80324
80325 2004-03-30  Jim Meyering  <jim@meyering.net>
80326
80327         Merge from coreutils.
80328
80329         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80330
80331         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80332         an empty input stream.
80333
80334         * lib/readtokens.c: Include <stdbool.h>.
80335         (readtoken): Use `size_t' rather than int/long.
80336         All callers adjusted.
80337         Use `bool' rather than `int' where appropriate.
80338         Use memset rather than an explicit loop.
80339         Use x2nrealloc rather than xrealloc.
80340         Allow the use of `\0' as a delimiter.
80341         (readtokens): Likewise.
80342         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80343
80344 2004-03-30  Jim Meyering  <jim@meyering.net>
80345
80346         * m4/realloc.m4: Remove file, since now it does no more than
80347         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80348         the `configure.ac' section of module/realloc.
80349         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80350
80351 2004-03-30  Bruno Haible  <bruno@clisp.org>
80352
80353         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80354         nonnull.
80355
80356 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80357
80358         Merge changes to getloadavg.c from coreutils and Emacs.
80359
80360         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80361         Define to an expression, not to the empty string.
80362         Include cloexec.h and xalloc.h.
80363         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80364         Use set_cloexec_flag rather than rolling our own.
80365         * lib/cloexec.c, lib/cloexec.h: New files.
80366
80367 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80368
80369         * m4/cloexec.m4: New file.
80370
80371 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80372
80373         * lib/getopt.h: Sync with libc CVS.
80374
80375 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80376             Bruno Haible  <bruno@clisp.org>
80377
80378         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80379         mbswidth.
80380
80381 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80382             Bruno Haible  <bruno@clisp.org>
80383
80384         * lib/mbswidth.h: Include <wchar.h> only if
80385         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80386         <wchar.h>.
80387         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80388
80389 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80390
80391         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80392         Sync with libc CVS.
80393         * lib/getopt_int.h: New file, also synced from libc.
80394
80395 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80396
80397         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80398         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80399         Bring back getopt.c, getopt.h, getopt1.c.
80400
80401 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80402
80403         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80404         All uses changed.  Check for sa_sigaction member; this fixes
80405         a bug first reported by Jason Andrade in
80406         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80407
80408 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80409
80410         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80411         '#if' expressions.  Unlike the code it replaces, it does not
80412         depend on (defined _SC_PAGESIZE).  However, it does depend on
80413         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80414         first reported by Jason Andrade in
80415         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80416
80417 2004-02-25  Simon Josefsson  <jas@extundo.com>
80418
80419         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80420
80421 2004-02-25  Simon Josefsson  <jas@extundo.com>
80422
80423         * lib/strdup.h: New file.
80424         * lib/strdup.c: Include it.
80425         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80426         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80427
80428 2004-02-23  Karl Berry  <karl@gnu.org>
80429
80430         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80431         (from fencepost.gnu.org:/gd/gnuorg).
80432
80433 2004-02-23  Karl Berry  <karl@gnu.org>
80434
80435         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80436         * config/srclist.txt: add maintain/standards documents.
80437
80438 2004-02-18  Bruno Haible  <bruno@clisp.org>
80439
80440         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80441         Reported by Derek Robert Price <derek@ximbiot.com>.
80442
80443 2004-02-16  Karl Berry  <karl@gnu.org>
80444
80445         * config/mkinstalldirs, install-sh: update from automake.
80446
80447 2004-02-06  Karl Berry  <karl@gnu.org>
80448
80449         * m4/po.m4: update from gettext 0.14.1.
80450
80451 2004-02-06  Karl Berry  <karl@gnu.org>
80452
80453         * lib/config.charset: update from gettext 0.14.1.
80454
80455 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80456
80457         Add comments and code, prompted by suggestions from Bruno Haible
80458         for sh-quote.
80459         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80460         describing the enum quoting_style values.
80461         * lib/quotearg.c (quotearg_alloc): New function.
80462         (quotearg_buffer_restyled): Treat lone { and } as special.
80463         Treat = as special.  Work around bug with older shells
80464         that "see" a '\' that is really the 2nd byte of a multibyte char.
80465         Quote empty string with shell_quoting_style.
80466
80467 2004-02-03  Bruno Haible  <bruno@clisp.org>
80468
80469         * m4/pipe.m4: New file, from GNU gettext.
80470
80471 2004-02-03  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/pipe.h: New file, from GNU gettext.
80474         * lib/pipe.c: New file, from GNU gettext.
80475
80476 2004-01-27  Bruno Haible  <bruno@clisp.org>
80477
80478         * m4/execute.m4: New file, from GNU gettext.
80479
80480 2004-01-27  Bruno Haible  <bruno@clisp.org>
80481
80482         * lib/execute.h: New file, from GNU gettext.
80483         * lib/execute.c: New file, from GNU gettext.
80484         * lib/w32spawn.h: New file, from GNU gettext.
80485
80486 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80487
80488         Merge from diffutils.
80489
80490         * lib/file-type.c (file_type): Add typed memory objects.
80491         * lib/file-type.h (S_TYPEISTMO): New macro.
80492
80493         * lib/c-stack.h (c_stack_action): Remove argv argument.
80494         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80495         (die): Don't calculate message unless segv_action returns.
80496         (get_stack_location, min_address_from_argv, max_address_from_argv,
80497         volatile stack_base, volatile_stack_size): Remove.
80498         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80499         that every segmentation violation is a stack overflow.  (Ouch!)
80500         See Debian bug 136249 (still outstanding) for more info about why
80501         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80502
80503 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80504
80505         Exit-status fix from coreutils.
80506
80507         Use exit_failure consistently in place of EXIT_FAILURE,
80508         so that program exit statuses are consistent on failure.
80509
80510         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80511         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80512         * lib/argmatch.h: Comment fix to match the above.
80513         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80514         Now a macro referring to exit_failure, instead of a separate
80515         variable.  Include "exitfail.h" to get it.
80516         * lib/xstrtol.h: Include "exitfail.h".
80517         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80518
80519         * lib/long-options.c (parse_long_options): Use prototype
80520         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80521         for clarity.
80522
80523 2004-01-21  Jim Meyering  <jim@meyering.net>
80524
80525         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80526         so as not to conflict with a different-sized __mktime_internal
80527         function in GNU libc.
80528         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80529         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80530
80531 2004-01-20  Karl Berry  <karl@gnu.org>
80532
80533         * config/config.guess: update from config.
80534
80535         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80536
80537 2004-01-20  Bruno Haible  <bruno@clisp.org>
80538
80539         Safer stack allocation.
80540         * lib/setenv.c: Include allocsa.h.
80541         (alloca): Remove fallback definition.
80542         (freea): Remove macro.
80543         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80544         instead of freea.
80545
80546 2004-01-20  Bruno Haible  <bruno@clisp.org>
80547
80548         * m4/eealloc.m4: New file, from GNU gettext.
80549
80550 2004-01-20  Bruno Haible  <bruno@clisp.org>
80551
80552         * m4/allocsa.m4: New file, from GNU gettext.
80553
80554 2004-01-20  Bruno Haible  <bruno@clisp.org>
80555
80556         * lib/xallocsa.h: New file, from GNU gettext.
80557         * lib/xallocsa.c: New file, from GNU gettext.
80558
80559 2004-01-20  Bruno Haible  <bruno@clisp.org>
80560
80561         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80562
80563 2004-01-20  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80566         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80567         specially.
80568
80569 2004-01-20  Bruno Haible  <bruno@clisp.org>
80570
80571         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80572         patch.
80573
80574 2004-01-20  Bruno Haible  <bruno@clisp.org>
80575
80576         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80577
80578 2004-01-20  Bruno Haible  <bruno@clisp.org>
80579
80580         * lib/eealloc.h: New file.
80581
80582 2004-01-20  Bruno Haible  <bruno@clisp.org>
80583
80584         * lib/binary-io.h: Avoid warnings on Cygwin.
80585
80586 2004-01-20  Bruno Haible  <bruno@clisp.org>
80587
80588         * lib/allocsa.h: New file, from GNU gettext.
80589         * lib/allocsa.c: New file, from GNU gettext.
80590
80591 2004-01-18  Karl Berry  <karl@gnu.org>
80592
80593         * doc/gpl.texi, doc/lgpl.texi: new files.
80594
80595 2004-01-18  Karl Berry  <karl@gnu.org>
80596
80597         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80598         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80599
80600 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80601
80602         Merge from coreutils.
80603
80604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80605         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80606         (gl_DEFAULT_POSIX2_VERSION): Move
80607         the documentation from 'configure' into 'config.hin',
80608         so that 'configure --help' isn't burdened by it and
80609         we don't have to worry about its formatting there.
80610         Reword the documentation so that it's more succinct
80611         and can be run together into a single paragraph.
80612         * m4/same.m4 (gl_SAME): Check for pathconf.
80613
80614 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80615
80616         Merge from coreutils.
80617
80618         * lib/posixver.c: Include posixver.h.
80619
80620         * lib/same.c: Include <stdbool.h>, <limits.h>.
80621         (_POSIX_NAME_MAX): Define if not defined.
80622         (MIN): New macro.
80623         (same_name): If file names are silently truncated, report
80624         that the file names are the same if they are the same after
80625         the silent truncation.
80626
80627         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80628         conversion function.
80629         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80630         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80631         longer needed.
80632
80633 2004-01-15  Jim Meyering  <jim@meyering.net>
80634
80635         Merge from coreutils.
80636
80637         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80638         if no library is required.
80639         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80640         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80641         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80642         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80643         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80644         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80645         value, $ac_cv_search_crypt, if it's "none required".
80646         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80647         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80648         not gl_FUNC_GETLOADAVG.
80649         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80650         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80651
80652 2004-01-15  Jim Meyering  <jim@meyering.net>
80653
80654         Merge from coreutils.
80655
80656         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80657         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80658         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80659
80660         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80661         optional configure-time default.
80662
80663         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80664
80665         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80666
80667 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80668
80669         Merge from coreutils.
80670
80671         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80672         value, $ac_cv_search_nanosleep, if it's "none required".
80673
80674 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80675
80676         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80677         with like-named macro in fnmatch.c.
80678         (EXT): Use an internal constant instead.
80679
80680         Merge fnmatch patches from glibc.
80681         * lib/fnmatch.c (mbsinit): Remove define.
80682         Add libc_hidden_ver (__fnmatch, fnmatch).
80683         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80684         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80685
80686 2004-01-14  Karl Berry  <karl@gnu.org>
80687
80688         * config/install-sh: update from automake.
80689
80690 2004-01-13  Karl Berry  <karl@gnu.org>
80691
80692         * config/install-sh: update from automake.
80693
80694 2004-01-09  Karl Berry  <karl@gnu.org>
80695
80696         * config/install-sh: update from automake.
80697
80698 2004-01-05  Karl Berry  <karl@gnu.org>
80699
80700         * config/config.{sub,guess}: update from config.
80701
80702 2003-12-31  Karl Berry  <karl@gnu.org>
80703
80704         * config/depcomp: update from automake.
80705
80706 2003-12-14  Karl Berry  <karl@gnu.org>
80707
80708         * lib/config.charset: update from gettext-runtime.
80709
80710 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80711
80712         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80713         Bug reported by Alfred M. Szmidt.
80714
80715 2003-12-03  Bruno Haible  <bruno@clisp.org>
80716
80717         * m4/gettext.m4: Upgrade from gettext-0.13.
80718         * m4/po.m4: Upgrade from gettext-0.13.
80719         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80720         * m4/intmax.m4: New file, from gettext-0.13.
80721         * m4/printf-posix.m4: New file, from gettext-0.13.
80722
80723 2003-11-29  Karl Berry  <karl@gnu.org>
80724
80725         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80726
80727 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80728             Bruno Haible  <bruno@clisp.org>
80729
80730         * lib/printf-parse.h: Don't include sys/types.h.
80731         (ARG_NONE): New macro.
80732         (char_directive): Change type of *arg_index fields to size_t.
80733         * lib/printf-parse.c: Don't include sys/types.h.
80734         (SSIZE_MAX): Remove macro.
80735         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80736         Remove unnecessary overflow check.
80737         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80738         fields.
80739
80740 2003-11-25  Bruno Haible  <bruno@clisp.org>
80741
80742         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80743
80744 2003-11-25  Bruno Haible  <bruno@clisp.org>
80745
80746         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80747         gt_TYPE_SSIZE_T.
80748
80749 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80750
80751         * modules/alloca: Remove dependency on xalloc.
80752
80753 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80754
80755         * lib/alloca.c: Remove dependency on xalloc module.
80756         (xalloc_die): Remove.
80757         (memory_full) [!defined emacs]: New macro.
80758         [!defined emacs]: Don't include xalloc.h.
80759         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80760         address arithmetic overflows.  Change datatypes a bit to avoid
80761         unnecessary casts.
80762
80763 2003-11-22  Jim Meyering  <jim@meyering.net>
80764
80765         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80766         s/size/size_t/.
80767
80768 2003-11-21  Karl Berry  <karl@gnu.org>
80769
80770         * config/config.{sub,guess}: update from config.
80771
80772 2003-11-18  Karl Berry  <karl@gnu.org>
80773
80774         * config/config.{sub,guess}: update from config.
80775
80776         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80777
80778 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80779
80780         * README: Mention that S+T cannot overflow if S is the size of
80781         an existing object and T is sufficiently small.
80782
80783 2003-11-17  Jim Meyering  <jim@meyering.net>
80784
80785         On systems without utime and without a utimes function capable of
80786         dealing with a NULL struct utimbuf* argument, this utime replacement
80787         could -- in unusual circumstances -- leak a file descriptor.
80788         * lib/utime.c: Include <unistd.h> and <errno.h>.
80789         (utime_null): Be sure to close `fd' and to preserve errno.
80790         Reported by Geoff Collyer via Arnold Robbins.
80791
80792 2003-11-17  Bruno Haible  <bruno@clisp.org>
80793
80794         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80795         (Depends-on): Add xsize.
80796
80797 2003-11-17  Bruno Haible  <bruno@clisp.org>
80798
80799         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80800
80801 2003-11-17  Bruno Haible  <bruno@clisp.org>
80802
80803         * lib/vasnprintf.c (alloca): Remove fallback definition.
80804         (freea): Remove definition.
80805         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80806         Reported by Paul Eggert.
80807
80808 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80809             Bruno Haible  <bruno@clisp.org>
80810
80811         Protect against address arithmetic overflow.
80812         * lib/printf-args.h: Include stddef.h.
80813         (arguments): Change type of field 'count' to size_t.
80814         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80815         'unsigned int' where appropriate.
80816         * lib/printf-parse.h: Include sys/types.h.
80817         (char_directive): Change type of *arg_index fields to ssize_t.
80818         (char_directives): Change type of fields 'count', max_*_length to
80819         size_t.
80820         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80821         (SSIZE_MAX): Define fallback value.
80822         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80823         instead of 'int' where appropriate. Check a_allocated, d_allocated
80824         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80825         * lib/vasnprintf.c: Include xsize.h.
80826         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80827         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80828         overflow. Avoid wraparound when converting a width or precision from
80829         decimal to binary.
80830
80831 2003-11-16  Bruno Haible  <bruno@clisp.org>
80832
80833         Update from GNU gettext.
80834         * lib/printf-parse.c: Generalize to it can be compiled for wide
80835         strings.
80836         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80837         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80838         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80839         SNPRINTF): New macros.
80840         Don't include <alloca.h> if the file is used inside libintl.
80841         (local_wcslen): New function, for Solaris 2.5.1.
80842         (VASNPRINTF): Use it instead of wcslen.
80843
80844 2003-11-16  Bruno Haible  <bruno@clisp.org>
80845
80846         * lib/xsize.h (xmax): New function.
80847         (xsum, xsum3, xsum4): Declare as "pure" functions.
80848
80849 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80850
80851         * modules/xalloc (Files): Undo latest change, since xalloc.h
80852         no longer needs SIZE_MAX or PTRDIFF_MAX.
80853
80854 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80855
80856         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80857         gl_PTRDIFF_MAX.
80858
80859 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80860
80861         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80862         "return", to pacify some unknown compiler.  Problem reported
80863         by Joerg Schilling.
80864
80865 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80866
80867         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80868         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80869         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80870         heuristic is just as accurate as far as we know, and it removes a
80871         dependency on size_max.m4 and ptrdiff_max.m4.
80872
80873 2003-11-11  Bruno Haible  <bruno@clisp.org>
80874
80875         * modules/xsize (Files): Add m4/size_max.m4.
80876         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80877
80878 2003-11-11  Bruno Haible  <bruno@clisp.org>
80879
80880         * m4/size_max.m4: New file.
80881         * m4/ptrdiff_max.m4: New file.
80882         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80883         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80884         (gl_XALLOC): Invoke it.
80885
80886 2003-11-11  Bruno Haible  <bruno@clisp.org>
80887
80888         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80889         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80890         defined.
80891
80892 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80893
80894         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80895         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80896         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80897         From Bruno Haible.
80898         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80899         not (size_t) -1, since it's defined here.
80900
80901 2003-11-09  Karl Berry  <karl@gnu.org>
80902
80903         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80904
80905 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80906
80907         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80908         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80909         Reject sizes of exactly SIZE_MAX bytes.
80910         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80911         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80912
80913 2003-11-05  Bruno Haible  <bruno@clisp.org>
80914
80915         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80916         SIZE_MAX defined in <limits.h> on Solaris.
80917
80918 2003-11-04  Jim Meyering  <jim@meyering.net>
80919
80920         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80921         variable names, rather than @VAR@.
80922         * modules/poll: Likewise.
80923
80924 2003-11-04  Bruno Haible  <bruno@clisp.org>
80925
80926         * modules/xsize: New file.
80927         * modules/linebreak: Depend on xsize.
80928         * MODULES.html.sh (func_all_modules): Add xsize.
80929
80930 2003-11-04  Bruno Haible  <bruno@clisp.org>
80931
80932         * m4/xsize.m4: New file.
80933
80934 2003-11-04  Bruno Haible  <bruno@clisp.org>
80935
80936         * lib/xsize.h: New file.
80937         * lib/linebreak.c: Include xsize.h.
80938         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80939         argument for overflow.
80940         Suggested by Paul Eggert.
80941
80942 2003-11-03  Karl Berry  <karl@gnu.org>
80943
80944         * config/config.{guess,sub}: update from config.
80945
80946 2003-11-03  Jim Meyering  <jim@meyering.net>
80947
80948         * modules/userspec (lib_SOURCES): Add userspec.h.
80949         (Include): Add "userspec.h".
80950         Improve description.
80951
80952 2003-11-03  Jim Meyering  <jim@meyering.net>
80953
80954         * lib/userspec.c: Include "userspec.h".
80955         * lib/userspec.h: New file.
80956
80957 2003-11-03  Bruno Haible  <bruno@clisp.org>
80958
80959         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80960
80961 2003-11-03  Bruno Haible  <bruno@clisp.org>
80962
80963         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80964         available, to avoid (extremely rare) race condition.
80965         Suggested by Paul Eggert.
80966
80967 2003-11-02  Karl Berry  <karl@gnu.org>
80968
80969         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80970
80971 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80972
80973         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80974         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80975         (read_filesystem_list): Set and use me_type_malloced.
80976         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80977         whatever the type happens to be), for brevity and consistency.
80978         Check for size calculation overflow on Alphas running OSF/1.
80979
80980 2003-10-31  Jim Meyering  <jim@meyering.net>
80981
80982         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80983
80984         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80985
80986 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80987             Bruno Haible  <bruno@clisp.org>
80988
80989         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80990         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80991
80992 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80995         netbsd*-gnu*.  Suggested by Robert Millan.
80996
80997 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80998
80999         * modules/group-member: Depend on stdbool.
81000
81001 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81002
81003         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81004
81005 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81006
81007         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81008         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81009         after the 'gnu' in these cases.  This fixes some bugs in the
81010         previous change, and is based on suggestions by Robert Millan.
81011
81012 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81013
81014         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81015         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81016         no longer needed.
81017         * lib/quotearg.c (quotearg_n_options): Use it.
81018         * lib/group-member.c: Include <stdbool.h>.
81019         (free_group_info): Arg is now const *; don't free arg.
81020         (get_group_info): Now returns bool and accepts struct group_info *,
81021         rather than returning a malloc'ed struct group_info *.
81022         All uses changed.  Check for overflow in internal size calculation.
81023
81024         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81025         rather than xmalloc/xrealloc.
81026         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81027         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81028         conformance bug: the old code used a pointer after freeing the
81029         storage that it addressed.
81030         * lib/hash.c (hash_initialize): Simplify the code by using
81031         xalloc_oversized rather than doing it by hand.
81032         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81033         the buffer preserved.  Use free and xmalloc instead.
81034         * lib/quotearg.c (quotearg_n_options): Likewise.
81035         Use a simpler test for size overflow.  Don't use xalloc_oversized
81036         because unsigned int might be wider than size_t (!); this suggests
81037         that we should switch from unsigned int to size_t for slot numbers.
81038
81039 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81040
81041         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81042         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81043         NetBSD kernels.  Requested by Richard Stallman.
81044
81045 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81046
81047         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81048         to allocate the returned structure.  Do not allocate a subarray,
81049         as x2nrealloc will do that.
81050         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81051         instead of xnrealloc.
81052         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81053
81054 2003-10-27  Bruno Haible  <bruno@clisp.org>
81055
81056         * lib/stdbool_.h: Better support for BeOS.
81057
81058 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81059
81060         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81061         now uses inline.
81062
81063 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81064
81065         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81066         callers that want to do their own size-overflow checking.  Include
81067         <stdbool.h>, since xalloc_oversized returns bool.
81068         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81069         to use xalloc_oversized.
81070
81071         Add two functions x2realloc, x2nrealloc, for programs that grow
81072         arrays dynamically by doubling their sizes.
81073         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81074         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81075         New functions.
81076
81077         Port to C99 semantics for 'inline' of external functions.
81078         Bug reported by Bruno Haible.
81079         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81080         with the old contents of xnmalloc.
81081         (xnmalloc, xmalloc): Use it.
81082         (xnrealloc_inline): New static inline function,
81083         with the old contents of xnrealloc.
81084         (xnrealloc, xrealloc): Use it.
81085
81086         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81087         that.
81088
81089 2003-10-26  Karl Berry  <karl@gnu.org>
81090
81091         * config/srclist.txt (COPYING.DOC): no longer available from
81092         /gd/gnuorg; don't know where the ultimate source is.
81093
81094 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81095
81096         Fix several address-calculation bugs in the hash modules,
81097         plus some minor code cleanup.
81098
81099         * lib/hash.h: Include <stdbool.h>, for bool.
81100         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81101         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81102         hash_get_n_entries, hash_get_max_bucket_length,
81103         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81104         hash_rehash): Use size_t rather than unsigned.
81105         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81106         hash_get_n_buckets_used, hash_get_n_entries,
81107         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81108         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81109         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81110         Likewise.
81111         (SIZE_MAX): Define if not defined.
81112         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81113         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81114         hash_print):
81115         Use const * when possible.
81116         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81117         (check_tuning): Fix bug: if tuning parameters were very close to
81118         0 or 1, rounding errors could have caused subscript violations.
81119         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81120         (hash_initialize): Add 'fail:' label
81121         to free table and return NULL, and use it to simplify code.
81122         Use calloc rather than clearing the storage ourself.
81123         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81124         buffer size calculations.
81125         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81126         Include <stddef.h>, for size_t.
81127         * lib/hash-pjw.c (hash_pjw): Likewise.
81128         Switch to method described by Bruno Haible.
81129         Include <limits.h>, for CHAR_BIT.
81130         (SIZE_BITS): New macro.
81131
81132 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81133
81134         * m4/getline.m4 (AM_FUNC_GETLINE):
81135         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81136         hosts.  Problem reported by Derek Robert Price in
81137         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81138         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81139         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81140
81141 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81142
81143         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81144         ceiling the allocation at NMAX bytes rather than silently
81145         discarding input bytes before NMAX is reached.  This makes
81146         a difference only if NMAX exceeds SIZE_MAX / 2.
81147
81148         * lib/obstack.c: Merge from glibc.
81149         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81150         Add libc_hidden_def (_obstack_newchunk).
81151         (_obstack_free) [! defined _LIBC]: Remove.
81152         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81153         a clone of the function body.
81154         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81155         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81156
81157         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81158         glibc.
81159         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81160         arg to memcpy.
81161
81162         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81163         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81164         Don't use lvalue casts, as GCC plans to remove support for them
81165         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81166         was also present in the non-GCC version, indicating that this
81167         code had always been buggy and had never been widely used.
81168         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81169         Use the fast variant of each macro, rather than copying the
81170         definiens of the fast variant; that way, we'll be more likely to
81171         catch future bugs in the fast variants.
81172
81173 2003-10-20  Bruno Haible  <bruno@clisp.org>
81174
81175         * modules/wait-process: New file.
81176         * MODULES.html.sh (func_all_modules): Add wait-process.
81177
81178 2003-10-20  Bruno Haible  <bruno@clisp.org>
81179
81180         * m4/wait-process.m4: New file.
81181
81182 2003-10-20  Bruno Haible  <bruno@clisp.org>
81183
81184         * lib/wait-process.h: New file, from GNU gettext.
81185         * lib/wait-process.c: New file, from GNU gettext.
81186
81187 2003-10-19  Jim Meyering  <jim@meyering.net>
81188
81189         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81190         HPUX 10.20.
81191
81192 2003-10-18  Karl Berry  <karl@gnu.org>
81193
81194         * config/config.guess: update from config.
81195
81196 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81197
81198         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81199         (getgroups): First arg is int, not size_t.
81200         Don't let 'free' mangle errno.
81201
81202 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81203
81204         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81205
81206 2003-10-16  Karl Berry  <karl@gnu.org>
81207
81208         * config/config.{guess,sub}: update from config.
81209
81210 2003-10-16  Jim Meyering  <jim@meyering.net>
81211
81212         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81213         memcpy.
81214
81215 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81216
81217         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81218         (SIZE_MAX): Remove.
81219         (new_exclude, add_exclude_file): Initial size no longer needs to
81220         be a power of 2.
81221         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81222         our own address arithmetic overflow checking.
81223
81224         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81225         (fnmatch): Do not alloca more than 2000 wide characters;
81226         instead, use malloc for large buffers.
81227         Check for address arithmetic overflow, and return -1
81228         with errno set to ENOMEM in that case.
81229         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81230         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81231         instead, return -1.  Check for address arithmetic overflow.
81232
81233 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81234
81235         Handle invalid suffixes and overflow independently, so that
81236         callers can treat them independently as needed.  Fix some bugs in
81237         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81238         suffix for a human-readable blocksize.  The major caller-visible
81239         change is the addition of a new
81240         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81241         that both overflow and suffix chars were found.
81242
81243         * lib/human.c (humblock): Don't check separately for invalid suffix
81244         char; that is xstrtoumax's job (now that its bug is fixed).
81245         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81246         INTMAX_MAX]: New macros.
81247         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81248         TYPE_MAXIMUM): New macros.
81249         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81250         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81251         if overflow occurs, as it's what __strtol does and it's more useful
81252         in practice.
81253         (__xstrtol): If __strtol reports some error other than ERANGE,
81254         reflect it to the caller as LONGINT_INVALID.  If it reports
81255         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81256         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81257         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81258         value.
81259         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81260         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81261         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81262         [defined UINTMAX_MAX]: New macros.
81263
81264 2003-10-14  Bruno Haible  <bruno@clisp.org>
81265
81266         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81267
81268 2003-10-14  Bruno Haible  <bruno@clisp.org>
81269
81270         * m4/sig_atomic_t: New file, from GNU gettext.
81271         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81272
81273 2003-10-14  Bruno Haible  <bruno@clisp.org>
81274
81275         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81276         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81277         Also use volatile where needed.
81278
81279 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81280
81281         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81282         Change maintainer from Bruno Haible to 'all'.
81283
81284 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81285
81286         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81287
81288 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81289
81290         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81291         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81292         and define in terms of the other primitives.
81293         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81294         (SIZE_MAX): Define if not already defined.
81295         (array_size_overflow): New function.
81296         (xalloc_die): Abort instead of exiting if 'error' returns.
81297         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81298         (xmalloc, xrealloc): Use them.
81299         (xcalloc): Check for address arithmetic overflow.
81300         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81301         a bit faster than strcpy.
81302
81303 2003-10-10  Simon Josefsson  <jas@extundo.com>
81304
81305         * modules/argp (Depends-on): Add restrict and strcase.
81306
81307 2003-10-10  Simon Josefsson  <jas@extundo.com>
81308
81309         * m4/argp.m4: Add AC_C_INLINE.
81310
81311 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81312
81313         Merge getpass from libc, plus a few fixes.
81314
81315         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81316         Include <stdbool.h>.
81317         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81318         __fsetlocking to empty.
81319         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81320         do include <bits/libc-lock.h>.
81321         Do not include <fcntl.h>; not needed.
81322         [_LIBC]: Include <wchar.h>.
81323         (NOTCANCEL_MODE): New macro.
81324         (flockfile, funlockfile) [_LIBC]: New macros.
81325         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81326         [!_LIBC]: New macros.
81327         (call_fclose): New function.
81328         (getpass): Use it.  Save tty stream separately; this simplifies the
81329         code and makes it more reliable if stdin happens to equal stdout.
81330         Invoke __fsetlocking on tty.
81331         Handle thread cancellation if needed.
81332         Namespace cleanup (use __tcgetattr, __getline).
81333         Use bool for Booleans.
81334         [USE_IN_LIBIO]: Handle wide streams.
81335         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81336         stream might go where.
81337
81338         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81339         doesn't have to include <stdio.h> before us.
81340         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81341         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81342         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81343         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81344         if not declared, so that we can use getpass.c code from libc without
81345         rewriting it.
81346         (flockfile, ftrylockfile, funlockfile): New macros.
81347
81348 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81349
81350         * modules/getpass: Depend on stdbool.
81351
81352 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81353
81354         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81355
81356 2003-10-07  Karl Berry  <karl@gnu.org>
81357
81358         * config/config.{guess,sub}: update from config.
81359
81360 2003-10-06  Jim Meyering  <jim@meyering.net>
81361             Bruno Haible  <bruno@clisp.org>
81362
81363         This lets translators provide better translations for the
81364         "Written by ..." part of --version output.
81365         * lib/version-etc.h: Include stdarg.h.
81366         (version_etc_copyright): Declare as readonly.
81367         (version_etc): Make this function variadic with a NULL-terminated list
81368         of author name strings.
81369         (version_etc_va): New declaration.
81370         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81371         (version_etc_copyright): Declare as readonly.
81372         (version_etc_va): New function. Provide a different translatable string
81373         for each possible number of authors < 10. Abbreviate when there are 10
81374         authors or more.
81375         (version_etc): Make this function variadic. Call version_etc_va.
81376         Suggestion from Gary V. Vaughan.
81377
81378         * lib/long-options.h (parse_long_options): Change prototype: the
81379         authors string is moved to the end and becomes variadic.
81380         * lib/long-options.c: Include stdarg.h.
81381         (parse_long_options): Make this function variadic, too.
81382         Call version_etc_va, not version_etc.
81383
81384 2003-10-06  Bruno Haible  <bruno@clisp.org>
81385
81386         * modules/version-etc-2: Remove file.
81387         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81388
81389 2003-10-06  Bruno Haible  <bruno@clisp.org>
81390
81391         * modules/fatal-signal: New file.
81392         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81393
81394 2003-10-06  Bruno Haible  <bruno@clisp.org>
81395
81396         * m4/fatal-signal.m4: New file.
81397         * m4/signalblocking.m4: New file, from GNU gettext.
81398
81399 2003-10-06  Bruno Haible  <bruno@clisp.org>
81400
81401         * lib/version-etc-2.h: Remove file.
81402         * lib/version-etc-2.c: Remove file.
81403
81404 2003-10-06  Bruno Haible  <bruno@clisp.org>
81405
81406         * lib/fatal-signal.h: New file, from GNU gettext.
81407         * lib/fatal-signal.c: New file, from GNU gettext.
81408
81409 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81410
81411         * README: Rework advice for preventing empty .o files.
81412         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81413         not <sys/types.h>.
81414
81415 2003-10-04  Karl Berry  <karl@gnu.org>
81416
81417         * lib/argp*: update from libc.
81418
81419 2003-10-04  Karl Berry  <karl@gnu.org>
81420
81421         * config/config.{guess,sub}: update from config.
81422
81423 2003-10-02  Bruno Haible  <bruno@clisp.org>
81424
81425         * modules/lchown (Include): Add lchown.h.
81426         * modules/time_r (Include): Use "..." syntax.
81427         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81428
81429 2003-10-01  Simon Josefsson  <jas@extundo.com>
81430
81431         * MODULES.html.sh (func_all_modules): Move gethostname from section
81432         'based on' to section 'lacking' POSIX:2001.
81433
81434 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81435
81436         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81437         to output mode on the same stream.
81438
81439 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81440
81441         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81442         Fix arg typo in previous patch.
81443
81444 2003-09-28  Jim Meyering  <jim@meyering.net>
81445
81446         * lib/error.c: Correct cpp indentation.
81447
81448 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81449
81450         * modules/free: New file.
81451
81452 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81453
81454         * m4/free.m4: New file.
81455
81456 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81457
81458         * lib/minmax.h (MIN, MAX)
81459         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81460         Omit the special code that used __typeof__, since we worry that
81461         it could be more trouble than it's worth.  See:
81462         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81463         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81464
81465         * lib/free.c: New file.
81466
81467 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81468
81469         Trivial fixes to Makefile.am parts of module listings.
81470         * modules/strstr: Append strstr.h to lib_SOURCES.
81471         * modules/strcase: Likewise, for strcase.h.
81472
81473 2003-09-27  Karl Berry  <karl@gnu.org>
81474
81475         * config/mkinstalldirs: update from automake.
81476
81477 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81478
81479         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81480         (error_tail): Do not loop, reallocating temporary buffer, since
81481         the output cannot contain more wide characters than the input
81482         contains bytes, the size must be big enough already.  This avoids
81483         one potential size overflow calculation.  Check for size overflow
81484         when calculating temporary buffer size.  Free temporary buffer
81485         when done, if it was allocated with malloc; this plugs a memory
81486         leak.  Remove casts from void * to pointers, that are no longer
81487         needed now that we're assuming C89 or better.
81488
81489         Merge error changes from glibc.
81490
81491         * lib/error.c, error.h: Update copyright notice header to match glibc.
81492         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81493         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81494         Disable cancellation while printing error.
81495         * lib/error.h: Prepend __ to parameter names.
81496
81497 2003-09-26  Jim Meyering  <jim@meyering.net>
81498
81499         * lib/error.c (error_tail): Move some declarations
81500         into inner scope where the local variables are used.
81501
81502 2003-09-26  Bruno Haible  <bruno@clisp.org>
81503
81504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81505         stpncpy().
81506         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81507
81508 2003-09-26  Bruno Haible  <bruno@clisp.org>
81509
81510         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81511         (stpncpy): Define as alias for gnu_stpncpy.
81512         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81513
81514 2003-09-25  Simon Josefsson  <jas@extundo.com>
81515
81516         * lib/xgetdomainname.h: New file.
81517         * lib/xgetdomainname.c: New file.
81518
81519 2003-09-25  Simon Josefsson  <jas@extundo.com>
81520             Bruno Haible  <bruno@clisp.org>
81521
81522         * modules/getdomainname: New file.
81523         * modules/xgetdomainname: New file.
81524         * MODULES.html.sh (func_all_modules): Add getdomainname,
81525         xgetdomainname.
81526
81527 2003-09-25  Simon Josefsson  <jas@extundo.com>
81528             Bruno Haible  <bruno@clisp.org>
81529
81530         * m4/getdomainname.m4: New file.
81531
81532 2003-09-25  Simon Josefsson  <jas@extundo.com>
81533             Bruno Haible  <bruno@clisp.org>
81534
81535         * lib/getdomainname.h: New file.
81536         * lib/getdomainname.c: New file.
81537
81538 2003-09-25  Karl Berry  <karl@gnu.org>
81539
81540         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81541
81542 2003-09-25  Karl Berry  <karl@gnu.org>
81543
81544         * config/install-sh: update from automake.
81545
81546 2003-09-25  Bruno Haible  <bruno@clisp.org>
81547
81548         * modules/version-etc-2: New file, from modules/version-etc with
81549         modifications.
81550         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81551
81552 2003-09-25  Bruno Haible  <bruno@clisp.org>
81553
81554         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81555         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81556
81557 2003-09-24  Simon Josefsson  <jas@extundo.com>
81558
81559         * modules/xgethostname: Add xgethostname.h.
81560
81561 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81562
81563         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81564         the buffer associated with the argument.  Bug reported by
81565         Simon Josefsson.
81566
81567 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81568
81569         * README: Document assumptions that 'int' is at least 32 bits
81570         wide, that integer arithmetic is 2's complement without overflow,
81571         that there are no holes in integer values, that adding sizes of
81572         two nonoverlapping objects can't overflow, and that all-bits-zero
81573         yields scalar zero.  Fix spelling and capitalization typos.
81574
81575 2003-09-19  Karl Berry  <karl@gnu.org>
81576
81577         * lib/argp.h: update from libc.
81578
81579 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81580
81581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81582         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81583         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81584
81585 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81586
81587         * gnulib-tool: Use "test -h", not "test -L", for portability
81588         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81589         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81590         (sed_extract_prog): Issue s commands one-by-one, rather than
81591         using \| in one s command.
81592
81593 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81594
81595         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81596         input error, instead of returning NULL the next time we are called
81597         (and therefore losing track of errno).
81598
81599 2003-09-16  Bruno Haible  <bruno@clisp.org>
81600
81601         * gnulib-tool (func_create_testdir): Warn about duplicated
81602         dependencies.
81603
81604 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81605
81606         * modules/argmatch, modules/fatal, modules/obstack,
81607         modules/xalloc, modules/xgethostname: Sort dependencies by
81608         importance, not alphabetically.
81609
81610 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81611
81612         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81613         fails, so that the caller gets the proper errno.
81614
81615         * lib/readutmp.c (read_utmp): Likewise.
81616         Check for fstat error.  Close stream and free storage
81617         when failing.
81618
81619 2003-09-14  Karl Berry  <karl@gnu.org>
81620
81621         * config/srclist.txt (strdup.c): disable for c89 changes.
81622
81623 2003-09-14  Jim Meyering  <jim@meyering.net>
81624
81625         * lib/getloadavg.c: Correct cpp indentation.
81626         * lib/strdup.c: Likewise.
81627         * lib/vasnprintf.c: Likewise.
81628
81629 2003-09-14  Bruno Haible  <bruno@clisp.org>
81630
81631         * modules/fwriteerror: New file.
81632         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81633
81634 2003-09-14  Bruno Haible  <bruno@clisp.org>
81635
81636         * lib/fwriteerror.h: New file.
81637         * lib/fwriteerror.c: New file.
81638
81639 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81640
81641         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81642         modules/xgethostname, modules/xalloc: Depend on exit.
81643
81644 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81645
81646         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81647
81648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81649         and AC_MINIX, too, so that their extensions are available.
81650
81651         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81652         This macro has been superseded by gl_BACKUPFILE.
81653
81654         More patches to assume C89 or better.
81655
81656         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81657
81658         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81659         unconditionally.
81660         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81661         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81662         Include <string.h>, <stdlib.h> unconditionally.
81663         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81664         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81665         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81666         headers or for string.h.
81667         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81668         or strtoul.
81669
81670         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81671         headers.
81672         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81673         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81674         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81675         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81676         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81677         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81678         memcpy, memset.
81679         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81680         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81681         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81682         strtol.
81683         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81684         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81685         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81686         strtoul.
81687
81688 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81689
81690         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81691         * lib/obstack.c [!defined _LIBC]: Likewise.
81692         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81693         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81694         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81695
81696         More changes to assume C89 or better.
81697
81698         * lib/error.c (error_tail): Assume vprintf.
81699
81700         * lib/argmatch.c (getenv): Remove decl.
81701         * lib/progreloc.c (get_full_program_name): Define via prototype.
81702         * lib/setenv.c (clearenv): Likewise.
81703         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81704         needed.
81705         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81706         (malloc, memcpy): Remove decls.
81707         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81708         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81709         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81710         (memcpy): Remove macro.
81711         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81712         (__P): Remove.  All uses removed.
81713         (PTR): Remove.  All uses changed to void *.
81714         (CHAR_BIT, NULL): Remove.
81715         (spaces, zeros, memset_space, memset_zero)
81716         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81717         Remove.
81718         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81719         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81720         Define with prototype.
81721         Remove now-unnecessary prototype decl.
81722         (extra_args_spec): Assume ANSI C.  All uses changed.
81723         (extra_args_spec_iso): Remove.
81724         (my_strftime, emacs_strftimeu): Define via prototype.
81725         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81726         unconditionally.
81727         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81728         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81729         (strtoul, strtol): Remove decls.
81730         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81731         LONG_MAX): Remove.
81732         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81733         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81734         (LOCALE_PARAM_PROTO): New macro.
81735         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81736         (INTERNAL (strtol), strtol): Define with a prototype.
81737         (PARAMS): Remove.  All uses removed.
81738         * lib/tempname.c: Include <string.h> unconditionally.
81739         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81740         * lib/xgethostname.c (main): Define with a prototype.
81741         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81742         Include <stdlib.h> unconditionally.
81743         (calloc, malloc, realloc, free): Remove decls.
81744         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81745         Include <stdlib.h> unconditionally.  Sort include file names.
81746         (strtod): Remove.
81747         (xstrtod): Define with a prototype.
81748         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81749         (strtol, strtoul): Remove decls.
81750
81751 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81752
81753         More patches to assume C89 or better.
81754         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81755         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81756         string.h, memchr, STDC_HEADERS.
81757
81758 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81759
81760         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81761         Include <stdlib.h>, <string.h> unconditionally.
81762         Remove now-unnecessary cast to char *.
81763         * lib/strnlen.c: Include <string.h> unconditionally.
81764         * lib/yesno.c (yesno): Define with a prototype.
81765
81766 2003-09-11  Bruno Haible  <bruno@clisp.org>
81767
81768         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81769
81770 2003-09-10  Jim Meyering  <jim@meyering.net>
81771
81772         * lib/error.c: Correct indentation of cpp directives.
81773
81774 2003-09-10  Bruno Haible  <bruno@clisp.org>
81775
81776         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81777         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81778         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81779         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81780         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81781         <stdlib.h> and <string.h> checks.
81782         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81783         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81784
81785 2003-09-10  Bruno Haible  <bruno@clisp.org>
81786
81787         * lib/strcspn.c: Include <string.h> unconditionally.
81788         * lib/strpbrk.c: Include <string.h> unconditionally.
81789         * lib/strstr.c: Include <string.h> unconditionally.
81790         * lib/unicodeio.c: Include <string.h> unconditionally.
81791         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81792         * lib/unsetenv.c: Likewise.
81793         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81794         * lib/yesno.c: Include <stdlib.h> unconditionally.
81795         (rpmatch): Add prototype.
81796
81797 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81798
81799         More patches to assume C89 or better.
81800         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81801         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81802         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81803         or for string.h.
81804         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81805         stdlib.h.
81806         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81807         C headers.
81808         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81809         string.h.
81810         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81811         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81812         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81813         or for string.h.
81814         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81815         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81816         C headers.
81817         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81818         memcpy.
81819         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81820         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81821         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81822         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81823         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81824         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81825         string.h, free.
81826         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81827         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81828         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81829         C headers, or for string.h.
81830         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81831         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81832         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81833         headers, memory.h, stdlib.h, string.h, strings.h.
81834         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81835         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81836         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81837         strchr.
81838         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81839         headers, memory.h, string.h.
81840         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81841         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81842         free.
81843         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81844         headers.
81845         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81846         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81847         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81848         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81849         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81850
81851 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81852
81853         More K&R removal.
81854
81855         * lib/acosl.c (main): Use a prototype.
81856         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81857         tanl.c: Likewise.
81858
81859         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81860
81861         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81862         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81863         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81864         with a prototype.
81865         * lib/getopt.c (const): Remove macro.
81866         Include <string.h> unconditionally.
81867         (my_index): Remove; all uses changed to strchr.
81868         (strlen): Remove decl.
81869         (exchange): Remove forward decl; no longer needed.
81870         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81871         Define with prototype.
81872         * lib/getopt1.c (const): Remove macro.
81873         (getopt_long, getopt_long_only, main): Define with prototype.
81874
81875         * lib/getugroups.c: Include <string.h> unconditionally.
81876
81877         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81878         (getusershell, setusershell, endusershell, readname, main):
81879         Define with prototypes.
81880
81881         * lib/group-member.c: Include group-member.h first.
81882         Include <stdlib.h> unconditionally.
81883
81884         * lib/hard-locale.c: Include hard-locale.h first.
81885         Include <stdlib.h>, <string.h> unconditionally.
81886
81887         * lib/hash.c (free, malloc): Remove decls.
81888         Include <stdlib.h> unconditionally.
81889
81890         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81891         (getenv): Do not declare.
81892
81893         * lib/idcache.c: Include <string.h> unconditionally.
81894
81895         * lib/long-options.c: Include long-options.h first, to test interface.
81896         Include <stdlib.h> unconditionally.
81897
81898         * lib/makepath.c: Include makepath.h first, to test interface.
81899         Include <stdlib.h> and <string.h> unconditionally.
81900
81901         * lib/linebuffer.c: Include <stdlib.h>.
81902         (free): Remove decl.
81903
81904         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81905         stddef.h. rpl_malloc returns void *, not char *.
81906         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81907         prototype.
81908
81909         * lib/md5.h: Include <limits.h> unconditionally.
81910         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81911         (__P): Remove; all uses removed.
81912         * lib/md5.c: Include "md5.h" first.
81913         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81914         md5_buffer, md5_process_bytes, md5_process_block):
81915         Define with prototypes.
81916         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81917         * lib/sha.c: Include "sha.h" first.
81918         Include <stdlib.h>, <string.h> unconditionally.
81919
81920         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81921         * lib/memcmp.c (__ptr_t): Likewise.
81922         * lib/memrchr.c (__ptr_t): Likewise.
81923         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81924         Include <string.h> unconditionally.
81925         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81926         * lib/memchr.c: Include <stdlib.h> unconditionally.
81927         * lib/memchr.c (LONG_MAX): Remove.
81928         * lib/memrchr.c (LONG_MAX): Likewise.
81929         * lib/memchr.c (__memchr): Define via a prototype.
81930         * lib/memrchr.c (__memrchr): Likewise.
81931         * lib/memcmp.c (__P): Remove, and remove all uses.
81932         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81933         Remove forward decls; no longer needed.
81934         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81935         Use types required by C89 in prototype.
81936
81937         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81938         * lib/savedir.c: Likewise.
81939         * lib/mkdir.c (free): Remove decl.
81940         * lib/rmdir.c (rmdir): Define with a prototype.
81941         * lib/savedir.c: Include savedir.h first, to test interface.
81942
81943         * lib/mktime.c (STDC_HEADERS): Remove.
81944         Include <stdlib.h>, <string.h> unconditionally.
81945
81946         * lib/modechange.c: Include <stdlib.h> unconditionally.
81947         (malloc): Remove decl.
81948
81949         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81950         (free): Remove decl.
81951
81952         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81953         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81954         (This type really should be intptr_t, but that's a C99ism.)
81955         (_obstack_memcpy): Remove: all uses changed to memcpy.
81956         Include <string.h> unconditionally.
81957         (struct obstack): Assume __STDC__ for types of members
81958         chunkfun, freefun, extra_arg.
81959         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81960         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81961         obstack_begin, obstack_specify_allocation,
81962         obstack_specify_allocation_with_arg, obstack_chunkfun,
81963         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81964         Remove unprototyped decls and the macros that use them.
81965         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81966         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81967         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81968         (defined __STDC__ && __STDC__)]:
81969         Remove nonprototyped code.
81970         Include <stdlib.h> unconditionally.
81971         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81972         _obstack_allocated_p, _obstack_free, obstack_free,
81973         _obstack_memory_used, print_and_abort):
81974         Define using prototypes.
81975         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81976         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81977         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81978         obstack_next_free, obstack_object_size, obstack_room) [0]:
81979         Remove unused, unprototyped code.
81980
81981         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81982
81983         * lib/physmem.c (physmem_total, physmem_available, main): Define
81984         with prototypes.
81985
81986         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81987         (main): Define with a prototype.
81988
81989         * lib/posixver.c (getenv): Remove decl.
81990
81991         * lib/putenv.c (malloc): Returns void *, not char *.
81992         Include <string.h> unconditionally.
81993         (strchr, memcpy, NULL): Do not define.
81994
81995         * lib/readtokens.c: Include readtokens.h first, to test interface.
81996         Include <stdlib.h>, <string.h> unconditionally.
81997         (init_tokenbuffer): Define with a prototype.
81998
81999         * lib/regex.c (PARAMS): Remove.  All uses removed.
82000         All uses of _RE_ARGS removed, too.
82001         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82002         unconditionally.
82003         (bzero): Assume memset exists.
82004         (memcmp, memcpy, NULL): Remove.
82005         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82006         char, or assignments to local vars of type signed char.
82007         (init_syntax_once, PREFIX(extract_number_and_incr),
82008         PREFIX(print_partial_compiled_pattern),
82009         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82010         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82011         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82012         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82013         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82014         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82015         wcs_compile_range, byte_compile_range, truncate_wchar,
82016         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82017         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82018         count_mbs_length, wcs_re_match_2_internal,
82019         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82020         PREFIX(alt_match_null_string_p),
82021         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82022         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82023         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82024         now-unnecessary declaration, if any.
82025         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82026         regcomp, regexec):
82027         Remove now-unnecessary casts among pointer types.
82028         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82029
82030         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82031         (free): Remove decl.
82032
82033         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82034
82035         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82036         (free): Remove decl.
82037
82038         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82039         * lib/xgetcwd.c: Likewise.
82040
82041         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82042         (free): Remove decl.
82043
82044         * lib/strchrnul.c (strchrnul): Define with a prototype.
82045         Fix bug: c_in was not converted to char before searching.
82046
82047         The following changes are not K&R related:
82048
82049         * lib/group-member.h: Include <sys/types.h>, so that this file is
82050         self-contained.
82051         * lib/makepath.h: Likewise.
82052
82053         * lib/getusershell.c (readname, default_index, line_size, readname):
82054         Use size_t, not int, for sizes.
82055         (readname): If the size overflows, report an error instead of
82056         looping forever.
82057
82058 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82059
82060         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82061         libc.
82062
82063 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82064
82065         * README: New section: portability guidelines.
82066
82067 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82068
82069         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82070         C89 spec.
82071
82072 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82073
82074         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82075
82076 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82077
82078         Assume C89 or better; remove K&R cruft.
82079         A few of these changes were first proposed by Derek Robert Price
82080         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82081
82082         * lib/addext.c: Include <string.h> unconditionally.
82083         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82084         Don't declare getenv or malloc.
82085
82086         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82087         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82088         (NULL): Remove.
82089         (find_stack_direction, alloca): Use prototypes.
82090
82091         * lib/atexit.c (atexit): Define using a prototype.
82092
82093         * lib/basename.c, dirname.c, stripslash.c:
82094         Include <string.h> unconditionally.
82095
82096         * lib/bcopy.c: Include <stddef.h>.
82097         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82098
82099         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82100
82101         * lib/error.h (error, error_at_line, error_print_progname)
82102         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82103         * lib/error.c: Include error.h first, to check interface.
82104         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82105         (VA_START): Remove; all uses changeed to va_start.
82106         (exit, strerror): Remove decls.
82107         (error_print_progname): Prototype uncondionally.
82108         Don't include <errno.h>; no longer needed.
82109         (private_strerror): Remove.
82110         (error_tail): Always define.
82111         (error, error_at_line): Assume C89 or better; always use prototypes.
82112         * lib/fatal.c: Include "fatal.h" first, to test interface.
82113         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82114         (VA_START): Remove; all uses changed to va_start.
82115         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82116         this case.
82117         (exit): Remove decl.
82118         (fatal): Prototype unconditionally.  Assume va_start works.
82119         Abort at end, to pacify gcc.
82120
82121         * lib/euidaccess.c (main): Define with a prototype.
82122
82123         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82124
82125         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82126
82127         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82128         prototypes.
82129         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82130         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82131         (getenv): Remove decl.
82132         (fnmatch): Define using a prototype.
82133         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82134         (FCT): Define using a prototype.
82135
82136         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82137
82138         * lib/gethostname.c: Include <stddef.h>.
82139         (gethostname): Define with prototype.  Length is size_t, not int.
82140
82141 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82142
82143         Assume C89 or better; remove K&R cruft.
82144         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82145         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82146         string.h, getenv, malloc.
82147         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82148         headers.
82149         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82150         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82151         do not check for strerror.
82152         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82153         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82154         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82155         do not check for doprnt or vprintf.
82156         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82157         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82158
82159 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82160
82161         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82162         getversion.c should have been removed then, but was accidentally
82163         preserved.
82164
82165         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82166         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82167
82168 2003-09-08  Karl Berry  <karl@gnu.org>
82169
82170         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82171                 config, forget about prep.
82172
82173         * config/depcomp, missing: update from automake.
82174
82175 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82176
82177         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82178         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82179
82180 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82181
82182         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82183         copy_tm_result.  Bug reported by Simon Josefsson in
82184         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82185
82186 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82187
82188         * m4/time_r.m4: New file.
82189         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82190         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82191         is. Check for timegm declaration.
82192         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82193         Do not check for gmtime_r.
82194         Replace mktime if __mktime_internal does not exist and if mktime
82195         hasn't been replaced already.
82196
82197 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82198
82199         * lib/time_r.c, lib/time_r.h: New files.
82200
82201         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82202         __localtime_r.
82203         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82204         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82205
82206         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82207         __gmtime_r.
82208         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82209         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82210         Include <time_r.h>.
82211
82212         * lib/timegm.c: Switch to glibc implementation, with the following
82213         changes:
82214         [defined HAVE_CONFIG_H]: Include <config.h>.
82215         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82216         (__mktime_internal) [!defined _LIBC]: New decl.
82217         (__gmtime_r) [!defined _LIBC]: New macro and function.
82218         (timegm): Use a prototype, since gnulib assumes C89.
82219         Do not bother declaring tmp to be const, as it's not really usefu.
82220         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82221         (timegm): Declare only if HAVE_DECL_TIMEGM.
82222
82223 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82224
82225         * MODULES.html.sh (func_all_modules): Add time_r.
82226         * modules/time_r: New file.
82227         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82228         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82229
82230 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82231
82232         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82233         Bug reported by Lute Kamstra in
82234         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82235
82236         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82237         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82238         course with correspondingly smaller numbers for tomorrow and
82239         yesterday.  From Tadayoshi Funaba.  Originally installed into
82240         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82241         coreutils merge?).
82242
82243 2003-08-31  Simon Josefsson  <jas@extundo.com>
82244
82245         * modules/timegm: New file.
82246         * MODULES.html.sh (func_all_modules): Add timegm.
82247
82248 2003-08-31  Simon Josefsson  <jas@extundo.com>
82249
82250         * m4/timegm.m4: New file.
82251
82252 2003-08-31  Simon Josefsson  <jas@extundo.com>
82253
82254         * lib/timegm.h: New file.
82255         * lib/timegm.c: New file.  Based on
82256         wget-1.8.2/src/http.c:mktime_from_utc.
82257
82258 2003-08-31  Karl Berry  <karl@gnu.org>
82259
82260         * lib/argp.h: update from libc.
82261
82262 2003-08-28  Bruno Haible  <bruno@clisp.org>
82263
82264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82265         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82266         followed by '#define fnmatch fnmatch_posix' gives an error.
82267
82268 2003-08-28  Bruno Haible  <bruno@clisp.org>
82269
82270         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82271         warning on QNX, which defines O_BINARY to 000000.
82272
82273 2003-08-27  Jim Meyering  <jim@meyering.net>
82274
82275         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82276         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82277         would fail after 32.  Reported by Danny Levinson.  Details here:
82278         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82279
82280 2003-08-24  Bruno Haible  <bruno@clisp.org>
82281
82282         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82283         MSVC7 <stdio.h> is included later.
82284
82285 2003-08-22  Simon Josefsson  <jas@extundo.com>
82286
82287         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82288
82289 2003-08-20  Karl Berry  <karl@gnu.org>
82290
82291         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82292
82293 2003-08-20  Bruno Haible  <bruno@clisp.org>
82294
82295         * modules/progname: New file.
82296         * MODULES.html.sh (func_all_modules): Add progname.
82297
82298 2003-08-20  Bruno Haible  <bruno@clisp.org>
82299
82300         * lib/progname.h: New file, from GNU gettext.
82301         * lib/progname.c: New file, from GNU gettext.
82302         * lib/progreloc.c: New file, from GNU gettext.
82303
82304 2003-08-19  Jim Meyering  <jim@meyering.net>
82305
82306         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82307         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82308
82309 2003-08-19  Bruno Haible  <bruno@clisp.org>
82310
82311         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82312         more.
82313
82314 2003-08-19  Bruno Haible  <bruno@clisp.org>
82315
82316         * lib/xstrdup.c: Assume <string.h> exists.
82317
82318 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82319
82320         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82321         in makefile rules.
82322
82323 2003-08-18  Jim Meyering  <jim@meyering.net>
82324
82325         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82326         * m4/lib-ld.m4: Likewise.
82327
82328 2003-08-18  Jim Meyering  <jim@meyering.net>
82329
82330         * lib/setenv.h: Indent nested cpp directive.
82331         * lib/vasnprintf.c: Remove trailing blanks.
82332
82333 2003-08-17  Simon Josefsson  <jas@extundo.com>
82334
82335         * modules/xstrndup: New file.
82336         * MODULES.html.sh (func_all_modules): Add xstrndup.
82337
82338 2003-08-17  Simon Josefsson  <jas@extundo.com>
82339
82340         * modules/argp: Fix autoconf macro name. Add more dependencies.
82341
82342 2003-08-17  Simon Josefsson  <jas@extundo.com>
82343
82344         * m4/xstrndup.m4: New file.
82345
82346 2003-08-17  Simon Josefsson  <jas@extundo.com>
82347
82348         * m4/argp.m4: New file.
82349
82350 2003-08-17  Simon Josefsson  <jas@extundo.com>
82351             Bruno Haible  <bruno@clisp.org>
82352
82353         * lib/xstrndup.h: New file.
82354         * lib/xstrndup.c: New file.
82355
82356 2003-08-17  Bruno Haible  <bruno@clisp.org>
82357
82358         * modules/strndup (Files, Include): Add lib/strndup.h.
82359
82360 2003-08-17  Bruno Haible  <bruno@clisp.org>
82361
82362         * modules/euidaccess (Files): Add lib/euidaccess.h.
82363
82364 2003-08-17  Bruno Haible  <bruno@clisp.org>
82365
82366         * lib/strndup.h: New file.
82367
82368 2003-08-17  Bruno Haible  <bruno@clisp.org>
82369
82370         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82371         like AC_GNU_SOURCE.
82372         * modules/extensions (configure.ac): Comment out the invocation of
82373         gl_USE_SYSTEM_EXTENSIONS.
82374
82375 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82376
82377         Merges from coreutils, etc.
82378         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82379         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82380         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82381         fixing a typo.
82382         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82383         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82384
82385 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82386
82387         Document merge from coreutils.
82388         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82389         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82390         * modules/utime: Add m4/utimes-null.m4.
82391
82392 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82395         space, undoing this 2003-08-12 change:
82396         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82397
82398 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82399
82400         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82401         strtoul.c from libc, undoing this 2003-08-12 change:
82402         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82403
82404 2003-08-16  Jim Meyering  <jim@meyering.net>
82405
82406         Merges from coreutils.
82407         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82408         prefix.  Adjust cache variables similarly.  Create 500 rather than
82409         just 300 files, to exercise bug on Darwin6.5, too.
82410         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82411         $missing_dir.
82412         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82413         AM_SYS_POSIX_TERMIOS.
82414         Reported by mkc@mathdogs.com.
82415         Also change use of $am_cv_sys_posix_termios
82416         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82417         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82418         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82419         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82420         in /proc/mounts until it finds one with matching device number.  This
82421         is unnecessary when the FILE argument *is* a mount point.  No stat call
82422         is necessary in that case.  So, disable the statvfs-testing code on
82423         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82424         as RedHat bug# 84846.
82425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82426         to 1MB, so as not to render systems with no stack size limit (e.g.,
82427         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82428         Include <unistd.h>.  On some systems,
82429         it is required for the definition of _SC_PAGESIZE.
82430
82431 2003-08-16  Jim Meyering  <jim@meyering.net>
82432
82433         Merge from coreutils.
82434         * lib/xstrtoimax.c: #else #if -> #elif.
82435         * lib/xstrtoumax.c: Likewise.
82436
82437 2003-08-16  Jim Meyering  <jim@meyering.net>
82438
82439         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82440         * m4/utimes.m4: Removed.
82441         * m4/utimes-null.m4: Renamed from utimes.m4.
82442
82443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82444         to 1MB, so as not to render systems with no stack size limit (e.g.,
82445         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82446         Include <unistd.h>.  On some systems,
82447         it is required for the definition of _SC_PAGESIZE.
82448
82449 2003-08-16  Jim Meyering  <jim@meyering.net>
82450         and Paul Eggert  <eggert@cs.ucla.edu>
82451
82452         Merges from coreutils, etc.
82453
82454         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82455         using the latest version from cvs.  This avoids problems with #line
82456         directives using a vendor (Sun) compiler.
82457         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82458         Don't set GETGROUPS_LIB here; now it's
82459         done via getgroups.m4's wrapper function.
82460         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82461         rather than just in sh-util/configure.in, so that the
82462         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82463         same.
82464         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82465         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82466         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82467         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82468         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82469         Remove code that is now done by the newly-required macros.
82470         Append $(EXEEXT) to DF_PROG.
82471         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82472         Do not invoke or require the following here,
82473         since prereq.m4 or some gnulib .m4 now does this for us:
82474         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82475         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82476         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82477         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82478         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82479         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82480         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82481         AC_FUNC_OBSTACK.
82482         Do not replace the following functions, as this is now the job
82483         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82484         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82485         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82486         atexit getpass, strdup, getpagesize.
82487         Replace 'raise'.
82488         Do not check for the following functions, as this is now the job
82489         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82490         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82491         setregid.
82492         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82493         Check for sys/sysctl.h.
82494         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82495         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82496         of checking for ssize_t ourselves.
82497
82498         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82499         Require every macro that gnulib/modules/* suggests for us.
82500         (jm_PREREQ_ADDEXT): New macro.
82501         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82502         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82503
82504         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82505         (gl_PHYSMEM): Use it.
82506         Also check for `table' function.
82507         Check for new headers and functions.
82508         Add check for sys/sysmp.h.
82509         With suggestions from Kaveh Ghazi.
82510         Ignore headers that are present but cannot be compiled.  This
82511         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82512         C 5.4.
82513
82514 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82515
82516         Document merge from coreutils.
82517         * modules/userspec: Depend on posixver.
82518         * modules/strftime: Depend on tzset.
82519
82520 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82521
82522         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82523         rather than tab, after '#' in shell-script copyright notices.
82524         Suggested by Bruno Haible.
82525
82526 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82527
82528         * config/srclist-update: Use three spaces, rather than tab, after '#'
82529         in shell-script copyright notices.  Suggested by Bruno Haible.
82530         Remove unnecessary parenthesization in regular expression.
82531
82532 2003-08-15  Jim Meyering  <jim@meyering.net>
82533
82534         Merge from coreutils.
82535         * lib/xgethostname.c: Include <stdlib.h>.
82536         (xghostname): Don't exit for anything other than memory-related
82537         failure; just return NULL.
82538         * lib/userspec.c: Include "posixver.h".
82539         (parse_user_spec): Accept `.' as a separator only
82540         in pre-POSIX-200112 mode.
82541         * lib/strtoimax.c: Use #elif rather than #else #if.
82542         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82543         Remove function, now that we can rely on a working tzset function.
82544         [!_LIBC]: Ensure that the required autoconf test has been run.
82545         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82546         Use underlying_strftime for %r.
82547         * lib/sha.c: Merge in some clean-up and optimization changes from
82548         glibc.
82549         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82550         Ensure that it is a multiple of 64.
82551         Rearrange loop exit tests so as to avoid performing an
82552         additional fread after encountering an error or EOF.
82553         * lib/realloc.c: Update copyright date.
82554
82555 2003-08-15  Jim Meyering  <jim@meyering.net>
82556         and Paul Eggert  <eggert@twinsun.com>
82557
82558         Merge from coreutils.
82559         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82560         member but strut utmpx does not.  Needed for AIX 4.3.3.
82561         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82562
82563 2003-08-15  Jim Meyering  <jim@meyering.net>
82564         and Paul Eggert  <eggert@cs.ucla.edu>
82565
82566         Merges from coreutils, etc.
82567         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82568         Require gl_FUNC_TZSET_CLOBBER.
82569         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82570         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82571         members.
82572
82573 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82574
82575         Help the merge from coreutils.
82576         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82577         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82578         * m4/tzset.m4: Use it too.
82579
82580 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82581
82582         * modules/tzset: New file.
82583
82584 2003-08-14  Jim Meyering  <jim@meyering.net>
82585
82586         Merges from coreutils.
82587         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82588         variable names, rather than @FNMATCH_H@.
82589         * modules/alloca: Likewise for $(ALLOCA_H).
82590
82591         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82592         the three copies of the literal target, `fnmatch.h'.
82593         * modules/alloca (alloca.h): Likewise.
82594
82595 2003-08-14  Jim Meyering  <jim@meyering.net>
82596
82597         Merge from coreutils.
82598         * m4/tzset.m4: New file.
82599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82600         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82601         otherwise, AIX 5.1 systems would end up using the latter.
82602         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82603         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82604         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82605         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82606
82607 2003-08-14  Jim Meyering  <jim@meyering.net>
82608
82609         Merge from coreutils.
82610         * lib/obstack.h: Whitespace changes.
82611         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82612         and xcalloc return values.
82613         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82614         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82615         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82616         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82617         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82618         error from mntctl.
82619         Use mntctl's return value to drive the entry-processing loop, since
82620         we can't rely on the value of the vmt_length member in the last
82621         entry.  On some systems doing so could result in exhausting
82622         virtual memory.  Based in part on a patch from Mike Jetzer.
82623
82624 2003-08-14  Jim Meyering  <jim@meyering.net>
82625         and Paul Eggert  <eggert@twinsun.com>
82626
82627         Merges from coreutils, plus other fixes.
82628         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82629         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82630         for credits and details.  Thanks to Kaveh Ghazi for helping
82631         to keep these files in sync.
82632         (ARRAY_SIZE): Define it.
82633         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82634         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82635         (memcasecmp): Don't assume size_t fits in unsigned int.
82636         Remove casts and duplicate code.
82637         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82638         (memcpy): Remove definition.
82639         Merge in some clean-up and optimization changes from glibc.
82640         [BLOCKSIZE]: Move definition to top of file.
82641         Ensure that it is a multiple of 64.
82642         Rearrange loop exit tests so as to avoid performing an
82643         additional fread after encountering an error or EOF.
82644         * lib/md5.h (md5_uintptr): Define.
82645         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82646         return to the initial working directory.  Preserve errno
82647         for caller.
82648         * lib/idcache.c: Include "xalloc.h".
82649         (xmalloc, xrealloc): Remove decls.
82650         (getuser): Remove casts no longer required in C89.
82651         * lib/human.c: Include stdio.h, for sprintf.
82652         * lib/group-member.c: Include "xalloc.h".
82653         (xmalloc, xrealloc): Remove decls.
82654         (get_group_info): Remove casts no longer required in C89.
82655         * lib/getusershell.c (readname): Remove casts no longer required in
82656         C89.
82657         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82658         * lib/getline.c: Whitespace fix, from coreutils.
82659
82660 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82661
82662         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82663         Check for isascii.
82664
82665         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82666         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82667         Undo previous (whitespace-only) change.
82668
82669 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82670
82671         * lib/exclude.c: Include <ctype.h>
82672         (IN_CTYPE_DOMAIN): New macro.
82673         (is_space): New fn.
82674         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82675         and empty lines.
82676
82677         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82678         Undo previous (whitespace-only) change.
82679
82680 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82681
82682         * config/srclist-update: Change update back to the old behavior,
82683         leaving whitespace alone.  Use one 'sed' command rather than a
82684         pipeline.
82685         (fixlicense): Now a variable, not a function.
82686         (remove_trailing_blanks): Remove.
82687         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82688         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82689         Undo previous (whitespace-only) change.
82690
82691 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82692
82693         Merge from coreutils.
82694         * modules/euidaccess: Add lib_SOURCES, include for new
82695         file euidaccess.h
82696
82697 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82698
82699         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82700         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82701         Normalize leading white space and remove trailing white space.
82702
82703         Merge from coreutils
82704         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82705
82706         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82707         0.12.1.  These files are now being upgraded automatically by
82708         ../config/srclist-update.
82709
82710 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82711
82712         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82713         Normalize leading white space and remove trailing white space.
82714         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82715         notice, as per ../config/srclist-update.
82716
82717         Merge from coreutils.
82718         * lib/euidaccess.h: New file.
82719         * lib/euidaccess.c: Include it.
82720         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82721         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82722         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82723
82724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82725
82726         * config/srclist-update: Add copyright notice.
82727         (remove_id_lines, remove_trailing_blanks): New constants.
82728         (fixfile): Use them to normalize spacing a bit in copied files.
82729         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82730         Normalize leading white space and remove trailing white space.
82731
82732         * config/texinfo.tex: Sync with texinfo.
82733
82734         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82735         strtoul.c from libc, to merge coreutils whitespace changes.
82736
82737         * config/srclist.txt: Get the following m4 files from gettext:
82738         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82739         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82740         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82741         wint_t.m4.
82742
82743 2003-08-12  Karl Berry  <karl@gnu.org>
82744
82745         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82746         been made.
82747
82748 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82749
82750         * modules/gnu-source, m4/gnu-source.m4:
82751         Remove; we're assuming Autoconf 2.54 or later now.
82752         Suggested by Bruno Haible.
82753         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82754
82755 2003-08-11  Bruno Haible  <bruno@clisp.org>
82756
82757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82758
82759 2003-08-11  Bruno Haible  <bruno@clisp.org>
82760
82761         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82762         (vasnprintf): Use it instead of wcslen.
82763
82764 2003-08-11  Bruno Haible  <bruno@clisp.org>
82765
82766         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82767         value to ensure that _Bool promotes to int. Use #define for _Bool when
82768         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82769
82770 2003-08-10  Karl Berry  <karl@gnu.org>
82771
82772         * lib/regex.h: update from libc (whitespace fix).
82773
82774 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82775
82776         Merge some files from coreutils.  These changes were
82777         originally made by Jim Meyering.
82778         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82779         many older Unixes require this.
82780         * lib/alloca.c (alloca): Remove cast to argument of free;
82781         no longer needed in C89.
82782         * lib/alloca_.h, regex.h: Fix white space to match
82783         what GNU indent does.
82784
82785 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82786
82787         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82788         apparently Emacs's Unicode mode got confused before my 2003-08-05
82789         checkin.
82790
82791 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82792
82793         * m4/extensions.m4: New file.
82794         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82795         Require gl_USE_SYSTEM_EXTENSIONS.
82796         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82797         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82798
82799 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82800
82801         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82802         * modules/extensions, modules/gnu-source: New files.
82803         * modules/timespec, modules/unlocked-io: Depend on extensions.
82804
82805 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82806
82807         * modules/restrict: New file.
82808         * MODULES.html.sh (func_all_modules): Add restrict.
82809         * modules/regex: Depend on restrict.
82810
82811 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82812
82813         * m4/restrict.m4: New file.
82814         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82815
82816 2003-08-07  Bruno Haible  <bruno@clisp.org>
82817
82818         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82819         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82820
82821 2003-08-07  Bruno Haible  <bruno@clisp.org>
82822
82823         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82824         makes the module 'getndelim2' compatible with the module 'getline'.
82825
82826 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82827
82828         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82829         byte with "\201" to avoid glitches when editing that source file
82830         with multi-gnome-terminal.
82831
82832 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82833
82834         * lib/bumpalloc.h: Remove.
82835
82836 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82837
82838         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82839         * modules/bumpalloc: Remove.
82840
82841 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82842
82843         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82844         GNU coding style.
82845
82846         Merge from coreutils.
82847         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82848         1. From glibc.
82849         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82850         from Karl Berry, implemented by Jim Meyering.
82851         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82852         from Dmitry V. Levin.
82853         Remove anachronistic cast of xrealloc.
82854         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82855         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82856         type. Otherwise, it wouldn't compile with at least /bin/cc on
82857         ymp-cray-unicos9.0.2.X.
82858         Combine two mostly-identical uses of alloca into one.
82859         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82860
82861 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82862
82863         [From Emacs.]
82864
82865         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82866         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82867         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82868         obsolete NLIST_NAME_UNION.
82869         [__GNU__]: Undef BSD and FSCALE.
82870         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82871
82872 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82875         an enum type, so that it's guaranteed to promote to int.  See:
82876         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82877
82878 2003-08-03  Karl Berry  <karl@gnu.org>
82879
82880         * config/depcomp: update from automake.
82881
82882 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82883
82884         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82885         (strerror): Don't assume that a printable int fits in 14 bytes.
82886
82887 2003-07-31  Bruno Haible  <bruno@clisp.org>
82888
82889         * modules/getpass-gnu: New file.
82890         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82891
82892 2003-07-31  Bruno Haible  <bruno@clisp.org>
82893
82894         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82895
82896 2003-07-24  Karl Berry  <karl@gnu.org>
82897
82898         * config/missing: update from automake.
82899
82900 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82901             Bruno Haible  <bruno@clisp.org>
82902
82903         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82904         * lib/getline.c (getline, getdelim): Likewise.
82905         Remove _GNU_SOURCE define; now it's defined in config.h through
82906         m4/getline.m4.
82907
82908 2003-07-23  Karl Berry  <karl@gnu.org>
82909
82910         * config/config.sub: update from prep.
82911
82912 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82913
82914         * modules/xalloc (Depends-on): Add exitfail.
82915         * modules/xmemcoll: Likewise.
82916
82917 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82918
82919         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82920         over-parenthesization in macros.
82921
82922         Sync with coreutils.
82923
82924         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82925         required by C99.
82926
82927         Use `exit_failure' for xalloc and xmemcoll instead of their own
82928         private exit-failure variables.
82929         * lib/xalloc.h (xalloc_exit_failure): Remove.
82930         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82931         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82932         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82933         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82934         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82935
82936 2003-07-20  Jim Meyering  <jim@meyering.net>
82937
82938         * modules/closeout (Depends-on): Add exitfail.
82939         Suggestion from Bruno Haible.
82940
82941 2003-07-19  Karl Berry  <karl@gnu.org>
82942
82943         * config/config.sub: update from prep.
82944
82945 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82946
82947         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82948         Remove.
82949         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82950         to test that it can stand by itself.  Include "exitfail.h".
82951         Clients should set exit_failure instead.
82952         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82953
82954 2003-07-18  Bruno Haible  <bruno@clisp.org>
82955
82956         * modules/getndelim2: New file.
82957         * modules/getline: Share files with module getndelim2.
82958         * modules/getnline: Depend on getndelim2 instead of sharing files with
82959         it. Add getnline.c to lib_SOURCES.
82960         * MODULES.html.sh (func_all_modules): Add getndelim2.
82961
82962 2003-07-18  Bruno Haible  <bruno@clisp.org>
82963
82964         * m4/getndelim2.m4: New file.
82965         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82966         invoke gl_PREREQ_GETNDELIM2.
82967         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82968         gl_PREREQ_GETNDELIM2.
82969         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82970         gl_GETNDELIM2.
82971
82972 2003-07-18  Bruno Haible  <bruno@clisp.org>
82973
82974         * lib/getndelim2.h: New file.
82975         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82976         getndelim2.h.
82977         (getndelim2): Make non-static. Change return type to ssize_t.
82978         * lib/getline.h: Change argument names.
82979         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82980         * lib/getnline.c: Include getndelim2.h.
82981
82982 2003-07-18  Andreas Schwab  <schwab@suse.de>
82983
82984         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82985
82986 2003-07-17  Karl Berry  <karl@gnu.org>
82987
82988         * config/config.sub: update from prep.
82989
82990 2003-07-17  Bruno Haible  <bruno@clisp.org>
82991
82992         * modules/getnline: New file.
82993         * modules/getline: Add lib/getndelim2.c to source file list.
82994         * MODULES.html.sh (func_all_modules): Add getnline.
82995
82996 2003-07-17  Bruno Haible  <bruno@clisp.org>
82997
82998         * m4/getnline.m4: New file.
82999
83000 2003-07-17  Bruno Haible  <bruno@clisp.org>
83001
83002         * m4/Makefile.am.in: Remove file.
83003         * m4/Makefile.am: Remove file.
83004         * m4/Makefile.in: Remove file.
83005
83006 2003-07-17  Bruno Haible  <bruno@clisp.org>
83007
83008         * lib/getnline.h: New file.
83009         * lib/getnline.c: New file.
83010         * lib/getndelim2.c: New file, extracted from getline.c.
83011         (getndelim2): Renamed from getdelim2, with added nmax argument.
83012         * lib/getline.c: Include getndelim2.c.
83013         (getdelim2): Moved out to getndelim2.c.
83014         (getline, getdelim): Update.
83015
83016 2003-07-17  Bruno Haible  <bruno@clisp.org>
83017
83018         * lib/Makefile.am: Remove file.
83019         * lib/Makefile.in: Remove file.
83020
83021 2003-07-17  Bruno Haible  <bruno@clisp.org>
83022
83023         * configure.in: Remove file.
83024         * Makefile.in: Remove file.
83025
83026 2003-07-17  Bruno Haible  <bruno@clisp.org>
83027
83028         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83029
83030 2003-07-16  Karl Berry  <karl@gnu.org>
83031
83032         * config/srclist-update: was running fixlicense twice, which caused
83033                 texinfo.tex to be nullified for some reason.  Simplify,
83034                 $gplsrc is no longer needed as far as I can see?
83035
83036 2003-07-16  Jim Meyering  <jim@meyering.net>
83037
83038         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83039
83040 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83041
83042         * config/srclist.txt: Get the following files from gettext-runtime/intl
83043         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83044         ref-del.sin.  From Bruno Haible.
83045         * config/srclist-update (fixfile): Change grep pattern again, since the
83046         previous fix didn't work (there was another trailing $).  Use
83047         '[$]' to escape the $s.
83048
83049 2003-07-15  Karl Berry  <karl@gnu.org>
83050
83051         * lib/vasnprintf.c: update from gettext.
83052
83053 2003-07-15  Karl Berry  <karl@gnu.org>
83054
83055         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83056         gets expanded when surrounded by '$'.
83057
83058 2003-07-15  Jim Meyering  <jim@meyering.net>
83059
83060         * modules/save-cwd: Don't depend on error.  From Derek Price.
83061
83062 2003-07-15  Jim Meyering  <jim@meyering.net>
83063
83064         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83065
83066 2003-07-14  Simon Josefsson  <jas@extundo.com>
83067
83068         * modules/mempcpy: New file.
83069         * MODULES.html.sh (func_all_modules): Add mempcpy.
83070
83071 2003-07-14  Simon Josefsson  <jas@extundo.com>
83072
83073         * m4/mempcpy.m4: New file.
83074
83075 2003-07-14  Simon Josefsson  <jas@extundo.com>
83076
83077         * lib/mempcpy.h: New file.
83078         * lib/mempcpy.c: New file.
83079
83080 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83081
83082         * modules/getdate, modules/posixtm: Depend on mktime.
83083
83084 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83085
83086         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83087         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83088         unicodeio.c, unicodeio.h, unlocked-io.h:
83089         Switch from LGPL to GPL.
83090
83091 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83092
83093         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83094         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83095         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83096         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83097         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83098         updated automatically by ../config/srclist-update.  This changes
83099         their license from LPGL to GPL.
83100
83101 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83102
83103         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83104         assumed to refer to the root of the most recent stable gettext version.
83105         * config/srclistvars.sh: Add defaults for eggert.
83106         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83107         Match "This program" as well as "The program".  This is needed
83108         for gettext.
83109
83110 2003-07-14  Jim Meyering  <jim@meyering.net>
83111
83112         Don't emit diagnostics.  Let callers do that.
83113         * lib/save-cwd.c: Don't include "error.h".
83114         (save_cwd): Don't call error.  Ensure that errno is valid
83115         when returning nonzero.
83116
83117         * lib/save-cwd.h (restore_cwd): Update prototype.
83118         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83119         Simplify.  Don't call error upon failure.  Let callers do that.
83120         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83121         when auditing is enabled.  But don't bother updating the #if.
83122
83123 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83124
83125         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83126         it breaks C++ compilation.
83127         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83128
83129 2003-07-10  Simon Josefsson  <jas@extundo.com>
83130
83131         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83132
83133 2003-07-10  Jim Meyering  <jim@meyering.net>
83134
83135         * m4/clock_time.m4: Remove trailing blank.
83136         * m4/intmax_t.m4: Likewise.
83137
83138 2003-07-10  Jim Meyering  <jim@meyering.net>
83139
83140         * lib/vasnprintf.c: Remove trailing blanks.
83141         Make cpp indentation consistent.
83142
83143 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83144
83145         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83146         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83147         Switch from LGPL to GPL.
83148
83149 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83150
83151         * config/srclist.txt: Sort sublists.  Add
83152         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83153         that differ from gnulib for one reason or another; we'd like this list
83154         to be smaller but for now let's document what we have.
83155
83156 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83157
83158         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83159         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83160         and sweeter "eval x=$x".
83161         * config/srclist.txt: Get lib/argp* from glibc.
83162
83163 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83164
83165         * lib/mktime.c: Fix some boundary cases and remove need for floating
83166         point.
83167
83168         Issue a compile-time diagnostic if time_t is floating point, or if
83169         two's complement arithmetic is not in effect, or if arithmetic
83170         right shift does not propagate the sign.  These assumptions were
83171         all in the original code but they weren't checked.
83172
83173         (TIME_T_MIDPOINT, verify): New macros.
83174         (__isleap): Remove; it has integer overflow problems.
83175         (leapyear): New function, without those problems.
83176         (ydhms_tm_diff): Remove; splitting into two parts.
83177         (ydhms_diff): New function, containing the arithmetic part of
83178         the old ydhms_tm_diff function.  Issue a compile-time
83179         diagnostic if we are not using C99 integer division.
83180         Avoid casts when possible.
83181         (guess_time_tm): New function, containing the checking part of
83182         the old ydhms_tm_diff function.  Return the new value, rather than
83183         the difference between it and the old.  Accept a new argument T
83184         so that *T specifies the old value.  Check for overflow in the result.
83185
83186         (__mktime_internal): Use a time_t offset, not a long int offset.
83187         This undoes the 2003-06-04 change, which is no longer needed now
83188         that we have better overflow checking.
83189         (localtime_offset): Likewise.
83190
83191         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83192         and long are 64-bit but int is only 32-bit.
83193         (ydhms_diff): Use long int to store year1 and yday1.
83194         Issue a compile-time diagnostic if long int is not wide enough.
83195
83196         (__mktime_internal): Use long int to store adjusted year and yday.
83197         Use plain C rather than preprocessor commands, if that doesn't
83198         affect efficiency.
83199         Check for overflow (and try to repair) after each probe
83200         rather than checking only at the very end.  This avoids some bugs
83201         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83202         does not equal GMT offset at maximum time).
83203         Use integer to check for overflow rather than floating point; this
83204         is more portable to non-IEEE hosts, and is a tad faster.
83205         When we detect that we are oscillating between two values,
83206         don't check whether tm_isdst has the requested value, since
83207         we already know the answer.  When tm_isdst has the wrong value,
83208         use a different heuristic to find the right one, based on the
83209         extreme values actually observed in practice in tz2003a,
83210         rather than the (overly optimistic) "previous 3 calendar quarters".
83211
83212         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83213         "T const" to accommodate glibc style.
83214         (check_result): Use less-confusing report format.  "long" -> "long int.
83215         (main): Likewise.
83216         Don't loop if the iteration overflows time_t.
83217         Allow a negative step in the iteration.
83218
83219 2003-07-06  Karl Berry  <karl@gnu.org>
83220
83221         * config/depcomp: update from automake.
83222         * config/config.sub: update from prep.
83223
83224 2003-07-03  Karl Berry  <karl@gnu.org>
83225
83226         * config/config.guess: update from prep.
83227
83228 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83229
83230         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83231         xreadlink.c now includes it unconditionally.
83232
83233 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83234
83235         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83236         having it depend on HAVE_SYS_TYPES_H.
83237
83238 2003-07-01  Bruno Haible  <bruno@clisp.org>
83239
83240         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83241         <sys/types.h> should be sufficient.
83242         Reported by Paul Eggert.
83243
83244 2003-06-26  Karl Berry  <karl@gnu.org>
83245
83246         * config/depcomp: update from automake.
83247
83248 2003-06-26  Bruno Haible  <bruno@clisp.org>
83249
83250         * modules/human: Depend on module stdbool.
83251
83252 2003-06-25  Bruno Haible  <bruno@clisp.org>
83253
83254         * modules/readlink: New file.
83255         * modules/xreadlink: Depend on it.
83256         * MODULES.html.sh (func_all_modules): Add readlink.
83257
83258 2003-06-25  Bruno Haible  <bruno@clisp.org>
83259
83260         * m4/readlink.m4: New file.
83261
83262 2003-06-25  Bruno Haible  <bruno@clisp.org>
83263
83264         * lib/readlink.c: New file.
83265
83266 2003-06-22  Karl Berry  <karl@gnu.org>
83267
83268         * config/srclist.txt: update mkinstalldirs from automake.
83269         * config/mkinstalldirs: update.
83270
83271 2003-06-22  Bruno Haible  <bruno@clisp.org>
83272
83273         Portability to mingw32.
83274         * m4/ssize_t.m4: New file, from GNU gettext.
83275         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83276         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83277
83278 2003-06-22  Bruno Haible  <bruno@clisp.org>
83279
83280         * modules/safe-read: Add m4/ssize_t.m4.
83281         * modules/xreadlink: Add m4/ssize_t.m4.
83282
83283 2003-06-20  Bruno Haible  <bruno@clisp.org>
83284
83285         Assume C89, so PARAMS isn't needed.
83286         * lib/unicodeio.h (PARAMS): Remove.
83287         * lib/unicodeio.c: Don't use PARAMS.
83288
83289 2003-06-18  Karl Berry  <karl@gnu.org>
83290
83291         * config/config.{guess,sub}: update from prep.
83292
83293 2003-06-18  Jim Meyering  <jim@meyering.net>
83294
83295         Merge changes from coreutils.
83296         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83297         Remove explicit declarations of xmalloc and realloc.
83298         Include xalloc.h.
83299         (read_utmp): Remove anachronistic cast of xmalloc.
83300
83301 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83302
83303         Assume C89, so PARAMS isn't needed.
83304         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83305         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83306         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83307         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83308         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83309         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83310         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83311         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83312         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83313         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83314         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83315         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83316         no longer needed. Anyway, config.h should always be included before any
83317         other file.
83318
83319 2003-06-11  Simon Josefsson  <jas@extundo.com>
83320
83321         * modules/sysexits: New file.
83322         * MODULES.html.sh (func_all_modules): Add sysexits.
83323
83324 2003-06-11  Simon Josefsson  <jas@extundo.com>
83325
83326         * lib/sysexit_.h: New file.
83327
83328 2003-06-11  Derek Price  <derek@ximbiot.com>
83329
83330         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83331         necessary.
83332
83333 2003-06-11  Bruno Haible  <bruno@clisp.org>
83334
83335         * m4/sysexits.m4: New file.
83336
83337 2003-06-10  Simon Josefsson  <jas@extundo.com>
83338
83339         * lib/argp.h: New file, from glibc.
83340         * lib/argp-ba.c: New file, from glibc.
83341         * lib/argp-eexst.c: New file, from glibc.
83342         * lib/argp-fmtstream.c: New file, from glibc.
83343         * lib/argp-fmtstream.h: New file, from glibc.
83344         * lib/argp-fs-xinl.c: New file, from glibc.
83345         * lib/argp-help.c: New file, from glibc.
83346         * lib/argp-namefrob.h: New file, from glibc.
83347         * lib/argp-parse.c: New file, from glibc.
83348         * lib/argp-pv.c: New file, from glibc.
83349         * lib/argp-pvh.c: New file, from glibc.
83350         * lib/argp-xinl.c: New file, from glibc.
83351
83352 2003-06-10  Simon Josefsson  <jas@extundo.com>
83353
83354         * modules/strchrnul: New file.
83355
83356 2003-06-10  Simon Josefsson  <jas@extundo.com>
83357
83358         * modules/argp: New file.
83359
83360 2003-06-10  Simon Josefsson  <jas@extundo.com>
83361
83362         * m4/strchrnul.m4: New file.
83363
83364 2003-06-10  Simon Josefsson  <jas@extundo.com>
83365
83366         * lib/strchrnul.h: New file.
83367         * lib/strchrnul.c: New file.
83368
83369 2003-06-10  Bruno Haible  <bruno@clisp.org>
83370
83371         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83372
83373 2003-06-07  Karl Berry  <karl@gnu.org>
83374
83375         * config/config.{guess,sub}: update from prep.
83376
83377 2003-06-07  Jim Meyering  <jim@meyering.net>
83378
83379         * modules/strtod: Use $(...) notation, not @...@ for
83380         AC_REPLACE'd variables.
83381         * modules/localcharset: Likewise.
83382
83383 2003-06-07  Jim Meyering  <jim@meyering.net>
83384
83385         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83386         in place of my name in the copyright comment.
83387         Remove definition and uses of __P.
83388
83389         From coreutils.
83390         * lib/stat.c: Don't declare xmalloc explicitly.
83391         Instead, include "xalloc.h".
83392         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83393         xrealloc, and xcalloc return values.
83394         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83395         Improve comment.
83396         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83397
83398 2003-06-07  Bruno Haible  <bruno@clisp.org>
83399
83400         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83401         avoid AC_CONFIG_LINKS.
83402         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83403         fnmatch.h, to avoid AC_CONFIG_LINKS.
83404         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83405
83406 2003-06-07  Bruno Haible  <bruno@clisp.org>
83407
83408         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83409         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83410         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83411         directory.
83412         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83413         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83414         directory.
83415
83416 2003-06-06  Jim Meyering  <jim@meyering.net>
83417
83418         Merge from coreutils.
83419         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83420         Consolidate declarations and initializations of *_base* locals.
83421
83422         Merge from coreutils.
83423         This avoids a core dump on systems without GNU putenv,
83424         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83425         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83426         (unsetenv): New static function, from GNU libc.
83427         (rpl_putenv): Use it.
83428
83429         * lib/modechange.c: Remove trailing blanks.
83430
83431         Merge from coreutils.
83432         * lib/fsusage.c: Remove declaration of statfs.
83433         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83434
83435         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83436
83437 2003-06-06  Jim Meyering  <jim@meyering.net>
83438
83439         * lib/stdbool_.h: Renamed from stdbool.h.in.
83440
83441 2003-06-06  Jim Meyering  <jim@meyering.net>
83442             Bruno Haible  <bruno@clisp.org>
83443
83444         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83445         Adjust Makefile.am snippet not to redirect directly to target.
83446         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83447
83448 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83449
83450         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83451         mismatch, look in future quarters as well as past.  This fixes a
83452         bug when processing fall-backwards gaps immediately after a long
83453         period of daylight-saving time.
83454
83455         * lib/mktime.c: Assume freestanding C89 or better.
83456         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83457         (__P): Remove; not used.
83458         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83459         (mktime, not_equal_tm, print_tm, check_result,
83460         main): Use prototypes.  Use const * where appropriate.
83461         (main): Fix typo in testing code that uncovered by above changes.
83462         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83463
83464 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83465
83466         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83467         locale.h, localeconv.  This merges changes from coreutils.
83468
83469         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83470         It can be removed after the next Autoconf is released.
83471         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83472         needed.
83473
83474 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83475
83476         * lib/mktime.c: Fix Debian bug 177940
83477         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83478         (localtime_offset): Now long int, not time_t, because we want it
83479         to be guaranteed to be signed.  All uses changed.
83480         (__mktime_internal): If overflow would occur when adding offset,
83481         don't add it.
83482
83483         Merge 'human' changes from coreutils.  Rewrite to support
83484         locale-specific notations like thousands separators.
83485         * lib/human.c: Simplify authorship notice.
83486         Include human.h immediately after config.h.
83487         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83488         <limits.h>: Do not include, since human.h does.
83489         (SIZE_MAX, UINTMAX_MAX): New macros.
83490         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83491         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83492         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83493         (power_letter): Renamed from suffixes.
83494         (generate_suffix_backwards): Remove.
83495         (adjust_value): Now takes int style (because of human.h changes)
83496         and long double value (for greater precision on some platforms).
83497         (group_number): New function.
83498         (human_readable): Use it.  Use integer options, not enum.
83499         Put the options before the sizes in the arg list.
83500         Support all the new options.
83501         The old human_readable function has been removed;
83502         use inttostr.h instead.
83503         (human_readable, default_block_size, humblock):
83504         Use uintmax_t, not int, for block sizes.
83505         (human_readable_inexact, block_size_types): Remove.
83506         (block_size_opts): New constant.
83507         (human_options): Renamed from human_block_size, with new signature
83508         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83509         * lib/human.h: Add copyright and authorship notice.
83510         Include <limits.h> and <stdbool.h> unconditionally.
83511         (PARAMS): Remove.  All uses removed.
83512         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83513         (enum human_inexact_style): Remove tag; now a nameless enum.
83514         (human_floor, human_ceiling, human_round_to_even): Now have
83515         values 2, 0, 1 rather than -1, 1, 0.
83516         (human_group_digits, human_suppress_point_zero, human_autoscale,
83517         human_base_1024, human_SI, human_B): New constants.
83518         (human_readable_inexact, human_block_size): Remove.
83519         (human_readable): Size args are now uintmax_t, not int.
83520         (human_options): New decl.
83521
83522         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83523         unnecessary now that we assume C89 or better.  This change
83524         imported from coreutils.
83525
83526         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83527         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83528         in the 2003-05-30 sync from glibc.
83529
83530         .h files should stand alone, but we shouldn't include <sys/types.h>
83531         if we can get away with just <stddef.h>.
83532
83533         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83534         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83535         rather than <sys/types.h>, as we merely need size_t.
83536         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83537         to get size_t.
83538         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83539         Include <stdio.h>, to get FILE.
83540         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83541         memcasecmp.h has included <stddef.h> and all we need is size_t.
83542         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83543         our interface, instead of including <sys/types.h>
83544
83545 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83546
83547         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83548         now, as glibc mktime is buggy on non-glibc systems.
83549
83550 2003-06-03  Karl Berry  <karl@gnu.org>
83551
83552         * config/config.sub: update from prep.
83553
83554 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83555
83556         [from coreutils]
83557         Fix some minor time-related bugs with POSIX time arguments.
83558         Some valid time stamps were being rejected (notably -1, and
83559         time stamps before 1900 on 64-bit hosts).  And some invalid
83560         time stamps were being accepted, e.g. September 31.
83561
83562         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83563         that we can return (time_t) -1 successfully.
83564         * lib/posixtm.c: Likewise.
83565         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83566         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83567         (t): Remove static var.
83568         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83569         of static var.  All uses changed.
83570         (year): Do not reject years before 1900; they can occur with
83571         64-bit time_t.
83572         (posix_time_parse): Do not check for out-of-range components;
83573         that is now the caller's responsibility, since our checks were
83574         only approximations.
83575         (posixtime): Use mktime to check for out-of-range components,
83576         since it knows them exactly.
83577         If mktime returns (time_t) -1, check whether an error actually occurred
83578         by invoking localtime on -1.
83579         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83580         posixtime failures better.
83581         Improve the test data (in comments only).
83582
83583 2003-06-02  Karl Berry  <karl@gnu.org>
83584
83585         * config/mkinstalldirs (version): new variable.
83586         (--version): new option.
83587         (usage): improve message.
83588
83589 2003-05-30  Karl Berry  <karl@gnu.org>
83590
83591         * lib/mktime.c: update from libc.
83592
83593 2003-05-30  Bruno Haible  <bruno@clisp.org>
83594
83595         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83596         * config/config.rpath: Upgrade to gettext-0.12.1.
83597
83598 2003-05-30  Bruno Haible  <bruno@clisp.org>
83599
83600         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83601         * m4/nls.m4: New file, from gettext-0.12.1.
83602         * m4/po.m4: New file, from gettext-0.12.1.
83603         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83604
83605 2003-05-30  Bruno Haible  <bruno@clisp.org>
83606
83607         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83608         * lib/localcharset.h: Likewise.
83609         * lib/localcharset.c: Likewise.
83610
83611 2003-05-29  Karl Berry  <karl@gnu.org>
83612
83613         * config/config.rpath: update from gettext.
83614
83615 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83616
83617         Assume the headers required for C89 freestanding compilers.
83618         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83619         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83620         * m4/human.m4 (gl_HUMAN): Likewise.
83621         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83622         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83623         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83624         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83626         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83627
83628 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83629
83630         Assume the headers required for C89 freestanding compilers.
83631         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83632         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83633         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83634         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83635         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83636         define, since <limits.h> is guaranteed to do that.
83637         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83638         * lib/exclude.c: Include <stdbool.h> unconditionally.
83639         * lib/tempname.c: Include <stddef.h> unconditionally.
83640         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83641         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83642         <stddef.h> does that.
83643         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83644         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83645         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83646         needed.
83647         * lib/xstrtol.c: Likewise.
83648         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83649         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83650
83651         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83652         warnings on some platforms.
83653
83654         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83655         arbitrarily.
83656
83657 2003-05-26  Jim Meyering  <jim@meyering.net>
83658
83659         Merge in a change from coreutils:
83660         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83661         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83662         that condition, rather than `-1' which is slightly misleading.
83663         Change the name of the cache variable to have the gl_ prefix.
83664         Prompted by a patch from Richard Dawe for DJGPP.
83665
83666 2003-05-24  Karl Berry  <karl@gnu.org>
83667
83668         * config/config.guess: update from prep.
83669
83670 2003-05-22  Karl Berry  <karl@gnu.org>
83671
83672         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83673
83674 2003-05-20  Karl Berry  <karl@gnu.org>
83675
83676         * config/config.guess: update from prep.
83677
83678 2003-05-18  Karl Berry  <karl@gnu.org>
83679
83680         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83681         might actually be set by the user.
83682
83683         * config/depcomp, install-sh, mdate-sh: update from automake.
83684
83685 2003-05-17  Bruno Haible  <bruno@clisp.org>
83686
83687         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83688         invalid expansion for AC_EGREP_CPP.
83689         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83690         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83691         Suggested by Akim Demaille <akim@epita.fr> in
83692         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83693
83694 2003-05-12  Jim Meyering  <jim@meyering.net>
83695
83696         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83697         the space-padded-by-default conversion specifiers, %e, %k, %l.
83698
83699 2003-05-12  Bruno Haible  <bruno@clisp.org>
83700
83701         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83702         the string is longer than 4 KB.
83703
83704 2003-05-11  Karl Berry  <karl@gnu.org>
83705
83706         * config/config.{guess,sub}: update from prep.
83707
83708 2003-05-09  Bruno Haible  <bruno@clisp.org>
83709
83710         * modules/error: Add m4/strerror_r.m4 to file list.
83711
83712 2003-05-03  Bruno Haible  <bruno@clisp.org>
83713
83714         Upgrade to Unicode-4.0.
83715         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83716         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83717         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83718         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83719         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83720         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83721         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83722         Change width of U+E0100..U+E01EF from 1 to 0.
83723
83724 2003-04-25  Jim Meyering  <jim@meyering.net>
83725
83726         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83727         of type size_t, not int.
83728
83729 2003-04-25  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/copy-file.c: Include <stddef.h>, for size_t.
83732
83733 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83734
83735         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83736         code which expansion is under static control.  Patch imported from
83737         Akim Demaille's patch to Bison; see
83738         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83739
83740 2003-04-14  Bruno Haible  <bruno@clisp.org>
83741
83742         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83743
83744 2003-04-11  Jim Meyering  <jim@meyering.net>
83745
83746         Merge changes from Coreutils.
83747
83748         2003-03-22  Jim Meyering  <jim@meyering.net>
83749
83750         * lib/strftime.c (widen): Cast alloca return value to proper type.
83751
83752         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83753
83754         From GNU libc.
83755         * lib/strftime.c (my_strftime): Handle very large width
83756         specifications for numeric values correctly.  Improve checks for
83757         overflow.
83758
83759         2003-01-19  Jim Meyering  <jim@meyering.net>
83760
83761         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83762         definitions.
83763         (nl_get_alt_digit) [! defined my_strftime]: Define.
83764         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83765         _nl_get_alt_digit and _nl_get_walt_digit.
83766
83767         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83768         libc. These changes have no effect outside of _LIBC.
83769
83770 2003-04-10  Bruno Haible  <bruno@clisp.org>
83771
83772         * modules/findprog: New file.
83773         * MODULES.html.sh (func_all_modules): Add it.
83774
83775 2003-04-10  Bruno Haible  <bruno@clisp.org>
83776
83777         * m4/findprog.m4: New file.
83778         * m4/eaccess.m4: New file.
83779
83780 2003-04-10  Bruno Haible  <bruno@clisp.org>
83781
83782         * lib/findprog.h: New file, from GNU gettext.
83783         * lib/findprog.c: New file, from GNU gettext.
83784
83785 2003-04-05  Jim Meyering  <jim@meyering.net>
83786
83787         Merge changes from Coreutils.
83788
83789         * lib/exclude.h (PARAMS): Remove definition and uses.
83790         * lib/exclude.c: Remove uses of `PARAMS'.
83791
83792         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83793         Add test-cases for DOS filenames. Declare program_name.
83794         (main): Set up program_name.  Patch by Rich Dawe.
83795
83796         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83797         error from mntctl.
83798         Use mntctl's return value to drive the entry-processing loop, since
83799         we can't rely on the value of the vmt_length member in the last
83800         entry.  On some systems doing so could result in exhausting
83801         virtual memory.  Based in part on a patch from Mike Jetzer.
83802
83803 2003-04-04  Bruno Haible  <bruno@clisp.org>
83804
83805         * modules/linebreak: New file.
83806         * MODULES.html.sh (func_all_modules): Add it.
83807
83808 2003-04-04  Bruno Haible  <bruno@clisp.org>
83809
83810         * m4/linebreak.m4: New file.
83811
83812 2003-04-04  Bruno Haible  <bruno@clisp.org>
83813
83814         * lib/linebreak.h: New file, from GNU gettext.
83815         * lib/linebreak.c: New file, from GNU gettext with slight
83816         modifications.
83817         * lib/lbrkprop.h: New file, from GNU gettext.
83818
83819 2003-04-03  Bruno Haible  <bruno@clisp.org>
83820
83821         * modules/utf8-ucs4: New file.
83822         * modules/utf16-ucs4: New file.
83823         * modules/ucs4-utf8: New file.
83824         * modules/ucs4-utf16: New file.
83825         * MODULES.html.sh (func_all_modules): Add them.
83826
83827 2003-04-03  Bruno Haible  <bruno@clisp.org>
83828
83829         * m4/utf-ucs4.m4: New file.
83830         * m4/ucs4-utf.m4: New file.
83831
83832 2003-04-03  Bruno Haible  <bruno@clisp.org>
83833
83834         * lib/utf8-ucs4.h: New file, from GNU gettext.
83835         * lib/utf16-ucs4.h: New file, from GNU gettext.
83836         * lib/ucs4-utf8.h: New file, from GNU gettext.
83837         * lib/ucs4-utf16.h: New file, from GNU gettext.
83838
83839 2003-04-02  Bruno Haible  <bruno@clisp.org>
83840
83841         * modules/binary-io: New file.
83842         * MODULES.html.sh (func_all_modules): Add it.
83843
83844 2003-04-02  Bruno Haible  <bruno@clisp.org>
83845
83846         * lib/binary-io.h: New file, from GNU gettext.
83847
83848 2003-04-01  Bruno Haible  <bruno@clisp.org>
83849
83850         * modules/pathname: New file.
83851         * MODULES.html.sh (func_all_modules): Add it.
83852
83853 2003-04-01  Bruno Haible  <bruno@clisp.org>
83854
83855         * lib/pathname.h: New file, from GNU gettext.
83856         * lib/concatpath.c: New file, from GNU gettext.
83857
83858 2003-03-30  Bruno Haible  <bruno@clisp.org>
83859
83860         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83861
83862 2003-03-30  Bruno Haible  <bruno@clisp.org>
83863
83864         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83865         function chown() doesn't exist.
83866
83867 2003-03-28  Bruno Haible  <bruno@clisp.org>
83868
83869         * modules/copy-file: New file.
83870         * MODULES.html.sh (func_all_modules): Add it.
83871
83872 2003-03-28  Bruno Haible  <bruno@clisp.org>
83873
83874         * m4/copy-file.m4: New file.
83875
83876 2003-03-28  Bruno Haible  <bruno@clisp.org>
83877
83878         * lib/copy-file.h: New file, from GNU gettext.
83879         * lib/copy-file.c: New file, from GNU gettext.
83880
83881 2003-03-18  Jim Meyering  <jim@meyering.net>
83882
83883         * lib/quote.c (quote_n): Fix typo in comment.
83884
83885 2003-03-18  Bruno Haible  <bruno@clisp.org>
83886
83887         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83888         checking.
83889         * m4/onceonly_2_57.m4: Likewise.
83890
83891 2003-03-17  Bruno Haible  <bruno@clisp.org>
83892
83893         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83894         (m4_quote): Remove macro.
83895         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83896
83897 2003-03-14  Jim Meyering  <jim@meyering.net>
83898
83899         Merge changes from Coreutils.
83900         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83901         to be const, in order to avoid warnings.
83902         (obstack_room): Likewise.
83903         (obstack_empty_p): Likewise.
83904
83905 2003-03-14  Bruno Haible  <bruno@clisp.org>
83906
83907         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83908         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83909
83910 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83911
83912         Merge changes from Bison.
83913         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83914         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83915         when compiling Bison 1.875's `bitset bset = obstack_alloc
83916         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83917         * lib/hash.c: Include <stdbool.h> unconditionally.
83918
83919 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83920
83921         * m4/onceonly.m4 (m4_quote): New macro.
83922         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83923         Quote AC_FOREACH variable-expansions properly.
83924
83925 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83926
83927         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83928
83929 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83930
83931         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83932         Reported by Bruce Becker; see:
83933         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83934
83935 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83936             Bruno Haible  <bruno@clisp.org>
83937
83938         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83939         Reported by John Hughes, see
83940         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83941
83942 2003-02-20  Bruno Haible  <bruno@clisp.org>
83943
83944         * MODULES.html.sh (func_all_modules): Add poll.
83945
83946 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83947
83948         * modules/poll: New file.
83949
83950 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83951
83952         * lib/poll_.h: New file.
83953         * lib/poll.c: New file.
83954
83955 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83956
83957         * m4/poll.m4: New file.
83958
83959 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83960
83961         * modules/mathl: New file.
83962
83963 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83964
83965         * lib/mathl.h: New file.
83966         * lib/acosl.c: New file.
83967         * lib/asinl.c: New file.
83968         * lib/atanl.c: New file.
83969         * lib/ceill.c: New file.
83970         * lib/cosl.c: New file.
83971         * lib/expl.c: New file.
83972         * lib/floorl.c: New file.
83973         * lib/frexpl.c: New file.
83974         * lib/ldexpl.c: New file.
83975         * lib/logl.c: New file.
83976         * lib/sincosl.c: New file.
83977         * lib/sinl.c: New file.
83978         * lib/sqrtl.c: New file.
83979         * lib/tanl.c: New file.
83980         * lib/trigl.c: New file.
83981         * lib/trigl.h: New file.
83982
83983 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83984
83985         * m4/mathl.m4: New file.
83986
83987 2003-02-18  Bruno Haible  <bruno@clisp.org>
83988
83989         * MODULES.html.sh (func_all_modules): Add mathl.
83990
83991 2003-02-17  Bruno Haible  <bruno@clisp.org>
83992
83993         * modules/mkdtemp: New module.
83994         * MODULES.html.sh (func_all_modules): Add it.
83995
83996 2003-02-17  Bruno Haible  <bruno@clisp.org>
83997
83998         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83999
84000 2003-02-17  Bruno Haible  <bruno@clisp.org>
84001
84002         * lib/mkdtemp.h: New file, from GNU gettext.
84003         * lib/mkdtemp.c: New file, from GNU gettext.
84004
84005 2003-02-02  Jim Meyering  <jim@meyering.net>
84006
84007         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84008         e.g. glibc-2.2.93.
84009
84010 2003-01-31  Bruno Haible  <bruno@clisp.org>
84011
84012         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84013         'rpl_rename'.
84014         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84015         'rpl_strnlen'.
84016         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84017         'rpl_strtod'.
84018         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84019         'rpl_utime'.
84020
84021 2003-01-31  Bruno Haible  <bruno@clisp.org>
84022
84023         * lib/rename.c: #undef rename before defining rpl_rename.
84024         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84025
84026 2003-01-30  Bruno Haible  <bruno@clisp.org>
84027
84028         * modules/vasnprintf, modules/vasprintf: New modules.
84029         * MODULES.html.sh (func_all_modules): Add them.
84030
84031 2003-01-30  Bruno Haible  <bruno@clisp.org>
84032
84033         * m4/signed.m4: New file, from GNU gettext.
84034         * m4/longdouble.m4: New file, from GNU gettext.
84035         * m4/wchar_t.m4: New file, from GNU gettext.
84036         * m4/wint_t.m4: New file, from GNU gettext.
84037         * m4/vasnprintf.m4: New file.
84038         * m4/vasprintf.m4: New file.
84039
84040 2003-01-30  Bruno Haible  <bruno@clisp.org>
84041
84042         * lib/printf-args.h: New file, from GNU gettext.
84043         * lib/printf-args.c: New file, from GNU gettext.
84044         * lib/printf-parse.h: New file, from GNU gettext.
84045         * lib/printf-parse.c: New file, from GNU gettext.
84046         * lib/vasnprintf.h: New file, from GNU gettext.
84047         * lib/vasnprintf.c: New file, from GNU gettext.
84048         * lib/asnprintf.c: New file, from GNU gettext.
84049         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84050         * lib/vasprintf.c: New file, from GNU gettext.
84051         * lib/asprintf.c: New file, from GNU gettext.
84052
84053 2003-01-29  Bruno Haible  <bruno@clisp.org>
84054
84055         * modules/stpncpy: New module.
84056         * MODULES.html.sh (func_all_modules): Add it.
84057
84058 2003-01-29  Bruno Haible  <bruno@clisp.org>
84059
84060         * m4/stpncpy.m4: New file.
84061
84062 2003-01-29  Bruno Haible  <bruno@clisp.org>
84063
84064         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84065         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84066
84067 2003-01-28  Bruno Haible  <bruno@clisp.org>
84068
84069         * modules/c-ctype: New module.
84070         * MODULES.html.sh (func_all_modules): Add it.
84071
84072 2003-01-28  Bruno Haible  <bruno@clisp.org>
84073
84074         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84075         Paul Eggert.
84076         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84077         Paul Eggert.
84078
84079 2003-01-27  Bruno Haible  <bruno@clisp.org>
84080
84081         * modules/xsetenv: New module.
84082         * MODULES.html.sh (func_all_modules): Add it.
84083
84084 2003-01-27  Bruno Haible  <bruno@clisp.org>
84085
84086         * lib/xsetenv.h: New file, from GNU gettext.
84087         * lib/xsetenv.c: New file, from GNU gettext.
84088
84089 2003-01-23  Jim Meyering  <jim@meyering.net>
84090
84091         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84092         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84093
84094 2003-01-23  Bruno Haible  <bruno@clisp.org>
84095
84096         * modules/minmax: New module.
84097         * MODULES.html.sh (func_all_modules): Add it.
84098
84099 2003-01-23  Bruno Haible  <bruno@clisp.org>
84100
84101         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84102         Eggert.
84103
84104 2003-01-22  Bruno Haible  <bruno@clisp.org>
84105
84106         * modules/exit: New module.
84107         * MODULES.html.sh (func_all_modules): Add it.
84108
84109 2003-01-22  Bruno Haible  <bruno@clisp.org>
84110
84111         * lib/exit.h: New file, from GNU gettext.
84112
84113 2003-01-19  Bruno Haible  <bruno@clisp.org>
84114
84115         * gnulib-tool: Recognize option --extract-maintainer.
84116         (func_get_maintainer): New function.
84117         * modules/*: Add Maintainer entry.
84118
84119 2003-01-16  Jim Meyering  <jim@meyering.net>
84120
84121         * m4/regex.m4: The `regex' struct is both input and output.
84122         Initialize it before each use.  Patch by Tim Waugh.
84123
84124 2003-01-16  Bruno Haible  <bruno@clisp.org>
84125
84126         * MODULES.html.sh: Add a table of contents. Add the module name as
84127         leftmost column. Add hyperlinks.
84128
84129 2003-01-15  Bruno Haible  <bruno@clisp.org>
84130
84131         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84132
84133 2003-01-15  Bruno Haible  <bruno@clisp.org>
84134
84135         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84136         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84137         suffix.
84138
84139 2003-01-15  Bruno Haible  <bruno@clisp.org>
84140
84141         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84142
84143 2003-01-15  Bruno Haible  <bruno@clisp.org>
84144
84145         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84146         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84147
84148 2003-01-14  Jim Meyering  <jim@meyering.net>
84149
84150         * lib/same.c (same_name): Tweak a comment.
84151
84152 2003-01-14  Bruno Haible  <bruno@clisp.org>
84153
84154         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84155         when a string comparison is sufficient.
84156
84157 2003-01-14  Bruno Haible  <bruno@clisp.org>
84158
84159         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84160         'unsigned int'.
84161
84162 2003-01-14  Bruno Haible  <bruno@clisp.org>
84163
84164         * lib/hash-pjw.c: Add comment about low quality of this function.
84165
84166 2003-01-13  Bruno Haible  <bruno@clisp.org>
84167
84168         * modules/stpcpy: Distribute lib/stpcpy.h.
84169         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84170
84171 2003-01-13  Bruno Haible  <bruno@clisp.org>
84172
84173         * modules/*: Add a description.
84174         * modules/strpbrk: Fix Makefile.am snippet.
84175         * modules/strtoimax: Fix dependencies.
84176         * modules/strtoumax: Likewise.
84177
84178 2003-01-13  Bruno Haible  <bruno@clisp.org>
84179
84180         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84181         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84182         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84183
84184 2003-01-13  Bruno Haible  <bruno@clisp.org>
84185
84186         * gnulib-tool (func_create_testdir): Store config/* files in the main
84187         directory.
84188         * config.rpath: Move to ...
84189         * config/config.rpath: ... here.
84190         * modules/gettext: Contains config/config.rpath, not config.rpath.
84191         * modules/iconv: Likewise.
84192
84193 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84194
84195         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84196         to avoid collisions with libcurses and libreadline.
84197
84198         * m4/getstr.m4: Remove.
84199         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84200
84201 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84202
84203         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84204         to avoid collisions with libcurses and libreadline.
84205
84206         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84207         * lib/getstr.h, getstr.c: Remove.
84208         * lib/getline.c: Include "getline.h", to check interface.
84209         Move body of old getstr.c here: this defines MIN_CHUNK and
84210         declares getdelim2, which is renamed from getstr.
84211         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84212
84213         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84214         All uses changed.
84215         * lib/linebuffer.h: Likewise.
84216         (readline): Remove backward-compatibility macro.
84217
84218 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84219
84220         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84221         to avoid collisions with libcurses and libreadline.
84222         * getstr: Remove.
84223         * MODULES.html.sh: Remove getstr.
84224         * modules/getline: Depend on unlocked-io, not getstr.
84225
84226 2003-01-12  Jim Meyering  <jim@meyering.net>
84227
84228         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84229
84230 2003-01-10  Bruno Haible  <bruno@clisp.org>
84231
84232         * modules/alloca: Change Makefile.am requirements. Simplify Include
84233         requirements. Add lib/alloca_.h to file list.
84234
84235 2003-01-10  Bruno Haible  <bruno@clisp.org>
84236
84237         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84238
84239 2003-01-10  Bruno Haible  <bruno@clisp.org>
84240
84241         * lib/alloca_.h: New file.
84242         * lib/getdate.y: Unconditionally include alloca.h.
84243         * lib/makepath.c: Likewise.
84244         * lib/setenv.c: Likewise.
84245         * lib/userspec.c: Likewise.
84246
84247 2003-01-09  Karl Berry  <karl@gnu.org>
84248
84249         * MODULES.html.sh: include `dirname $0` in PATH, to find
84250         gnulib-tool.
84251
84252 2003-01-09  Bruno Haible  <bruno@clisp.org>
84253
84254         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84255         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84256
84257 2003-01-09  Bruno Haible  <bruno@clisp.org>
84258
84259         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84260
84261 2003-01-09  Bruno Haible  <bruno@clisp.org>
84262
84263         * lib/stdbool.h.in: New file.
84264
84265 2003-01-09  Bruno Haible  <bruno@clisp.org>
84266
84267         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84268         * MODULES.html.sh: Likewise.
84269
84270 2003-01-08  Jim Meyering  <jim@meyering.net>
84271
84272         * lib/full-write.c: Undefine and define-away `const' after inclusion
84273         of errno.h, not before.  Suggestion from Bruno Haible.
84274
84275 2003-01-08  Bruno Haible  <bruno@clisp.org>
84276
84277         * modules/full-read: Depend on full-write.
84278
84279 2003-01-08  Bruno Haible  <bruno@clisp.org>
84280
84281         * lib/safe-read.c: Include specification header first, to ensure its
84282         selfcontainedness.
84283         * lib/full-write.c: Likewise.
84284
84285 2003-01-07  Jim Meyering  <jim@meyering.net>
84286
84287         * lib/full-write.c: Rework so that it may serve to define full_read,
84288         too.
84289         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84290
84291 2003-01-07  Bruno Haible  <bruno@clisp.org>
84292
84293         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84294         <inttypes.h>.
84295         * lib/xstrtol.h: Likewise.
84296         * lib/xstrtoimax.c: Likewise.
84297         * lib/xstrtoumax.c: Likewise.
84298         * lib/human.h: Likewise.
84299
84300         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84301         on systems that have <inttypes.h> but not <stdint.h>.
84302
84303 2003-01-07  Bruno Haible  <bruno@clisp.org>
84304
84305         * MODULES.html.sh: Add copyright notice.
84306         (missed_files): Omit CVS directory entries.
84307         (func_module): Make it work with sed-3.02.
84308         * MODULES.txt: Remove file.
84309
84310 2003-01-06  Jim Meyering  <jim@meyering.net>
84311
84312         * lib/version-etc.c: Update year in translatable copyright string.
84313
84314 2003-01-03  Karl Berry  <karl@gnu.org>
84315
84316         * config/config.{guess,sub}: update from prep.
84317
84318 2003-01-02  Karl Berry  <karl@gnu.org>
84319
84320         * doc/COPYING.DOC: belatedly updated to 1.2.
84321
84322 2003-01-01  Karl Berry  <karl@gnu.org>
84323
84324         * gnulib-tool (func_verify_module): report module name $module in
84325         error message, not $1.
84326         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84327         be created, only if it doesn't exist.
84328         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84329
84330 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84331
84332         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84333
84334 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84335
84336         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84337         memcmp if strcoll doesn't work.
84338
84339 2002-12-31  Bruno Haible  <bruno@clisp.org>
84340
84341         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84342         nonempty.
84343
84344 2002-12-31  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/memcoll.c (STRCOLL): New macro.
84347         (memcoll): Use it.
84348
84349 2002-12-31  Bruno Haible  <bruno@clisp.org>
84350
84351         * lib/localcharset.h: New file.
84352         * lib/localcharset.c: Include it.
84353         * lib/unicodeio.c: Likewise.
84354
84355 2002-12-31  Bruno Haible  <bruno@clisp.org>
84356
84357         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84358         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84359
84360 2002-12-31  Bruno Haible  <bruno@clisp.org>
84361
84362         * lib/getline.h: Include <stddef.h>, for size_t.
84363
84364         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84365         * lib/unicodeio.c: Don't include <stddef.h>.
84366
84367 2002-12-31  Bruno Haible  <bruno@clisp.org>
84368
84369         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84370         HAVE_TM_ZONE.
84371
84372 2002-12-24  Karl Berry  <karl@gnu.org>
84373
84374         * config/config.guess: update from prep.
84375
84376 2002-12-24  Bruno Haible  <bruno@clisp.org>
84377
84378         General infrasructure.
84379         * m4/README: Rewritten.
84380         * m4/onceonly.m4: New file.
84381         * m4/onceonly_2_57.m4: New file.
84382
84383         Module atexit.
84384         * m4/atexit.m4: New file.
84385
84386         Module strtod.
84387         * m4/strtod.m4: New file.
84388
84389         Module strtol.
84390         * m4/strtol.m4: New file.
84391
84392         Module strtoul.
84393         * m4/strtoul.m4: New file.
84394
84395         Module memchr.
84396         * m4/memchr.m4: New file.
84397
84398         Module memcmp.
84399         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84400         (jm_FUNC_MEMCMP): Invoke it.
84401
84402         Module memcpy.
84403         * m4/memcpy.m4: New file.
84404
84405         Module memmove.
84406         * m4/memmove.m4: New file.
84407
84408         Module memset.
84409         * m4/memset.m4: New file.
84410
84411         Module strcspn.
84412         * m4/strcspn.m4: New file.
84413
84414         Module strpbrk.
84415         * m4/strpbrk.m4: New file.
84416
84417         Module strstr.
84418         * m4/strstr.m4: New file.
84419
84420         Module strerror.
84421         * m4/strerror.m4: New file.
84422
84423         Module mktime.
84424         * m4/mktime.m4: Renamed from jm-mktime.m4.
84425         (gl_PREREQ_MKTIME): New macro.
84426         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84427
84428         Module malloc.
84429         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84430         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84431         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84432
84433         Module realloc.
84434         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84435         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84436         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84437
84438         Module strftime.
84439         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84440         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84441         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84442         gl_TM_GMTOFF.
84443         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84444
84445         Module xalloc.
84446         * m4/xalloc.m4: New file.
84447
84448         Module alloca.
84449         * m4/alloca.m4: New file.
84450
84451         Module putenv.
84452         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84453         (jm_FUNC_PUTENV): Invoke it.
84454
84455         Module setenv.
84456         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84457         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84458         when invoked twice.
84459         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84460         gt_FUNC_SETENV.
84461
84462         Module memrchr.
84463         * m4/memrchr.m4: New file.
84464
84465         Module stpcpy.
84466         * m4/stpcpy.m4: New file.
84467
84468         Module strcase.
84469         * m4/strcase.m4: New file.
84470
84471         Module strdup.
84472         * m4/strdup.m4: New file.
84473
84474         Module strnlen.
84475         * m4/strnlen.m4: New file.
84476
84477         Module strndup.
84478         * m4/strndup.m4: New file.
84479
84480         Module xstrtod.
84481         * m4/xstrtod.m4: New file.
84482
84483         Module xstrtol.
84484         * m4/xstrtol.m4: New file.
84485
84486         Module getdate.
84487         * m4/getdate.m4: New file.
84488
84489         Module unlocked-io.
84490         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84491         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84492         * m4/jm-glibc-io.m4n: Remove file.
84493
84494         Module long-options.
84495         * m4/long-options.m4: New file.
84496
84497         Module md5.
84498         * m4/md5.m4: New file.
84499
84500         Module sha.
84501         * m4/sha.m4: New file.
84502
84503         Module getstr.
84504         * m4/getstr.m4: New file.
84505
84506         Module getline.
84507         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84508         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84509         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84510         simply getline. Infoke gl_PREREQ_GETLINE.
84511
84512         Module obstack.
84513         * m4/obstack.m4: New file.
84514
84515         Module hash.
84516         * m4/hash.m4: New file.
84517
84518         Module readtokens.
84519         * m4/readtokens.m4: New file.
84520
84521         Module strverscmp.
84522         * m4/strverscmp.m4: New file.
84523
84524         Module stdbool.
84525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84526         OSF/1.
84527
84528         Module strtoll.
84529         * m4/strtoll.m4: New file.
84530
84531         Module strtoull.
84532         * m4/strtoull.m4: New file.
84533
84534         Module strtoimax.
84535         * m4/strtoimax.m4: New file.
84536
84537         Module strtoumax.
84538         * m4/strtoumax.m4: New file.
84539
84540         Module xstrtoimax.
84541         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84542         jm_AC_PREREQ_XSTRTOIMAX.
84543         Moved the strtol prerequisites to strtol.m4.
84544         Moved the strtoll prerequisites to strtoll.m4.
84545         Moved the strtoimax prerequisites to strtoimax.m4.
84546
84547         Module xstrtoumax.
84548         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84549         jm_AC_PREREQ_XSTRTOUMAX.
84550         Moved the strtoul prerequisites to strtoul.m4.
84551         Moved the strtoull prerequisites to strtoull.m4.
84552         Moved the strtoumax prerequisites to strtoumax.m4.
84553
84554         Module chown.
84555         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84556         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84557
84558         Module dup2.
84559         * m4/dup2.m4: New file.
84560
84561         Module ftruncate.
84562         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84563         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84564
84565         Module getgroups.
84566         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84567         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84568
84569         Module gettimeofday.
84570         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84571         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84572         gl_PREREQ_GETTIMEOFDAY.
84573
84574         Module mkdir.
84575         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84576         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84577
84578         Module mkstemp.
84579         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84580         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84581         jm_AC_TYPE_UINTMAX_T.
84582         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84583
84584         Module stat.
84585         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84586         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84587
84588         Module lstat.
84589         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84590         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84591
84592         Module timespec.
84593         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84594         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84595         * m4/st_mtim.m4: Indentation.
84596
84597         Module nanosleep.
84598         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84599         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84600         gl_PREREQ_NANOSLEEP.
84601
84602         Module regex.
84603         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84604         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84605         (gl_REGEX): New macro.
84606
84607         Module rename.
84608         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84609         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84610
84611         Module rmdir.
84612         * m4/rmdir.m4: New file.
84613
84614         Module utime.
84615         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84616         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84617         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84618
84619         Module dirname.
84620         * m4/dirname.m4: New file.
84621
84622         Module getopt.
84623         * m4/getopt.m4: New file.
84624
84625         Module unistd-safer.
84626         * m4/unistd-safer.m4: New file.
84627
84628         Module fnmatch.
84629         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84630         declaration.
84631         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84632         (gl_FUNC_FNMATCH_POSIX): New macro.
84633         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84634         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84635         simply fnmatch.
84636
84637         Module exclude.
84638         * m4/exclude.m4: New file.
84639
84640         Module human.
84641         * m4/human.m4: New file.
84642
84643         Module acl.
84644         * m4/acl.m4: Nop.
84645
84646         Module backupfile.
84647         * m4/backupfile.m4: New file.
84648         * m4/d-ino.m4: Indentation.
84649
84650         Module fsusage.
84651         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84652         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84653         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84654
84655         Module dirfd.
84656         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84657         requirements.
84658
84659         Module euidaccess.
84660         * m4/euidaccess.m4: New file.
84661
84662         Module file-type.
84663         * m4/file-type.m4: New file.
84664
84665         Module fileblocks.
84666         * m4/fileblocks.m4: New file.
84667
84668         Module filemode.
84669         * m4/filemode.m4: New file.
84670
84671         Module isdir.
84672         * m4/isdir.m4: New file.
84673
84674         Module lchown.
84675         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84676         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84677
84678         Module makepath.
84679         * m4/makepath.m4: New file.
84680
84681         Module modechange.
84682         * m4/modechange.m4: New file.
84683
84684         Module mountlist.
84685         * m4/mountlist.m4: New file.
84686         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84687         Indentation.
84688
84689         Module path-concat.
84690         * m4/path-concat.m4: New file.
84691
84692         Module pathmax.
84693         * m4/pathmax.m4: New file.
84694
84695         Module same.
84696         * m4/same.m4: New file.
84697
84698         Module save-cwd.
84699         * m4/save-cwd.m4: New file.
84700
84701         Module savedir.
84702         * m4/savedir.m4: New file.
84703
84704         Module xgetcwd.
84705         * m4/xgetcwd.m4: New file.
84706         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84707
84708         Module xreadlink.
84709         * m4/xreadlink.m4: New file.
84710
84711         Module safe-read.
84712         * m4/safe-read.m4: New file.
84713
84714         Module safe-write.
84715         * m4/safe-write.m4: New file.
84716
84717         Module closeout.
84718         * m4/closeout.m4: New file.
84719
84720         Module stdio-safer.
84721         * m4/stdio-safer.m4: New file.
84722
84723         Module getpass.
84724         * m4/getpass.m4: New file.
84725
84726         Module getugroups.
84727         * m4/getugroups.m4: New file.
84728
84729         Module group-member.
84730         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84731         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84732
84733         Module idcache.
84734         * m4/idcache.m4: New file.
84735
84736         Module userspec.
84737         * m4/userspec.m4: New file.
84738
84739         Module gettime.
84740         * m4/clock_time.m4: New file.
84741         * m4/gettime.m4: New file.
84742
84743         Module settime.
84744         * m4/settime.m4: New file.
84745
84746         Module posixtm.
84747         * m4/posixtm.m4: New file.
84748
84749         Module gethostname.
84750         * m4/gethostname.m4: New file.
84751
84752         Module canon-host.
84753         * m4/canon-host.m4: New file.
84754
84755         Module gettext.
84756         * m4/codeset.m4: New file, from gettext-0.11.5.
84757         * m4/gettext.m4: New file, from gettext-0.11.5.
84758         * m4/glibc21.m4: New file, from gettext-0.11.5.
84759         * m4/iconv.m4: New file, from gettext-0.11.5.
84760         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84761         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84762         * m4/inttypes.m4: New file, from gettext-0.11.5.
84763         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84764         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84765         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84766         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84767         * m4/lib-link.m4: New file, from gettext-0.11.5.
84768         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84769         * m4/progtest.m4: New file, from gettext-0.11.5.
84770         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84771         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84772         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84773
84774         Module localcharset.
84775         * m4/localcharset.m4: New file.
84776
84777         Module hard-locale.
84778         * m4/hard-locale.m4: New file.
84779
84780         Module mbswidth.
84781         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84782         onceonly macros.
84783         * m4/mbrtowc.m4: Add comment.
84784
84785         Module memcasecmp.
84786         * m4/memcasecmp.m4: New file.
84787
84788         Module memcoll.
84789         * m4/memcoll.m4: New file.
84790
84791         Module unicodeio.
84792         * m4/unicodeio.m4: New file.
84793
84794         Module rpmatch.
84795         * m4/rpmatch.m4: New file.
84796
84797         Module yesno.
84798         * m4/yesno.m4: New file.
84799
84800         Module exitfail.
84801         * m4/exitfail.m4: New file.
84802
84803         Module c-stack.
84804         * m4/c-stack.m4 (gl_C_STACK): New macro.
84805         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84806
84807         Module error.
84808         * m4/error.m4 (gl_ERROR): New macro.
84809         (jm_PREREQ_ERROR): Use onceonly macros.
84810
84811         Module fatal.
84812         * m4/fatal.m4: New file.
84813
84814         Module getloadavg.
84815         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84816         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84817
84818         Module getpagesize.
84819         * m4/getpagesize.m4: New file.
84820
84821         Module getusershell.
84822         * m4/getusershell.m4: New file.
84823
84824         Module physmem.
84825         * m4/physmem.m4: New file.
84826
84827         Module posixver.
84828         * m4/posixver.m4: New file.
84829
84830         Module quotearg.
84831         * m4/quotearg.m4: New file.
84832
84833         Module quote.
84834         * m4/quote.m4: New file.
84835
84836         Module readutmp.
84837         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84838
84839         Module sig2str.
84840         * m4/sig2str.m4: New file.
84841
84842         Other.
84843         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84844         ulonglong.m4.
84845         * m4/intmax_t.m4: New file.
84846         * m4/d-type.m4: Indentation.
84847         * m4/jm-macros.m4: Update.
84848         * m4/prereq.m4 (jm_PREREQ): Update.
84849         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84850         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84851         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84852         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84853         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84854         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84855         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84856         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84857         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84858         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84859         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84860         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84861         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84862         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84863         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84864         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84865         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84866         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84867         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84868
84869 2002-12-24  Bruno Haible  <bruno@clisp.org>
84870
84871         * MODULES.txt: Update according to m4/ changes.
84872
84873         Module gettext.
84874         * config.rpath: New file, from gettext-0.11.5.
84875
84876         * modules/*: New module descriptions.
84877         * gnulib-tool: New file.
84878         * MODULES.html.sh: New file.
84879
84880 2002-12-21  Karl Berry  <karl@gnu.org>
84881
84882         * doc/fdl.texi: update to version 1.2.
84883
84884 2002-12-19  Karl Berry  <karl@gnu.org>
84885
84886         * config/config.guess: update from prep.
84887
84888 2002-12-18  Bruno Haible  <bruno@clisp.org>
84889
84890         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84891         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84892
84893 2002-12-17  Bruno Haible  <bruno@clisp.org>
84894
84895         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84896         stdlib.h, string.h.
84897
84898 2002-12-17  Bruno Haible  <bruno@clisp.org>
84899
84900         * lib/canon-host.c (strdup): Remove unused declaration.
84901
84902         * lib/fsusage.c: Include full_read.h.
84903         (get_fs_usage): Use full_read instead of safe_read.
84904
84905         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84906
84907 2002-12-12  Karl Berry  <karl@gnu.org>
84908
84909         * config/config.guess: update from prep.
84910
84911 2002-12-11  Bruno Haible  <bruno@clisp.org>
84912
84913         * m4/setenv.m4: New file, from gettext-0.11.5.
84914
84915 2002-12-11  Bruno Haible  <bruno@clisp.org>
84916
84917         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84918         not unsetenv().
84919         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84920         modifications:
84921
84922         2002-12-11  Bruno Haible  <bruno@clisp.org>
84923
84924                 * setenv.c (alloca): Fall back to malloc.
84925                 (freea): New macro.
84926                 (setenv): Use freea() to free memory allocated with alloca().
84927
84928         2002-11-13  Bruno Haible  <bruno@clisp.org>
84929
84930                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84931                 function declarations.
84932                 * unsetenv.c (unsetenv): Likewise.
84933
84934         2002-03-04  Bruno Haible  <bruno@clisp.org>
84935
84936                 Portability to AIX 4.3.3.
84937                 * unsetenv.c: New file, extracted from setenv.c.
84938                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84939
84940         2001-12-20  Bruno Haible  <bruno@clisp.org>
84941
84942                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84943                 use malloc instead. For SunOS 4.
84944
84945         2001-12-11  Bruno Haible  <bruno@clisp.org>
84946
84947                 * setenv.c: Declare alloca.
84948                 (compar_fn_t): New typedef.
84949                 (KNOWN_VALUE, STORE_VALUE): Use it.
84950
84951         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84952         setenv.h.
84953
84954 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84955
84956         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84957         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84958         Choose values that are less likely to collide with system fnmatch
84959         options.
84960         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84961         defined (e.g., a pure POSIX system).
84962         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84963         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84964
84965 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84966
84967         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84968         a pain in practice to deal with generated m4 files.  This change
84969         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84970
84971         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84972         and jm-glibc-io.m4, as they are no longer a special case.
84973         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84974         kludge and the auto-generation stuff.  Check only whether the
84975         functions are declared, not whether they exist, since older hosts
84976         that don't declare the functions can't use the optimization anyway.
84977
84978 2002-12-06  Jim Meyering  <jim@meyering.net>
84979
84980         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84981
84982         Merge in changes from libc's misc/error.c, in preparation
84983         for the merge of gnulib's changes back into libc.
84984
84985         * lib/error.c (_): Define only if not already defined.
84986         Move definition to follow all #include directives.
84987         Include unlocked-io.h only if !_LIBC.
84988         [_LIBC]: Include <libio/libioP.h>.
84989         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84990         (fflush): Tweak definition to use INTUSE.
84991         (putc): Define.
84992
84993 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84994
84995         * lib/alloca.c [defined emacs]: Include "lisp.h".
84996         (xalloc_die) [defined emacs]: New macro.
84997         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84998         [! defined emacs]: Include <xalloc.h>.
84999         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85000         (pointer): Typedef to POINTER_TYPE *.
85001         (malloc): Remove decl; we now always use xmalloc.
85002         (alloca): Use old-style definition, since Emacs needs this.
85003         Check for arithmetic overflow when computing combined size.
85004
85005 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85006
85007         Do not generate unlocked-io.h automatically, since it's easier to
85008         maintain it by hand.
85009
85010         * lib/unlocked-io.h: New file, from GNU diffutils,
85011         but with proper copyright notice and attribution.
85012         * lib/gen-uio: Remove.
85013         * lib/Makefile.am: Add copyright notice.
85014         (libfetish_a_SOURCES): Add unlocked-io.h.
85015         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85016         (DISTCLEANFILES, io_functions): Remove macros.
85017         (EXTRA_DIST): Remove gen_uio.
85018         (unlocked-io.h): Remove rule.
85019
85020 2002-12-04  Jim Meyering  <jim@meyering.net>
85021
85022         Reflect the fact that stat.c and lstat.c are no longer generated.
85023         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85024         (DISTCLEANFILES): Likewise.
85025         (EXTRA_DIST): Likewise.
85026         (all_local): Don't depend on stat.c or lstat.c.
85027         (stat.c, lstat.c): Remove rules.
85028         (EXTRA_DIST): Remove xstat.in.
85029
85030         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85031         * lib/stat.c: New file.  Contents mostly from xstat.in.
85032         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85033         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85034
85035         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85036         too.
85037         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85038
85039 2002-12-03  Jim Meyering  <jim@meyering.net>
85040
85041         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85042         but not semantics, to minimize the differences between these two files.
85043         (safe_read): Change comment to mention SAFE_READ_ERROR.
85044
85045         * lib/safe-read.c (IS_EINTR): Define.
85046         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85047
85048 2002-12-02  Jim Meyering  <jim@meyering.net>
85049
85050         * lib/safe-read.c (EINTR): Define.
85051         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85052         (INT_MAX): Provide fallback.
85053         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85054
85055         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85056
85057 2002-12-02  Bruno Haible  <bruno@clisp.org>
85058
85059         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85060         Define, taken from safe-read.c.
85061         (INT_MAX): Provide fallback.
85062         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85063         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85064
85065         * lib/safe-read.c (EINTR): Remove definition.
85066         (safe_read): Don't use EINTR if it is absent.
85067
85068 2002-12-01  Jim Meyering  <jim@meyering.net>
85069
85070         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85071         zero.
85072         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85073
85074 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85075
85076         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85077         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85078         with `if (! (value < limit)) abort ();', for readability.
85079
85080 2002-11-26  Karl Berry  <karl@gnu.org>
85081
85082         * lib/strdup.c: copy from libc again, with jim's ok.
85083         * lib/.cppi-disable: re-add strdup.c
85084
85085 2002-11-25  Karl Berry  <karl@gnu.org>
85086
85087         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85088         instead of "strtol.c".
85089
85090 2002-11-25  Karl Berry  <karl@gnu.org>
85091
85092         * config/install-sh: update from automake for variable quoting, $0 in
85093         error msgs, etc.
85094
85095         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85096         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85097         entry.
85098
85099 2002-11-25  Jim Meyering  <jim@meyering.net>
85100
85101         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85102
85103 2002-11-24  Karl Berry  <karl@gnu.org>
85104
85105         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85106         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85107
85108 2002-11-24  Jim Meyering  <jim@meyering.net>
85109
85110         Update from coreutils:
85111
85112         * lib/mktime.c: Merge in changes from libc.
85113
85114         Avoid a link-time failure on some Linux systems.
85115         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85116         (otherwise).
85117         (__mon_yday): Declare with the STATIC attribute.
85118         (__mktime_internal): Likewise.
85119         Based on a report from Greg Schafer.
85120
85121 2002-11-23  Jim Meyering  <jim@meyering.net>
85122
85123         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85124         Use `unsigned', not `int', as type of index.
85125
85126         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85127
85128         * lib/fsusage.c: Remove unneeded parentheses around operands of
85129         `defined'.
85130
85131 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85132
85133         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85134         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85135         so that we can be included first.
85136         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85137         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85138         No need to include stddef.h or sys/types.h any more.
85139         Surround local include files with "", not "<>".
85140         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85141         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85142         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85143         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85144         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85145         (ISPRINT): Remove; no longer needed now that we assume C89.
85146
85147         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85148         Preserve errno.
85149
85150         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85151         quotearg_char): Use SIZE_MAX rather than
85152         (size_t) -1 when we are talking about "infinity".
85153
85154         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85155
85156 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85157
85158         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85159         hint that one should use `if (! x) abort ();' rather than `assert
85160         (x);', and anyway it's one less thing to worry about configuring.
85161         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85162         hash_rehash, hash_insert): Use abort rather than assert.
85163
85164 2002-11-22  Bruno Haible  <bruno@clisp.org>
85165
85166         * lib/safe-read.h: Assume C89. Add comments.
85167         (safe_read): Change return type to size_t.
85168         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85169         byte counts > SSIZE_MAX correctly.
85170         * lib/safe-write.h: New file.
85171         * lib/safe-write.c: New file.
85172         * lib/full-read.h: New file.
85173         * lib/full-read.c: New file.
85174         * lib/full-write.h: Assume C89. Add comments.
85175         * lib/full-write.c: Include safe-write.h.
85176         (full_write): Rewritten to use safe_write.
85177         Suggested by Jim Meyering and Paul Eggert.
85178
85179 2002-11-21  Jim Meyering  <jim@meyering.net>
85180
85181         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85182
85183         Merge in changes from the coreutils.
85184
85185         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85186         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85187         <stdint.h>.
85188         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85189         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85190         int.  Work more efficiently if X is the same width as uintmax_t.
85191         Do not compare X to -1, to avoid bogus compiler warning.
85192         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85193         Don't assume that f_frsize and f_bsize are the same type.
85194
85195         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85196         warning on FreeBSD.
85197
85198         * lib/makepath.c (make_path): Restore umask *before* creating the final
85199         component.
85200         (make_path): Minor reformatting.
85201
85202         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85203         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85204         HAVE_MALLOC/HAVE_REALLOC.
85205
85206         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85207         dummy ones.  At least on GNU/Linux systems, `auto' means something
85208         else.
85209         From Michael Stone.
85210
85211 2002-11-21  Bruno Haible  <bruno@clisp.org>
85212
85213         Remove case insensitive option matching.
85214         * lib/argmatch.h (argcasematch): Remove declaration.
85215         (ARGCASEMATCH): Remove macro.
85216         (__xargmatch_internal): Remove case_sensitive argument.
85217         (XARGMATCH): Update.
85218         (XARGCASEMATCH): Remove macro.
85219         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85220         case_sensitive argument.
85221         (argcasematch): Remove function.
85222         (__xargmatch_internal): Remove case_sensitive argument.
85223         (main): Use XARGMATCH instead of XARGCASEMATCH.
85224
85225         * lib/xmalloc.c: Change compile-time error message. Add comment about
85226         required autoconf version.
85227
85228 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85229
85230         Merge argmatch cleanups from Bison.  Assume C89.
85231
85232         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85233         Include stdlib.h, for EXIT_FAILURE.
85234         Always include <string.h>, since we assume C89.
85235         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85236         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85237         Include <stddef.h> instead, since it's all we need for size_t.
85238         (PARAMS): Remove.  All uses removed.
85239         (ARRAY_CARDINALITY): Do not bother to #undef.
85240         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85241         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85242         Remove unnecessary parentheses.
85243         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85244         Insert necessary parentheses.
85245         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85246         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85247
85248 2002-11-19  Bruno Haible  <bruno@clisp.org>
85249
85250         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85251         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85252
85253         * lib/mbswidth.h (PARAMS): Remove macro.
85254         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85255         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85256
85257         * lib/gcd.h (PARAMS): Remove macro.
85258         (gcd): Use ANSI C function declarations.
85259         * lib/gcd.c (gcd): Likewise.
85260
85261 2002-11-15  Bruno Haible  <bruno@clisp.org>
85262
85263         * lib/strcspn.c: Include <stddef.h>.
85264         (strcspn): Use ANSI C function declaration. Change return type to
85265         size_t. Use NULL.
85266         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85267         (strpbrk): Use NULL.
85268         * lib/strpbrk.h (PARAMS): Remove macro.
85269         (strpbrk): Use ANSI C function declaration.
85270         * lib/strstr.c: Don't include <sys/types.h>.
85271         * lib/strstr.h (PARAMS): Remove macro.
85272         (strstr): Use ANSI C function declarations.
85273
85274 2002-11-14  Karl Berry  <karl@gnu.org>
85275
85276         * config/mkinstalldirs: `do' on separate line, instead of
85277         `for var; do'.
85278
85279 2002-11-06  Bruno Haible  <bruno@clisp.org>
85280
85281         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85282         * lib/gcd.c (gcd): Likewise.
85283
85284 2002-11-05  Bruno Haible  <bruno@clisp.org>
85285
85286         * lib/gcd.h: New file, from gettext-0.11.5.
85287         * lib/gcd.c: New file, from gettext-0.11.5.
85288
85289 2002-11-05  Bruno Haible  <bruno@clisp.org>
85290
85291         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85292         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85293         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85294         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85295
85296         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85297         <libintl.h>.
85298         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85299         <libintl.h>.
85300
85301         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85302         * lib/human.c: Include gettext.h instead of <libintl.h>.
85303         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85304         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85305         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85306         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85307         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85308         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85309         (textdomain): Remove definition.
85310         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85311
85312         * lib/long-options.c: Remove include of <libintl.h> and definition of
85313         _.
85314         * lib/same.c: Remove include of <libintl.h> and definition of _.
85315
85316 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85317
85318         * lib/config.charset: A few additions for Solaris.
85319
85320 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85321
85322         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85323         * lib/localcharset.c (locale_charset): Declare as extern "C".
85324
85325 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85326
85327         * lib/config.charset: msdos in uk_UA uses CP1125.
85328
85329 2002-11-04  Bruno Haible  <bruno@clisp.org>
85330
85331         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85332         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85333         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85334         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85335         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85336
85337 2002-11-04  Bruno Haible  <bruno@clisp.org>
85338
85339         * lib/localcharset.c (locale_charset): Don't return an empty string.
85340
85341 2002-11-04  Bruno Haible  <bruno@clisp.org>
85342
85343         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85344         aliases.
85345
85346 2002-11-04  Bruno Haible  <bruno@clisp.org>
85347
85348         * lib/config.charset: Update for newest glibc. Add canonical names
85349         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85350
85351 2002-11-04  Bruno Haible  <bruno@clisp.org>
85352
85353         * lib/config.charset: Add support for NetBSD.
85354
85355 2002-11-04  Bruno Haible  <bruno@clisp.org>
85356
85357         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85358
85359 2002-11-01  Bruno Haible  <bruno@clisp.org>
85360
85361         * configure.in: Add AC_CONFIG_AUX_DIR call.
85362         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85363         test/Makefile.
85364         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85365
85366 2002-09-28  Karl Berry  <karl@gnu.org>
85367
85368         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85369         installed automake until the next release, since changes have been
85370         made.
85371
85372 2002-09-25  Karl Berry  <karl@gnu.org>
85373
85374         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85375         * lib/getopt*: copy from libc/posix.
85376         * lib/gettext.h: copy from gettext.
85377         * lib/.cppi-disable: add strdup.c, gettext.h.
85378
85379 2002-09-25  Karl Berry  <karl@gnu.org>
85380
85381         * config/srclist.txt: enable gettext.h check.
85382         * config/config.{guess,sub}: update from prep.
85383         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85384                 from automake 1.6.3.
85385         See srclist*.
85386
85387 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85388
85389         * regex.c (PATFETCH): Remove the translating fetch.
85390         (PATFETCH_RAW): Rename to PATFETCH.
85391         (set_image_of_range): New fun.
85392         (SET_RANGE_TABLE_WORK_AREA): Use it.
85393         (regex_compile): Don't translate the pattern chars so eagerly.
85394         Only do it when inserting an `exactn' bytecode or when handling
85395         a char-range.
85396         (mutually_exclusive_p): Avoid empty statement.
85397
85398 2002-07-06  Jim Meyering  <meyering@lucent.com>
85399
85400         * m4/README: Don't mention Makefile.am.in.
85401         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85402
85403 2002-07-01  Jim Meyering  <meyering@lucent.com>
85404
85405         * lib/c-stack.c: Include sys/time.h.
85406         From Volker Borchert.
85407
85408 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85409
85410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85411
85412 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85413
85414         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85415         New macro.  Use it uniformly instead of
85416         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85417         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85418         reported by Vin Shelton.
85419
85420 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85421
85422         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85423         Do not assume SA_SIGINFO behavior.
85424         Bug reported by Jim Meyering on NetBSD 1.5.2.
85425
85426 2002-06-22  Jim Meyering  <meyering@lucent.com>
85427
85428         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85429         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85430
85431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85432         now that configure.ac uses AC_GNU_SOURCE.
85433         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85434         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85435
85436         Update to latest tools.  Suggestions from Paul Eggert.
85437         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85438         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85439         * m4/fnmatch.m4: Likewise.
85440         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85441         to AC_HEADER_STDBOOL
85442
85443 2002-06-22  Jim Meyering  <meyering@lucent.com>
85444
85445         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85446         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85447
85448 2002-06-22  Jim Meyering  <meyering@lucent.com>
85449
85450         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85451
85452         * lib/exitfail.c, exitfail.h: Likewise.
85453         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85454
85455         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85456         of fnmatch.h.
85457         (EXTRA_DIST): Add fnmatch_loop.c.
85458         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85459
85460         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85461         * lib/fnmatch.c: Update from diffutils-2.8.2.
85462         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85463         * lib/fnmatch.h: Remove file.
85464
85465 2002-06-21  Jim Meyering  <meyering@lucent.com>
85466
85467         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85468         * m4/mbrtowc.m4: Likewise.
85469
85470         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85471         * m4/mbswidth.m4: Reflect name change:
85472         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85473         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85474
85475         * m4/lib-link.m4: Update from gettext-0.11.2.
85476         * m4/gettext.m4: Likewise.
85477
85478         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85479         From Alfred M. Szmidt.
85480
85481 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85482
85483         * lib/file-type.h: Report an error if neither S_ISREG nor
85484         S_IFREG is defined, instead of using a test specific to glibc
85485         2.2.  This should be safe, since POSIX requires S_ISREG and
85486         Unix Version 7 had S_IFREG.  We don't need to check for
85487         <sys/types.h> since we don't use any symbols that it defines.
85488
85489 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85490
85491         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85492         $@-t, so that each temporary file name is unique and valid in the first
85493         8 characters, for operation under DOS.
85494
85495 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85496
85497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85498
85499 2002-06-15  Jim Meyering  <meyering@lucent.com>
85500
85501         Work even with DJGPP 2.03, which lacks support for symlinks.
85502         From Richard Dawe.
85503         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85504         is defined.
85505         * lib/lchown.c (S_ISLNK): Likewise.
85506
85507 2002-06-15  Jim Meyering  <meyering@lucent.com>
85508
85509         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85510         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85511         have been included before this file.
85512
85513 2002-06-14  Jim Meyering  <meyering@lucent.com>
85514
85515         * lib/file-type.h: Use the version from diffutils-2.8.2.
85516         * lib/file-type.c: Likewise.
85517
85518 2002-06-07  Jim Meyering  <meyering@lucent.com>
85519
85520         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85521         They're needed at least for NetBSD 1.5.2.
85522         ($statxfs_includes): Include those same headers.
85523         ($statxfs_includes): Include sys/vfs.h if available.
85524         ($statxfs_includes): Likewise for sys/statvfs.h.
85525         Check for the following members in both structs statfs and statvfs:
85526         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85527
85528 2002-06-01  Jim Meyering  <meyering@lucent.com>
85529
85530         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85531         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85532
85533 2002-05-28  Jim Meyering  <meyering@lucent.com>
85534
85535         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85536         Reported by Volker Borchert.
85537
85538 2002-05-27  Jim Meyering  <meyering@lucent.com>
85539
85540         Fix a problem seen only on nonconforming systems whereby ls.c's
85541         use of localtime, and then of gettimeofday would cause trouble:
85542         the localtime call used to initialize rpl_gettimeofday's save
85543         mechanism would clobber ls's current local time information so
85544         that in any long listing the first file would always be listed
85545         with date 1970-01-01.  Analysis by Volker Borchert.
85546
85547         * lib/gettimeofday.c (localtime): Undefine.
85548         (rpl_localtime): New function.
85549
85550 2002-05-27  Jim Meyering  <meyering@lucent.com>
85551
85552         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85553         localtime.
85554
85555         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85556         use the replacement function; it wouldn't resolve at link time.
85557         Reported by Volker Borchert.
85558
85559 2002-05-22  Jim Meyering  <meyering@lucent.com>
85560
85561         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85562         file-type.h.
85563         * lib/file-type.h: New file.
85564         * lib/file-type.c (file_type): New file/function.  Extracted from
85565         diffutils.
85566
85567 2002-04-30  Jim Meyering  <meyering@lucent.com>
85568
85569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85570
85571 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85572
85573         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85574
85575 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85576
85577         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85578         Do not check for alloca.h (no longer used) or stdbool.h (was never
85579         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85580
85581 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85584
85585 2002-04-29  Jim Meyering  <meyering@lucent.com>
85586
85587         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85588         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85589         Use AC_FUNC_STRNLEN here instead.
85590
85591         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85592         With autoconf-2.53a, it's part of AC_PROG_CC.
85593
85594 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85595
85596         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85598
85599 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85600
85601         * lib/sig2str.h, lib/sig2str.c: New files.
85602         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85603
85604 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85605
85606         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85607         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85608         of 127, since 64 is the largest conceivable number for ancient
85609         nonstandard hosts.
85610         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85611
85612 2002-04-28  Jim Meyering  <meyering@lucent.com>
85613
85614         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85615
85616 2002-04-24  Jim Meyering  <meyering@lucent.com>
85617
85618         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85619         (jm_PREREQ): Use it.
85620
85621         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85622         mach/mach.h fcntl.h.
85623         Check for this function: setlocale.
85624
85625 2002-04-24  Jim Meyering  <meyering@lucent.com>
85626
85627         * lib/gettext.h: New file, from Gettext.
85628         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85629         (libfetish_a_SOURCES): Add gettext.h.
85630
85631 2002-04-16  Jim Meyering  <meyering@lucent.com>
85632
85633         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85634         ut_pid, ut_id, ut_exit.
85635
85636 2002-04-16  Jim Meyering  <meyering@lucent.com>
85637
85638         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85639         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85640         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85641
85642 2002-04-12  Jim Meyering  <meyering@lucent.com>
85643
85644         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85645         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85646         existence of the getmntinfo function.  Needed for Darwin 5.3.
85647
85648         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85649         This is necessary at least on Darwin 5.3.
85650
85651         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85652         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85653         strnlen.o in the library, and that makes some versions of ranlib
85654         object.
85655
85656 2002-04-12  Jim Meyering  <meyering@lucent.com>
85657
85658         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85659
85660 2002-04-09  Jim Meyering  <meyering@lucent.com>
85661
85662         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85663         to be more precise.  Rather than saying we're checking whether the
85664         function `works', say what we're testing.
85665         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85666         Reported by Bruno Haible.
85667
85668 2002-03-10  Jim Meyering  <meyering@lucent.com>
85669
85670         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85671         Suggestion from Santiago Vila.
85672
85673 2002-03-08  Jim Meyering  <meyering@lucent.com>
85674
85675         * lib/rename.c: Mention that this wrapper is needed also on
85676         mips-dec-ultrix4.4 systems.
85677
85678 2002-03-02  Jim Meyering  <meyering@lucent.com>
85679
85680         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85681         not HAVE_CLOCK_SETTIME.
85682
85683 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85684
85685         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85686         Check for clock_settime.
85687
85688 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85689
85690         * lib/nanosleep.h: Rename to....
85691         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85692
85693         * lib/gettime.c: New file.
85694         * lib/settime.c: New file.
85695         * lib/stime.c: Remove.
85696
85697         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85698         timespec.h.  Remove nanosleep.h.
85699
85700 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85701
85702         * m4/acl.m4: New file.
85703         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85704         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85705
85706 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85707
85708         * lib/acl.c, lib/acl.h: New files.
85709         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85710
85711 2002-02-24  Jim Meyering  <meyering@lucent.com>
85712
85713         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85714         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85715         cause trouble.  Reported by Nelson Beebe.
85716
85717 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85718
85719         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85720         compilers that don't know that xalloc_die never returns.
85721
85722 2002-02-20  Jim Meyering  <meyering@lucent.com>
85723
85724         * lib/getdate.c: Regenerate using bison-1.33.
85725
85726 2002-02-17  Jim Meyering  <meyering@lucent.com>
85727
85728         * config/config.guess (main): Don't use `head -1'; it's no longer
85729         portable. Use `sed 1q' instead.
85730
85731 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85732
85733         * m4/codeset.m4: Upgrade to gettext-0.11.
85734         * m4/gettext.m4: Upgrade to gettext-0.11.
85735         * m4/glibc21.m4: Upgrade to gettext-0.11.
85736         * m4/iconv.m4: Upgrade to gettext-0.11.
85737         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85738         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85739         * m4/lib-ld.m4: New file, from gettext-0.11.
85740         * m4/lib-link.m4: New file, from gettext-0.11.
85741         * m4/lib-prefix.m4: New file, from gettext-0.11.
85742         * m4/progtest.m4: Upgrade to gettext-0.11.
85743
85744 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85745
85746         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85747         (jm_PREREQ): Use it.
85748
85749 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85750
85751         * lib/posixver.c, lib/posixver.h: New files.
85752         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85753
85754 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85755             Bruno Haible  <bruno@clisp.org>
85756
85757         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85758         (fwrite_success_callback): New declaration.
85759         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85760         print_unicode_char. Call failure callback instead of error.
85761         (fwrite_success_callback): New function.
85762         (exit_failure_callback): New function.
85763         (fallback_failure_callback): New function.
85764         (print_unicode_char): Call unicode_to_mb.
85765
85766 2002-01-26  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85769         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85770
85771 2002-01-26  Jim Meyering  <meyering@lucent.com>
85772
85773         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85774
85775 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85776
85777         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85778
85779 2002-01-22  Jim Meyering  <meyering@lucent.com>
85780
85781         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85782         Otherwise, some versions of automake would omit the rule that makes
85783         Makefile from Makefile.in.
85784
85785 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85786
85787         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85788         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85789         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85790         (memcoll): Set errno to zero if there is no error.
85791
85792         * lib/quotearg.c (quotearg_buffer_restyled):
85793         Fix bug with quoting buffers containing NUL when backslashing escapes.
85794         This bug was exposed by the other changes in this patch.
85795         (quotearg_n_options): New arg ARGSIZE.
85796         All callers changed.
85797         (quoting_options_from_style): New function.
85798         (quotearg_n_style): Use it.
85799         (quotearg_n_style_mem): New function.
85800
85801         * lib/quotearg.h (quotearg_n_style_mem): New function.
85802
85803 2002-01-19  Jim Meyering  <meyering@lucent.com>
85804
85805         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85806         Remove useless quotes: DF_PROG="df".
85807         * m4/strnlen.m4: New file.
85808
85809 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85810
85811         * lib/backupfile.c (ISDIGIT): Comment fix.
85812         * lib/getdate.y (ISDIGIT): Likewise.
85813         * lib/posixtm.c (ISDIGIT, year): Likewise.
85814         * lib/strverscmp.c (ISDIGIT): Likewise.
85815         * lib/userspec.c (ISDIGIT): Likewise.
85816
85817 2002-01-16  Jim Meyering  <meyering@lucent.com>
85818
85819         * lib/getdate.y: Add three semicolons, each just before a closing
85820         brace. Bison (as of version 1.31) no longer papers over that mistake.
85821
85822 2002-01-05  Jim Meyering  <meyering@lucent.com>
85823
85824         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85825
85826 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85827
85828         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85829         not silently exit merely because the output buffer happens to
85830         have nothing pending.
85831
85832 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85833
85834         See the big note in ../ChangeLog.
85835         * lib/human.c (suffixes): Prefer K to k for 1024.
85836         (generate_suffix_backwards): New function.
85837         (human_readable_inexact): Use it.
85838         * lib/xstrtol.c (__xstrtol): If there is no number but there
85839         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85840         Accept 'K' as well as 'k'.
85841
85842 2001-12-15  Jim Meyering  <meyering@lucent.com>
85843
85844         * lib/regex.h (__restrict_arr): Update from libc.
85845
85846         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85847         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85848         (STREQ): Define.
85849
85850 2001-12-14  Jim Meyering  <meyering@lucent.com>
85851
85852         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85853         Suggestion from Bruno Haible.
85854
85855 2001-12-10  Jim Meyering  <meyering@lucent.com>
85856
85857         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85858         xrealloc, Instead, include "xalloc.h".
85859         (initbuffer): Don't cast xmalloc return value to char*.
85860         (readline): Reword comment.
85861         Don't cast xrealloc return value to char*
85862         Return NULL, not 0.
85863
85864 2001-12-09  Jim Meyering  <meyering@lucent.com>
85865
85866         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85867         about `signed and unsigned type in conditional expression'.
85868         * lib/posixtm.c (posix_time_parse): Likewise.
85869
85870         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85871
85872         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85873         to avoid a pedantic warning.
85874
85875         * lib/getstr.c: Don't include assert.h.
85876         (getstr): Remove warning-evoking assertions.
85877         Return -1 if offset parameter is out of bounds.
85878         Change the type of a local from int to size_t.
85879
85880         * lib/strftime.c (my_strftime_localtime_r): Include this function
85881         definition in the `#if ! HAVE_TM_GMTOFF' block.
85882
85883         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85884         Include xalloc.h instead.
85885
85886 2001-12-02  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85889         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85890         included.
85891
85892         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85893         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85894
85895 2001-11-30  Akim Demaille  <akim@epita.fr>
85896
85897         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85898         before being defined.
85899
85900 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85901
85902         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85903         First arg is int, not unsigned.
85904         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85905         (SIZE_MAX, UINT_MAX): New macros.
85906         (quotearg_n_options): Abort if N is negative.
85907         Avoid overflow check on hosts where size_t is 64 bits and int
85908         is 32 bits, as overflow is impossible there.
85909         Fix off-by-one typo that caused unnecessary reallocation.
85910
85911 2001-11-27  Jim Meyering  <meyering@lucent.com>
85912
85913         * lib/tempname.c: Merge with version from libc.
85914         * lib/regex.c: Likewise.
85915
85916         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85917         systems for which STDC_HEADERS is 0, it was not included, resulting in
85918         a warning about an integer-to-pointer conversion problem with getenv.
85919         Reported by Volker Borchert.
85920
85921 2001-11-26  Jim Meyering  <meyering@lucent.com>
85922
85923         * lib/gtod.h: Remove file.
85924         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85925         * lib/gettimeofday.c: Don't include gtod.h.
85926         (GTOD_init): Remove function.
85927         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85928         Suggestion from Volker Borchert.
85929
85930 2001-11-23  Jim Meyering  <meyering@lucent.com>
85931
85932         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85933         it.
85934         * lib/hash.c (struct hash_table): Define it here instead.
85935
85936 2001-11-22  Jim Meyering  <meyering@lucent.com>
85937
85938         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85939
85940 2001-11-20  Jim Meyering  <meyering@lucent.com>
85941
85942         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85943         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85944
85945 2001-11-19  Jim Meyering  <meyering@lucent.com>
85946
85947         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85948         directory.  Use "conftestXXXXXX" as the template.
85949         Suggestion from Paul Eggert.
85950
85951         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85952         immediately, so the test doesn't mistakenly hit the max-open-files
85953         limit.
85954
85955 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85956
85957         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85958         (TEMPORARIES): New macro.
85959         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85960         removes an artificial limitation (e.g. HP-UX 10.20, where
85961         TMP_MAX is 17576).
85962
85963 2001-11-18  Jim Meyering  <meyering@lucent.com>
85964
85965         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85966
85967 2001-11-18  Jim Meyering  <meyering@lucent.com>
85968
85969         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85970         on SunOS 4.
85971
85972         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85973         files will be created before anything else.
85974
85975 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85976
85977         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85978         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85979
85980 2001-11-17  Jim Meyering  <meyering@lucent.com>
85981
85982         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85983         Prompted by a report from Bob Proulx.
85984
85985         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85986         Instead, require UTILS_FUNC_MKSTEMP.
85987
85988 2001-11-17  Jim Meyering  <meyering@lucent.com>
85989
85990         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85991         Now, that's done as part of AC_FUNC_STRTOD.
85992
85993 2001-11-17  Jim Meyering  <meyering@lucent.com>
85994
85995         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85996         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85997         rather than group writable.  Patch by Juan F. Codagnone.
85998
85999         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86000         xrealloc, Instead, include "xalloc.h".
86001
86002         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86003         Remove explicit declarations of xmalloc, xrealloc,
86004         and xstrdup.  Instead, include "xalloc.h".
86005
86006         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86007         unlocked-io.h.
86008         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86009         Likewise.
86010         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86011
86012         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86013         Reported by Padraig Brady.
86014
86015         * lib/mkstemp.c: #undef mkstemp.
86016         Include config.h.
86017         (rpl_mkstemp): Rename from mkstemp.
86018         Protoize.
86019
86020 2001-11-16  Jim Meyering  <meyering@lucent.com>
86021
86022         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86023         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86024         determine the amount of total physical memory, use pstat_getstatic.
86025         HPUX-11 doesn't define _SC_PHYS_PAGES.
86026         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86027         If sysconf couldn't be used to determine the amount of available
86028         physical memory, use both pstat_getstatic and pstat_getdynamic.
86029         Based on a patch from Bob Proulx.
86030
86031 2001-11-10  Jim Meyering  <meyering@lucent.com>
86032
86033         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86034         (jm_PREREQ): Use it.
86035
86036 2001-11-09  Jim Meyering  <meyering@lucent.com>
86037
86038         * m4/jm-macros.m4: Require autoconf-2.52f.
86039         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86040         Use these AC_-prefixed names, not the AM_-prefixed ones.
86041
86042         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86043
86044 2001-11-05  Jim Meyering  <meyering@lucent.com>
86045
86046         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86047
86048 2001-11-04  Jim Meyering  <meyering@lucent.com>
86049
86050         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86051         $DEFS.
86052
86053 2001-11-03  Jim Meyering  <meyering@lucent.com>
86054
86055         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86056         of AC_DEFUN.
86057
86058         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86059         know the name of the variable in the macro definition.
86060
86061 2001-11-03  Jim Meyering  <meyering@lucent.com>
86062
86063         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86064         in argmatch_to_argument call.
86065
86066         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86067         argument.
86068
86069         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86070         e.g., a fault due to an attempt to free a NULL pointer.
86071
86072 2001-11-01  Jim Meyering  <meyering@lucent.com>
86073
86074         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86075         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86076
86077 2001-11-01  Jim Meyering  <meyering@lucent.com>
86078
86079         * lib/dirfd.c, lib/dirfd.h: New files.
86080         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86081
86082         * lib/hash.c (hash_print) [TESTING]: Clean up.
86083
86084 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86085
86086         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86087         to avoid a warning if -Wall.
86088
86089 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86090
86091         * README: New file
86092         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86093         (per RMS's instructions, this is now the canonical source)
86094         * lgpl/, gpl/: New directories.
86095
86096 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86097
86098         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86099
86100 2001-10-21  Jim Meyering  <meyering@lucent.com>
86101
86102         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86103         this code would end up calling gettext even in packages built
86104         with --disable-nls.
86105         * lib/getopt.c (_): Likewise.
86106         * lib/regex.c (_): Likewise.
86107
86108 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86109
86110         * m4/error.m4 (jm_PREREQ_ERROR):
86111         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86112         AC_FUNC_STRERROR_R does that.
86113         Check for strerror declaration.
86114
86115         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86116         are supposed to have them these days.
86117         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86118         Merge changes from latest Autoconf CVS.
86119         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86120         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86121         POSIX decided to standardize on the int flavor of strerror_r.
86122
86123 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86124
86125         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86126         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86127         Use strerror_r that is only a macro, even if it is not a function.
86128         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86129         (private_strerror): Use prototypes, not old-style function definition.
86130         (print_errno_message): New function.
86131         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86132         char*-flavored one.
86133         (error_tail, error, error_at_line): Use it.
86134
86135 2001-10-11  Jim Meyering  <meyering@lucent.com>
86136
86137         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86138         and quote_n (1, ... to avoid clobbering a buffer.
86139
86140 2001-10-05  Jim Meyering  <meyering@lucent.com>
86141
86142         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86143         hash-pjw.h.
86144         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86145         * lib/hash-pjw.h: New file.
86146
86147 2001-09-30  Jim Meyering  <meyering@lucent.com>
86148
86149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86150         `struct fsstat' has the `f_fstypename' member.
86151         Use that to define FS_TYPE, which is now used to make
86152         the getfsstat link test tighter.
86153
86154 2001-09-30  Jim Meyering  <meyering@lucent.com>
86155
86156         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86157         Include <sys/ucred.h>, for Apple Darwin.
86158         Include sys/mount.h and sys/fs_types.h only if available.
86159         (FS_TYPE): Define.
86160         (read_filesystem_list): Use FS_TYPE.
86161
86162 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86163
86164         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86165         a boolean context.
86166
86167 2001-09-29  Jim Meyering  <meyering@lucent.com>
86168
86169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86170         [one-argument getmntent function]): Include stdio.h before mntent.h.
86171         SunOS 4.1.x needs it for the declaration of `FILE'.
86172         Patch by Volker Borchert.
86173
86174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86175         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86176         sys/fs_types.h, and make the link-test for getfsstat guard #include
86177         directives with appropriate #if HAVE_*_H tests so that we can
86178         detect getfsstat on Apple Darwin1.3.7 systems.
86179         Reported by Nelson Beebe.
86180         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86181
86182 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86183
86184         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86185         #defines strtoimax.  Also treat the other strto* functions
86186         like strtoimax.
86187
86188         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86189         Check for strtoul and strtoumax,
86190         as those declarations are made even in the signed case.
86191         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86192         Likewise, for strtol and strtoimax.
86193
86194 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86195
86196         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86197         #defines strtoimax.  Also treat the other strto* functions
86198         like strtoimax.
86199
86200         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86201         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86202         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86203
86204 2001-09-26  Jim Meyering  <meyering@lucent.com>
86205
86206         Most macros in unlocked-io.h had the wrong number of arguments.
86207         * lib/gen-uio: New script.
86208         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86209         * lib/unlocked-io.hin: Remove file.
86210         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86211         rather than trying to embed it here.
86212         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86213         Reported by Padraig Brady.
86214
86215 2001-09-25  Volker Borchert  <bt@teknon.de>
86216
86217         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86218         `result'.
86219
86220 2001-09-24  Jim Meyering  <meyering@lucent.com>
86221
86222         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86223
86224 2001-09-23  Jim Meyering  <meyering@lucent.com>
86225
86226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86227         instead of the mere test for existence of mntent.h.  The latter
86228         would get a false-positive on AIX 3.4 systems.
86229         In the outer getmntent if-block, don't die if neither of the getmntent
86230         tests succeeds.  Instead, just fall through and continue with the
86231         remaining tests.
86232
86233 2001-09-23  Jim Meyering  <meyering@lucent.com>
86234
86235         * lib/mountlist.c: Remove useless parentheses in #if directives.
86236         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86237         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86238
86239 2001-09-22  Jim Meyering  <meyering@lucent.com>
86240
86241         * m4/gettext.m4: New file.  From gettext.
86242         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86243         * m4/progtest.m4: Likewise
86244         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86245         * m4/glibc21.m4: Likewise.
86246
86247         * m4/libintl.m4: Remove.  No longer used.
86248
86249 2001-09-22  Jim Meyering  <meyering@lucent.com>
86250
86251         * lib/localcharset.c: Update from latest gettext.
86252         * lib/config.charset: Likewise.
86253
86254 2001-09-20  Jim Meyering  <meyering@lucent.com>
86255
86256         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86257         strtoimax.
86258         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86259         strtoumax.
86260
86261 2001-09-20  Jim Meyering  <meyering@lucent.com>
86262
86263         * lib/xstrtol.c (strtoimax): Guard declaration with
86264         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86265         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86266         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86267         (strtoumax): Likewise, for completeness (it wasn't necessary).
86268
86269 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86270
86271         * lib/strtoimax.c (HAVE_LONG_LONG):
86272         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86273         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86274         to work around bug in IBM C compiler.
86275
86276 2001-09-17  Jim Meyering  <meyering@lucent.com>
86277
86278         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86279         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86280         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86281         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86282         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86283         whenever the right hand side need not be expanded by the shell.
86284
86285 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86286
86287         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86288         library.  It's not correct, as some older glibcs are buggy.
86289         fnmatch wasn't fixed until glibc 2.2.
86290
86291         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86292         special shell magic here.
86293
86294 2001-09-16  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86297         * m4/jm-macros.m4: Require it.
86298
86299 2001-09-16  Jim Meyering  <meyering@lucent.com>
86300
86301         * lib/mkdir.c: New file.
86302
86303 2001-09-15  Jim Meyering  <meyering@lucent.com>
86304
86305         * m4/jm-macros.m4: Check for help2man.
86306
86307 2001-09-11  Jim Meyering  <meyering@lucent.com>
86308
86309         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86310         The body, by Paul Eggert, was moved here from configure.in.
86311         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86312
86313 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86314
86315         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86316         (jm_PREREQ): Use it.
86317
86318 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86319
86320         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86321         Use ssize_t, not int, to store result of readlink.
86322         Check for ssize_t overflow as well as size_t overflow,
86323         as POSIX says the result of readlink is implementation-defined
86324         when ssize_t overflows.
86325         Remove unnecessary cast to char*.
86326         Use free+malloc instead of realloc, as the storage doesn't need
86327         to be preserved and it's clearer and can be more efficient that way.
86328         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86329         * lib/xreadlink.h (xreadlink): Update prototype.
86330
86331 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86332
86333         * lib/xgetcwd.c: Revert some of the previous change; intead,
86334         fix the HAVE_GETCWD_NULL code to behave more like the
86335         !HAVE_GETCWD_NULL code used to.
86336
86337         Include "xalloc.h".
86338         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86339         invoke xalloc_die.
86340
86341 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86342
86343         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86344         sys/param.h, as pathmax.h includes them.
86345
86346 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86347
86348         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86349         (jm_PREREQ_XGETCWD): New macro.
86350
86351         * m4/getcwd.m4: New file.
86352
86353 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86354
86355         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86356         like the HAVE_GETCWD_NULL code.
86357         Include pathmax.h if not HAVE_GETCWD.
86358         Do not include xalloc.h.
86359         (INITIAL_BUFFER_SIZE): New symbol.
86360         Do not use xmalloc / xrealloc, since the caller is responsible for
86361         handling errors.  Preserve errno around `free' during failure.
86362         Do not overrun buffer when using getwd.
86363
86364 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86365
86366         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86367         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86368         getcwd (NULL, 0).
86369
86370 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86371
86372         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86373         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86374         spotted by Jim Meyering.
86375
86376 2001-09-03  Jim Meyering  <meyering@lucent.com>
86377
86378         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86379         failure.
86380
86381 2001-09-02  Jim Meyering  <meyering@lucent.com>
86382
86383         * lib/error.c: Update from GNU libc.
86384
86385 2001-09-01  Jim Meyering  <meyering@lucent.com>
86386
86387         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86388         Used by df.
86389
86390 2001-09-01  Jim Meyering  <meyering@lucent.com>
86391
86392         * lib/xreadlink.c: New file.
86393         * lib/xreadlink.h: New file.
86394         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86395         xreadlink.h.
86396
86397         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86398         doesn't conflict with sparc Solaris 7's definition in
86399         /usr/include/sys/int_types.h.
86400
86401         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86402         files.
86403         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86404         and strncasecmp as r-values.  Unixware didn't have declarations.
86405
86406 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86407
86408         * lib/xstrtol.h: Add copyright notice.
86409         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86410         LONGINT_INVALID_SUFFIX_CHAR.
86411
86412 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86413
86414         * lib/xstrtol.c (strtoimax): New decl.
86415
86416 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86417
86418         * lib/xgetcwd.c: Don't include pathmax.h.
86419         Include stdlib.h and unistd.h if available.
86420         Include xalloc.h.
86421         (xmalloc, xstrdup, free): Remove decls.
86422         (xgetcwd): Don't assume sizes fit in unsigned.
86423         Check for overflow when computing sizes.
86424         Simplify reallocation code.
86425
86426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86427
86428         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86429         a directory's st_size can have an arbitrary value, so the old
86430         usage could waste an arbitrary amount of memory.  All uses
86431         changed.
86432         * lib/savedir.h: Update prototype.
86433
86434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86435
86436         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86437
86438         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86439         old strtoimax.c.
86440
86441         Also, make the following further changes to make this file's
86442         configuration more similar to that of strtol.c:
86443         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86444         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86445         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86446         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86447         changed to signed values.
86448
86449         And make the following changes as well:
86450         Fix copyright notice, as 1999 was missing.
86451         (verify): New macro.
86452         (strtoimax): Check sizes at compile-time, not run-time.
86453         Prefer strtol to strtoll if both work.
86454         (main): Remove; it was not that useful and was a pain to maintain.
86455
86456         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86457
86458 2001-08-31  Jim Meyering  <meyering@lucent.com>
86459
86460         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86461         Use an initial, malloc'd, buffer of length 128 rather than
86462         a statically allocated one of length 1024.
86463
86464 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86465
86466         Simplify code, partly by assuming autoconf 2.52 semantics.
86467
86468         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86469
86470         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86471         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86472         All uses removed.
86473         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86474         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86475         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86476         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86477         jm_AC_HEADER_INTTYPES_H.
86478         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86479
86480         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86481
86482         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86483         Quote first arg of AC_DEFUN.
86484         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86485         since they are needed to parse the include file even if we need
86486         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86487         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86488         but with opposite signedness.
86489
86490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86491
86492         Merge 'exclude' changes from tar 1.13.22.
86493         This fixes one or two unlikely storage allocation overflow bugs,
86494         but doesn't change user-visible behavior otherwise.
86495
86496 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86497
86498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86499         (jm_PREREQ_EXCLUDE): New macro.
86500
86501 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86504         tm to be declared.
86505
86506 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86507
86508         * lib/hash.c: Remove '2001' from copyright notice.
86509
86510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86511
86512         * lib/full-write.h: New file.
86513         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86514         * lib/full-write.c: Correct credits, as cccp.c no longer
86515         exists and anyway it was so heavily changed from the old cccp
86516         code as to be unrecognizable.  Include full-write.h.
86517         (full_write): Return size_t, with short writes meaning failure.
86518         All callers changed.  This fixes a bug with large buffers
86519         on 64-bit hosts.
86520         * lib/utime.c: Include full-write.h.
86521
86522 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86523
86524         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86525         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86526         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86527         Include if available.
86528         (<xalloc.h>): Include
86529         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86530         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86531         collide with FNM macros.
86532         (struct patopts): New struct.
86533         (struct exclude): Use it, as exclude patterns now come with options.
86534         (new_exclude): Support above changes.
86535         (new_exclude, add_exclude_file):
86536         Initial size must now be a power of two to simplify overflow checking.
86537         (free_exclude, fnmatch_no_wildcards): New function.
86538         (excluded_filename): No longer requires options arg, as the options
86539         are determined by add_exclude.  Now returns bool, not int.
86540         (excluded_filename, add_exclude):
86541         Add support for the fancy new exclusion options.
86542         (add_exclude, add_exclude_file): Now takes int options arg.
86543         Check for arithmetic overflow when computing sizes.
86544         (add_exclude_file): xrealloc might modify errno, so don't
86545         realloc until after errno might be used.
86546
86547         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86548         New macros.
86549         (free_exclude): New decl.
86550         (add_exclude, add_exclude_file): Now takes int options arg.
86551         (excluded_filename): No longer requires options arg, as the options
86552         are determined by add_exclude.  Now returns bool, not int.
86553
86554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86555
86556         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86557
86558 2001-08-27  Jim Meyering  <meyering@lucent.com>
86559
86560         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86561
86562         * lib/version-etc.c (N_): Remove definition.
86563         Revert most of last change.
86564         Instead, simply don't mark the `Copyright...' string for translation.
86565         Based on advice from Paul Eggert.
86566
86567         * lib/strtoxmax.c: Tweak comment.
86568
86569 2001-08-26  Jim Meyering  <meyering@lucent.com>
86570
86571         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86572
86573         * m4/xstrtoimax.m4: New file.
86574         * m4/xstrtoumax.m4: Add comments explaining why we
86575         AC_REPLACE_FUNCS(strtol).
86576
86577 2001-08-26  Jim Meyering  <meyering@lucent.com>
86578
86579         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86580         of copyright with `%s' so translators don't get an untranslated
86581         message in 2002.
86582         (COPYRIGHT_YEAR): Define.
86583         (version_etc): Use fprintf rather than fputs.
86584         Suggestion from Ulrich Drepper.
86585
86586         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86587
86588         * lib/strtoll.c: New file, from GNU libc.
86589         * lib/xstrtoimax.c: New file.
86590
86591         * lib/xstrtol.h: Add xstrtoimax.
86592         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86593         * lib/strtoimax.c: New file.  Likewise, but first define
86594         STRTOUXMAX_SIGNED.
86595
86596         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86597         ...
86598         * lib/strtoxmax.c: ... then renamed to this.
86599
86600 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86601
86602         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86603         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86604         (jm_AC_TYPE_INTMAX_T): New macro.
86605         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86606
86607         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86608
86609         * m4/longlong.m4: Renamed from ulonglong.m4.
86610         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86611         * m4/uintmax_t.m4: Removed.
86612
86613 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86614
86615         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86616         Port to Solaris 8, where 'sed' requires a space after the 'r'
86617         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86618         Redirect output to $tmp just once.
86619
86620 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86621
86622         * lib/addext.c (<errno.h>): Include.
86623         (errno): Declare if not defined.
86624         (addext): Work correctly when pathconf returns -1 and leaves
86625         errno alone because there is no limit.  Also, work even if
86626         pathconf returns a value greater than SIZE_MAX.
86627
86628 2001-08-12  Jim Meyering  <meyering@lucent.com>
86629
86630         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86631         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86632         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86633         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86634         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86635         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86636         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86637         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86638         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86639         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86640         utime.m4, utimes.m4, xstrtoumax.m4:
86641         Quote the first argument in each use of AC_DEFUN.
86642
86643 2001-08-12  Jim Meyering  <meyering@lucent.com>
86644
86645         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86646         Simply `return getcwd (NULL, 0);'.
86647         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86648         Use 1300 as initial value for length, not PATH_MAX.
86649
86650         * lib/pathmax.h: Clean up cpp syntax.
86651
86652 2001-08-12  Jim Meyering  <meyering@lucent.com>
86653
86654         * lib/gettimeofday.c: New file.
86655         * lib/gtod.h: New file.
86656         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86657
86658 2001-08-05  Jim Meyering  <meyering@lucent.com>
86659
86660         * m4/jm-macros.m4: Require autoconf-2.52.
86661
86662 2001-08-04  Jim Meyering  <meyering@lucent.com>
86663
86664         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86665         stmt, to get in sync with glibc.
86666
86667 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86668
86669         The following changes are from gettext 0.10.39 as maintained by
86670         Bruno Haible.
86671
86672         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86673         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86674         with inverted sense.  All uses changed.
86675
86676         * lib/mbswidth.c: Don't include <limits.h>.
86677         Include <stdlib.h> and <string.h> unconditionally.
86678         (iswcntrl, mbsinit, ISCNTRL): New macros.
86679         (mbsnwidth): Use K&R style function declarations.
86680         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86681         can optimize it when MB_CUR_MAX == 1.
86682         The width of control characters is zero, not 1.
86683
86684 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86685
86686         The following changes are from gettext 0.10.39 as maintained by
86687         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86688
86689         * m4/codeset.m4: Upgrade to serial AM1.
86690         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86691         all uses changed.  Quote first arg of AC_DEFUN.
86692         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86693
86694         * m4/iconv.m4: Upgrade to serial AM2.
86695         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86696         Add --with-libconv-prefix.
86697         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86698         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86699         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86700         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86701         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86702
86703         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86704         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86705         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86706         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86707         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86708         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86709         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86710         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86711         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86712
86713         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86714         string.h any more.
86715
86716         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86717         not the default value.
86718
86719         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86720         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86721         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86722         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86723         Also check for iswcntrl, used for wcwidth fallback.
86724         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86725         to Autoconf 2.13.
86726
86727 2001-08-03  Jim Meyering  <meyering@lucent.com>
86728
86729         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86730         as it was in the original.  Reported by Paul Eggert.
86731
86732 2001-07-16  Jim Meyering  <meyering@lucent.com>
86733
86734         * m4/gettimeofday.m4: New file.
86735         Prompted by a report from Bernhard Baehr.
86736
86737 2001-07-15  Jim Meyering  <meyering@lucent.com>
86738
86739         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86740         stuff. Now it's in ../Makefile.cfg.
86741
86742 2001-07-15  Jim Meyering  <meyering@lucent.com>
86743
86744         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86745         (BUILT_SOURCES): Add unlocked-io.h.
86746         (io_functions): Define.
86747         (unlocked-io.h): New rule.
86748         (DISTCLEANFILES): Add unlocked-io.h.
86749         (all-local): Depend on unlocked-io.h, to ensure it is created.
86750
86751         * lib/unlocked-io.hin: New file
86752
86753         * lib/regex.c: Update from glibc.
86754
86755 2001-07-05  Jim Meyering  <meyering@lucent.com>
86756
86757         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86758         recommendation.
86759         (libfetish_a_SOURCES): Put all .h files here instead.
86760         Remove a thus-exposed (better checks in automake) duplicate and
86761         two unnecessary .h files.
86762
86763 2001-07-04  Jim Meyering  <meyering@lucent.com>
86764
86765         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86766         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86767         distcheck failure.
86768
86769 2001-07-02  Jim Meyering  <meyering@lucent.com>
86770
86771         The following changes were prompted by suggestions from Bruno Haible.
86772
86773         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86774         is now generated.
86775         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86776         definition of EXTRA_DIST.
86777         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86778         ensure that the generated file is created/updated whenever the list
86779         of $(unlocked_functions) is changed.
86780         (jm-glibc-io.m4): New rule.
86781         (unlocked-io.h): New rule -- currently unused.
86782
86783 2001-06-24  Jim Meyering  <meyering@lucent.com>
86784
86785         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86786         unmatched right bracket, rather than kludging it with an extra,
86787         falsely-matching quote in a comment.  Patch by Akim Demaille.
86788
86789 2001-06-11  Jim Meyering  <meyering@lucent.com>
86790
86791         * lib/regex.c: Update from GNU libc.
86792
86793 2001-05-27  Jim Meyering  <meyering@lucent.com>
86794
86795         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86796         Check for ut_type in struct utmp.
86797
86798 2001-05-27  Jim Meyering  <meyering@lucent.com>
86799
86800         * lib/readutmp.h (UT_TYPE): Define.
86801
86802 2001-05-24  Jim Meyering  <meyering@lucent.com>
86803
86804         * lib/argmatch.c: Include "quote.h".
86805         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86806         quote function.  Reported by Göran Uddeborg.
86807
86808 2001-05-22  Jim Meyering  <meyering@lucent.com>
86809
86810         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86811         now that we use the package-supplied version unconditionally.
86812         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86813
86814 2001-05-21  Jim Meyering  <meyering@lucent.com>
86815
86816         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86817         shell syntax errors.
86818
86819 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86820
86821         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86822
86823 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86824
86825         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86826         Don't bother to check library strftime, since
86827         we'll be using our own my_strftime function anyway.
86828         Define my_strftime instead of strftime.
86829
86830 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86831
86832         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86833         which is not yet declared.
86834
86835 2001-05-15  Jim Meyering  <meyering@lucent.com>
86836
86837         * m4/regex.m4: Use proper quoting so brackets appear in the test
86838         program.
86839         Reported by, and with help from, Bruno Haible.
86840
86841 2001-05-13  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86844         undefined.
86845
86846 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86847
86848         dirname code cleanup.  base_name now behaves more compatibly
86849         with POSIX basename when given file names that have trailing
86850         slashes, and similarly for dir_name.  Add new primitives
86851         base_len and dir_len.  Put the directory-name-related decls
86852         into dirname.h.
86853
86854         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86855         * lib/backupfile.c (base_name): Likewise.
86856         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86857         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86858         * lib/makepath.c (strip_trailing_slashes): Likewise.
86859         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86860         ISSLASH): Likewise.
86861         * lib/rename.c (strip_trailing_slashes): Likewise.
86862         * lib/same.c (base_name): Likewise.
86863         * lib/stripslash.c (ISSLASH): Likewise.
86864
86865         * lib/addext.c: Include <dirname.h> after size_t is defined.
86866         * lib/backupfile.c: Likewise.
86867
86868         * lib/addext.c (addext): Use base_len to trim redundant
86869         trailing slashes instead of doing it ourselves.
86870         But do not trim the last slash if it is not redundant.
86871
86872         * lib/backupfile.c (find_backup_file_name,
86873         max_backup_version): Use base_len instead of rolling it ourselves.
86874         Handle the case of "" and (on DOS) "C:" correctly.
86875
86876         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86877         needed. Include <string.h>, <dirname.h>.
86878         (base_name): Allow file names ending in slashes, other than names
86879         that are all slashes.  In this case, return the basename followed
86880         by the slashes.  This is more general, and can be used in places
86881         where the original base_name purposely had an assertion failure.
86882         (base_len): New function.
86883
86884         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86885         Do not include <assert.h>; no longer needed.
86886         Include xalloc.h.
86887         (memrchr): Remove decl.
86888         (dir_name_r): Remove.
86889         (dir_len): Renamed from dirlen.  All callers changed.
86890         Rewrite in terms of base_name, for simplicity and consistency.
86891         (dir_name): Never return NULL.  All callers changed.
86892         Do not include <stdlib.h> in test program; no longer needed.
86893         return 0; is fine for test program.
86894
86895         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86896         New macros.
86897         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86898
86899         * lib/path-concat.c (path_concat): Use base_len to compute
86900         base length, not strlen; this means we cannot rely on memcpy
86901         to null-terminate.
86902
86903         * lib/same.c (STREQ): Remove.
86904         (same_name): Handle the case where the basename ends in trailing '/'.
86905
86906         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86907         a slash was stripped.  Do not strip the last slash after a
86908         file system prefix.
86909
86910 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86911
86912         * lib/Makefile.am (libfetish_a_SOURCES):
86913         Add strftime.c, since we now compile it on all hosts.
86914
86915         * lib/strftime.c (my_strftime):
86916         Define to nstrftime if emacs, but only if my_strftime is not defined.
86917         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86918         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86919         Add one more extra argument: a nanoseconds value.
86920         All uses changed.
86921         (ns): New macro.
86922         (my_strftime function): Add %N format.
86923         (emacs_strftimeu): Renamed from emacs_strftime,
86924         with extra ut argument.
86925
86926 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86927
86928         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86929
86930 2001-04-21  Jim Meyering  <meyering@lucent.com>
86931
86932         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86933         doesn't interfere.
86934
86935 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86936
86937         * m4/ftruncate.m4: Check for chsize.
86938         Link with ftruncate.o unconditionally if ftruncate is missing.
86939         This was required when cross-compiling to i586-mingw32msvc.
86940
86941 2001-04-08  Jim Meyering  <meyering@lucent.com>
86942
86943         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86944         recomputed; that's necessary when the offset spans a DST transition.
86945         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86946
86947 2001-04-02  Jim Meyering  <meyering@lucent.com>
86948
86949         * lib/regex.h, regex.c: Update from GNU libc.
86950
86951 2001-03-24  Jim Meyering  <meyering@lucent.com>
86952
86953         * m4/jm-macros.m4: Require autoconf-2.49d.
86954
86955 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86956
86957         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86958
86959 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86960
86961         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86962
86963 2001-03-17  Jim Meyering  <meyering@lucent.com>
86964
86965         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86966         now that the version in autoconf is equivalent.
86967         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86968
86969         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86970         Suggestion from Akim Demaille.
86971
86972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86973         (jm_PREREQ_TEMPNAME): New function.
86974
86975 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86976
86977         * lib/tempname.c (uint64_t): Define to uintmax_t if
86978         not defined, and if UINT64_MAX is not defined.
86979         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86980         Reported by John David Anglin.
86981
86982 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86983
86984         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86985         resolve alias if codeset is empty.
86986         * lib/config.charset (BeOS): Use wildcard syntax.
86987
86988 2001-03-13  Jim Meyering  <meyering@lucent.com>
86989
86990         * lib/path-concat.c (path_concat)
86991         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86992         concatenating e.g., `C:' and `foo'.
86993         From Bruno Haible.
86994
86995 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86996
86997         * lib/localcharset.c (locale_charset): Don't use
86998         setlocale(LC_CTYPE,NULL). Don't return NULL.
86999         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87000
87001 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87002
87003         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87004         support for DOS/DJGPP.
87005
87006 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87007
87008         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87009         lacks mkstemp.  Compile our own tempname.c if we compile our own
87010         mkstemp.c, as mkstemp relies on tempname.
87011
87012 2001-03-01  Jim Meyering  <meyering@lucent.com>
87013
87014         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87015         AH_VERBATIM really does output its argument verbatim.
87016
87017 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87018
87019         * lib/Makefile.am (libfetish_a_SOURCES):
87020         Add dup-safer.c, fopen-safer.c.
87021         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87022
87023         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87024         * lib/unistd-safer.h: New files.
87025
87026 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87027
87028         The mkstemp replacement is taken from glibc 2.2.2, with some
87029         portability fixes for use outside glibc, as follows:
87030
87031         * lib/tempname.c (struct_stat64): New macro.
87032         (direxists, __gen_tempname): Use it.
87033         This avoids a portability problem with Solaris 8.
87034
87035         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87036         (<stddef.h>, <stdint.h>, <string.h>):
87037         Include only if STDC_HEADERS || _LIBC.
87038         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87039         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87040         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87041         (__set_errno): Define this macro if <errno.h> doesn't.
87042         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87043         Define these macros if <stdio.h> doesn't.
87044         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87045         Define these macros if <sys/stat.h>
87046         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87047         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87048         __xstat64): Define if not _LIBC.
87049         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87050         (__gen_tempname): Invoke gettimeofday only if
87051         HAVE_GETTIMEOFDAY || _LIBC;
87052         otherwise, fall back on plain "time".
87053         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87054
87055         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87056
87057         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87058
87059 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87060
87061         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87062
87063 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87064
87065         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87066         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87067         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87068         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87069
87070 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87071
87072         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87073         Remove workaround macros for hosts that have mbrtowc but not
87074         mbstate_t, as we now insist on proper declarations for both
87075         before using mbrtowc.
87076
87077 2001-02-17  Jim Meyering  <meyering@lucent.com>
87078
87079         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87080         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87081         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87082         UnixWare 7.1.1.
87083
87084         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87085         rather than AC_CACHE_VAL.
87086
87087 2001-02-17  Jim Meyering  <meyering@lucent.com>
87088
87089         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87090         around included file name.
87091
87092         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87093
87094         * lib/strftime.c: Update from GNU libc (the only changes were to
87095         comments).
87096
87097 2001-02-17  Jim Meyering  <meyering@lucent.com>
87098
87099         * lib/regex.c: Update from libc.
87100
87101 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87102
87103         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87104         clash.
87105
87106 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87107
87108         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87109         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87110         Reported by Mark Hounschell via Paul Eggert.
87111
87112 2001-02-07  Jim Meyering  <meyering@lucent.com>
87113
87114         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87115
87116 2001-02-05  Jim Meyering  <meyering@lucent.com>
87117
87118         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87119         it includes the patch required for `large file' support with at least
87120         HP-UX's 10.20 /bin/cc.
87121
87122 2001-02-03  Jim Meyering  <meyering@lucent.com>
87123
87124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87125         AS_IF, now that it works once again (mysteriously).
87126         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87127
87128 2001-01-30  Jim Meyering  <meyering@lucent.com>
87129
87130         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87131         * m4/chown.m4: Rename conftestchown to conftest.chown.
87132         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87133         s/conftestdir2/conftest.d2/.
87134         * m4/utimes.m4: s/conftestdata/conftest.data/
87135         Inspired by Pavel Roskin's change in autoconf.
87136
87137 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87138
87139         * lib/config.charset: Update for FreeBSD 4.2.
87140
87141 2001-01-27  Jim Meyering  <meyering@lucent.com>
87142
87143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87144         a use of AS_IF.
87145         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87146
87147 2001-01-26  Jim Meyering  <meyering@lucent.com>
87148
87149         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87150         quotearg.c includes it.
87151
87152 2001-01-26  Jim Meyering  <meyering@lucent.com>
87153
87154         * lib/quotearg.c: Include stddef.h.
87155         * lib/quote.c: Include stddef.h.
87156         Reported by Axel Kittenberger.
87157
87158         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87159         line in double quotes so that it evokes a better diagnostic.
87160         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87161         Reported by Axel Kittenberger.
87162
87163 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87164
87165         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87166         as if it was a `charset'.
87167
87168 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87169
87170         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87171         has const.
87172
87173 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87174
87175         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87176         to avoid a warning.  Add back 'const' to inptr.
87177
87178 2001-01-20  Jim Meyering  <meyering@lucent.com>
87179
87180         Be sure that headers are checked before used in code compiled
87181         for the type checks.
87182         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87183         In place of that, invoke jm_CHECK_ALL_TYPES.
87184         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87185         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87186         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87187         The check for ssize_t was mistakenly run before the test for unistd.h.
87188
87189         The configure-time check for stdbool.h was missing.
87190         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87191         (jm_PREREQ_HASH): New function.
87192
87193 2001-01-17  Jim Meyering  <meyering@lucent.com>
87194
87195         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87196         for autoconf-2.49c.
87197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87198
87199 2001-01-16  Jim Meyering  <meyering@lucent.com>
87200
87201         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87202         From Bruno Haible.
87203
87204 2001-01-14  Jim Meyering  <meyering@lucent.com>
87205
87206         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87207         foo and bar.  Create conftestdir/ in the script, not in the C code.
87208         Remove directories in the script, not in the C code.
87209         Remove conftestdir{,2} before trying to create the directory.
87210         Make the entire configure script fail if the mkdir fails.
87211
87212 2001-01-14  Jim Meyering  <meyering@lucent.com>
87213
87214         * lib/rename.c: New file.  From Volker Borchert.
87215         Include stdlib.h, string.h or strings.h, and xalloc.h.
87216         Use strip_trailing_slashes rather than open-coding it.
87217
87218 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87219
87220         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87221
87222 2001-01-03  Jim Meyering  <meyering@lucent.com>
87223
87224         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87225         of local `inptr' to avoid warning with some system declarations of
87226         iconv.
87227
87228 2001-01-02  Volker Borchert  <bt@teknon.de>
87229
87230         * m4/rename.m4: New file.
87231         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87232
87233 2001-01-01  Jim Meyering  <meyering@lucent.com>
87234
87235         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87236         even on systems with utmpx.h.  It's necessary for the declaration of
87237         utmp's ut_user member.  Reported by Andreas Jaeger.
87238
87239         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87240         available. They are required for the declarations of getgrgid and
87241         getpwuid resp.
87242         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87243         Reported by Andreas Jaeger.
87244
87245 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87246
87247         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87248         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87249         so `make install' also works in VPATH builds.
87250
87251 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87252
87253         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87254         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87255         can be used in subdirectories.
87256
87257 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87258
87259         * lib/modechange.c: Do not assume that mode_t uses the
87260         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87261         the other-execute bit of FOO even if S_IXOTH != 1.
87262
87263         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87264         WOTH, XOTH, ALLM): New macros.
87265         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87266          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87267         Use them.
87268         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87269         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87270         (mode_compile):
87271         No need to use uintmax_t; unsigned long is long enough.
87272         Don't bother to get suffix since we don't use it.
87273
87274 2000-12-26  Jim Meyering  <meyering@lucent.com>
87275
87276         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87277         better with autoheader.
87278
87279 2000-12-24  Jim Meyering  <meyering@lucent.com>
87280
87281         * lib/hash.c (is_prime): Return explicit boolean values.
87282         (hash_get_first): Return NULL to appease Irix5.6's 89.
87283         Reported by Nelson Beebe.
87284
87285 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87286
87287         * lib/localcharset.c (locale_charset): Add support for Win32.
87288
87289 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87290
87291         * lib/physmem.h, lib/physmem.c: New files.
87292
87293         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87294         (noinst_HEADERS): Add physmem.h.
87295
87296         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87297         't' for compatibility with Solaris 8 sort.
87298
87299 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87300
87301         * lib/config.charset: Add support for BeOS.
87302
87303 2000-12-17  Jim Meyering  <meyering@lucent.com>
87304
87305         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87306         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87307
87308 2000-12-16  Jim Meyering  <meyering@lucent.com>
87309
87310         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87311         N and M) would have treated it like `chown N:N FILE'.
87312
87313         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87314
87315 2000-12-16  Jim Meyering  <meyering@lucent.com>
87316
87317         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87318         SHELLS_FILE to a file name that's useful on djgpp systems.
87319         Include stdlib.h.
87320         (ADDITIONAL_DEFAULT_SHELLS): Define.
87321         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87322         Based mostly on a patch from Prashant TR.
87323
87324 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87325
87326         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87327         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87328         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87329
87330 2000-12-08  Andreas Schwab  <schwab@suse.de>
87331
87332         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87333         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87334
87335 2000-12-07  Jim Meyering  <meyering@lucent.com>
87336
87337         * lib/stripslash.c (ISSLASH): Define.
87338         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87339         `/'.
87340         From Prashant TR.
87341
87342         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87343         (dir_name_r): Declare this function as static.
87344         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87345         manifest itself on a name containing a mix of slashes and
87346         backslashes.
87347         Make this function work with names starting with a DOS-style
87348         drive letter and colon prefix.
87349         (dir_name): Append `.' if necessary.
87350         Based mostly on patches from Prashant TR and Eli Zaretskii.
87351
87352         * lib/dirname.h (dir_name_r): Remove prototype.
87353
87354 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87355
87356         * m4/off_t-format.m4: Remove this file.
87357         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87358
87359 2000-12-06  Jim Meyering  <meyering@lucent.com>
87360
87361         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87362         replacement strtoull, we may well need the replacement strtoul, too.
87363         Check for declarations of strtoul and strtoull.
87364         Check for strtol.  Mainly as a cue to cause automake to include
87365         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87366         Check for limits.h -- strtol.c needs it.
87367
87368 2000-12-05  Jim Meyering  <meyering@lucent.com>
87369
87370         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87371
87372 2000-12-04  Jim Meyering  <meyering@lucent.com>
87373
87374         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87375         Also include memory.h, stdlib.h, unistd.h if appropriate.
87376         Reported by Andreas Jaeger (conflicting declaration of malloc).
87377
87378 2000-12-02  Jim Meyering  <meyering@lucent.com>
87379
87380         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87381         * m4/jm-macros.m4 (jm_MACROS): require it.
87382
87383 2000-12-02  Jim Meyering  <meyering@lucent.com>
87384
87385         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87386
87387 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87388
87389         * lib/memrchr.c: Include <config.h> before any system include file.
87390
87391 2000-11-30  Jim Meyering  <meyering@lucent.com>
87392
87393         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87394
87395 2000-11-30  Jim Meyering  <meyering@lucent.com>
87396
87397         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87398
87399 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87400
87401         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87402
87403 2000-11-26  Jim Meyering  <meyering@lucent.com>
87404
87405         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87406
87407 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87408
87409         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87410         size of (size_t) -1; it's not portable.
87411
87412 2000-11-17  Jim Meyering  <meyering@lucent.com>
87413
87414         * lib/strstr.c: Update from GNU libc.
87415
87416 2000-11-17  Akim Demaille  <akim@epita.fr>
87417
87418         * lib/obstack.h: Formatting changes.
87419         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87420         prevent type checking.
87421         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87422         cast the value to (void *): assigning a `foo *' to a `void *'
87423         variable is valid.
87424         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87425
87426 2000-11-16  Jim Meyering  <meyering@lucent.com>
87427
87428         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87429
87430 2000-11-11  Jim Meyering  <meyering@lucent.com>
87431
87432         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87433
87434 2000-11-10  Jim Meyering  <meyering@lucent.com>
87435
87436         * lib/obstack.h: Update from GNU libc.
87437         * lib/obstack.c: Likewise.
87438
87439 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87440
87441         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87442
87443 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87444
87445         * lib/getusershell.c (setusershell): Use rewind rather than
87446         fseek/fseeko, to avoid configuration hassles with fseeko.
87447         Don't bother opening SHELLS_FILE if shellstream is NULL;
87448         it's not necessary.
87449
87450 2000-11-05  Jim Meyering  <meyering@lucent.com>
87451
87452         * lib/makepath.h (make_dir): Declare.
87453         * lib/makepath.c (make_dir): Remove `static' attribute.
87454         Tweak a comment.
87455
87456 2000-11-04  Jim Meyering  <meyering@lucent.com>
87457
87458         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87459
87460 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87461
87462         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87463         last one in a bucket, advance to the next bucket.
87464
87465 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87466
87467         * lib/fnmatch.c: Do not comment out all the code if we are using
87468         the GNU C library, because in some cases we are replacing buggy
87469         code in the GNU C library itself.
87470
87471 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87472
87473         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87474         (regex_compile): Catch bogus \(\1\).
87475
87476 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87477
87478         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87479         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87480         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87481
87482 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87483
87484         * lib/error.h, getline.h, modechange.h:
87485         Remove "2000" from Copyright line, as the file hasn't been
87486         changed this year other than in the copyright notice.
87487
87488         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87489         was changed this year.
87490
87491 2000-10-29  Jim Meyering  <meyering@lucent.com>
87492
87493         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87494         renaming.
87495         * m4/ls-mntd-fs.m4: Likewise
87496
87497 2000-10-29  Jim Meyering  <meyering@lucent.com>
87498
87499         * lib/xstat.in: Fix grammar in comment.
87500
87501 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87502
87503         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87504         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87505         doesn't define __restrict_arr.
87506
87507 2000-10-28  Jim Meyering  <meyering@lucent.com>
87508
87509         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87510         (jm_PREREQ_MEMCHR): New function.
87511
87512 2000-10-28  Jim Meyering  <meyering@lucent.com>
87513
87514         * lib/memchr.c: Update from libc.
87515         Adjust for portability:
87516         [HAVE_STDLIB_H]: Include stdlib.h.
87517         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87518         Undef __memchr, too.
87519         [!weak_alias]: Define __memchr to memchr.
87520
87521         * lib/regex.c: Update from libc.
87522         * lib/regex.h: Likewise.
87523         * lib/getopt1.c: Likewise.
87524         * lib/memcmp.c: Likewise.
87525
87526         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87527         Avoid using fseek, when possible -- it's broken by design.
87528         Patch by Ulrich Drepper.
87529
87530 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87531
87532         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87533         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87534         Giving in to popular pressure to shut up the compiler with casts.
87535
87536 2000-10-26  Jim Meyering  <meyering@lucent.com>
87537
87538         * lib/strftime.c: Update from libc.
87539
87540 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87541
87542         * regex.c: More `unsigned char' -> `re_char' changes.
87543         Also change several `int' into `re_wchar_t'.
87544         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87545         (PUSH_FAILURE_POINTER): Don't cast any more.
87546         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87547         We want GCC to complain, since this piece of code makes
87548         re_match non-reentrant, which *should* be fixed.
87549         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87550         (EXTEND_BUFFER): Use RETALLOC.
87551         (SET_LIST_BIT): Don't cast.
87552         (re_wchar_t): New type.
87553         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87554         that those two functions will always properly return.
87555         (IMMEDIATE_QUIT_CHECK): Cast to void.
87556         (analyse_first): Use recursion rather than an explicit stack.
87557         (re_compile_fastmap): Can't fail anymore.
87558         (re_search_2): Don't check re_compile_fastmap for failure.
87559         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87560         Now also sets the new value (passed in a new argument).
87561         (re_match_2_internal): Use it.
87562         Also, use a new var `reg' of type size_t when looping through regs
87563         rather than reuse the inappropriate `mcnt'.
87564
87565 2000-10-25  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/obstack.c: Update from libc.
87568
87569 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87570
87571         * regex.c (regex_compile): Change the way of handling a range from
87572         a char less than 256 to a char not less than 256.
87573
87574 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87575
87576         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87577         NT-Emacs only.
87578         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87579         so that re_search functions only quit when callers expect them to.
87580
87581 2000-10-23  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87584         wrong.  That set_locale call must not have any side effects.
87585         From Paul Eggert.
87586
87587 2000-10-22  Jim Meyering  <meyering@lucent.com>
87588
87589         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87590         [CYCLIC]: Remove now-unused definition.
87591
87592         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87593         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87594         Suggestion from Ulrich Drepper.
87595
87596 2000-10-21  Jim Meyering  <meyering@lucent.com>
87597
87598         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87599         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87601
87602 2000-10-21  Jim Meyering  <meyering@lucent.com>
87603
87604         * lib/dirname.c (memrchr): Declare if necessary.
87605         (dir_name): Remove the restriction that there be no
87606         trailing slashes.  Now, this code skips past them, effectively
87607         ignoring them.
87608         [TEST_DIRNAME] (main): New unit tests.
87609
87610         * lib/memrchr.c: New file from GNU libc.
87611         Undef __memrchr, too.
87612         [!weak_alias]: Define __memrchr to memrchr.
87613         Guard weak_alias use with `#ifdef weak_alias'.
87614
87615 2000-10-21  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87618         (dir_name): Use dir_name_r.
87619         * lib/dirname.h (dir_name_r): Declare it.
87620
87621 2000-10-17  Jim Meyering  <meyering@lucent.com>
87622
87623         * lib/quote.h (PARAMS): Define and use.
87624         Reported by Akim Demaille.
87625
87626         * lib/getopt.c: Update from libc.
87627
87628 2000-10-16  Jim Meyering  <meyering@lucent.com>
87629
87630         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87631         setlocale.
87632         From Jan Fedak.
87633
87634 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87635
87636         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87637
87638 2000-09-25  Jim Meyering  <meyering@lucent.com>
87639
87640         * lib/md5.h (rol): Define (from GnuPG).
87641
87642         * lib/sha.c: Give credit (GnuPG) where due.
87643         (M): Use rol rather than open-coding it.
87644         Add a FIXME comment.
87645
87646 2000-09-21  Jim Meyering  <meyering@lucent.com>
87647
87648         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87649         Reported by Michael Stone.
87650
87651 2000-09-20  Jim Meyering  <meyering@lucent.com>
87652
87653         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87654         (noinst_HEADERS): Add sha.h.
87655         Based on code from Scott G. Miller and from GnuPG.
87656
87657 2000-09-18  Jim Meyering  <meyering@lucent.com>
87658
87659         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87660         LIBS. Otherwise, everyone ends up linking with -lelf for some
87661         configurations.
87662         Reported by Mike Stone.
87663
87664 2000-09-15  Jim Meyering  <meyering@lucent.com>
87665
87666         * lib/regex.c: Update from libc.
87667
87668 2000-09-10  Jim Meyering  <meyering@lucent.com>
87669
87670         * lib/getopt.c (_getopt_internal): Update from glibc.
87671
87672 2000-09-09  Jim Meyering  <meyering@lucent.com>
87673
87674         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87675         think it should be used as a general replacement for isascii.
87676         * lib/fnmatch.c: Likewise.
87677         * lib/mbswidth.c: Likewise
87678         * lib/regex.c: Likewise.
87679
87680         Don't use atoi.
87681         * lib/userspec.c: Include sys/param.h and limits.h.
87682         Include xstrtol.h.
87683         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87684         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87685         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87686         UID, GID.  Check range.
87687
87688 2000-09-06  Jim Meyering  <meyering@lucent.com>
87689
87690         * lib/getopt.c (_getopt_internal): Update from glibc.
87691
87692 2000-08-30  Jim Meyering  <meyering@lucent.com>
87693
87694         * lib/strftime.c: Merge in changes from GNU libc.
87695
87696 2000-08-26  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87699         * m4/fpending.m4: New file.
87700
87701 2000-08-26  Jim Meyering  <meyering@lucent.com>
87702
87703         * lib/closeout.c: Include "__fpending.h".
87704         (close_stdout_status): Return right away if there's nothing to flush.
87705
87706         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87707         * lib/__fpending.c: New file.
87708         * lib/__fpending.h: New file.
87709
87710 2000-08-20  Jim Meyering  <meyering@lucent.com>
87711
87712         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87713         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87714         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87715
87716 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87717
87718         Improve fileutils installation on systems where running
87719         programs (like install) can't be unlinked.
87720         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87721         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87722
87723 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87724
87725         Standardize on "memory exhausted" instead of "Memory exhausted"
87726         or "virtual memory exhausted".
87727         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87728         "virtual memory exhausted".
87729         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87730         our own message.
87731         * lib/userspec.c (parse_user_spec): Likewise.
87732         * lib/bumpalloc.h: comment fix
87733         * lib/same.c, userspec.c: Include xalloc.h.
87734
87735         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87736         not char *const and pointing to a constant array.
87737         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87738         (xrealloc): Comment fix.
87739
87740         * lib/userspec.c (parse_user_spec):
87741         Don't translate a message until just before returning,
87742         to avoid unnecessary translation.
87743
87744 2000-08-07  Jim Meyering  <meyering@lucent.com>
87745
87746         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87747         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87748         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87749         getgroups.c, gethostname.c, getopt.h, group-member.c,
87750         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87751         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87752         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87753         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87754         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87755         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87756         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87757         yesno.c: Back out Copyright date changes for each file with no change
87758         this year.  This eases coordination with other programs using the same
87759         source code modules.  From Paul Eggert.
87760
87761 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87762
87763         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87764         not char, for compatibility with glibc 2.1.3 strftime.c.
87765
87766 2000-08-03  Greg McGary  <greg@mcgary.org>
87767
87768         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87769         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87770         (EXTEND_BUFFER): Use them.
87771
87772 2000-08-01  Jim Meyering  <meyering@lucent.com>
87773
87774         * lib/dirname.c (ISSLASH): Define.
87775         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87776         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87777         both `\' and `/' may be use as path separators.
87778         Based on a patch from Prashant TR.
87779
87780 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87781
87782         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87783         slot vector a constant, since it might get modified.
87784
87785 2000-07-31  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/xmalloc.c: Use `virtual memory exhausted', not
87788         `Memory exhausted'.
87789         * lib/obstack.c (print_and_abort): Likewise.
87790
87791 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87792
87793         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87794         buffer, so that the caller can always quote one small
87795         component of a "memory exhausted" message in slot 0.
87796         From a suggestion by Jim Meyering.
87797
87798 2000-07-30  Jim Meyering  <meyering@lucent.com>
87799
87800         * lib/makepath.c (make_path): Quote the other instance, too.
87801
87802         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87803         (STATIC_BUF_SIZE): Define.
87804         (quotearg_n_options): Use only statically allocated storage when
87805         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87806         than STATIC_BUF_SIZE.
87807
87808 2000-07-29  Jim Meyering  <meyering@lucent.com>
87809
87810         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87811         * lib/dirname.c (dir_name): Likewise.
87812
87813         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87814         `/'.
87815
87816         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87817         (dir_name): Assert that there are no trailing slashes.
87818
87819 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87820
87821         * lib/mbswidth.h (mbswidth): Add a flags argument.
87822         (mbswidth): New declaration.
87823         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87824         * lib/mbswidth.c (mbswidth): Add a flags argument.
87825         (mbsnwidth): New function.
87826
87827 2000-07-24  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87830
87831 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87832
87833         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87834
87835 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87836
87837         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87838         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87839         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87840         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87841         invoke multibyte primitives.
87842
87843 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87844
87845         * lib/quotearg.c:
87846         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87847         so that mbstate_t is always defined.
87848
87849         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87850         be 1 in at least one GCC installation, and this configuration
87851         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87852         performance on hosts that have mbrtowc but have only unibyte
87853         locales, but I assume these hosts are rare.
87854
87855 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87856
87857         * lib/mbswidth.c (_XOPEN_SOURCE):
87858         Don't define; this causes problems on Solaris 7.
87859         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87860
87861 2000-07-23  Jim Meyering  <meyering@lucent.com>
87862
87863         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87864         too: getgrgid, getpwuid, getuid.
87865
87866 2000-07-23  Jim Meyering  <meyering@lucent.com>
87867
87868         * lib/basename.c (base_name): Add an assertion.
87869
87870 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87871
87872         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87873         shadow its mbsinit function.
87874
87875 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87876
87877         * lib/mbswidth.h: New file.
87878         * lib/mbswidth.c: New file.
87879         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87880         (noinst_HEADERS): Add mbswidth.h.
87881
87882 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87883
87884         * lib/config.charset: Add support for FreeBSD. Improve support for
87885         HP-UX and IRIX 6.
87886
87887 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87888
87889         * m4/mbswidth.m4: New file.
87890         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87891
87892 2000-07-15  Jim Meyering  <meyering@lucent.com>
87893
87894         * lib/makepath.c: Include quote.h.
87895         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87896         corresponding argument in a `quote (...)' call.
87897         Give better diagnostics.
87898
87899         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87900         (noinst_HEADERS): Add quote.h.
87901
87902         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87903         from tar's src/misc.c.
87904         * lib/quote.h: New file.  Prototypes for same.
87905
87906 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87907
87908         From a suggestion by Bruno Haible.
87909         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87910         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87911         to decide whether to define the BeOS workaround macro;
87912         this adjusts to the change to AC_MBSTATE_T.
87913
87914 2000-07-14  Jim Meyering  <meyering@lucent.com>
87915
87916         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87917         jm_AC_TYPE_UINTMAX_T.
87918
87919 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87920
87921         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87922
87923         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87924         quotearg_buffer_restyled): Add support for
87925         clocale_quoting_style.  Undo previous change to
87926         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87927         and "{RIGHT QUOTATION MARK}" msgids.
87928
87929 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87930
87931         From a suggestion by Bruno Haible.
87932         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87933         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87934         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87935         and mbstate_t, to a single-part test that simply defines mbstate_t.
87936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87937         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87938
87939 2000-07-10  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87942
87943         * m4/gnu-source.m4: Output to confdefs.h directly.
87944         Suggestion from Akim Demaille.
87945
87946 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87947
87948         The old behavior of quoting `like this' doesn't look good with
87949         newer, ISO-style fonts.  See:
87950         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87951
87952         Instead, quote "like this" by default.  Let the translator
87953         tailor the locale-specific quoting behavior by providing
87954         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87955
87956         * lib/quotearg.c (N_): New macro.
87957         (gettext_default): New function.
87958         (quotearg_buffer_restyled): Use
87959         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87960         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87961
87962 2000-07-09  Jim Meyering  <meyering@lucent.com>
87963
87964         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87965         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87966
87967         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87969
87970 2000-07-09  Jim Meyering  <meyering@lucent.com>
87971
87972         * lib/Most files: Update copyright dates to include 2000.
87973
87974 2000-07-08  Jim Meyering  <meyering@lucent.com>
87975
87976         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87977         if not defined.
87978         (xgethostname): Remove now-unnecessary #ifdef.
87979         Move declaration of `err' into loop where it's used.
87980
87981 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87982         and Bruno Haible  <haible@clisp.cons.org>
87983
87984         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87985         only if the test for an object-type mbstate_t fails.  This
87986         prevents us from mistakenly reporting that mbstate_t is a
87987         system object type after we "#define mbstate_t int" to work
87988         around its lack.
87989
87990 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87991         and Bruno Haible  <haible@clisp.cons.org>
87992
87993         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87994
87995 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87996
87997         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87998         to strerror_r.
87999         Include <ctype.h> for use of isalpha.
88000
88001 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88002
88003         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88004         by allocating a larger buffer. Test the gethostname return value for
88005         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88006         returns an error and ENAMETOOLONG isn't defined.
88007
88008 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88009
88010         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88011         dimension.
88012
88013 2000-07-04  Jim Meyering  <meyering@lucent.com>
88014
88015         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88016         of the deprecated AC_CHECKING.
88017
88018 2000-07-04  Jim Meyering  <meyering@lucent.com>
88019
88020         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88021         Reported by Bruno Haible.
88022
88023 2000-07-04  Jim Meyering  <meyering@lucent.com>
88024
88025         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88026         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88027         lacks mbrtowc.
88028
88029 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88030
88031         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88032         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88033
88034 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88035         and Bruno Haible  <haible@clisp.cons.org>
88036
88037         * lib/quotearg.c (mbrtowc):
88038         Assign to *pwc, and return 1 only if result is nonzero.
88039         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88040
88041 2000-07-03  Jim Meyering  <meyering@lucent.com>
88042
88043         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88044
88045 2000-07-03  Jim Meyering  <meyering@lucent.com>
88046
88047         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88048         This is necessary to get a definition of e.g., UTMP_FILE on
88049         HP-UX 10.20.
88050         From Bob Proulx.
88051
88052 2000-07-02  Jim Meyering  <meyering@lucent.com>
88053
88054         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88055
88056         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88057         AC_LIBOBJ(function_name).
88058         * m4/chown.m4: Likewise.
88059         * m4/fnmatch.m4: Likewise.
88060         * m4/ftruncate.m4: Likewise.
88061         * m4/getgroups.m4: Likewise.
88062         * m4/getline.m4: Likewise.
88063         * m4/group-member.m4: Likewise.
88064         * m4/jm-macros.m4: Likewise.
88065         * m4/lstat.m4: Likewise.
88066         * m4/malloc.m4: Likewise.
88067         * m4/memcmp.m4: Likewise.
88068         * m4/nanosleep.m4: Likewise.
88069         * m4/putenv.m4: Likewise.
88070         * m4/realloc.m4: Likewise.
88071         * m4/regex.m4: Likewise.
88072         * m4/stat.m4: Likewise.
88073         * m4/strftime.m4: Likewise.
88074
88075 2000-07-02  Jim Meyering  <meyering@lucent.com>
88076
88077         * lib/quotearg.c (mbstate_t): Don't define here.
88078
88079 2000-07-02  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88082
88083 2000-07-01  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88086
88087 2000-07-01  Jim Meyering  <meyering@lucent.com>
88088
88089         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88090         problem.
88091
88092 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88093
88094         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88095         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88096
88097 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88098
88099         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88100         per change in ../m4/ls-mntd-fs.m4.
88101         (read_filesystem_list): Ignore symbolic links.
88102
88103 2000-06-29  Jim Meyering  <meyering@lucent.com>
88104
88105         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88106         for declaration of strcmp.
88107
88108         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88109
88110         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88111         Avoid warning by casting result to `char *' to remove `const'.
88112
88113 2000-06-28  Jim Meyering  <meyering@lucent.com>
88114
88115         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88116         included by quotearg.c, for which we perform this test.  From
88117         Bruno Haible.
88118
88119 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88120
88121         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88122         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88123         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88124
88125 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88126
88127         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88128
88129 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88130
88131         savedir now sets errno on failure and invokes xmalloc to get memory.
88132         Fix a couple of other minor bugs while we're at it.
88133
88134         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88135         (NAMLEN): Remove macro.
88136         (malloc, realloc): Remove decls.
88137         (stpcpy): Likewise.
88138         ("xalloc.h"): Include.
88139         (NAME_SIZE_DEFAULT): New macro.
88140         (savedir): Use xmalloc / xrealloc to allocate memory.
88141         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88142         Skip "" directory entries.
88143         Use strlen to calculate directory entry length, since the old method
88144         is rarely used these days and isn't worth supporting.
88145         Don't use a pointer after freeing it.
88146         Check for integer overflow when calculating allocation size.
88147         Use memcpy to copy entries, instead of stpcpy.
88148         Set errno properly when returning NULL.
88149         Check for readdir error.
88150
88151 2000-06-26  Jim Meyering  <meyering@lucent.com>
88152
88153         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88154
88155 2000-06-25  Jim Meyering  <meyering@lucent.com>
88156
88157         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88158         Linux header bug when _XOPEN_SOURCE is defined to 500.
88159
88160 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88161
88162         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88163         deficiency.
88164
88165 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88166
88167         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88168         Include xalloc.h.
88169         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88170
88171 2000-06-24  Jim Meyering  <meyering@lucent.com>
88172
88173         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88174         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88175         for which strerror does return char*, but which lacks a conveniently
88176         accessible declaration of the function.  If the compile-test says
88177         strerror_r doesn't work, then resort to a `run'-test that works on
88178         BeOS and segfaults on DEC Unix.
88179
88180 2000-06-24  Jim Meyering  <meyering@lucent.com>
88181
88182         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88183
88184 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88185
88186         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88187         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88188
88189 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88190
88191         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88192         (mbrtowc, mbstate_t): Define substitutes if
88193         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88194         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88195         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88196
88197 2000-06-23  Jim Meyering  <meyering@lucent.com>
88198
88199         * m4/afs.m4: Add missing AC_MSG_RESULT.
88200         Reported by Bruno Haible.
88201
88202         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88203         Suggestion from Bruno Haible.
88204
88205 2000-06-23  Jim Meyering  <meyering@lucent.com>
88206
88207         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88208
88209 2000-06-21  Jim Meyering  <meyering@lucent.com>
88210
88211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88212
88213 2000-06-21  Jim Meyering  <meyering@lucent.com>
88214
88215         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88216         (noinst_HEADERS): Add getstr.h.
88217
88218         * lib/getline.c (getstr): Move into a separate file.
88219         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88220         the following changes: new parameter, delim2; both delim[12]
88221         parameters have type `int', not `char'.  The latter would lose
88222         with 8-bit delimiters.
88223         * lib/getstr.h: New file.
88224
88225 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88226
88227         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88228         than 1024, return a memory chunk of least possible size, instead
88229         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88230         Use free/xmalloc instead of xrealloc to avoid copying for very long
88231         paths.
88232
88233 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88234
88235         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88236         the empty string.
88237
88238 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88239
88240         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88241         address, not strdup.  Include <stdlib.h> and don't declare free().
88242
88243 2000-06-19  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88246
88247 2000-06-18  Jim Meyering  <meyering@lucent.com>
88248
88249         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88250
88251         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88252         `checking whether...' message to be consistent with that of the
88253         lstat test.
88254
88255 2000-06-18  Jim Meyering  <meyering@lucent.com>
88256
88257         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88258         Besides, these days every porting target provides a mkdir function.
88259
88260         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88261         needed. (this snippet comes from src/system.h).
88262
88263 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88264
88265         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88266
88267 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88268
88269         * lib/human.c (adjust_value): New function.
88270         (human_readable_inexact): Apply rounding style even when
88271         printing approximate values.
88272
88273 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88274
88275         * lib/human.c (human_readable_inexact): Allow an input block
88276         size that is not a multiple of the output block size, and vice versa.
88277         Reported by Piergiorgio Sartor.
88278
88279 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88280
88281         * lib/getdate.y (get_date): Apply relative times after time
88282         zone indicator, not before.  Reported by Todd A. Jacobs.
88283
88284 2000-06-13  Jim Meyering  <meyering@lucent.com>
88285
88286         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88287
88288         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88289
88290 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88291
88292         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88293
88294 2000-06-12  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88297         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88298         optional argument.
88299         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88300         the optional argument, `lib'.
88301
88302 2000-06-08  Jim Meyering  <meyering@lucent.com>
88303
88304         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88305
88306 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88307
88308         Rewrite largefile configuration so that we don't need to run
88309         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88310         AC_CANONICAL_HOST in configure.in -- jmm]
88311
88312         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88313         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88314         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88315         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88316         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88317         All uses changed.
88318         Instead of inspecting the output of getconf, try to compile the
88319         test program without and with the macro definition.
88320         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88321         for getconf.  Instead, check for the needed flags by compiling
88322         test programs.
88323
88324 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88325
88326         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88327
88328 2000-06-04  Jim Meyering  <meyering@lucent.com>
88329
88330         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88331         SunOS 4.1.4 for which gid_t is an unsigned type.
88332
88333 2000-06-03  Jim Meyering  <meyering@lucent.com>
88334
88335         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88336         now that autoconf requires that.
88337
88338         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88339         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88340         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88341
88342 2000-06-03  Jim Meyering  <meyering@lucent.com>
88343
88344         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88345
88346 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88347
88348         * m4/glibc21.m4: New file.
88349         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88350
88351 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88352
88353         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88354         newer, don't install charset.alias.
88355         * lib/config.charset: Change the Linux/glibc rules so they become empty
88356         on glibc-2.1 or newer.
88357
88358 2000-06-02  Jim Meyering  <meyering@lucent.com>
88359
88360         * lib/mountlist.c: Back out last change.  Instead, do this...
88361         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88362         me_dummy member using the same `ignore'-testing code.
88363         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88364         fs_type strings.
88365         From Mark D. Roth.
88366
88367 2000-05-29  Jim Meyering  <meyering@lucent.com>
88368
88369         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88370         mounts with the `ignore' attribute.  Based on a patch from
88371         Mark D. Roth.
88372
88373 2000-05-28  Jim Meyering  <meyering@lucent.com>
88374
88375         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88376         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88377         * m4/stat.m4: Likewise.
88378         * m4/lstat.m4: Likewise.
88379         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88380
88381         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88382         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88383
88384 2000-05-26  Jim Meyering  <meyering@lucent.com>
88385
88386         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88387
88388 2000-05-24  Jim Meyering  <meyering@lucent.com>
88389
88390         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88391         autoconf requires that.
88392         * m4/lib-check.m4: Likewise.
88393         * m4/jm-macros.m4: Likewise.
88394         * m4/strftime.m4: Likewise.
88395
88396         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88397         AC_CHECK_DECLS, now that autoconf requires that.
88398
88399 2000-05-22  Jim Meyering  <meyering@lucent.com>
88400
88401         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88402         * m4/lstat.m4: Likewise.
88403
88404 2000-05-22  Jim Meyering  <meyering@lucent.com>
88405
88406         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88407
88408 2000-05-20  Jim Meyering  <meyering@lucent.com>
88409
88410         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88411         (jm_PREREQ): Use it.
88412
88413 2000-05-18  Jim Meyering  <meyering@lucent.com>
88414
88415         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88416         back, too, since it may have been modified by allocate_entry.
88417         (hash_delete): Rewrite to use neither the assignment operator
88418         nor the comma operator in an if-expression.
88419
88420 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88421
88422         * lib/closeout.c:
88423         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88424         Remove; no longer needed.
88425         "quotearg.h": Add include.
88426         (file_name): Do not bother to explicitly initialize to NULL; it's less
88427         efficient on some hosts.
88428         (close_stdout_status): Remove test as to whether stdout was already
88429         closed; it breaks for the case "echo x | sort >&-".
88430         Quote file name colons.
88431         Do not assume that _("write error") lacks format strings.
88432
88433 2000-05-15  Jim Meyering  <meyering@lucent.com>
88434
88435         * lib/version-etc.c (version_etc_copyright): Update the copyright
88436         string used in all --version output.
88437
88438 2000-05-14  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/closeout.c (close_stdout_set_file_name): New function.
88441         (close_stdout_status): Use new file-scoped global.
88442         Return right away if fstat says the stdout file descriptor is invalid.
88443         * lib/closeout.h (close_stdout_set_file_name): Declare.
88444
88445 2000-05-10  Jim Meyering  <meyering@lucent.com>
88446
88447         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88448         (close_stdout_set_status): New function.
88449         * lib/closeout.h (close_stdout_set_status): Declare.
88450
88451 2000-05-09  Jim Meyering  <meyering@lucent.com>
88452
88453         * m4/gettext.m4: Rename this...
88454         * m4/libintl.m4: ...to this.
88455
88456 2000-05-08  Jim Meyering  <meyering@lucent.com>
88457
88458         * lib/long-options.c: Don't include closeout.h.
88459         (parse_long_options): Don't call close_stdout for --version.
88460
88461 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88462
88463         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88464         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88465         2.1.3 bug.  This avoids a clash when files like regex.c define
88466         _GNU_SOURCE.
88467
88468 2000-05-06  Jim Meyering  <meyering@lucent.com>
88469
88470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88471         (AC_REPLACE_FUNCS): Add strnlen.
88472
88473         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88474         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88475
88476         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88477         AC_SEARCH_LIBS call for nanosleep.
88478         (LIB_NANOSLEEP): Set and AC_SUBST.
88479
88480 2000-05-06  Jim Meyering  <meyering@lucent.com>
88481
88482         * lib/strnlen.c: Undefine __strnlen and strnlen.
88483         [!weak_alias]: Define __strnlen to strnlen.
88484
88485         * lib/atexit.c: New file, from libiberty.
88486
88487 2000-05-06  Jim Meyering  <meyering@lucent.com>
88488
88489         * lib/closeout.c (close_stdout_status): Also check for errors on the
88490         stderr stream.
88491
88492 2000-05-05  Jim Meyering  <meyering@lucent.com>
88493
88494         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88495         AC_SEARCH_LIBS call for clock_gettime.
88496         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88497
88498         * m4/search-libs.m4: Update from autoconf.
88499
88500         su doesn't work on Solaris 2.6.
88501         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88502         <shadow.h>.  Reported by Dragos Harabor.
88503
88504 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88505
88506         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88507         memcpy instead of xmalloc, xrealloc, path_concat.
88508         (locale_charset): Treat empty environment variables as absent.
88509         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88510
88511 2000-05-04  Jim Meyering  <meyering@lucent.com>
88512
88513         * lib/getopt.c: Update from glibc.
88514         * lib/obstack.c: Likewise.
88515         * lib/obstack.h: Likewise.
88516         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88517         file
88518
88519         * lib/regex.h: Likewise.
88520         * lib/strndup.c: Likewise.
88521         * lib/strnlen.c: New file, from glibc.
88522
88523 2000-05-03  Jim Meyering  <meyering@lucent.com>
88524
88525         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88526
88527 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88528
88529         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88530         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88531         compile-time test, rather than inspecting host and OS, to
88532         decide whether to define _LARGEFILE_SOURCE.
88533
88534 2000-05-01  Jim Meyering  <meyering@lucent.com>
88535
88536         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88537
88538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88539         Based on a patch from Bruno Haible.
88540
88541 2000-05-01  Jim Meyering  <meyering@lucent.com>
88542
88543         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88544
88545 2000-04-29  Jim Meyering  <meyering@lucent.com>
88546
88547         * lib/path-concat.c: Declare strdup only if it's not defined.
88548         * lib/canon-host.c: Likewise.
88549
88550 2000-04-28  Jim Meyering  <meyering@lucent.com>
88551
88552         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88553         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88554         is included first, then limits.h is included by locale.h by libintl.h.
88555         From John David Anglin.
88556
88557 2000-04-25  Jim Meyering  <meyering@lucent.com>
88558
88559         * lib/makepath.c (S_IRWXUGO): Define.
88560         (make_path): Always perform explicit chmod if MODE specifies any
88561         of the `special' permission bits.  Prompted by a bug report against
88562         install from Mate Wierdl and Joost van Baal.
88563
88564 2000-04-18  Jim Meyering  <meyering@lucent.com>
88565
88566         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88567         (jm_PREREQ): Use it.
88568
88569 2000-04-18  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/README: New file.
88572
88573         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88574         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88575
88576 2000-04-17  Jim Meyering  <meyering@lucent.com>
88577
88578         Get it right :-)
88579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88580         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88581         Suggestion from Akim Demaille.
88582
88583 2000-04-17  Jim Meyering  <meyering@lucent.com>
88584
88585         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88586         the definition of it to rpl_strftime also defined-away the system's
88587         declaration.
88588
88589 2000-04-15  Jim Meyering  <meyering@lucent.com>
88590
88591         Use `C' to denote so-called `contiguous' files, the same way
88592         that tar does.
88593         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88594         (ftypelet): Use S_ISCTG.
88595         From Michael Deutschmann.
88596
88597 2000-04-14  Jim Meyering  <meyering@lucent.com>
88598
88599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88600         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88601         clobbered.
88602
88603 2000-04-14  Jim Meyering  <meyering@lucent.com>
88604
88605         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88606
88607 2000-04-13  Jim Meyering  <meyering@lucent.com>
88608
88609         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88610         AH_VERBATIM to insert required #ifndef into config.h.in.
88611         Suggestion from Akim Demaille.
88612
88613 2000-04-12  Jim Meyering  <meyering@lucent.com>
88614
88615         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88616         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88617         Christian Krackowizer.
88618
88619         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88620         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88621         (AC_SYS_LARGEFILE): Require.
88622         (AM_C_PROTOTYPES): Require.
88623
88624 2000-04-08  Jim Meyering  <meyering@lucent.com>
88625
88626         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88627         names don't conflict.  Reported by Eli Zaretskii.
88628
88629 2000-04-07  Jim Meyering  <meyering@lucent.com>
88630
88631         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88632         sys/types.h, to work around system header problems on AIX 3.2.5.
88633         From Bruno Haible.
88634
88635 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88636
88637         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88638         bug.  Deal with the different error behavior of Irix iconv.
88639
88640 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88641
88642         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88643         IRIX if the installer said otherwise.
88644
88645 2000-04-05  Jim Meyering  <meyering@lucent.com>
88646
88647         Portability tweaks required for ultrix4.3.
88648         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88649         (jm_CHECK_DECLS): Add getutent to the list of functions.
88650         (_jm_DECL_HEADERS): Add utmpx.h.
88651         From John David Anglin.
88652
88653         * m4/strftime.m4: Back out the 2000-04-02 change.
88654         Instead of that change, simply undefine putenv in the test program.
88655
88656 2000-04-05  Jim Meyering  <meyering@lucent.com>
88657
88658         Portability tweaks required for ultrix4.3.
88659         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88660         getutent.
88661         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88662         * lib/canon-host.c: Declare strdup.
88663         * lib/path-concat.c: Likewise.
88664         From John David Anglin.
88665
88666 2000-04-04  Jim Meyering  <meyering@lucent.com>
88667
88668         Be more DOS 8.3-friendly.
88669         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88670         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88671         * lib/Makefile.am: Reflect renaming.
88672         Reported by Eli Zaretskii.
88673
88674         Use a temporary file name that won't clash with `charset.alias'
88675         in the DOS 8.3 name space.
88676         * lib/Makefile.am (charset_tmp): Define.
88677         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88678         (uninstall-local): Likewise.
88679         Reported by Eli Zaretskii.
88680
88681 2000-04-03  Jim Meyering  <meyering@lucent.com>
88682
88683         * m4/gettext.m4: Fix typo in comment.
88684
88685         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88686         textutils/configure.in).  Suggestion from Paul Eggert.
88687         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88688
88689 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88690
88691         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88692         variable in the shell rather than using putenv, which isn't
88693         portable.  This avoids the configure-time inter-test dependency
88694         on the potentially-renamed putenv function.
88695
88696 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88697
88698         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88699         before checking struct stat.st_blksize, so that
88700         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88701
88702 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88703
88704         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88705         since strftime.c uses HAVE_STRFTIME to decide whether to use
88706         the underlying strftime.
88707
88708 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88709
88710         * lib/time/strftime.c (my_strftime): Make sure we call the system
88711         strftime, not ourselves, when invoking the underlying strftime.
88712
88713 2000-03-24  Jim Meyering  <meyering@lucent.com>
88714
88715         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88716         (charset_alias): Define.
88717         (install-exec-local): Factor out common code.
88718         (uninstall-local): Split lines longer than 80.
88719         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88720         (SUFFIXES): Define.
88721         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88722         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88723
88724 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88725
88726         * lib/config.charset: Output a line containing "Packages using this
88727         file".
88728         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88729         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88730         ref-del.sed): New rules.
88731
88732 2000-03-17  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88735         Otherwise, include <strings.h>
88736
88737 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88738
88739         * lib/unicodeio.c (utf8_wctomb): New function.
88740         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88741         format instead of in UCS-4 with platform dependent endianness.
88742
88743 2000-03-10  Jim Meyering  <meyering@lucent.com>
88744
88745         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88746         From Marco Franzen.
88747
88748 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88749
88750         * lib/savedir.c (savedir): Work even if directory size is
88751         negative; this can happen with some screwy NFS configurations.
88752
88753 2000-03-06  Jim Meyering  <meyering@lucent.com>
88754
88755         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88756         if it's NULL (because we ran out of memory).  From Bruno Haible.
88757
88758 2000-03-05  Jim Meyering  <meyering@lucent.com>
88759
88760         * lib/localcharset.c ("path-concat.h"): Include.
88761         (get_charset_aliases): Use path_concat instead of ANSI string
88762         concatenation.
88763
88764         * lib/unicodeio.h (PARAMS): Define.
88765         Use it to guard prototype.
88766
88767 2000-03-04  Jim Meyering  <meyering@lucent.com>
88768
88769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88770         for lib/localcharset.c.
88771
88772 2000-03-04  Jim Meyering  <meyering@lucent.com>
88773
88774         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88775         installing into it.
88776         (uninstall-local): Uncomment this rule so `make distcheck' works
88777         once again.
88778
88779         * lib/unicodeio.c (<errno.h>): Include it.
88780         (errno): Declare if not defined.
88781
88782         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88783
88784         * lib/config.charset: New version, incorporating remarks from a linux
88785         i18n mailing list.  From Bruno Haible.
88786
88787 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88788
88789         * m4/codeset.m4: New file.
88790         * m4/iconv.m4: New file.
88791         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88792
88793 2000-03-03  Jim Meyering  <meyering@lucent.com>
88794
88795         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88796
88797 2000-03-02  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88800         the messages come out on separate lines.
88801
88802         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88803         rather than jm_CHECK_DECLARATIONS.
88804         * m4/decl.m4: Remove now-unused file.
88805
88806         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88807         geteuid.
88808
88809 2000-03-02  Jim Meyering  <meyering@lucent.com>
88810
88811         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88812
88813 2000-03-01  Jim Meyering  <meyering@lucent.com>
88814
88815         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88816         * lib/unicodeio.c: Likewise.
88817
88818 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88819
88820         * lib/config.charset: New file.
88821         * lib/localcharset.c: New file.
88822         * lib/unicodeio.h, lib/unicodeio.c: New files.
88823         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88824         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88825         (noinst_HEADERS): Add unicodeio.h.
88826         (all-local, install-exec-local, charset.alias): New targets.
88827
88828 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88829
88830         * lib/quotearg.c (ALERT_CHAR): New macro.
88831         (quotearg_buffer_restyled): Use it.
88832
88833 2000-02-27  Jim Meyering  <meyering@lucent.com>
88834
88835         * m4/check-decl.m4: Add getenv to the list.
88836
88837 2000-02-27  Jim Meyering  <meyering@lucent.com>
88838
88839         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88840         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88841
88842         * lib/backupfile.c: Guard inclusion of stdlib.h with
88843         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88844         Declare malloc if needed.
88845
88846         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88847         `#ifndef HAVE_DECL..'
88848         now that autoconf always defines the HAVE_DECL_ symbols.
88849         * lib/human.c: Likewise.
88850         * lib/same.c: Likewise.
88851         * lib/strtoumax.c: Likewise.
88852
88853         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88854         declaration check was not run.
88855         * lib/hash.c: Likewise.
88856         * lib/human.c: Likewise.
88857         * lib/same.c: Likewise.
88858         * lib/strtoumax.c: Likewise.
88859
88860         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88861         `.', then first look up the entire `.'-containing string as a login
88862         name.
88863
88864 2000-02-23  Jim Meyering  <meyering@lucent.com>
88865
88866         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88867         in place of my hack.
88868
88869 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88870
88871         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88872         (textint): New typedef.
88873         (parser_control): Member year changed from int to textint.
88874         All uses changed.
88875         (YYSTYPE): Removed; replaced by %union with int and textint members.
88876         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88877         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88878         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88879         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88880         (date, number, to_year): Use width of number in digits, not its value,
88881         to determine whether it's a 2-digit year, or a 2-digit time.
88882         (yylex): Store number of digits of numeric tokens.
88883         Reported by John Kendall.
88884
88885         (parser_control): Changed from struct parser_control to typedef (for
88886         consistency).  All uses changed.
88887
88888         (tID): Removed; not used.
88889         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88890
88891 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88892
88893         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88894         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88895
88896 2000-02-12  Jim Meyering  <meyering@lucent.com>
88897
88898         * lib/userspec.c (ISDIGIT): Define it.
88899         (isdigit): Remove definition.
88900         (is_number): Use ISDIGIT, not isdigit.
88901         <libintl.h>: Include.
88902         (_ and N_): Define.
88903         (parse_user_spec): Mark translatable strings.
88904
88905 2000-02-10  Jim Meyering  <meyering@lucent.com>
88906
88907         With these changes, nanosleep.[ch] are finally enough like the other
88908         lib/* replacement files to compile on a few more losing systems.
88909
88910         * lib/nanosleep.h: Don't include config.h.
88911         Remove prototype from declaration of nanosleep.
88912         (PARAMS): Remove now-unneeded definition.
88913         * lib/nanosleep.c: #undef nanosleep.
88914         (rpl_nanosleep): Rename from nanosleep.
88915
88916 2000-02-10  Jim Meyering  <meyering@lucent.com>
88917
88918         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88919         gnu_nanosleep to rpl_nanosleep.
88920
88921 2000-02-09  Jim Meyering  <meyering@lucent.com>
88922
88923         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88924         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88925
88926 2000-02-08  Akim Demaille  <akim@epita.fr>
88927
88928         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88929         `[' and `]' and remove uses of `changequote'.
88930         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88931         (AC_SYS_LARGEFILE): Likewise.
88932         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88933         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88934         of changequote.
88935         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88936         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88937         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88938         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88939
88940 2000-02-05  Jim Meyering  <meyering@lucent.com>
88941
88942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88943         Remove explicit use of AC_HEADER_TIME.  It is required by
88944         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88945         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88946         in autoconf whereby the expansion of the latter ended up preceding
88947         the expansion of its prerequisite, AC_HEADER_TIME.
88948         Reported by Volker Borchert.
88949
88950 2000-02-03  Jim Meyering  <meyering@lucent.com>
88951
88952         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88953
88954 2000-02-03  Jim Meyering  <meyering@lucent.com>
88955
88956         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88957         rather than with `#if HAVE_UTMPNAME'.
88958
88959 2000-02-02  Jim Meyering  <meyering@lucent.com>
88960
88961         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88962         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88963         Reported by Eli Zaretskii.
88964
88965 2000-02-01  Jim Meyering  <meyering@lucent.com>
88966
88967         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88968
88969 2000-01-31  Jim Meyering  <meyering@lucent.com>
88970
88971         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88972         functions.  Add the time.h and sys/time.h headers along with the
88973         AC_REQUIRE'ment of AC_HEADER_TIME.
88974
88975 2000-01-31  Jim Meyering  <meyering@lucent.com>
88976
88977         * lib/nanosleep.h (nanosleep): Guard declaration with
88978         `#if ! HAVE_DECL_NANOSLEEP'.
88979         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88980         the declaration in that vendor's sys/timers.h.
88981         Reported by Christian Krackowizer.
88982
88983         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88984         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88985         (ISPRINT): Likewise.
88986         Reported by Tom Tromey.
88987
88988 2000-01-30  Jim Meyering  <meyering@lucent.com>
88989
88990         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88991
88992         * m4/prereq.m4 (utmp_includes): Define.
88993         Check for ut_user and ut_name members in both struct utmpx
88994         and struct utmp.
88995
88996 2000-01-30  Jim Meyering  <meyering@lucent.com>
88997
88998         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88999         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89000         header files where only utmpx.ut_user is declared.
89001
89002         * lib/readutmp.h (UT_USER): Define.
89003
89004 2000-01-29  Jim Meyering  <meyering@lucent.com>
89005
89006         * m4/lib-check.m4: New file containing library-related checks from
89007         fileutils and sh-utils (textutils had none).
89008
89009 2000-01-28  Jim Meyering  <meyering@lucent.com>
89010
89011         * m4/perl.m4: Change format of warning message to look more like that
89012         from the missing script.  Suggestion from François Pinard.
89013
89014 2000-01-25  Jim Meyering  <meyering@lucent.com>
89015
89016         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89017         well as time.h in the compile check.
89018         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89019         Fix typo in cross-compiling case: s/yes/no/.
89020
89021 2000-01-23  Jim Meyering  <meyering@lucent.com>
89022
89023         * m4/jm-macros.m4: Move df-related tests here from
89024         fileutils/configure.in
89025
89026         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89027         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89028
89029         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89030         s/space/ac_fsusage_space/.
89031         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89032
89033         * m4/ftruncate.m4: New file (derived from part of
89034         fileutils/configure.in).
89035         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89036         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89037
89038         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89039         AC_SUBST these here, rather than just in sh-util/configure.in, so
89040         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89041         all the same.
89042         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89043         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89044         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89045         (AC_SUBST(POW_LIBM)): Likewise.
89046         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89047
89048 2000-01-23  Jim Meyering  <meyering@lucent.com>
89049
89050         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89051         obstack.c.
89052
89053 2000-01-22  Jim Meyering  <meyering@lucent.com>
89054
89055         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89056
89057         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89058
89059         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89060         configure.in
89061         (AC_CHECK_HEADERS): Likewise for sh-utils.
89062         (AC_CHECK_HEADERS): Likewise for textutils.
89063         Merge the three lists of headers.
89064
89065         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89066         from fileutils' configure.in.
89067
89068         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89069         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89070         check-decl.m4.
89071
89072         * m4/check-decl.m4: Use #if rather than #ifdef.
89073         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89074         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89075         (_jm_DECL_HEADERS): Define new function.
89076         (jm_CHECK_DECLARATIONS): Require it.
89077
89078 2000-01-22  Jim Meyering  <meyering@lucent.com>
89079
89080         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89081         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89082         Required for some AIX systems.  Reported by Christian Krackowizer.
89083         [TESTING] (main): New function.
89084
89085         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89086         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89087         letters.
89088
89089         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89090         iswprint.
89091
89092         * lib/strverscmp.c (ISDIGIT): Define.
89093         (strverscmp): Use ISDIGIT, not isdigit.
89094
89095 2000-01-19  Jim Meyering  <meyering@lucent.com>
89096
89097         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89098         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89099         defines `struct timespec' in <sys/time.h>
89100
89101         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89102         Thanks to Akim for explaining.
89103
89104 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89105
89106         * lib/nanosleep.c (nanosleep):
89107         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89108         POSIX.1 doesn't require SA_INTERRUPT and some systems
89109         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89110         it's been part of POSIX.1 since day 1 (in 1988).
89111
89112 2000-01-17  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/interlock: Remove unused file.  Reported by François Pinard.
89115
89116 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89117
89118         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89119         alert, backslash, formfeed, and vertical tab unnecessarily in
89120         shell quoting style.
89121
89122 2000-01-16  Jim Meyering  <meyering@lucent.com>
89123
89124         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89125         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89126         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89127         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89128
89129 2000-01-16  Jim Meyering  <meyering@lucent.com>
89130
89131         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89132         because the latter didn't work.
89133
89134 2000-01-15  Jim Meyering  <meyering@lucent.com>
89135
89136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89137         (AC_REPLACE_FUNCS): Add memcpy and memset.
89138         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89139         Add strpbrk.
89140         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89141
89142 2000-01-12  Jim Meyering  <meyering@lucent.com>
89143
89144         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89145         (jm_PREREQ): Use it.
89146         (jm_PREREQ_READUTMP): New macro.
89147         (jm_PREREQ): Use it.
89148
89149 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89150
89151         Quote multibyte characters correctly.
89152         * m4/c-bs-a.m4: New file.
89153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89154         (jm_PREREQ): Use it.
89155
89156 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89157
89158         * m4/uintmax_t.m4: Port to autoconf 2.13.
89159
89160 2000-01-08  Jim Meyering  <meyering@ascend.com>
89161
89162         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89163         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89164
89165 2000-01-04  Jim Meyering  <meyering@ascend.com>
89166
89167         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89168         jm_STRUCT_DIRENT_D_TYPE.
89169         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89170         jm_STRUCT_DIRENT_D_INO.
89171         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89172         jm_STRUCT_UTIMBUF.
89173         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89174         renamings.
89175         * m4/utime.m4: Likewise.
89176
89177         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89178         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89179
89180 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89181
89182         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89183         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89184
89185 2000-01-02  Jim Meyering  <meyering@ascend.com>
89186
89187         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89188         remember if this is necessary.
89189
89190 1999-12-26  Jim Meyering  <meyering@ascend.com>
89191
89192         * m4/jm-macros.m4: Use it here.
89193         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89194
89195 1999-12-23  Jim Meyering  <meyering@ascend.com>
89196
89197         * m4/jm-macros.m4: Check for clock_gettime (moved from
89198         fileutils/configure.in)
89199         Check for gettimeofday.
89200
89201 1999-12-20  Jim Meyering  <meyering@ascend.com>
89202
89203         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89204         autoconf-2.14a-1999-12-20.
89205
89206 1999-12-19  Jim Meyering  <meyering@ascend.com>
89207
89208         * m4/lstat-slash.m4: New file.
89209         * m4/jm-macros.m4: Use the new macro:
89210         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89211
89212 1999-12-07  Jim Meyering  <meyering@ascend.com>
89213
89214         * m4/perl.m4: Require that File::Compare be available, too.
89215         Too many systems seem to lack it.
89216
89217         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89218         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89219
89220 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89221
89222         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89223         problem with the QNX 4.25 shell, which doesn't propagate exit
89224         status of failed commands inside shell assignments.
89225
89226 1999-11-17  Jim Meyering  <meyering@ascend.com>
89227
89228         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89229
89230 1999-11-07  Jim Meyering  <meyering@ascend.com>
89231
89232         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89233
89234 1999-11-06  Jim Meyering  <meyering@ascend.com>
89235
89236         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89237         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89238
89239 1999-11-05  Jim Meyering  <meyering@ascend.com>
89240
89241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89242         configure.in of textutils, fileutils, and sh-utils into this one
89243         (shared between those packages) file.
89244         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89245         AC_STRUCT_ST_BLKSIZE.
89246
89247 1999-11-03  Jim Meyering  <meyering@ascend.com>
89248
89249         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89250         of AC_CHECK_TYPE checks includes unistd.h.
89251         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89252         Suggestion from Akim Demaille.
89253
89254 1999-10-30  Jim Meyering  <meyering@ascend.com>
89255
89256         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89257         m4-quoted string.
89258         * m4/ls-mntd-fs.m4: Likewise.
89259         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89260         * m4/jm-winsz1.m4: Likewise.
89261
89262         * m4/const.m4: Remove file, since the fix made it into the experimental
89263         version of autoconf.
89264         * m4/mktime.m4: Likewise.
89265
89266         * m4/check-type.m4: Remove file, now that the latest version of
89267         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89268
89269         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89270         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89271         AC_CHECK_TYPE.
89272
89273 1999-10-04  Jim Meyering  <meyering@ascend.com>
89274
89275         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89276
89277 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89278
89279         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89280         2.95.1 bug with HP-UX 10.20.
89281
89282 1999-09-17  Jim Meyering  <meyering@ascend.com>
89283
89284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89285         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89286         due to missing strdup (against sh-utils-2.0).
89287
89288 1999-08-29  Jim Meyering  <meyering@ascend.com>
89289
89290         * m4/jm-macros.m4: Require jm_BISON.
89291         * m4/bison.m4: New file.
89292
89293 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89294
89295         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89296         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89297
89298 1999-08-05  Jim Meyering  <meyering@ascend.com>
89299
89300         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89301         to avoid conflicts with `conftest' on 8+3 filesystems.
89302         Suggestion from Eli Zaretskii.
89303
89304 1999-08-04  Jim Meyering  <meyering@ascend.com>
89305
89306         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89307         fileutils and sh-utils (textutils's getline test was inadequate).
89308         (AM_FUNC_GETLINE): Run this test.
89309         (AC_CHECK_FUNCS): Check for getdelim.
89310         Reported by Bob Proulx.
89311
89312 1999-08-02  Jim Meyering  <meyering@ascend.com>
89313
89314         * m4/jm-macros.m4: Add a comment.
89315
89316 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89317
89318         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89319         <inttypes.h> defines strtoumax as a macro (and not as a
89320         function).
89321
89322 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89323
89324         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89325         that we can shift, multiply and divide unsigned long long
89326         values; Ultrix cc can't do it.
89327
89328 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89329
89330         * m4/mktime.m4: New file, which is a preview of what should appear
89331         in the next public autoconf release.
89332
89333 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89334
89335         * m4/lfs.m4: Remove this file.
89336         * m4/largefile.m4: New file.  It contains the old contents of
89337         lfs.m4, except that all names with prefix AC_LFS have been
89338         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89339         compatible with future autoconf versions.  Also, some minor m4
89340         quoting problems have been fixed.
89341
89342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89343
89344         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89345         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89346         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89347         and simplify the shell code.
89348
89349 1999-08-01  Jim Meyering  <meyering@ascend.com>
89350
89351         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89352         m4.
89353
89354 1999-07-20  Jim Meyering  <meyering@ascend.com>
89355
89356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89357
89358 1999-07-15  Jim Meyering  <meyering@ascend.com>
89359
89360         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89361
89362 1999-05-22  Jim Meyering  <meyering@ascend.com>
89363
89364         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89365
89366 1999-05-20  Jim Meyering  <meyering@ascend.com>
89367
89368         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89369         Add a colon after each `then' in case $4 is empty.
89370
89371 1999-05-16  Jim Meyering  <meyering@ascend.com>
89372
89373         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89374
89375 1999-05-10  Jim Meyering  <meyering@ascend.com>
89376
89377         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89378
89379         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89380         AC_FUNC_MKTIME.
89381
89382 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89383
89384         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89385
89386 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89387
89388         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89389         not CPPFLAGS, so that linking works correctly in IRIX.
89390
89391 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89392
89393         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89394
89395 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89396
89397         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89398         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89399         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89400         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89401         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89402
89403         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89404
89405 1999-04-20  Jim Meyering  <meyering@ascend.com>
89406
89407         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89408         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89409         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89410
89411 1999-04-18  Jim Meyering  <meyering@ascend.com>
89412
89413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89414         * m4/jm-macros.m4: Use it.
89415
89416 1999-04-06  Jim Meyering  <meyering@ascend.com>
89417
89418         * m4/strftime.m4: Remove test for %f.
89419
89420 1999-03-29  Jim Meyering  <meyering@ascend.com>
89421
89422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89423         superset of the AC_TYPE_* checks in the textutils, fileutils,
89424         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89425         AC_TYPE_PID_T.
89426
89427 1999-03-28  Jim Meyering  <meyering@ascend.com>
89428
89429         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89430         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89431         replaced e.g., in the *.sh files of the sh-utils.
89432
89433 1999-03-20  Jim Meyering  <meyering@ascend.com>
89434
89435         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89436         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89437         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89438
89439 1999-03-19  Jim Meyering  <meyering@ascend.com>
89440
89441         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89442
89443 1999-03-12  Jim Meyering  <meyering@ascend.com>
89444
89445         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89446
89447 1999-03-07  Jim Meyering  <meyering@ascend.com>
89448
89449         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89450         declared.
89451
89452 1999-02-17  Jim Meyering  <meyering@ascend.com>
89453
89454         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89455         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89456
89457 1999-02-07  Jim Meyering  <meyering@ascend.com>
89458
89459         * m4/group-member.m4: New file -- extracted from sh-utils'
89460         configure.in.
89461
89462         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89463         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89464
89465 1999-02-06  Jim Meyering  <meyering@ascend.com>
89466
89467         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89468         * m4/fnmatch.m4: Likewise.
89469         * m4/getgroups.m4: Likewise.
89470         * m4/lstat.m4: Likewise.
89471         * m4/malloc.m4: Likewise.
89472         * m4/putenv.m4: Likewise.
89473         * m4/realloc.m4: Likewise.
89474         * m4/regex.m4: Likewise.
89475         * m4/stat.m4: Likewise.
89476         * m4/strftime.m4: Likewise.
89477         Suggestion from Alain Magloire.
89478
89479         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89480         * m4/fnmatch.m4: Likewise.
89481         * m4/getgroups.m4: Likewise.
89482         * m4/getline.m4: Likewise.
89483         * m4/lstat.m4: Likewise.
89484         * m4/malloc.m4: Likewise.
89485         * m4/memcmp.m4: Likewise.
89486         * m4/putenv.m4: Likewise.
89487         * m4/realloc.m4: Likewise.
89488         * m4/regex.m4: Likewise.
89489         * m4/stat.m4: Likewise.
89490         * m4/strftime.m4: Likewise.
89491         Suggestion from Alain Magloire.
89492
89493         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89494         an argument.
89495
89496         * m4/regex.m4: Add a run-time Test for proper operation of
89497         re_compile_pattern.
89498
89499 1999-01-31  Jim Meyering  <meyering@ascend.com>
89500
89501         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89502
89503 1999-01-30  Jim Meyering  <meyering@ascend.com>
89504
89505         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89506
89507         * m4/jm-mktime.m4: Make this a wrapper around the official
89508         AM_FUNC_MKTIME rather than my private copy, now that the official one
89509         is up to date.
89510         * m4/mktime.m4: Remove file.
89511
89512         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89513         * m4/uptime.m4: Likewise.
89514         * m4/uintmax_t.m4: Likewise.
89515
89516 1999-01-28  Jim Meyering  <meyering@ascend.com>
89517
89518         * m4/jm-macros.m4: Use jm_AFS.
89519         * m4/afs.m4: New file (from fileutils' configure.in).
89520
89521         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89522         * m4/chown.m4: Likewise.
89523         * m4/d-ino.m4: Likewise.
89524         * m4/d-type.m4: Likewise.
89525         * m4/fnmatch.m4: Likewise.
89526         * m4/getgroups.m4: Likewise.
89527         * m4/gettext.m4: Likewise.
89528         * m4/jm-mktime.m4: Likewise.
89529         * m4/jm-winsz2.m4: Likewise.
89530         * m4/lcmessage.m4: Likewise.
89531         * m4/ls-mntd-fs.m4: Likewise.
89532         * m4/malloc.m4: Likewise.
89533         * m4/memcmp.m4: Likewise.
89534         * m4/putenv.m4: Likewise.
89535         * m4/realloc.m4: Likewise.
89536         * m4/st_mtim.m4: Likewise.
89537         * m4/strftime.m4: Likewise.
89538
89539 1999-01-16  Jim Meyering  <meyering@ascend.com>
89540
89541         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89542         (ARGMATCH_DIE_DECL): Define.
89543
89544 1999-01-12  Jim Meyering  <meyering@ascend.com>
89545
89546         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89547         Reported by Lars Hecking.
89548
89549 1999-01-10  Jim Meyering  <meyering@ascend.com>
89550
89551         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89552         gross kludge.
89553         * m4/inttypes_h.m4: Likewise.
89554         * m4/lstat.m4: Likewise.
89555         * m4/malloc.m4: Likewise.
89556         * m4/readdir.m4: Likewise.
89557         * m4/realloc.m4: Likewise.
89558         * m4/st_dm_mode.m4: Likewise.
89559         * m4/stat.m4: Likewise.
89560         * m4/utimbuf.m4: Likewise.
89561         * m4/utimes.m4: Likewise.
89562
89563         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89564         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89565         comments in config.h.in are meaningful.
89566
89567         * m4/jm-macros.m4: Require autoconf-2.13 here.
89568
89569         * m4/regex.m4: By default, don't use the included regex.c on systems
89570         with glibc 2.  Suggestion from Uli Drepper.
89571
89572 1999-01-02  Jim Meyering  <meyering@ascend.com>
89573
89574         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89575
89576 1998-12-18  Jim Meyering  <meyering@ascend.com>
89577
89578         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89579         Based on a suggestion from Lars Hecking.
89580
89581 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89582
89583         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89584
89585 1998-11-16  Jim Meyering  <meyering@ascend.com>
89586
89587         * m4/lfs.m4: Double-quote the `uname...` expression.
89588
89589 1998-11-14  Jim Meyering  <meyering@ascend.com>
89590
89591         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89592         * m4/stat.m4: Likewise.
89593
89594 1998-11-03  Jim Meyering  <meyering@ascend.com>
89595
89596         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89597         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89598
89599 1998-10-18  Jim Meyering  <meyering@ascend.com>
89600
89601         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89602
89603 1998-10-17  Jim Meyering  <meyering@ascend.com>
89604
89605         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89606         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89607         calls for those previously hard-coded headers.  Instead, take a new
89608         parameter.
89609         (jm_CHECK_DECLARATIONS): Reflect interface change.
89610         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89611         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89612
89613         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89614
89615 1998-10-14  Jim Meyering  <meyering@ascend.com>
89616
89617         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89618         instead of "TZ=America/Vancouver".  From Paul Eggert.
89619
89620 1998-10-11  Jim Meyering  <meyering@ascend.com>
89621
89622         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89623         This adds a test for a recently added compatibility fix for mktime.c.
89624         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89625
89626 1998-09-27  Jim Meyering  <meyering@ascend.com>
89627
89628         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89629
89630         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89631         ../configure.in, including a change from Gordon Matzigkeit to allow
89632         cross-compiling for the Hurd.
89633
89634         * m4/glibc.m4: New file/macro to test for the GNU C Library
89635         versions 1 and 2.  From Gordon Matzigkeit.
89636         Indent.
89637
89638 1998-09-21  Jim Meyering  <meyering@ascend.com>
89639
89640         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89641
89642 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89643
89644         Port nanosecond-resolution times to UnixWare 2.1.2 and
89645         pedantic Solaris 2.6.
89646
89647         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89648         AC_STRUCT_ST_MTIM.
89649         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89650         Generate name of ns member, instead of just 1 or undef.
89651         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89652
89653 1998-08-15  Jim Meyering  <meyering@ascend.com>
89654
89655         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89656         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89657         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89658         instead of jm_TYPE_SSIZE_T.
89659
89660 1998-08-12  Jim Meyering  <meyering@ascend.com>
89661
89662         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89663
89664 1998-08-02  Jim Meyering  <meyering@ascend.com>
89665
89666         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89667         in acconfig.h manually.
89668
89669 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89670
89671         * m4/st_mtim.m4: New file.
89672
89673 1998-07-28  Jim Meyering  <meyering@ascend.com>
89674
89675         * m4/utimes.m4: Undef stat.
89676
89677 1998-07-25  Jim Meyering  <meyering@ascend.com>
89678
89679         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89680         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89681
89682 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89683
89684         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89685         uid and gid actually remain unchanged.
89686
89687 1998-07-07  Jim Meyering  <meyering@ascend.com>
89688
89689         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89690
89691 1998-07-04  Jim Meyering  <meyering@ascend.com>
89692
89693         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89694         to prove that this macro can be used in packages without regex.c.
89695
89696 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89697
89698         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89699         is to be used.
89700
89701 1998-07-03  Jim Meyering  <meyering@ascend.com>
89702
89703         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89704
89705         * m4/gettext.m4: New file -- from gettext-0.10.35.
89706         * m4/lcmessage.m4: Likewise.
89707         * m4/progtest.m4: Likewise.
89708
89709         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89710         * m4/jm-macros.m4: Require the new macro.
89711
89712 1998-06-29  Jim Meyering  <meyering@ascend.com>
89713
89714         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89715         for the definition of NGROUPS (used in a system header included
89716         by sys/mount.h).
89717
89718 1998-06-28  Jim Meyering  <meyering@ascend.com>
89719
89720         * m4/ls-mntd-fs.m4: New file.
89721         * m4/fstypename.m4: New file.
89722
89723         * m4/jm-macros.m4: Require the new macro.
89724         * m4/jm-glibc-io.m4: New file.
89725
89726 1998-05-19  Jim Meyering  <meyering@ascend.com>
89727
89728         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89729         * m4/lchown.m4: New file.
89730
89731         * m4/Makefile.am.in: New file.
89732         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89733
89734 1998-05-14  Jim Meyering  <meyering@ascend.com>
89735
89736         * m4/Makefile.am (EXTRA_DIST): Add them.
89737         * m4/jm-macros.m4: New file.
89738         * m4/utimbuf.m4: New file.
89739
89740 1998-05-12  Jim Meyering  <meyering@ascend.com>
89741
89742         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89743
89744 1998-05-11  Jim Meyering  <meyering@ascend.com>
89745
89746         * m4/isc-posix.m4: New file.
89747
89748 1998-05-10  Jim Meyering  <meyering@ascend.com>
89749
89750         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89751
89752 1998-05-09  Jim Meyering  <meyering@ascend.com>
89753
89754         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89755         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89756         with automake.
89757
89758         * m4/ssize_t.m4: New file.
89759         * m4/mktime.m4: Remove file -- the new automake has this now.
89760
89761 1998-04-26  Jim Meyering  <meyering@ascend.com>
89762
89763         * m4/assert.m4: New file.
89764         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89765
89766 1998-04-05  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89769         (jm_PREREQ): Use it here.
89770
89771 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89772
89773         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89774         in acconfig.h.
89775
89776 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89777
89778         * m4/prereq.m4: New file.
89779         * m4/error.m4: New file.
89780         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89781
89782 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89783
89784         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89785         cache-check for the same variable -- that defeated the purpose of
89786         the test; the test program was never run.  This was a problem only
89787         on systems with losing getline functions -- HP-UX 10.20 is one.
89788         Reported by Bjorn Helgaas.
89789
89790 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89791
89792         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89793
89794 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89795
89796         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89797
89798         * m4/const.m4: New file.  Use an initializer in this declaration
89799         typedef int charset[2]; const charset x;
89800         Reported by Bob Glickstein.
89801
89802 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89803
89804         * m4/chown.m4: Fix reversed types on -1 args to chown.
89805         From Kaveh Ghazi.
89806
89807 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89808
89809         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89810         Add lseek and memchr.
89811
89812         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89813         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89814         have a 20-character limit on names.
89815
89816 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89817
89818         * m4/inttypes_h.m4: New file.
89819         * m4/uintmax_t.m4: New file.
89820         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89821
89822
89823         -----
89824
89825         Local Variables:
89826         coding: utf-8
89827         End:
89828
89829         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89830
89831         Copying and distribution of this file, with or without
89832         modification, are permitted provided the copyright notice
89833         and this notice are preserved.